public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Yixun Lan" <dlan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/autofs/, net-fs/autofs/files/
Date: Tue,  5 Jul 2016 23:21:58 +0000 (UTC)	[thread overview]
Message-ID: <1467760809.1069c56a8946a005eadfaebc3c75ab6eceee1bed.dlan@gentoo> (raw)

commit:     1069c56a8946a005eadfaebc3c75ab6eceee1bed
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  5 23:19:20 2016 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Tue Jul  5 23:20:09 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1069c56a

net-fs/autofs: fix --as-need issue USE=libtirpc

thanks Martin von Gagern for reporting & the patch

http://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed

Gentoo-Bug: 588106

Package-Manager: portage-2.3.0_rc1

 net-fs/autofs/autofs-5.1.2.ebuild                  |  4 ++++
 .../files/autofs-5.1.2-libtirpc-as-need.patch      | 28 ++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/net-fs/autofs/autofs-5.1.2.ebuild b/net-fs/autofs/autofs-5.1.2.ebuild
index 685e0bb..4fb3c61 100644
--- a/net-fs/autofs/autofs-5.1.2.ebuild
+++ b/net-fs/autofs/autofs-5.1.2.ebuild
@@ -47,6 +47,10 @@ DEPEND="${RDEPEND}
 
 CONFIG_CHECK="~AUTOFS4_FS"
 
+PATCHES=(
+	"${FILESDIR}"/${P}-libtirpc-as-need.patch
+)
+
 src_prepare() {
 	# Upstream's patchset
 	if [[ -n ${PATCH_VER} ]]; then

diff --git a/net-fs/autofs/files/autofs-5.1.2-libtirpc-as-need.patch b/net-fs/autofs/files/autofs-5.1.2-libtirpc-as-need.patch
new file mode 100644
index 0000000..f6e1769
--- /dev/null
+++ b/net-fs/autofs/files/autofs-5.1.2-libtirpc-as-need.patch
@@ -0,0 +1,28 @@
+Make configure compatible with -Wl,--as-needed following
+https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Failure_in_..2Fconfigure
+
+2016-07-05 Martin von Gagern
+
+--- autofs-5.1.2.orig/aclocal.m4
++++ autofs-5.1.2/aclocal.m4
+@@ -413,9 +413,9 @@ AC_DEFUN([AF_CHECK_LIBTIRPC],
+ [
+ # save current flags
+ af_check_libtirpc_save_cflags="$CFLAGS"
+-af_check_libtirpc_save_ldflags="$LDFLAGS"
++af_check_libtirpc_save_libs="$LIBS"
+ CFLAGS="$CFLAGS -I/usr/include/tirpc"
+-LDFLAGS="$LDFLAGS -ltirpc"
++LIBS="$LIBS -ltirpc"
+ 
+ AC_TRY_LINK(
+     [ #include <rpc/rpc.h> ],
+@@ -438,7 +438,7 @@ AC_CHECK_FUNCS([getrpcbyname getservbyna
+ 
+ # restore flags
+ CFLAGS="$af_check_libtirpc_save_cflags"
+-LDFLAGS="$af_check_libtirpc_save_ldflags"
++LIBS="$af_check_libtirpc_save_libs"
+ ])
+ 
+ AC_DEFUN([AF_WITH_LIBTIRPC],


             reply	other threads:[~2016-07-05 23:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-05 23:21 Yixun Lan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-08-25  4:15 [gentoo-commits] repo/gentoo:master commit in: net-fs/autofs/, net-fs/autofs/files/ Matt Turner
2021-05-21  1:07 Yixun Lan
2021-10-17  5:24 Sam James
2021-12-22 13:18 Yixun Lan
2022-01-10 22:33 Yixun Lan
2022-01-12  1:46 Yixun Lan
2024-07-10 14:56 Yixun Lan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1467760809.1069c56a8946a005eadfaebc3c75ab6eceee1bed.dlan@gentoo \
    --to=dlan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox