From 2e4c80b695efdf3b9d48758f0ee0a05c95cb371e Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Tue, 10 Nov 2015 10:54:05 +0100 Subject: elfutils: add ptest Add Enea Specific ptest Signed-off-by: Tudor Florea Signed-off-by: Adrian Dudau --- recipes-devtools/elfutils/elfutils/add-ptest.patch | 23 ++++++++++++++++++++++ .../elfutils/elfutils/avoid_parallel_tests.patch | 20 +++++++++++++++++++ recipes-devtools/elfutils/elfutils/run-ptest | 3 +++ recipes-devtools/elfutils/elfutils_0.148.bbappend | 19 ++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 recipes-devtools/elfutils/elfutils/add-ptest.patch create mode 100644 recipes-devtools/elfutils/elfutils/avoid_parallel_tests.patch create mode 100644 recipes-devtools/elfutils/elfutils/run-ptest create mode 100644 recipes-devtools/elfutils/elfutils_0.148.bbappend diff --git a/recipes-devtools/elfutils/elfutils/add-ptest.patch b/recipes-devtools/elfutils/elfutils/add-ptest.patch new file mode 100644 index 0000000..88f808d --- /dev/null +++ b/recipes-devtools/elfutils/elfutils/add-ptest.patch @@ -0,0 +1,23 @@ +Add 'install-ptest' rule. + +Signed-off-by: Mihaela Sendrea +Upstream-status: Pending +--- +diff -uNr a/tests/Makefile.am b/tests/Makefile.am +--- a/tests/Makefile.am 2013-08-19 14:05:23.256292155 +0200 ++++ b/tests/Makefile.am 2013-08-19 15:49:16.084543591 +0200 +@@ -240,3 +240,14 @@ + coverage: + -$(srcdir)/coverage.sh + endif ++ ++install-ptest: ++ @$(MKDIR_P) $(DESTDIR)/tests ++ @$(MKDIR_P) $(DESTDIR)/src ++ @install $(builddir)/*$(EXEEXT) $(DESTDIR)/tests ++ @install $(srcdir)/*.sh $(DESTDIR)/tests ++ @install $(builddir)/../src/*$(EXEEXT) $(DESTDIR)/src ++ @cp $(builddir)/../Makefile $(DESTDIR) ++ @sed -i -e 's|^Makefile:|_Makefile:|' $(DESTDIR)/tests/Makefile ++ @sed -i -e 's|$(srcdir)|.|' $(DESTDIR)/tests/Makefile ++ diff --git a/recipes-devtools/elfutils/elfutils/avoid_parallel_tests.patch b/recipes-devtools/elfutils/elfutils/avoid_parallel_tests.patch new file mode 100644 index 0000000..ed6b6ef --- /dev/null +++ b/recipes-devtools/elfutils/elfutils/avoid_parallel_tests.patch @@ -0,0 +1,20 @@ +ptest needs buildtest-TESTS and runtest-TESTS targets. +serial-tests is required to generate those targets. + +Signed-off-by: Alexandra Safta +Signed-off-by: Tudor Florea +Upstream-Status: Inappropriate + +diff -ruN a/configure.ac b/configure.ac + +--- a/configure.ac 2014-05-26 18:55:11.843190780 +0200 ++++ b/configure.ac 2014-05-26 18:56:01.725097919 +0200 +@@ -25,7 +25,7 @@ + AC_PREREQ(2.63) dnl Minimum Autoconf version required. + + dnl We use GNU make extensions; automake 1.10 defaults to -Wportability. +-AM_INIT_AUTOMAKE([gnits 1.8 -Wno-portability dist-bzip2 no-dist-gzip]) ++AM_INIT_AUTOMAKE([gnits 1.8 -Wno-portability dist-bzip2 no-dist-gzip serial-tests]) + AM_MAINTAINER_MODE + + dnl Unique ID for this build. diff --git a/recipes-devtools/elfutils/elfutils/run-ptest b/recipes-devtools/elfutils/elfutils/run-ptest new file mode 100644 index 0000000..51ea6df --- /dev/null +++ b/recipes-devtools/elfutils/elfutils/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +make -C tests -k runtest-TESTS diff --git a/recipes-devtools/elfutils/elfutils_0.148.bbappend b/recipes-devtools/elfutils/elfutils_0.148.bbappend new file mode 100644 index 0000000..704829a --- /dev/null +++ b/recipes-devtools/elfutils/elfutils_0.148.bbappend @@ -0,0 +1,19 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "\ + file://add-ptest.patch \ + file://run-ptest \ + file://avoid_parallel_tests.patch \ +" + +inherit ptest + +do_compile_ptest() { + oe_runmake -C tests buildtest-TESTS +} + +do_install_ptest() { + oe_runmake -C tests install-ptest DESTDIR=${D}${PTEST_PATH} +} + +RDEPENDS_${PN}-ptest += " bash" -- cgit v1.2.3-54-g00ecf From 9ced0ec79f9d3d206e03b7379c52c46396be1b1a Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Tue, 10 Nov 2015 15:41:11 +0100 Subject: openssh: fixed openssh ptest Signed-off-by: Tudor Florea Signed-off-by: Adrian Dudau --- .../openssh/openssh-ptest-fix-sshconnect.patch | 57 ++++++++++++++++++++++ .../openssh/openssh_6.6p1.bbappend | 3 ++ 2 files changed, 60 insertions(+) create mode 100644 recipes-connectivity/openssh/openssh/openssh-ptest-fix-sshconnect.patch create mode 100644 recipes-connectivity/openssh/openssh_6.6p1.bbappend diff --git a/recipes-connectivity/openssh/openssh/openssh-ptest-fix-sshconnect.patch b/recipes-connectivity/openssh/openssh/openssh-ptest-fix-sshconnect.patch new file mode 100644 index 0000000..0913701 --- /dev/null +++ b/recipes-connectivity/openssh/openssh/openssh-ptest-fix-sshconnect.patch @@ -0,0 +1,57 @@ +Fixed openssh ptest + +ptests for openssh, apart from a lot of .sh scripts, also +require 2 executables to be cross-compiled for the target +and deployed there, that will be called from the test +scripts. + +Those 2 files were not built when cross-compiling +(Makefile target all:), so I added them to the build, +under the target all_test. + +This new make target is intended to be run from +do_compile_ptest(), that builds everything needed for +performing the ptests. + +Because both these 2 executables required for ptest +are linked with libssh (LDFLAGS += -lssh), I also +added it as dependency for each of them. + +Upstream-status: Inappropriate + +Signed-off-by: Liviu Gheorghisan +--- +--- a/Makefile.in 2014-12-10 16:19:37.513373454 +0100 ++++ b/Makefile.in 2014-12-10 16:25:23.262764227 +0100 +@@ -130,6 +130,8 @@ FIXALGORITHMSCMD= $(SHELL) $(srcdir)/fix + + all: $(CONFIGFILES) $(MANPAGES) $(TARGETS) + ++all_test: regress/modpipe$(EXEEXT) regress/setuid-allowed$(EXEEXT) ++ + $(LIBSSH_OBJS): Makefile.in config.h + $(SSHOBJS): Makefile.in config.h + $(SSHDOBJS): Makefile.in config.h +@@ -394,18 +396,18 @@ uninstall: + -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 + -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 + +-regress/modpipe$(EXEEXT): $(srcdir)/regress/modpipe.c ++regress/modpipe$(EXEEXT): libssh.a + [ -d `pwd`/regress ] || mkdir -p `pwd`/regress + [ -f `pwd`/regress/Makefile ] || \ + ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile +- $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \ ++ $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/modpipe.c \ + $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) + +-regress/setuid-allowed$(EXEEXT): $(srcdir)/regress/setuid-allowed.c ++regress/setuid-allowed$(EXEEXT): libssh.a + [ -d `pwd`/regress ] || mkdir -p `pwd`/regress + [ -f `pwd`/regress/Makefile ] || \ + ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile +- $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \ ++ $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/regress/setuid-allowed.c \ + $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) + + tests interop-tests: $(TARGETS) regress/modpipe$(EXEEXT) regress/setuid-allowed$(EXEEXT) diff --git a/recipes-connectivity/openssh/openssh_6.6p1.bbappend b/recipes-connectivity/openssh/openssh_6.6p1.bbappend new file mode 100644 index 0000000..2e8ca80 --- /dev/null +++ b/recipes-connectivity/openssh/openssh_6.6p1.bbappend @@ -0,0 +1,3 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += " file://openssh-ptest-fix-sshconnect.patch \ -- cgit v1.2.3-54-g00ecf From d94fd9a92c28523914bf3fb196bea7f863a98782 Mon Sep 17 00:00:00 2001 From: Huimin She Date: Mon, 16 Nov 2015 09:51:38 +0100 Subject: Replaced = with += for IMAGE_INSTALL in enea-image-featured Previously it used '=', which would overwrite the settings from enea-image-common.inc. Signed-off-by: Huimin She Signed-off-by: Martin Borg --- images/enea-image-featured.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/enea-image-featured.bb b/images/enea-image-featured.bb index 2d22237..5ee6b77 100644 --- a/images/enea-image-featured.bb +++ b/images/enea-image-featured.bb @@ -23,7 +23,7 @@ IMAGE_FEATURES += " \ x11 \ x11-base" -IMAGE_INSTALL = " \ +IMAGE_INSTALL += " \ packagegroup-base \ packagegroup-enea-debug \ packagegroup-enea-rt-tools \ -- cgit v1.2.3-54-g00ecf From f40b6f3d51b5637f357d7eb08cde33b320528615 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Wed, 18 Nov 2015 08:44:53 +0100 Subject: util-linux: add ptest Signed-off-by: Tudor Florea Signed-off-by: Adrian Dudau --- .../util-linux/avoid_parallel_tests.patch | 19 ++++++++ .../util-linux/avoid_unsupported_find_opts.patch | 38 +++++++++++++++ .../util-linux/avoid_unsupported_grep_opts.patch | 57 ++++++++++++++++++++++ .../util-linux/avoid_unsupported_sleep_param.patch | 20 ++++++++ .../util-linux/display_testname_for_subtest.patch | 17 +++++++ recipes-core/util-linux/util-linux/ptest.patch | 16 ++++++ recipes-core/util-linux/util-linux/run-ptest | 10 ++++ recipes-core/util-linux/util-linux_%.bbappend | 41 ++++++++++++++++ 8 files changed, 218 insertions(+) create mode 100644 recipes-core/util-linux/util-linux/avoid_parallel_tests.patch create mode 100644 recipes-core/util-linux/util-linux/avoid_unsupported_find_opts.patch create mode 100644 recipes-core/util-linux/util-linux/avoid_unsupported_grep_opts.patch create mode 100644 recipes-core/util-linux/util-linux/avoid_unsupported_sleep_param.patch create mode 100644 recipes-core/util-linux/util-linux/display_testname_for_subtest.patch create mode 100644 recipes-core/util-linux/util-linux/ptest.patch create mode 100644 recipes-core/util-linux/util-linux/run-ptest create mode 100644 recipes-core/util-linux/util-linux_%.bbappend diff --git a/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch b/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch new file mode 100644 index 0000000..9f6a720 --- /dev/null +++ b/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch @@ -0,0 +1,19 @@ +ptest needs buildtest-TESTS and runtest-TESTS targets. +serial-tests is required to generate those targets. + +Signed-off-by: Alexandra Safta +Signed-off-by: Tudor Florea +Upstream-Status: Inapporpriate + +diff -ruN a/configure.ac b/configure.ac +--- a/configure.ac 2014-05-27 12:37:42.119772658 +0200 ++++ b/configure.ac 2014-05-27 12:41:46.225573272 +0200 +@@ -10,7 +10,7 @@ + dnl AC_USE_SYSTEM_EXTENSIONS must be called before any macros that run + dnl the compiler (like AC_PROG_LIBTOOL) to avoid autoconf errors. + AC_USE_SYSTEM_EXTENSIONS +-AM_INIT_AUTOMAKE([-Wall foreign 1.10 tar-pax dist-bzip2 no-dist-gzip dist-xz -Wno-portability subdir-objects]) ++AM_INIT_AUTOMAKE([-Wall foreign 1.10 tar-pax dist-bzip2 no-dist-gzip dist-xz -Wno-portability subdir-objects serial-tests]) + + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], + [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) diff --git a/recipes-core/util-linux/util-linux/avoid_unsupported_find_opts.patch b/recipes-core/util-linux/util-linux/avoid_unsupported_find_opts.patch new file mode 100644 index 0000000..13dc7dd --- /dev/null +++ b/recipes-core/util-linux/util-linux/avoid_unsupported_find_opts.patch @@ -0,0 +1,38 @@ +Avoid unsupported find options + +Signed-off-by: Tudor Florea +Upstream-Status: Pending + +diff -ruN a/tests/run.sh b/tests/run.sh +--- a/tests/run.sh 2013-08-26 23:48:48.868279097 +0200 ++++ b/tests/run.sh 2013-08-27 00:14:35.646730004 +0200 +@@ -91,7 +91,7 @@ + # selected tests only + for s in $SUBTESTS; do + if [ -d "$top_srcdir/tests/ts/$s" ]; then +- co=$(find $top_srcdir/tests/ts/$s -type f -perm /a+x -regex ".*/[^\.~]*" | sort) ++ co=$(find $top_srcdir/tests/ts/$s -type f -perm -111 -regex ".*/[^\.~]*" | sort) + comps="$comps $co" + else + echo "Unknown test component '$s'" +@@ -104,7 +104,7 @@ + exit 1 + fi + +- comps=$(find $top_srcdir/tests/ts/ -type f -perm /a+x -regex ".*/[^\.~]*" | sort) ++ comps=$(find $top_srcdir/tests/ts/ -type f -perm -111 -regex ".*/[^\.~]*" | sort) + fi + + +diff -ruN a/tests/ts/build-sys/config b/tests/ts/build-sys/config +--- a/tests/ts/build-sys/config 2013-08-26 23:50:26.800131581 +0200 ++++ b/tests/ts/build-sys/config 2013-08-27 00:10:02.806302850 +0200 +@@ -32,7 +32,7 @@ + ./configure $opts &> /dev/null + make -j &> /dev/null + +- bins=$(find . -type f -perm /a+x | sort) ++ bins=$(find . -type f -perm -111 | sort) + for b in $bins; do + libs=$(readelf --dynamic $b 2> /dev/null | \ + awk '/NEEDED/ { print $5 }' | \ diff --git a/recipes-core/util-linux/util-linux/avoid_unsupported_grep_opts.patch b/recipes-core/util-linux/util-linux/avoid_unsupported_grep_opts.patch new file mode 100644 index 0000000..a0d5efa --- /dev/null +++ b/recipes-core/util-linux/util-linux/avoid_unsupported_grep_opts.patch @@ -0,0 +1,57 @@ +Avoid unsupported grep options + +Signed-off-by: Tudor Florea +Upstream-Status: Pending + +diff -ruN a/ts/ipcs/headers b/ts/ipcs/headers +--- a/tests/ts/ipcs/headers 2013-09-04 11:03:36.118613250 +0200 ++++ b/teste/ts/ipcs/headers 2013-09-04 11:03:27.906958437 +0200 +@@ -22,35 +22,35 @@ + ts_init "$*" + + ts_log "test: shm headers" +-$TS_CMD_IPCS -m -t | grep --after-context=1 "^---" >> $TS_OUTPUT +-$TS_CMD_IPCS -m -p | grep --after-context=1 "^---" >> $TS_OUTPUT +-$TS_CMD_IPCS -m -c | grep --after-context=1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -m -t | grep -A 1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -m -p | grep -A 1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -m -c | grep -A 1 "^---" >> $TS_OUTPUT + $TS_CMD_IPCS -m -l | grep "^---" >> $TS_OUTPUT + $TS_CMD_IPCS -m -u | grep "^---" >> $TS_OUTPUT + echo >> $TS_OUTPUT + + ts_log "test: mesg headers" +-$TS_CMD_IPCS -q -t | grep --after-context=1 "^---" >> $TS_OUTPUT +-$TS_CMD_IPCS -q -p | grep --after-context=1 "^---" >> $TS_OUTPUT +-$TS_CMD_IPCS -q -c | grep --after-context=1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -q -t | grep -A 1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -q -p | grep -A 1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -q -c | grep -A 1 "^---" >> $TS_OUTPUT + $TS_CMD_IPCS -q -l | grep "^---" >> $TS_OUTPUT + $TS_CMD_IPCS -q -u | grep "^---" >> $TS_OUTPUT + echo >> $TS_OUTPUT + + ts_log "test: sem headers" +-$TS_CMD_IPCS -s -t | grep --after-context=1 "^---" >> $TS_OUTPUT +-$TS_CMD_IPCS -s -p | grep --after-context=1 "^---" >> $TS_OUTPUT +-$TS_CMD_IPCS -s -c | grep --after-context=1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -s -t | grep -A 1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -s -p | grep -A 1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -s -c | grep -A 1 "^---" >> $TS_OUTPUT + $TS_CMD_IPCS -s -l | grep "^---" >> $TS_OUTPUT + $TS_CMD_IPCS -s -u | grep "^---" >> $TS_OUTPUT + echo >> $TS_OUTPUT + + ts_log "test: all headers" +-$TS_CMD_IPCS -a | grep --after-context=1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -a | grep -A 1 "^---" >> $TS_OUTPUT + +-$TS_CMD_IPCS -a -t | grep --after-context=1 "^---" >> $TS_OUTPUT +-$TS_CMD_IPCS -a -p | grep --after-context=1 "^---" >> $TS_OUTPUT +-$TS_CMD_IPCS -a -c | grep --after-context=1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -a -t | grep -A 1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -a -p | grep -A 1 "^---" >> $TS_OUTPUT ++$TS_CMD_IPCS -a -c | grep -A 1 "^---" >> $TS_OUTPUT + $TS_CMD_IPCS -a -l | grep "^---" >> $TS_OUTPUT + $TS_CMD_IPCS -a -u | grep "^---" >> $TS_OUTPUT + diff --git a/recipes-core/util-linux/util-linux/avoid_unsupported_sleep_param.patch b/recipes-core/util-linux/util-linux/avoid_unsupported_sleep_param.patch new file mode 100644 index 0000000..3a62067 --- /dev/null +++ b/recipes-core/util-linux/util-linux/avoid_unsupported_sleep_param.patch @@ -0,0 +1,20 @@ +Avoid unsupported sleep parameter + +Signed-off-by: Tudor Florea +Upstream-Status: Pending + +diff -ruN a/simple b/simple +--- a/tests/ts/tailf/simple 2013-09-04 11:34:49.971817130 +0200 ++++ b/tests/ts/tailf/simple 2013-09-04 11:34:37.876325128 +0200 +@@ -25,9 +25,9 @@ + + $TS_CMD_TAILF $INPUT > $TS_OUTPUT 2>&1 & + +-sleep 0.1 ++sleep 1 + echo {0..9} >> $INPUT +-sleep 0.1 ++sleep 1 + + rm -f $INPUT + diff --git a/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch b/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch new file mode 100644 index 0000000..64f02d5 --- /dev/null +++ b/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch @@ -0,0 +1,17 @@ +Display testname for subtest + +Signed-off-by: Tudor Florea +Upstream-Status: Pending + +diff -ruN a/functions.sh b/functions.sh +--- a/tests/functions.sh 2013-09-04 12:41:07.625488953 +0200 ++++ b/tests/functions.sh 2013-09-04 17:33:02.402802957 +0200 +@@ -209,7 +209,7 @@ + [ $TS_NSUBTESTS -eq 0 ] && echo + TS_NSUBTESTS=$(( $TS_NSUBTESTS + 1 )) + +- printf "%16s: %-27s ..." "" "$TS_SUBNAME" ++ printf "%13s: %-30s ..." "$TS_COMPONENT" "$TS_SUBNAME" + } + + function ts_init { diff --git a/recipes-core/util-linux/util-linux/ptest.patch b/recipes-core/util-linux/util-linux/ptest.patch new file mode 100644 index 0000000..e9adc90 --- /dev/null +++ b/recipes-core/util-linux/util-linux/ptest.patch @@ -0,0 +1,16 @@ +Define TESTS variable + +Signed-off-by: Tudor Florea +Upstream-Status: Pending + +diff -ruN a/Makefile.am b/Makefile.am +--- a/Makefile.am 2013-08-26 16:29:42.151429221 +0200 ++++ b/Makefile.am 2013-08-26 17:52:31.013898120 +0200 +@@ -43,7 +43,7 @@ + dist_usrbin_exec_SCRIPTS = + systemdsystemunit_DATA = + check_PROGRAMS = +-TESTS = ++TESTS = $(check_PROGRAMS) + + PATHFILES = diff --git a/recipes-core/util-linux/util-linux/run-ptest b/recipes-core/util-linux/util-linux/run-ptest new file mode 100644 index 0000000..b04f14a --- /dev/null +++ b/recipes-core/util-linux/util-linux/run-ptest @@ -0,0 +1,10 @@ +#!/bin/sh + +cd tests || exit 1 +sh ./run.sh 2>&1 | { + sed '{ + s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/ + s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/ + s/^\(.*\):\(.*\) \.\.\. IGNORE \(.*\)$/SKIP: \1:\2 \3/ + }' +} diff --git a/recipes-core/util-linux/util-linux_%.bbappend b/recipes-core/util-linux/util-linux_%.bbappend new file mode 100644 index 0000000..c5f09ba --- /dev/null +++ b/recipes-core/util-linux/util-linux_%.bbappend @@ -0,0 +1,41 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +inherit ptest + +SRC_URI += " \ + file://ptest.patch \ + file://run-ptest \ + file://avoid_unsupported_find_opts.patch \ + file://avoid_unsupported_grep_opts.patch \ + file://avoid_unsupported_sleep_param.patch \ + file://display_testname_for_subtest.patch \ + file://avoid_parallel_tests.patch \ + " + +RDEPENDS_${PN}-ptest += " bash" + +do_compile_ptest() { + oe_runmake buildtest-TESTS +} + +do_install_ptest() { + mkdir -p ${D}${PTEST_PATH}/tests/ts + find . -maxdepth 1 -type f -perm -111 -exec cp {} ${D}${PTEST_PATH} \; + cp ${S}/tests/functions.sh ${D}${PTEST_PATH}/tests/ + cp ${S}/tests/commands.sh ${D}${PTEST_PATH}/tests/ + cp ${S}/tests/run.sh ${D}${PTEST_PATH}/tests/ + cp -pR ${S}/tests/expected ${D}${PTEST_PATH}/tests/expected + + list="bitops build-sys cal col colrm column dmesg fsck hexdump hwclock ipcs isosize login look lscpu md5 misc more namei paths schedutils script swapon tailf utmpdump" + # The following tests are not installed yet: + # blkid scsi_debug module dependent + # cramfs gcc dependent + # eject gcc dependent + # fdisk scsi_debug module and gcc dependent + # libmount uuidgen dependent + # mount gcc dependant + # partx blkid dependant + for d in $list; do + cp -pR ${S}/tests/ts/$d ${D}${PTEST_PATH}/tests/ts/ + done +} -- cgit v1.2.3-54-g00ecf From e253c8210ec6eb314433fcad7292a98a3fe95cea Mon Sep 17 00:00:00 2001 From: George Nita Date: Thu, 19 Nov 2015 17:33:16 +0100 Subject: Remove perf-networking from packagegroup-enea-sys perf-networking was for network performance tests which are not run anymore. Moreover, it depends on netperf which has a non-commenrcial license. It's a port of meta-enea 29415d496decf2df2a68427d2ec6c1b698271702 change. Signed-off-by: George Nita --- recipes-core/packagegroups/packagegroup-enea-sys.bb | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes-core/packagegroups/packagegroup-enea-sys.bb b/recipes-core/packagegroups/packagegroup-enea-sys.bb index 9ec9756..f398295 100644 --- a/recipes-core/packagegroups/packagegroup-enea-sys.bb +++ b/recipes-core/packagegroups/packagegroup-enea-sys.bb @@ -14,5 +14,4 @@ RDEPENDS_${PN} = "\ RRECOMMENDS_${PN} = "\ systest-runner \ - perf-networking \ " -- cgit v1.2.3-54-g00ecf From b9ac3c262f7ffd77106b36f71b1033ae093706fa Mon Sep 17 00:00:00 2001 From: Mihaela Martinas Date: Thu, 19 Nov 2015 15:03:13 +0100 Subject: fuse: Add fusermount package to fuse receipe Signed-off-by: Mihaela Martinas Signed-off-by: Tudor Florea --- recipes-support/fuse/fuse_2.9.3.bbappend | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 recipes-support/fuse/fuse_2.9.3.bbappend diff --git a/recipes-support/fuse/fuse_2.9.3.bbappend b/recipes-support/fuse/fuse_2.9.3.bbappend new file mode 100644 index 0000000..e4a6816 --- /dev/null +++ b/recipes-support/fuse/fuse_2.9.3.bbappend @@ -0,0 +1,8 @@ +PACKAGES =+ "fusermount" + +FILES_fusermount += "${base_bindir}/fusermount" + +do_install_append () { + install -d ${D}${base_bindir} + install -m 0755 ${B}/util/fusermount -t ${D}${base_bindir} +} -- cgit v1.2.3-54-g00ecf From 9ea9109bb950be420fe67bb15cadea59c6e544ac Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 20 Nov 2015 14:10:45 +0100 Subject: python-smartpm: change "already installed" warnings into info messages It's possible to trigger "already installed" messages during normal usage if you explicitly install something in the image through IMAGE_INSTALL that has a dependency on some -dev packages and also have dev-pkgs in IMAGE_FEATURES. Since we now check the do_rootfs log for warnings, these are reported as warnings at the build system level. This situation should not trigger warnings, nor is it really cause for concern under any other circumstance if the user asks smart to install something that's already installed, so make it an info message rather than a warning. Fixes [YOCTO #7840]. This patch was ported from poky/master Signed-off-by: Tudor Florea Signed-off-by: Adrian Dudau --- .../smart-already-installed-message.patch | 54 ++++++++++++++++++++++ .../python/python-smartpm_1.4.1.bbappend | 5 ++ 2 files changed, 59 insertions(+) create mode 100644 recipes-devtools/python/python-smartpm/smart-already-installed-message.patch create mode 100644 recipes-devtools/python/python-smartpm_1.4.1.bbappend diff --git a/recipes-devtools/python/python-smartpm/smart-already-installed-message.patch b/recipes-devtools/python/python-smartpm/smart-already-installed-message.patch new file mode 100644 index 0000000..e264de8 --- /dev/null +++ b/recipes-devtools/python/python-smartpm/smart-already-installed-message.patch @@ -0,0 +1,54 @@ + +From a74a9a9eb9d75964a0e978950e8b191d7a18d763 Mon Sep 17 00:00:00 2001 +From: Paul Eggleton +Date: Fri, 5 Jun 2015 17:07:16 +0100 +Subject: [PATCH] smart: change "is already installed" message from warning to + info + +This doesn't need to be a warning. + +Upstream-Status: Pending + +Signed-off-by: Paul Eggleton +--- + smart/commands/install.py | 4 ++-- + smart/interfaces/text/interactive.py | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/smart/commands/install.py b/smart/commands/install.py +index 6ef9682..80d456b 100644 +--- a/smart/commands/install.py ++++ b/smart/commands/install.py +@@ -152,7 +152,7 @@ def main(ctrl, opts): + for obj in results: + for pkg in obj.packages: + if pkg.installed: +- iface.warning(_("%s (for %s) is already installed") ++ iface.info(_("%s (for %s) is already installed") + % (pkg, arg)) + installed = True + break +@@ -184,7 +184,7 @@ def main(ctrl, opts): + for name in names: + pkg = names[name][0] + if pkg.installed: +- iface.warning(_("%s is already installed") % pkg) ++ iface.info(_("%s is already installed") % pkg) + else: + trans.enqueue(pkg, INSTALL) + +diff --git a/smart/interfaces/text/interactive.py b/smart/interfaces/text/interactive.py +index 9865584..190867b 100644 +--- a/smart/interfaces/text/interactive.py ++++ b/smart/interfaces/text/interactive.py +@@ -278,7 +278,7 @@ class Interpreter(Cmd): + for name in names: + pkg = names[name][0] + if pkg.installed: +- iface.warning(_("%s is already installed") % pkg) ++ iface.info(_("%s is already installed") % pkg) + else: + found = True + transaction.enqueue(pkg, INSTALL) +-- +2.1.0 diff --git a/recipes-devtools/python/python-smartpm_1.4.1.bbappend b/recipes-devtools/python/python-smartpm_1.4.1.bbappend new file mode 100644 index 0000000..1148437 --- /dev/null +++ b/recipes-devtools/python/python-smartpm_1.4.1.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "\ + file://smart-already-installed-message.patch \ +" -- cgit v1.2.3-54-g00ecf From 7c31d929af764a61ffdfc99ec9c2fc23e24dad2b Mon Sep 17 00:00:00 2001 From: George Nita Date: Tue, 24 Nov 2015 16:31:44 +0100 Subject: distro: Set PREMIRRORS to linux.enea.com Enea mirrors should be searched first. Signed-off-by: George Nita Signed-off-by: Tudor Florea --- conf/distro/enea.conf | 1 + conf/distro/include/enea-mirrors.inc | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 conf/distro/include/enea-mirrors.inc diff --git a/conf/distro/enea.conf b/conf/distro/enea.conf index da5ddd5..94deafb 100644 --- a/conf/distro/enea.conf +++ b/conf/distro/enea.conf @@ -5,6 +5,7 @@ DISTRO_VERSION_MAJOR = "5.0" DISTRO_VERSION_MINOR ??= "" DISTRO_VERSION = "${DISTRO_VERSION_MAJOR}${DISTRO_VERSION_MINOR}" +require conf/distro/include/enea-mirrors.inc SDK_VENDOR = "-eneasdk" SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}" diff --git a/conf/distro/include/enea-mirrors.inc b/conf/distro/include/enea-mirrors.inc new file mode 100644 index 0000000..3a9bfa4 --- /dev/null +++ b/conf/distro/include/enea-mirrors.inc @@ -0,0 +1,12 @@ +PREMIRRORS ??= "\ +cvs://.*/.* http://linux.enea.com/${DISTRO_VERSION}/sources/ \n \ +svn://.*/.* http://linux.enea.com/${DISTRO_VERSION}/sources/ \n \ +git://.*/.* http://linux.enea.com/${DISTRO_VERSION}/sources/ \n \ +hg://.*/.* http://linux.enea.com/${DISTRO_VERSION}/sources/ \n \ +bzr://.*/.* http://linux.enea.com/${DISTRO_VERSION}/sources/ \n \ +svk://.*/.* http://linux.enea.com/${DISTRO_VERSION}/sources/ \n \ +p4://.*/.* http://linux.enea.com/${DISTRO_VERSION}/sources/ \n \ +osc://.*/.* http://linux.enea.com/${DISTRO_VERSION}/sources/ \n \ +https?$://.*/.* http://linux.enea.com/${DISTRO_VERSION}/sources/ \n \ +ftp://.*/.* http://linux.enea.com/${DISTRO_VERSION}/sources/ \n \ +" -- cgit v1.2.3-54-g00ecf From 8d7d20f1ae6c10ef37723572b535c5c22814461e Mon Sep 17 00:00:00 2001 From: Sona Sarmadi Date: Fri, 4 Dec 2015 14:37:17 +0100 Subject: dbus: CVE-2014-3532 Fixes denial of service in file descriptor passing feature References: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3532 https://bugs.freedesktop.org/show_bug.cgi?id=80163 http://openwall.com/lists/oss-security/2014/07/02/4 Upstream commit: http://cgit.freedesktop.org/dbus/dbus/commit/?id= 9ca90648fc870c24d852ce6d7ce9387a9fc9a94a Signed-off-by: Sona Sarmadi --- recipes-core/dbus/dbus_1.8.2.bbappend | 5 ++ recipes-core/dbus/files/CVE-2014-3532.patch | 112 ++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 recipes-core/dbus/dbus_1.8.2.bbappend create mode 100644 recipes-core/dbus/files/CVE-2014-3532.patch diff --git a/recipes-core/dbus/dbus_1.8.2.bbappend b/recipes-core/dbus/dbus_1.8.2.bbappend new file mode 100644 index 0000000..3a6cb06 --- /dev/null +++ b/recipes-core/dbus/dbus_1.8.2.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI += "\ + file://CVE-2014-3532.patch \ + " diff --git a/recipes-core/dbus/files/CVE-2014-3532.patch b/recipes-core/dbus/files/CVE-2014-3532.patch new file mode 100644 index 0000000..95f110c --- /dev/null +++ b/recipes-core/dbus/files/CVE-2014-3532.patch @@ -0,0 +1,112 @@ +Date: Tue, 24 Jun 2014 17:57:14 +0100 +Subject: Handle ETOOMANYREFS when sending recursive fds (SCM_RIGHTS) + +Since Linux commit 25888e (from 2.6.37-rc4, Nov 2010), sendmsg() on Unix +sockets returns -1 errno=ETOOMANYREFS ("Too many references: cannot splice") +when the passfd mechanism (SCM_RIGHTS) is "abusively" used recursively by +applications. A malicious client could use this to force a victim system +service to be disconnected from the system bus; the victim would likely +respond by exiting. This is a denial of service (fd.o #80163, +CVE-2014-3532). + +This patch silently drops the D-Bus message on ETOOMANYREFS and does not close +the connection. + +Upstream-Status: Backport + +Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80163 +Reviewed-by: Thiago Macieira +[altered commit message to explain DoS significance -smcv] +Reviewed-by: Simon McVittie +Signed-off-by: Sona Sarmadi + +diff --git a/dbus/dbus-sysdeps.c b/dbus/dbus-sysdeps.c +index de3a18c..f4ba0fa 100644 +--- a/dbus/dbus-sysdeps.c ++++ b/dbus/dbus-sysdeps.c +@@ -762,6 +762,20 @@ _dbus_get_is_errno_epipe (void) + } + + /** ++ * See if errno is ETOOMANYREFS ++ * @returns #TRUE if errno == ETOOMANYREFS ++ */ ++dbus_bool_t ++_dbus_get_is_errno_etoomanyrefs (void) ++{ ++#ifdef ETOOMANYREFS ++ return errno == ETOOMANYREFS; ++#else ++ return FALSE; ++#endif ++} ++ ++/** + * Get error message from errno + * @returns _dbus_strerror(errno) + */ +diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h +index e586946..21033eb 100644 +--- a/dbus/dbus-sysdeps.h ++++ b/dbus/dbus-sysdeps.h +@@ -384,6 +384,7 @@ dbus_bool_t _dbus_get_is_errno_eagain_or_ewouldblock (void); + dbus_bool_t _dbus_get_is_errno_enomem (void); + dbus_bool_t _dbus_get_is_errno_eintr (void); + dbus_bool_t _dbus_get_is_errno_epipe (void); ++dbus_bool_t _dbus_get_is_errno_etoomanyrefs (void); + const char* _dbus_strerror_from_errno (void); + + void _dbus_disable_sigpipe (void); +diff --git a/dbus/dbus-transport-socket.c b/dbus/dbus-transport-socket.c +index 774f459..199d3b5 100644 +--- a/dbus/dbus-transport-socket.c ++++ b/dbus/dbus-transport-socket.c +@@ -645,12 +645,44 @@ do_writing (DBusTransport *transport) + { + /* EINTR already handled for us */ + +- /* For some discussion of why we also ignore EPIPE here, see ++ /* If the other end closed the socket with close() or shutdown(), we ++ * receive EPIPE here but we must not close the socket yet: there ++ * might still be some data to read. See: + * http://lists.freedesktop.org/archives/dbus/2008-March/009526.html + */ + + if (_dbus_get_is_errno_eagain_or_ewouldblock () || _dbus_get_is_errno_epipe ()) + goto out; ++ ++ /* Since Linux commit 25888e (from 2.6.37-rc4, Nov 2010), sendmsg() ++ * on Unix sockets returns -1 errno=ETOOMANYREFS when the passfd ++ * mechanism (SCM_RIGHTS) is used recursively with a recursion level ++ * of maximum 4. The kernel does not have an API to check whether ++ * the passed fds can be forwarded and it can change asynchronously. ++ * See: ++ * https://bugs.freedesktop.org/show_bug.cgi?id=80163 ++ */ ++ ++ else if (_dbus_get_is_errno_etoomanyrefs ()) ++ { ++ /* We only send fds in the first byte of the message. ++ * ETOOMANYREFS cannot happen after. ++ */ ++ _dbus_assert (socket_transport->message_bytes_written == 0); ++ ++ _dbus_verbose (" discard message of %d bytes due to ETOOMANYREFS\n", ++ total_bytes_to_write); ++ ++ socket_transport->message_bytes_written = 0; ++ _dbus_string_set_length (&socket_transport->encoded_outgoing, 0); ++ _dbus_string_compact (&socket_transport->encoded_outgoing, 2048); ++ ++ /* The message was not actually sent but it needs to be removed ++ * from the outgoing queue ++ */ ++ _dbus_connection_message_sent_unlocked (transport->connection, ++ message); ++ } + else + { + _dbus_verbose ("Error writing to remote app: %s\n", +-- +cgit v0.10.2 + -- cgit v1.2.3-54-g00ecf From 9b3c8a18e0b8f995100bde7a9b4363a9044ecd10 Mon Sep 17 00:00:00 2001 From: Paul Vaduva Date: Fri, 4 Dec 2015 17:42:14 +0100 Subject: gdb: Add ptest Signed-off-by: Paul Vaduva Signed-off-by: George Nita --- .../gdb/0001-add-delay-before-run-exp-file.patch | 26 ++++++++++++++ .../0002-function-name-is-used-by-mistake.patch | 30 ++++++++++++++++ .../change-scripts-support-from-ksh-to-bash.patch | 14 ++++++++ recipes-devtools/gdb/gdb/gdb-ptest-attach.patch | 30 ++++++++++++++++ recipes-devtools/gdb/gdb/run-ptest | 2 ++ recipes-devtools/gdb/gdb/runtest-flags.patch | 30 ++++++++++++++++ recipes-devtools/gdb/gdb_7.7.1.bbappend | 40 ++++++++++++++++++++++ 7 files changed, 172 insertions(+) create mode 100644 recipes-devtools/gdb/gdb/0001-add-delay-before-run-exp-file.patch create mode 100644 recipes-devtools/gdb/gdb/0002-function-name-is-used-by-mistake.patch create mode 100644 recipes-devtools/gdb/gdb/change-scripts-support-from-ksh-to-bash.patch create mode 100644 recipes-devtools/gdb/gdb/gdb-ptest-attach.patch create mode 100755 recipes-devtools/gdb/gdb/run-ptest create mode 100644 recipes-devtools/gdb/gdb/runtest-flags.patch create mode 100644 recipes-devtools/gdb/gdb_7.7.1.bbappend diff --git a/recipes-devtools/gdb/gdb/0001-add-delay-before-run-exp-file.patch b/recipes-devtools/gdb/gdb/0001-add-delay-before-run-exp-file.patch new file mode 100644 index 0000000..1c41562 --- /dev/null +++ b/recipes-devtools/gdb/gdb/0001-add-delay-before-run-exp-file.patch @@ -0,0 +1,26 @@ +Description: Add delay for stable running + +Author: jack zhang +Date: Mon, 12 Nov 2012 04:10:20 +0100 + +Upstream-Status: Pending + +Signed-off-by: jack zhang +Signed-off-by: Ciprian Barbu +--- + gdb/testsuite/dg-extract-results.sh | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/gdb/testsuite/dg-extract-results.sh b/gdb/testsuite/dg-extract-results.sh +--- a/gdb/testsuite/dg-extract-results.sh ++++ b/gdb/testsuite/dg-extract-results.sh +@@ -322,6 +322,7 @@ END { + n=1 + while (n < expfileno) { + if (expfileseen[expfiles[n]]) { ++ sleep 1 + print "Running "expfiles[n]" ..." + if (filewritten["${TMP}/list"n]) { + if (expfileseen[expfiles[n]] == 1) +-- +1.7.5.4 diff --git a/recipes-devtools/gdb/gdb/0002-function-name-is-used-by-mistake.patch b/recipes-devtools/gdb/gdb/0002-function-name-is-used-by-mistake.patch new file mode 100644 index 0000000..7f25a35 --- /dev/null +++ b/recipes-devtools/gdb/gdb/0002-function-name-is-used-by-mistake.patch @@ -0,0 +1,30 @@ +Description: function name is used by mistake + +Author: jack zhang +Date: Tue, 13 Nov 2012 09:56:54 +0100 + +Upstream-Status: Pending + +Signed-off-by: jack zhang +Signed-off-by: Ciprian Barbu +--- + gdb/testsuite/gdb.base/skip.exp | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gdb/testsuite/gdb.base/skip.exp b/gdb/testsuite/gdb.base/skip.exp +--- a/gdb/testsuite/gdb.base/skip.exp ++++ b/gdb/testsuite/gdb.base/skip.exp +@@ -113,9 +113,9 @@ gdb_test "info skip 3" ".*\\n3\\s+file\\s+n.*" \ + "info skip shows entry as disabled" + + if ![runto_main] { fail "skip tests suppressed" } +-gdb_test "step" "bar \\(\\) at.*" "step after disabling 3 (1)" ++gdb_test "step" "foo \\(\\) at.*" "step after disabling 3 (1)" + gdb_test "step" ".*" "step after disabling 3 (2)"; # Return from foo() +-gdb_test "step" "foo \\(\\) at.*" "step after disabling 3 (3)" ++gdb_test "step" "bar \\(\\) at.*" "step after disabling 3 (3)" + gdb_test "step" ".*" "step after disabling 3 (4)"; # Return from bar() + gdb_test "step" "main \\(\\) at.*" "step after disabling 3 (5)" + +-- +1.7.5.4 diff --git a/recipes-devtools/gdb/gdb/change-scripts-support-from-ksh-to-bash.patch b/recipes-devtools/gdb/gdb/change-scripts-support-from-ksh-to-bash.patch new file mode 100644 index 0000000..d98affc --- /dev/null +++ b/recipes-devtools/gdb/gdb/change-scripts-support-from-ksh-to-bash.patch @@ -0,0 +1,14 @@ +Avoid ksh dependency + +Upstream-Status: Pending + +Signed-off-by: Paul Vaduva +diff -Naur a/gdb/testsuite/gdb.hp/tools/odump b/gdb/testsuite/gdb.hp/tools/odump +--- a/gdb/testsuite/gdb.hp/tools/odump 2015-05-25 10:13:31.956107840 +0200 ++++ b/gdb/testsuite/gdb.hp/tools/odump 2015-05-25 10:14:04.690707176 +0200 +@@ -1,4 +1,4 @@ +-#!/bin/ksh ++#!/bin/bash + + # First source /app/appserver + . /app/appserver diff --git a/recipes-devtools/gdb/gdb/gdb-ptest-attach.patch b/recipes-devtools/gdb/gdb/gdb-ptest-attach.patch new file mode 100644 index 0000000..b95ac2c --- /dev/null +++ b/recipes-devtools/gdb/gdb/gdb-ptest-attach.patch @@ -0,0 +1,30 @@ +From f442dc426b0346e1e413a7c3ae5b07725837135c Mon Sep 17 00:00:00 2001 +From: "Rick.Yang" +Date: Sun, 11 Nov 2012 10:05:50 +0100 +Subject: [PATCH] Fix the failed test case. + +Description: Fixed failing test case + In fact, the test case is passing, but the output does not completely + match the expected pattern in some special case. Modified the pattern + to resolve it. + +Signed-off-by: Rick.Yang +Signed-off-by: Ciprian Barbu +--- + gdb/testsuite/gdb.base/attach.exp | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/gdb/testsuite/gdb.base/attach.exp b/gdb/testsuite/gdb.base/attach.exp +--- a/gdb/testsuite/gdb.base/attach.exp ++++ b/gdb/testsuite/gdb.base/attach.exp +@@ -285,7 +285,7 @@ proc do_attach_tests {} { + gdb_test "dir ${objdir}/${subdir}" "Source directories searched: .*" \ + "set source path" + +- gdb_test "cd /tmp" "Working directory /tmp." \ ++ gdb_test "cd /tmp" "Working directory /tmp.*" \ + "cd away from process working directory" + + # Explicitly flush out any knowledge of the previous attachment. +-- +1.7.5.4 diff --git a/recipes-devtools/gdb/gdb/run-ptest b/recipes-devtools/gdb/gdb/run-ptest new file mode 100755 index 0000000..e8587e8 --- /dev/null +++ b/recipes-devtools/gdb/gdb/run-ptest @@ -0,0 +1,2 @@ +#!/bin/sh +make -C testsuite check-single | sed -e 's/XFAIL/PASS/' -e 's/UNRESOLVED/SKIP/' -e 's/UNTESTED/SKIP/' -e 's/UNSUPPORTED/SKIP/' diff --git a/recipes-devtools/gdb/gdb/runtest-flags.patch b/recipes-devtools/gdb/gdb/runtest-flags.patch new file mode 100644 index 0000000..054abc3 --- /dev/null +++ b/recipes-devtools/gdb/gdb/runtest-flags.patch @@ -0,0 +1,30 @@ +Description: add -a to runtest + Pass "-a" to runtest so that everything is printed to output + (e.g. unsupported test cases) + +Author: "Gordon.Sun" +Date: Wed, 28 Nov 2012 03:39:58 +0100 + +Upstream-Status: Inappropriate (other) + +Signed-off-by: Gordon.Sun +Signed-off-by: Ciprian Barbu +--- + gdb/testsuite/Makefile.in | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in +index fab124e..f5cddb2 100644 +--- a/gdb/testsuite/Makefile.in ++++ b/gdb/testsuite/Makefile.in +@@ -46,7 +46,7 @@ EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \ + + RUNTEST = $(RUNTEST_FOR_TARGET) + +-RUNTESTFLAGS = ++RUNTESTFLAGS = -a + + FORCE_PARALLEL = + +-- +1.7.5.4 diff --git a/recipes-devtools/gdb/gdb_7.7.1.bbappend b/recipes-devtools/gdb/gdb_7.7.1.bbappend new file mode 100644 index 0000000..2da31a0 --- /dev/null +++ b/recipes-devtools/gdb/gdb_7.7.1.bbappend @@ -0,0 +1,40 @@ +inherit ptest + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://run-ptest \ + file://runtest-flags.patch \ + file://0001-add-delay-before-run-exp-file.patch \ + file://0002-function-name-is-used-by-mistake.patch \ + file://gdb-ptest-attach.patch \ + file://change-scripts-support-from-ksh-to-bash.patch \ + " + + + +DEPENDS_${PN}-ptest += "expect dejagnu tcl" +RDEPENDS_${PN}-ptest += "glibc-charmap-ibm1047 \ + glibc-gconv-ibm1047 \ + glibc-charmap-ebcdic-us \ + glibc-gconv-ebcdic-us \ + glibc-gconv-utf-32 \ + glibc-gconv-utf-16 \ + prelink \ + expect \ + dejagnu \ + make \ + bash \ + " +do_configure_ptest () { + cd ${S}/gdb/testsuite/ + ./configure --host=${HOST_SYS} --build=${BUILD_SYS} + make site.exp +} + +do_install_ptest () { + cp -pr ${S}/gdb/testsuite/ ${D}${PTEST_PATH} + cp -pr ${S}/gdb/features/ ${D}${PTEST_PATH} + install -p ${S}/config.sub ${D}${PTEST_PATH}/testsuite/ + install -p ${S}/config.guess ${D}${PTEST_PATH}/testsuite/ + install -p ${S}/install-sh ${D}${PTEST_PATH}/testsuite/ +} -- cgit v1.2.3-54-g00ecf From 476ddf6e0796c8e554fba534b7c7895580d6a53c Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Fri, 11 Dec 2015 13:01:26 +0100 Subject: tclap: add ALLOW_EMPTY in bb file This is ported from meta-openembedded:master Signed-off-by: Adrian Dudau Signed-off-by: Tudor Florea --- recipes-devtools/tclap/tclap_1.2.1.bbappend | 1 + 1 file changed, 1 insertion(+) create mode 100644 recipes-devtools/tclap/tclap_1.2.1.bbappend diff --git a/recipes-devtools/tclap/tclap_1.2.1.bbappend b/recipes-devtools/tclap/tclap_1.2.1.bbappend new file mode 100644 index 0000000..afe3e9c --- /dev/null +++ b/recipes-devtools/tclap/tclap_1.2.1.bbappend @@ -0,0 +1 @@ +ALLOW_EMPTY_${PN} = "1" -- cgit v1.2.3-54-g00ecf From 406ec45b2045b63a73719b1203f3418bace0d122 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 10 Dec 2015 22:42:07 +0100 Subject: ptest: set relative path for test-driver Starting with dizzy(poky v1.7) parallel testing was activated and test-driver is the log driver for this mechanism. But generated Makefile is using an absolute path when calls the test-driver which is a wrong path at run-time. Signed-off-by: Adrian Calianu Signed-off-by: George Nita Signed-off-by: Tudor Florea Signed-off-by: Adrian Calianu --- .../automake/new_rt_path_for_test-driver.patch | 35 ++++++++++++++++++++++ recipes-devtools/automake/automake_1.14.1.bbappend | 5 ++++ 2 files changed, 40 insertions(+) create mode 100644 recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch create mode 100644 recipes-devtools/automake/automake_1.14.1.bbappend diff --git a/recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch b/recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch new file mode 100644 index 0000000..fae10b3 --- /dev/null +++ b/recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch @@ -0,0 +1,35 @@ +Set relative to top_builddir path in Makefile to access test-driver + +Signed-off-by: Adrian Calianu +Upstream-Status: Pending + +--- a/bin/automake.in ++++ b/bin/automake.in +@@ -272,6 +272,9 @@ + # $AM_CONFIG_AUX_DIR is prefixed with $(top_srcdir), so it can be used + # in Makefiles. + my $am_config_aux_dir = ''; ++# Directory used at runtime like running test-driver that should not ++# depend on $(top_srcdir) ++my $am_config_rt_aux_dir = ''; + + # Directory to search for AC_LIBSOURCE files, as set by AC_CONFIG_LIBOBJ_DIR + # in configure.ac. +@@ -4700,7 +4703,7 @@ + { + require_conf_file ("parallel-tests", FOREIGN, 'test-driver'); + define_variable ("${pfx}LOG_DRIVER", +- "\$(SHELL) $am_config_aux_dir/test-driver", ++ "\$(SHELL) $am_config_rt_aux_dir/test-driver", + INTERNAL); + } + my $driver = '$(' . $pfx . 'LOG_DRIVER)'; +@@ -7284,6 +7287,10 @@ + $am_config_aux_dir = + '$(top_srcdir)' . ($config_aux_dir eq '.' ? "" : "/$config_aux_dir"); + $am_config_aux_dir =~ s,/*$,,; ++ ++ $am_config_rt_aux_dir = ++ '$(top_builddir)' . ($config_aux_dir eq '.' ? "" : "/$config_aux_dir"); ++ $am_config_rt_aux_dir =~ s,/*$,,; + } diff --git a/recipes-devtools/automake/automake_1.14.1.bbappend b/recipes-devtools/automake/automake_1.14.1.bbappend new file mode 100644 index 0000000..c3f22b8 --- /dev/null +++ b/recipes-devtools/automake/automake_1.14.1.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += " \ + file://new_rt_path_for_test-driver.patch \ + " -- cgit v1.2.3-54-g00ecf From 218c2f039ccf435e42716ba1208a1ecbdb8f653c Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 10 Dec 2015 23:28:17 +0100 Subject: nfs-utils: fix for segfault in add_name Signed-off-by: Tudor Florea Signed-off-by: Adrian Calianu --- .../nfs-utils/fix-segfault-in-add_name.patch | 59 ++++++++++++++++++++++ .../nfs-utils/nfs-utils_1.3.0.bbappend | 5 ++ 2 files changed, 64 insertions(+) create mode 100644 recipes-connectivity/nfs-utils/nfs-utils/fix-segfault-in-add_name.patch create mode 100644 recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bbappend diff --git a/recipes-connectivity/nfs-utils/nfs-utils/fix-segfault-in-add_name.patch b/recipes-connectivity/nfs-utils/nfs-utils/fix-segfault-in-add_name.patch new file mode 100644 index 0000000..4ebf2dc --- /dev/null +++ b/recipes-connectivity/nfs-utils/nfs-utils/fix-segfault-in-add_name.patch @@ -0,0 +1,59 @@ +commit 25e83c2270b2d2966c992885faed0b79be09f474 +Author: Jeff Layton +Date: Thu May 1 11:15:16 2014 -0400 + + mountd: fix segfault in add_name with newer gcc compilers + + I hit a segfault in add_name with a mountd built with gcc-4.9.0. Some + NULL pointer checks got reordered such that a pointer was dereferenced + before checking to see whether it was NULL. The problem was due to + nfs-utils relying on undefined behavior, which tricked gcc into assuming + that the pointer would never be NULL. + + At first I assumed that this was a compiler bug, but Jakub Jelinek and + Jeff Law pointed out: + + "If old is NULL, then: + + strncpy(new, old, cp-old); + + is undefined behavior (even when cp == old == NULL in that case), + therefore gcc assumes that old is never NULL, as otherwise it would be + invalid. + + Just guard + strncpy(new, old, cp-old); + new[cp-old] = 0; + with if (old) { ... }." + + This patch does that. If old is NULL though, then we still need to + ensure that new is NULL terminated, lest the subsequent strcats walk off + the end of it. + + Cc: Jeff Law + Cc: Jakub Jelinek + Signed-off-by: Jeff Layton + Signed-off-by: Steve Dickson + + Upstream-Status:Backport + Signed-off-by: Tudor Florea + +diff --git a/support/export/client.c b/support/export/client.c +index dbf47b9..f85e11c 100644 +--- a/support/export/client.c ++++ b/support/export/client.c +@@ -482,8 +482,12 @@ add_name(char *old, const char *add) + else + cp = cp + strlen(cp); + } +- strncpy(new, old, cp-old); +- new[cp-old] = 0; ++ if (old) { ++ strncpy(new, old, cp-old); ++ new[cp-old] = 0; ++ } else { ++ new[0] = 0; ++ } + if (cp != old && !*cp) + strcat(new, ","); + strcat(new, add); diff --git a/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bbappend b/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bbappend new file mode 100644 index 0000000..7c9faf0 --- /dev/null +++ b/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += " \ + file://fix-segfault-in-add_name.patch \ +" -- cgit v1.2.3-54-g00ecf From 4f56a3b823cb8dd43086ad8bdb78ff37520613b4 Mon Sep 17 00:00:00 2001 From: Catalina Focsa Date: Fri, 11 Dec 2015 10:32:32 +0100 Subject: Add enea-init-build-env to meta-enea-base Add enea-init-build-env to the repo. Sourcing it from poky dir shall be done with explicit path using: "source meta-enea-base/enea-init-build-env [OPTIONS]". The default layer added to bblayers.conf is now meta-enea-base instead of meta-enea and shouldn't be added in the "-l" option as usual. Signed-off-by: Catalina Focsa Signed-off-by: Adrian Calianu --- enea-init-build-env | 261 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 261 insertions(+) create mode 100755 enea-init-build-env diff --git a/enea-init-build-env b/enea-init-build-env new file mode 100755 index 0000000..e231a5b --- /dev/null +++ b/enea-init-build-env @@ -0,0 +1,261 @@ +#!/bin/bash +if [ "$_" = "$0" ]; then + echo "Error: This script needs to be sourced." + echo "Please run as 'source $0'." + exit +fi + +# always unset these in case something goes wrong in the previous run +unset BBLAYERS_CONF_EXISTS +unset BUILD_PATH +unset CUSTOM_SCRIPTS +unset DISTRO +unset DOWNLOAD_DLDIR +unset SOURCE_MIRROR_URL +unset ENEAROOT +unset EXITME +unset LOCAL_CONF_EXISTS +unset MACHINE +unset METALAYERS +unset NUM_CORES +unset SSTATE_DIR +unset SSTATE_MIRRORS +unset TESTING_ADDITIONS +unset -f usage +unset OPTERR +unset OPTIND +unset OPTION + +NUM_CORES=$(grep -c processor /proc/cpuinfo || echo 2) +BUILD_PATH="build" +METALAYERS="meta-enea-base" + +function usage() { +cat < + Build dir + default: build + + -c