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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 273D715AD33 for ; Sat, 13 May 2023 03:32:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A13BE0923; Sat, 13 May 2023 03:32:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1F53CE0922 for ; Sat, 13 May 2023 03:32:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6332F340E1E for ; Sat, 13 May 2023 03:32:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 92010A6E for ; Sat, 13 May 2023 03:31:57 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1683948629.364787c2116f366f1303a7af1751035ec90c5266.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dialup/rp-pppoe/, net-dialup/rp-pppoe/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dialup/rp-pppoe/files/rp-pppoe-4.0-ar_environment.patch net-dialup/rp-pppoe/rp-pppoe-4.0.ebuild net-dialup/rp-pppoe/rp-pppoe-9999.ebuild X-VCS-Directories: net-dialup/rp-pppoe/files/ net-dialup/rp-pppoe/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 364787c2116f366f1303a7af1751035ec90c5266 X-VCS-Branch: master Date: Sat, 13 May 2023 03:31:57 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c4c71289-2c70-4245-95a7-e9fcda51462b X-Archives-Hash: 221047754214a9aceb26392521dac284 commit: 364787c2116f366f1303a7af1751035ec90c5266 Author: Jaco Kroon uls co za> AuthorDate: Thu May 11 12:01:50 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat May 13 03:30:29 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=364787c2 net-dialup/rp-pppoe: 4.0 ar fixes Closes: https://bugs.gentoo.org/906117 Signed-off-by: Jaco Kroon uls.co.za> Closes: https://github.com/gentoo/gentoo/pull/30985 Signed-off-by: Sam James gentoo.org> .../files/rp-pppoe-4.0-ar_environment.patch | 81 ++++++++++++++++++++++ net-dialup/rp-pppoe/rp-pppoe-4.0.ebuild | 4 +- net-dialup/rp-pppoe/rp-pppoe-9999.ebuild | 2 - 3 files changed, 84 insertions(+), 3 deletions(-) diff --git a/net-dialup/rp-pppoe/files/rp-pppoe-4.0-ar_environment.patch b/net-dialup/rp-pppoe/files/rp-pppoe-4.0-ar_environment.patch new file mode 100644 index 000000000000..651dc9078cda --- /dev/null +++ b/net-dialup/rp-pppoe/files/rp-pppoe-4.0-ar_environment.patch @@ -0,0 +1,81 @@ +From 7686d18a896118d4b99b15313edac34e6f5a2370 Mon Sep 17 00:00:00 2001 +From: Jaco Kroon +Date: Thu, 11 May 2023 13:44:06 +0200 +Subject: [PATCH 1/2] libevent: avoid failure in case ar isn't ar but something + else. + +--- + src/libevent/Makefile.in | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/libevent/Makefile.in b/src/libevent/Makefile.in +index 5f4f43f..02ebe21 100644 +--- a/libevent/Makefile.in ++++ b/libevent/Makefile.in +@@ -14,13 +14,12 @@ OBJS=event.o event_tcp.o hash.o event_sig.o + SRCS=$(OBJS:.o=.c) + HDRS=event.h event_tcp.h eventpriv.h hash.h + CFLAGS=@CFLAGS@ -I.. $(DEFINES) +-AR=ar + + all: libevent.a + + libevent.a: $(OBJS) + rm -f libevent.a +- $(AR) -cq libevent.a $(OBJS) ++ @AR@ -cq libevent.a $(OBJS) + @RANLIB@ libevent.a + + event.o: event.c $(HDRS) + +From 162bf8bf6b9c6776e3b6ac000a1e88afe49d9d31 Mon Sep 17 00:00:00 2001 +From: Jaco Kroon +Date: Thu, 11 May 2023 13:49:48 +0200 +Subject: [PATCH 2/2] ./configure - marginally improve ar detection. + +--- + src/configure | 6 +++++- + src/configure.ac | 6 +++++- + 2 files changed, 10 insertions(+), 2 deletions(-) + +diff --git a/src/configure b/src/configure +index 7eb80d0..9a31790 100755 +--- a/configure ++++ b/configure +@@ -3088,7 +3088,7 @@ $as_echo "no" >&6; } + fi + + if test "x$ac_ct_AR" = x; then +- AR="/bin/false" ++ AR="" + else + case $cross_compiling:$ac_tool_warned in + yes:) +@@ -3103,6 +3103,10 @@ else + fi + + ++if test "no$AR" = no ; then ++ as_fn_error $? "ar is a required program" "$LINENO" 5 ++fi ++ + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 +diff --git a/src/configure.ac b/src/configure.ac +index cb7a094..a09241a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -13,7 +13,11 @@ AC_PREFIX_DEFAULT(/usr) + dnl Checks for programs. + AC_PROG_CC + AC_PROG_RANLIB +-AC_CHECK_TOOL([AR],[ar],[/bin/false]) ++AC_CHECK_TOOL([AR],[ar]) ++ ++if test "no$AR" = no ; then ++ AC_ERROR(ar is a required program) ++fi + + dnl Checks for libraries. + diff --git a/net-dialup/rp-pppoe/rp-pppoe-4.0.ebuild b/net-dialup/rp-pppoe/rp-pppoe-4.0.ebuild index eeb1e261948c..f156559e1489 100644 --- a/net-dialup/rp-pppoe/rp-pppoe-4.0.ebuild +++ b/net-dialup/rp-pppoe/rp-pppoe-4.0.ebuild @@ -28,7 +28,9 @@ DEPEND=">=sys-kernel/linux-headers-2.6.25 elibc_musl? ( net-libs/ppp-defs ) ${RDEPEND}" -DOC_CONTENTS="Use pppoe-setup to configure your dialup connection" +PATCHES=( + "${FILESDIR}/rp-pppoe-4.0-ar_environment.patch" +) pkg_setup() { # This is needed in multiple phases diff --git a/net-dialup/rp-pppoe/rp-pppoe-9999.ebuild b/net-dialup/rp-pppoe/rp-pppoe-9999.ebuild index eeb1e261948c..16b62dea4da5 100644 --- a/net-dialup/rp-pppoe/rp-pppoe-9999.ebuild +++ b/net-dialup/rp-pppoe/rp-pppoe-9999.ebuild @@ -28,8 +28,6 @@ DEPEND=">=sys-kernel/linux-headers-2.6.25 elibc_musl? ( net-libs/ppp-defs ) ${RDEPEND}" -DOC_CONTENTS="Use pppoe-setup to configure your dialup connection" - pkg_setup() { # This is needed in multiple phases PPPD_VER="$(best_version net-dialup/ppp)"