Skip to contentSkip to conversation

syslinux: remove LDFLAGS manipulation

PATCH New Ross Burton 1 participant 4 messages Feb 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 syslinux: remove LDFLAGS manipulation

syslinux appears to be using gcc to link instead of LD directly now, so we can remove the manipulation of LDFLAGS.

---
 meta/recipes-devtools/syslinux/syslinux_6.03.bb | 2 --
 1 file changed, 2 deletions(-)
meta/recipes-devtools/syslinux/syslinux_6.03.bb +0 -2
index 51d5474..ab8a51a 100644
@@ -37,8 +37,6 @@ EXTRA_OEMAKE = " \
 	BINDIR=${bindir} SBINDIR=${sbindir} LIBDIR=${libdir} \
 	DATADIR=${datadir} MANDIR=${mandir} INCDIR=${includedir} \
 "
-# syslinux uses $LD for linking, strip `-Wl,' so it can work
-export LDFLAGS = "`echo $LDFLAGS | sed 's/-Wl,//g'`"
 
 do_configure() {
 	# drop win32 targets or build fails
Signature · 1 line
2.7.0
#1 lore raw

PATCH 2/4 libffi: ensure sysroot paths are not in libffi.pc

Remove a previous patch and solve the problem in a different way, as the same root cause was causing the absolute sysroot path to appear in libffi.pc.

---
 .../libffi/libffi/fix-libffi.la-location.patch     | 18 ------------------
 meta/recipes-gnome/libffi/libffi/not-win32.patch   | 22 ++++++++++++++++++++++
 meta/recipes-gnome/libffi/libffi_3.2.1.bb          |  2 +-
 3 files changed, 23 insertions(+), 19 deletions(-)
 delete mode 100644 meta/recipes-gnome/libffi/libffi/fix-libffi.la-location.patch
 create mode 100644 meta/recipes-gnome/libffi/libffi/not-win32.patch
meta/recipes-gnome/libffi/libffi/fix-libffi.la-location.patch deleted +0 -18
deleted file mode 100644
index 775bffc..0000000
@@ -1,18 +0,0 @@
-
-Upstream-Status: Inappropriate
-
-Signed-off-by: Saul Wold <[email protected]>
-
-Index: libffi-3.0.13/Makefile.am
-===================================================================
---- libffi-3.0.13.orig/Makefile.am
-+++ libffi-3.0.13/Makefile.am
-@@ -98,7 +98,7 @@ FLAGS_TO_PASS = $(AM_MAKEFLAGS)
- 
- MAKEOVERRIDES=
- 
--toolexeclib_LTLIBRARIES = libffi.la
-+lib_LTLIBRARIES = libffi.la
- noinst_LTLIBRARIES = libffi_convenience.la
- 
- libffi_la_SOURCES = src/prep_cif.c src/types.c \
meta/recipes-gnome/libffi/libffi/not-win32.patch new file +22 -0
new file mode 100644
index 0000000..1e90125
@@ -0,0 +1,22 @@
+libffi's configure assumes that cross-compiled builds are complicated and
+introduces convoluted path manipulation involving gcc search paths to the
+install paths, resulting in paths like -L/usr/lib/../lib/ appearing in
+libffi.pc.  When pkg-config is then used to obtain the linker flags for libffi
+it can't tell that this path is on the default search path and returns
+$SYSROOT/usr/lib/../lib which then gets written all over the target sysroot.
+This then means the sstate can't be shared and triggers QA errors.
+
+As this block is generally pointless, disable it.
+
+Upstream-Status: Inappropriate
+Signed-off-by: Ross Burton <[email protected]>
+
+--- a/configure.ac~	2014-11-12 11:56:51.000000000 +0000
++++ b/configure.ac	2016-02-04 14:02:53.765710532 +0000
+@@ -593,5 +593,5 @@
+ # These variables are only ever used when we cross-build to X86_WIN32.
+ # And we only support this with GCC, so...
+-if test "x$GCC" = "xyes"; then
++if false; then
+   if test -n "$with_cross_host" &&
+      test x"$with_cross_host" != x"no"; then
\ No newline at end of file
meta/recipes-gnome/libffi/libffi_3.2.1.bb +1 -1
index fd916ca..72e25fb 100644
@@ -10,7 +10,7 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3610bb17683a0089ed64055416b2ae1b"
 
 SRC_URI = "ftp://sourceware.org/pub/libffi/${BP}.tar.gz \
-           file://fix-libffi.la-location.patch \
+           file://not-win32.patch \
 	   file://0001-mips-Use-compiler-internal-define-for-linux.patch \
 	   "
 
Signature · 1 line
2.7.0
#2 lore raw

PATCH 3/4 libffi: move from recipes-gnome to recipes-support

In reply to Ross Burton
---
 .../libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch  | 0
 meta/{recipes-gnome => recipes-support}/libffi/libffi/not-win32.patch     | 0
 meta/{recipes-gnome => recipes-support}/libffi/libffi_3.2.1.bb            | 0
 3 files changed, 0 insertions(+), 0 deletions(-)
 rename meta/{recipes-gnome => recipes-support}/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch (100%)
 rename meta/{recipes-gnome => recipes-support}/libffi/libffi/not-win32.patch (100%)
 rename meta/{recipes-gnome => recipes-support}/libffi/libffi_3.2.1.bb (100%)
meta/recipes-support/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch renamed from meta/recipes-gnome/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch +0 -0
similarity index 100%
rename from meta/recipes-gnome/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch
rename to meta/recipes-support/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch
meta/recipes-support/libffi/libffi/not-win32.patch renamed from meta/recipes-gnome/libffi/libffi/not-win32.patch +0 -0
similarity index 100%
rename from meta/recipes-gnome/libffi/libffi/not-win32.patch
rename to meta/recipes-support/libffi/libffi/not-win32.patch
meta/recipes-support/libffi/libffi_3.2.1.bb renamed from meta/recipes-gnome/libffi/libffi_3.2.1.bb +0 -0
similarity index 100%
rename from meta/recipes-gnome/libffi/libffi_3.2.1.bb
rename to meta/recipes-support/libffi/libffi_3.2.1.bb
Signature · 1 line
2.7.0
#3 lore raw

PATCH 4/4 socat: upgrade to 1.7.3.1

In reply to Ross Burton

This fixes Socat Security Advisory 7 (MSVR-1499) and 8.

[ YOCTO #9024 ]

---
 .../recipes-connectivity/socat/{socat_1.7.3.0.bb => socat_1.7.3.1.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-connectivity/socat/{socat_1.7.3.0.bb => socat_1.7.3.1.bb} (88%)
meta/recipes-connectivity/socat/socat_1.7.3.1.bb renamed from meta/recipes-connectivity/socat/socat_1.7.3.0.bb +2 -2
similarity index 88%
rename from meta/recipes-connectivity/socat/socat_1.7.3.0.bb
rename to meta/recipes-connectivity/socat/socat_1.7.3.1.bb
index b58e0a7..c215e04 100644
@@ -16,8 +16,8 @@ SRC_URI = "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2 \
            file://Makefile.in-fix-for-parallel-build.patch \
 "
 
-SRC_URI[md5sum] = "b607edb65bc6c57f4a43f06247504274"
-SRC_URI[sha256sum] = "0767e850c0329b9fdf711c6cd468565cbbb28786ba1a8a1cbd5531d4016b3e04"
+SRC_URI[md5sum] = "334e46924f2b386299c9db2ac22bcd36"
+SRC_URI[sha256sum] = "d2da659540c38139f388e9437bfaae16bb458d174d056cb3228432a8f489fbaa"
 
 inherit autotools
 
Signature · 1 line
2.7.0