openssl: fix parallel builds
PATCH 1/2 openssl: fix parallel builds
--- .../openssl/openssl-1.0.0d/openssl-fix-link.patch | 22 ++++++++++++++++++++ .../recipes-connectivity/openssl/openssl_1.0.0d.bb | 3 +- 2 files changed, 24 insertions(+), 1 deletions(-) create mode 100644 meta-oe/recipes-connectivity/openssl/openssl-1.0.0d/openssl-fix-link.patch
meta-oe/recipes-connectivity/openssl/openssl-1.0.0d/openssl-fix-link.patch new file +22 -0
@@ -0,0 +1,22 @@ +Upstream-Status: Pending + +fix the parallel build regarding shared libraries. + +Signed-off-by: Dmitry Eremin-Solenikov <[email protected]> + +Index: openssl-1.0.0d/Makefile.org +=================================================================== +--- openssl-1.0.0d.orig/Makefile.org 2011-09-01 17:03:59.000000000 +0400 ++++ openssl-1.0.0d/Makefile.org 2011-09-01 17:12:24.000000000 +0400 +@@ -246,9 +246,9 @@ + @dir=crypto; target=all; $(BUILD_ONE_CMD) + build_ssl: + @dir=ssl; target=all; $(BUILD_ONE_CMD) +-build_engines: ++build_engines: build_crypto + @dir=engines; target=all; $(BUILD_ONE_CMD) +-build_apps: ++build_apps: build_crypto + @dir=apps; target=all; $(BUILD_ONE_CMD) + build_tests: + @dir=test; target=all; $(BUILD_ONE_CMD)
meta-oe/recipes-connectivity/openssl/openssl_1.0.0d.bb +2 -1
@@ -6,7 +6,7 @@ DEPENDS += "ocf-linux" CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS" -PR = "${INC_PR}.0" +PR = "${INC_PR}.1" LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
@@ -22,6 +22,7 @@ SRC_URI += "file://configure-targets.patch \ file://shared-libs.patch \ file://oe-ldflags.patch \ file://engines-install-in-libdir-ssl.patch \ + file://openssl-fix-link.patch \ file://debian/version-script.patch \ file://debian/pic.patch \ file://debian/c_rehash-compat.patch \
Signature · 1 line
1.7.2.5
PATCH 2/2 tcp-wrappers: fix parallel builds
Inparallel builds make can try to rebuild a object file while cflags file is not yet built. Fix that by providing an explicit cflags dependency on config-check.
--- .../tcp-wrappers-7.6/fix-cflags-dep.patch | 18 ++++++++++++++++++ .../tcp-wrappers/tcp-wrappers_7.6.bb | 1 + 2 files changed, 19 insertions(+), 0 deletions(-) create mode 100644 meta-oe/recipes-support/tcp-wrappers/tcp-wrappers-7.6/fix-cflags-dep.patch
meta-oe/recipes-support/tcp-wrappers/tcp-wrappers-7.6/fix-cflags-dep.patch new file +18 -0
@@ -0,0 +1,18 @@ +Upstream-Status: Pending + +Fix builds failing as there is no direct rule to rebuild cflags + +Signed-off-by: Dmitry Eremin-Solenikov <[email protected]> + +Index: tcp_wrappers_7.6/Makefile +=================================================================== +--- tcp_wrappers_7.6.orig/Makefile 2011-09-02 03:34:07.000000000 +0400 ++++ tcp_wrappers_7.6/Makefile 2011-09-02 03:34:19.000000000 +0400 +@@ -732,6 +732,7 @@ + + # Invalidate all object files when the compiler options (CFLAGS) have changed. + ++cflags: config-check + config-check: + @set +e; test -n "$(REAL_DAEMON_DIR)" || { make; exit 1; } + @set +e; echo $(CFLAGS) >cflags.new ; \
meta-oe/recipes-support/tcp-wrappers/tcp-wrappers_7.6.bb +1 -0
@@ -29,6 +29,7 @@ SRC_URI = "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_${PV}.tar.gz \ file://size_t.patch \ file://tcpdchk_libwrapped.patch \ file://ldflags.patch \ + file://fix-cflags-dep.patch \ \ file://try-from.8 \ file://safe_finger.8"
Signature · 1 line
1.7.2.5
Re: [meta-oe 2/2] tcp-wrappers: fix parallel builds
Quoted 3 lines · Dmitry Eremin-Solenikov
Inparallel builds make can try to rebuild a object file while cflags file is not yet built. Fix that by providing an explicit cflags dependency on config-check.
Hi,
making a build with today snapshot i got this:
ERROR: Function 'do_compile' failed (see /mnt/data100/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/tcp-wrappers-7.6-r6/temp/log.do_compile.10521 for further information)
ERROR: Logfile of failure stored in:/mnt/data100/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/tcp-wrappers-7.6-r6/temp/log.do_compile.10521 Log data follows:
| + cd /mnt/data100/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/tcp-wrappers-7.6-r6/tcp_wrappers_7.6 | + do_compile | + oe_runmake 'TABLES=-DHOSTS_DENY=\"/etc/hosts.deny\"
-DHOSTS_ALLOW=\"/etc/hosts.allow\"' all
| + '[' xmake = x ']'
| + bbnote make -j2 'CC=arm-angstrom-linux-gnueabi-gcc -march=armv7-a
-fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp
-mfpu=neon -mtune=cortex-a8 -mthumb-interwork -mno-thumb --sysroot=/mnt/data100/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/igep0020' AR=arm-angstrom-linux-gnueabi-ar
RANLIB=arm-angstrom-linux-gnueabi-ranlib REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS FACILITY=LOG_DAEMON SEVERITY=LOG_INFO BUGS=
VSYSLOG= RFC931_TIMEOUT=10 ACCESS=-DHOSTS_ACCESS
KILL_OPT=-DKILL_IP_OPTIONS UMASK=-DDAEMON_UMASK=022
NETGROUP=-DNETGROUP LIBS=-lnsl ARFLAGS=rv AUX_OBJ=weak_symbols.o TLI=
COPTS= 'EXTRA_CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT
-DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len' 'TABLES=-DHOSTS_DENY=\"/etc/hosts.deny\"
-DHOSTS_ALLOW=\"/etc/hosts.allow\"' all
| + echo 'NOTE: make -j2 CC=arm-angstrom-linux-gnueabi-gcc
-march=armv7-a -fno-tree-vectorize -mthumb-interwork
-mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -mthumb-interwork
-mno-thumb --sysroot=/mnt/data100/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/igep0020 AR=arm-angstrom-linux-gnueabi-ar
RANLIB=arm-angstrom-linux-gnueabi-ranlib REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS FACILITY=LOG_DAEMON SEVERITY=LOG_INFO BUGS=
VSYSLOG= RFC931_TIMEOUT=10 ACCESS=-DHOSTS_ACCESS
KILL_OPT=-DKILL_IP_OPTIONS UMASK=-DDAEMON_UMASK=022
NETGROUP=-DNETGROUP LIBS=-lnsl ARFLAGS=rv AUX_OBJ=weak_symbols.o TLI=
COPTS= EXTRA_CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT
-DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len TABLES=-DHOSTS_DENY=\"/etc/hosts.deny\"
-DHOSTS_ALLOW=\"/etc/hosts.allow\" all'
| NOTE: make -j2 CC=arm-angstrom-linux-gnueabi-gcc -march=armv7-a
-fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp
-mfpu=neon -mtune=cortex-a8 -mthumb-interwork -mno-thumb --sysroot=/mnt/data100/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/igep0020 AR=arm-angstrom-linux-gnueabi-ar
RANLIB=arm-angstrom-linux-gnueabi-ranlib REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS FACILITY=LOG_DAEMON SEVERITY=LOG_INFO BUGS=
VSYSLOG= RFC931_TIMEOUT=10 ACCESS=-DHOSTS_ACCESS
KILL_OPT=-DKILL_IP_OPTIONS UMASK=-DDAEMON_UMASK=022
NETGROUP=-DNETGROUP LIBS=-lnsl ARFLAGS=rv AUX_OBJ=weak_symbols.o TLI=
COPTS= EXTRA_CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT
-DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len TABLES=-DHOSTS_DENY=\"/etc/hosts.deny\"
-DHOSTS_ALLOW=\"/etc/hosts.allow\" all
| + make -j2 'CC=arm-angstrom-linux-gnueabi-gcc -march=armv7-a
-fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp
-mfpu=neon -mtune=cortex-a8 -mthumb-interwork -mno-thumb --sysroot=/mnt/data100/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/igep0020' AR=arm-angstrom-linux-gnueabi-ar
RANLIB=arm-angstrom-linux-gnueabi-ranlib REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS FACILITY=LOG_DAEMON SEVERITY=LOG_INFO BUGS=
VSYSLOG= RFC931_TIMEOUT=10 ACCESS=-DHOSTS_ACCESS
KILL_OPT=-DKILL_IP_OPTIONS UMASK=-DDAEMON_UMASK=022
NETGROUP=-DNETGROUP LIBS=-lnsl ARFLAGS=rv AUX_OBJ=weak_symbols.o TLI=
COPTS= 'EXTRA_CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT
-DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len' 'TABLES=-DHOSTS_DENY=\"/etc/hosts.deny\"
-DHOSTS_ALLOW=\"/etc/hosts.allow\"' all
| arm-angstrom-linux-gnueabi-gcc -march=armv7-a -fno-tree-vectorize
-mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
-mthumb-interwork -mno-thumb --sysroot=/mnt/data100/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/igep0020
-DFACILITY=LOG_DAEMON -DHOSTS_ACCESS -DNETGROUP
-DDAEMON_UMASK=022 -DREAL_DAEMON_DIR=\"/usr/sbin\" -DPROCESS_OPTIONS -DKILL_IP_OPTIONS -DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10 -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"
-O2 -pipe -g -feliminate-unused-debug-types -DSYS_ERRLIST_DEFINED
-DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1
-Dss_family=__ss_family -Dss_len=__ss_len -fPIC -shared
-D_REENTRANT -c hosts_access.c -o shared/hosts_access.o
| Assembler messages: | Fatal error: can't create shared/hosts_access.o: No such file or directory | arm-angstrom-linux-gnueabi-gcc -march=armv7-a -fno-tree-vectorize
-mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
-mthumb-interwork -mno-thumb --sysroot=/mnt/data100/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/igep0020
-DFACILITY=LOG_DAEMON -DHOSTS_ACCESS -DNETGROUP
-DDAEMON_UMASK=022 -DREAL_DAEMON_DIR=\"/usr/sbin\" -DPROCESS_OPTIONS -DKILL_IP_OPTIONS -DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10 -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"
-O2 -pipe -g -feliminate-unused-debug-types -DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1
-Dss_family=__ss_family -Dss_len=__ss_len -fPIC -shared
-D_REENTRANT -c options.c -o shared/options.o
| options.c: In function 'twist_option':
| options.c:394:13: warning: incompatible implicit declaration of built-in function 'execl'
| make: *** [shared/hosts_access.o] Error 2 | make: *** Waiting for unfinished jobs.... | + die 'oe_runmake failed' | + bbfatal 'oe_runmake failed' | ERROR: Function 'do_compile' failed (see
/mnt/data100/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/tcp-wrappers-7.6-r6/temp/log.do_compile.10521 for further information)
| + echo 'ERROR: o
NOTE: package tcp-wrappers-7.6-r6: task do_compile: Failed
ERROR: Task 1368 (/mnt/data100/setup-scripts/sources/meta-openembedded/meta-oe/recipes-support/tcp-wrappers/tcp-wrappers_7.6.bb, do_compile) failed with exit code '1'
Just restarting the build made it to continue with no errors.
Enrico