yp-tools: Upgrade to 4.2.2
PATCH 1/2 yp-tools: Upgrade to 4.2.2
Fix build with musl along the way
drop upstreamed patches as well as ones not required anymore
Signed-off-by Khem Raj <[email protected]>
---
...01-lib-yp_all_host.c-Fix-build-with-gcc-7.patch | 33 -------
...ding_dup.c-Include-string.h-for-strdup-de.patch | 28 ++++++
...mp_bindings.c-Include-string.h-for-memset.patch | 30 ++++++
.../nis/yp-tools/alignment-cheat.patch | 52 ----------
...rovide-an-in-place-version-of-mapv4v6addr.patch | 110 ---------------------
.../nis/{yp-tools_3.3.bb => yp-tools_4.2.2.bb} | 16 ++-
6 files changed, 65 insertions(+), 204 deletions(-)
delete mode 100644 meta-networking/recipes-support/nis/yp-tools/0001-lib-yp_all_host.c-Fix-build-with-gcc-7.patch
create mode 100644 meta-networking/recipes-support/nis/yp-tools/0001-ypbind3_binding_dup.c-Include-string.h-for-strdup-de.patch
create mode 100644 meta-networking/recipes-support/nis/yp-tools/0002-yp_dump_bindings.c-Include-string.h-for-memset.patch
delete mode 100644 meta-networking/recipes-support/nis/yp-tools/alignment-cheat.patch
delete mode 100644 meta-networking/recipes-support/nis/yp-tools/yp-tools-ipv4-ipv6-Provide-an-in-place-version-of-mapv4v6addr.patch
rename meta-networking/recipes-support/nis/{yp-tools_3.3.bb => yp-tools_4.2.2.bb} (69%)meta-networking/recipes-support/nis/yp-tools/0001-lib-yp_all_host.c-Fix-build-with-gcc-7.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From 71fdfdfcea2bfa5f522512366bfcdf95f861ecc6 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sun, 23 Apr 2017 23:44:37 -0700 -Subject: [PATCH] lib/yp_all_host.c: Fix build with gcc 7 - -fixes - -| ../../../../../../../workspace/sources/yp-tools/lib/yp_all_host.c: In function 'yp_all_host': -| ../../../../../../../workspace/sources/yp-tools/lib/yp_all_host.c:109:30: error: comparison between pointer and zero character constant [-Werror=pointer-compare] -| inmap == NULL || inmap == '\0') -| ^~ - -Signed-off-by: Khem Raj <[email protected]> ---- - lib/yp_all_host.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lib/yp_all_host.c b/lib/yp_all_host.c -index 59cf236..4a07a7e 100644 ---- a/lib/yp_all_host.c -+++ b/lib/yp_all_host.c -@@ -106,7 +106,7 @@ yp_all_host (const char *indomain, const char *inmap, - - if (hostname == NULL || hostname[0] == '\0' || - indomain == NULL || indomain[0] == '\0' || -- inmap == NULL || inmap == '\0') -+ inmap == NULL || inmap[0] == '\0') - return YPERR_BADARGS; - - res = YPERR_YPERR; --- -2.12.2 -
meta-networking/recipes-support/nis/yp-tools/0001-ypbind3_binding_dup.c-Include-string.h-for-strdup-de.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 420cb6927553bbca5b49b7681cf208e6df6e4d7c Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 8 Sep 2017 08:42:45 -0700 +Subject: [PATCH 1/2] ypbind3_binding_dup.c: Include string.h for strdup + declaration + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Submitted + + lib/ypbind3_binding_dup.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/ypbind3_binding_dup.c b/lib/ypbind3_binding_dup.c +index ce4aadf..8199c0b 100644 +--- a/lib/ypbind3_binding_dup.c ++++ b/lib/ypbind3_binding_dup.c +@@ -19,6 +19,7 @@ + + #if defined(HAVE_YPBIND3) + ++#include <string.h> + #include <rpcsvc/yp_prot.h> + #include "internal.h" + +-- +2.14.1 +
meta-networking/recipes-support/nis/yp-tools/0002-yp_dump_bindings.c-Include-string.h-for-memset.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 03ccabb6264c008430c4b1739351df5a63829f8e Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 8 Sep 2017 08:52:32 -0700 +Subject: [PATCH 2/2] yp_dump_bindings.c: Include string.h for memset + +Fixes +error: implicitly declaring library function 'memset' + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Submitted + + src/yp_dump_binding.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/yp_dump_binding.c b/src/yp_dump_binding.c +index a5ab920..d75e2c2 100644 +--- a/src/yp_dump_binding.c ++++ b/src/yp_dump_binding.c +@@ -26,6 +26,7 @@ + #include <libintl.h> + #include <locale.h> + #include <getopt.h> ++#include <string.h> + #include <sys/stat.h> + #include <arpa/inet.h> + #include <rpcsvc/ypclnt.h> +-- +2.14.1 +
meta-networking/recipes-support/nis/yp-tools/alignment-cheat.patch deleted +0 -52
52 lines not on this page · raw message
meta-networking/recipes-support/nis/yp-tools/yp-tools-ipv4-ipv6-Provide-an-in-place-version-of-mapv4v6addr.patch deleted +0 -110
110 lines not on this page · raw message
meta-networking/recipes-support/nis/yp-tools_4.2.2.bb renamed from meta-networking/recipes-support/nis/yp-tools_3.3.bb +7 -9
@@ -13,14 +13,13 @@ and ypdomainname. \ SRC_URI = "http://www.linux-nis.org/download/yp-tools/${BP}.tar.bz2 \ file://domainname.service \ - file://yp-tools-ipv4-ipv6-Provide-an-in-place-version-of-mapv4v6addr.patch \ - file://alignment-cheat.patch \ - file://0001-lib-yp_all_host.c-Fix-build-with-gcc-7.patch \ + file://0001-ypbind3_binding_dup.c-Include-string.h-for-strdup-de.patch \ + file://0002-yp_dump_bindings.c-Include-string.h-for-memset.patch \ " -SRC_URI[md5sum] = "acebeecc11a73fb8097503670344834c" -SRC_URI[sha256sum] = "812be817df3d4c25813552be336c6c6ad5aedaf65611b81af3ad9f98fb3c2e50" +SRC_URI[md5sum] = "fb4a8bffb44ae5d3390351d67f320ef3" +SRC_URI[sha256sum] = "137f19a986382b275bf4a2b1a69eb26689d6f4ac056ddaa21784d6b80eb98faa" -DEPENDS = "libtirpc" +DEPENDS = "libtirpc libnsl2" inherit autotools systemd SYSTEMD_SERVICE_${PN} = "domainname.service"
@@ -32,10 +31,9 @@ RCONFLICTS_${PN} += "${PN}-systemd" CACHED_CONFIGUREVARS += "ac_cv_prog_STRIP=/bin/true" EXTRA_OECONF = " \ - --disable-rpath \ - --libdir=${libdir}/yp-nis/ \ - --includedir=${includedir}/yp-nis/ \ + --disable-rpath --disable-domainname \ " +CFLAGS_append_libc-musl = " -Wno-error=\#warnings" FILES_${PN} += " ${libdir}/yp-nis/*.so.*.* ${libdir}/yp-nis/pkgconfig/" FILES_${PN}-dbg += " ${libdir}/yp-nis/.debug"
Signature · 1 line
2.14.1
PATCH v3 2/2 xfsprogs: Upgrade to 4.12.0
Fix cross builds with hardening flags
Fix build with gold
Specify libtool tag
Signed-off-by Khem Raj <[email protected]>
---
Changes in V3: Add -fPIC to CFLAGS and drop the progname rename patch
...0001-spaceman-Add-missing-link-to-libuuid.patch | 34 ++++++
.../files/remove_flags_from_build_flags.patch | 13 +++
.../xfsprogs/files/xfsprogs-4.12.0-fix_musl.patch | 117 +++++++++++++++++++++
.../{xfsprogs_4.11.0.bb => xfsprogs_4.12.0.bb} | 10 +-
4 files changed, 172 insertions(+), 2 deletions(-)
create mode 100644 meta-filesystems/recipes-utils/xfsprogs/files/0001-spaceman-Add-missing-link-to-libuuid.patch
create mode 100644 meta-filesystems/recipes-utils/xfsprogs/files/remove_flags_from_build_flags.patch
create mode 100644 meta-filesystems/recipes-utils/xfsprogs/files/xfsprogs-4.12.0-fix_musl.patch
rename meta-filesystems/recipes-utils/xfsprogs/{xfsprogs_4.11.0.bb => xfsprogs_4.12.0.bb} (84%)meta-filesystems/recipes-utils/xfsprogs/files/0001-spaceman-Add-missing-link-to-libuuid.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 39836217bdc41428b23a57bd70f2bfc8dddd8c60 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 6 Sep 2017 19:16:04 -0700 +Subject: [PATCH] spaceman: Add missing link to libuuid + +When uuid is enabled then we see linking failures with gold linker e.g. + +libxfs/.libs/libxfs.so: error: undefined reference to 'uuid_compare' +libxfs/.libs/libxfs.so: error: undefined reference to 'uuid_copy' +clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation) + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Submitted + + spaceman/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/spaceman/Makefile b/spaceman/Makefile +index 95ec3c0..060e0af 100644 +--- a/spaceman/Makefile ++++ b/spaceman/Makefile +@@ -9,7 +9,7 @@ LTCOMMAND = xfs_spaceman + HFILES = init.h space.h + CFILES = init.c file.c prealloc.c trim.c + +-LLDLIBS = $(LIBXCMD) ++LLDLIBS = $(LIBXCMD) $(LIBUUID) + LTDEPENDENCIES = $(LIBXCMD) + LLDFLAGS = -static + +-- +2.14.1 +
meta-filesystems/recipes-utils/xfsprogs/files/remove_flags_from_build_flags.patch new file +13 -0
@@ -0,0 +1,13 @@ +Index: xfsprogs-4.12.0/include/builddefs.in +=================================================================== +--- xfsprogs-4.12.0.orig/include/builddefs.in ++++ xfsprogs-4.12.0/include/builddefs.in +@@ -164,7 +164,7 @@ ifeq ($(ENABLE_GETTEXT),yes) + GCFLAGS += -DENABLE_GETTEXT + endif + +-BUILD_CFLAGS += $(GCFLAGS) $(PCFLAGS) ++BUILD_CFLAGS += $(GCFLAGS) + # First, Global, Platform, Local CFLAGS + CFLAGS += $(FCFLAGS) $(OPTIMIZER) $(GCFLAGS) $(PCFLAGS) $(LCFLAGS) +
meta-filesystems/recipes-utils/xfsprogs/files/xfsprogs-4.12.0-fix_musl.patch new file +117 -0
117 lines not on this page · raw message
meta-filesystems/recipes-utils/xfsprogs/xfsprogs_4.12.0.bb renamed from meta-filesystems/recipes-utils/xfsprogs/xfsprogs_4.11.0.bb +8 -2
@@ -8,9 +8,12 @@ DEPENDS = "util-linux util-linux-native" SRC_URI = "https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/${BP}.tar.xz \ file://link_needed_libs.patch \ file://0001-define-__-prefixed-version-of-intXY_t-types.patch \ + file://remove_flags_from_build_flags.patch \ + file://xfsprogs-4.12.0-fix_musl.patch \ + file://0001-spaceman-Add-missing-link-to-libuuid.patch \ " -SRC_URI[md5sum] = "f1f9b8c752347eefdb56483dafa0cefb" -SRC_URI[sha256sum] = "c3a6d87b564d7738243c507df82276bed982265e345363a95f2c764e8a5f5bb2" +SRC_URI[md5sum] = "e348b0e1d7bd1cd82d64b91ff37e727e" +SRC_URI[sha256sum] = "b330ad8d737f4152ae511580102e2fc49212bb51dfb4b614084344abae46d0df" inherit autotools-brokensep
@@ -42,6 +45,9 @@ PACKAGECONFIG[blkid] = "--enable-blkid=yes,--enable-blkid=no,util-linux" export DEBUG="-DNDEBUG" export BUILD_VERBOSE="1" +export tagname="CC" + +CFLAGS += "-fPIC" EXTRA_OEMAKE = "DIST_ROOT='${D}'"
Signature · 1 line
2.14.1