diff options
author | orbea <orbea@riseup.net> | 2022-06-17 13:31:08 -0700 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-17 22:06:13 +0100 |
commit | aa46307e10bbe5d57c52c1b74cd32bf2865d1ddc (patch) | |
tree | 1636a58e38e7ee4372afe4452e54d5fb0bd8b10a /net-fs | |
parent | dev-lang/python: use --with-build-python for cross builds for 3.11 (diff) | |
download | gentoo-aa46307e10bbe5d57c52c1b74cd32bf2865d1ddc.tar.gz gentoo-aa46307e10bbe5d57c52c1b74cd32bf2865d1ddc.tar.bz2 gentoo-aa46307e10bbe5d57c52c1b74cd32bf2865d1ddc.zip |
net-fs/nfs4-acl-tools: Fix libtool build issues
When building with a different toolchain than what was used to compile
the system libtool the build will fail. To fix this autoconf needs to
generate libtool instead of using the system libtool. Additionally
rlibtool depends on libtool being generated to work correctly.
Closes: https://bugs.gentoo.org/731162
Signed-off-by: orbea <orbea@riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/25943
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/nfs4-acl-tools/files/nfs4-acl-tools-0.3.7-libtool.patch | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/net-fs/nfs4-acl-tools/files/nfs4-acl-tools-0.3.7-libtool.patch b/net-fs/nfs4-acl-tools/files/nfs4-acl-tools-0.3.7-libtool.patch new file mode 100644 index 000000000000..60ce83af59a9 --- /dev/null +++ b/net-fs/nfs4-acl-tools/files/nfs4-acl-tools-0.3.7-libtool.patch @@ -0,0 +1,86 @@ +From 2abd5015bf6bac1697ac4422d76fa121a49f2b24 Mon Sep 17 00:00:00 2001 +From: orbea <orbea@riseup.net> +Date: Fri, 17 Jun 2022 12:36:01 -0700 +Subject: [PATCH] configure: Add missing LT_INIT + +Otherwise it fails to generate libtool for the build breaking the build +when using a different toolchain than the system libtool. It also breaks +the build with rlibtool which depends on the generated libtool to +determine if it should build static or shared libraries. + +The existing make and libtool tests were removed as unnecessary and +problematic. +--- + configure.ac | 3 +++ + include/builddefs.in | 3 ++- + m4/package_utilies.m4 | 20 -------------------- + 3 files changed, 5 insertions(+), 21 deletions(-) + +diff --git a/configure.ac b/configure.ac +index c624295..bc3dac8 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -9,6 +9,9 @@ AC_ARG_ENABLE(shared, + enable_shared=no) + AC_SUBST(enable_shared) + ++LT_INIT ++ ++AC_PROG_LIBTOOL + AC_PROG_INSTALL + AC_PROG_CC + +diff --git a/include/builddefs.in b/include/builddefs.in +index fe49b08..3cc85ec 100644 +--- a/include/builddefs.in ++++ b/include/builddefs.in +@@ -39,6 +39,8 @@ DEBUG = @debug_build@ + OPTIMIZER = @opt_build@ + MALLOCLIB = @malloc_lib@ + ++top_builddir = $(TOPDIR) ++ + LIBNFS4ACL = $(TOPDIR)/libnfs4acl/libnfs4acl.la + LIBATTR = @libattr@ + +@@ -68,7 +70,6 @@ AWK = @awk@ + SED = @sed@ + TAR = @tar@ + ZIP = @zip@ +-MAKE = @make@ + ECHO = @echo@ + SORT = @sort@ + LN_S = @LN_S@ +diff --git a/m4/package_utilies.m4 b/m4/package_utilies.m4 +index fe54e21..431c9bc 100644 +--- a/m4/package_utilies.m4 ++++ b/m4/package_utilies.m4 +@@ -22,26 +22,6 @@ AC_DEFUN([AC_PACKAGE_UTILITIES], + AC_SUBST(cc) + AC_PACKAGE_NEED_UTILITY($1, "$cc", cc, [C compiler]) + +- if test -z "$MAKE"; then +- AC_PATH_PROG(MAKE, gmake,, /usr/bin:/usr/freeware/bin) +- fi +- if test -z "$MAKE"; then +- AC_PATH_PROG(MAKE, make,, /usr/bin) +- fi +- make=$MAKE +- AC_SUBST(make) +- AC_PACKAGE_NEED_UTILITY($1, "$make", make, [GNU make]) +- +- if test -z "$LIBTOOL"; then +- AC_PATH_PROG(LIBTOOL, glibtool,, /usr/bin) +- fi +- if test -z "$LIBTOOL"; then +- AC_PATH_PROG(LIBTOOL, libtool,, /usr/bin:/usr/local/bin:/usr/freeware/bin) +- fi +- libtool=$LIBTOOL +- AC_SUBST(libtool) +- AC_PACKAGE_NEED_UTILITY($1, "$libtool", libtool, [GNU libtool]) +- + if test -z "$TAR"; then + AC_PATH_PROG(TAR, tar,, /usr/freeware/bin:/bin:/usr/local/bin:/usr/bin) + fi +-- +2.35.1 |