From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 010E61382EE for ; Tue, 5 Jul 2016 23:22:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80CCBE0914; Tue, 5 Jul 2016 23:22:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0FD82E0914 for ; Tue, 5 Jul 2016 23:22:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 73601340DEF for ; Tue, 5 Jul 2016 23:22:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 37C8B2433 for ; Tue, 5 Jul 2016 23:21:58 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1467760809.1069c56a8946a005eadfaebc3c75ab6eceee1bed.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/autofs/, net-fs/autofs/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-fs/autofs/autofs-5.1.2.ebuild net-fs/autofs/files/autofs-5.1.2-libtirpc-as-need.patch X-VCS-Directories: net-fs/autofs/files/ net-fs/autofs/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 1069c56a8946a005eadfaebc3c75ab6eceee1bed X-VCS-Branch: master Date: Tue, 5 Jul 2016 23:21:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 96bba699-b90a-45e3-b1de-8abc2f32d454 X-Archives-Hash: c4b1e2bfb0f7566066dea8b5be5348a4 commit: 1069c56a8946a005eadfaebc3c75ab6eceee1bed Author: Yixun Lan gentoo org> AuthorDate: Tue Jul 5 23:19:20 2016 +0000 Commit: Yixun Lan gentoo 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 ], +@@ -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],