From unknown Thu Sep 11 06:33:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71596: instdir-ltlib test and libtool -rpath failure Resent-From: Karl Berry Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Sun, 16 Jun 2024 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71596 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 71596@debbugs.gnu.org X-Debbugs-Original-To: bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1718553996838 (code B ref -1); Sun, 16 Jun 2024 16:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jun 2024 16:06:36 +0000 Received: from localhost ([127.0.0.1]:40246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIsOp-0000DR-Gp for submit@debbugs.gnu.org; Sun, 16 Jun 2024 12:06:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:57102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIsOk-0000D5-VL for submit@debbugs.gnu.org; Sun, 16 Jun 2024 12:06:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIsOi-0003dc-Hs for bug-automake@gnu.org; Sun, 16 Jun 2024 12:06:28 -0400 Received: from frenzy.freefriends.org ([198.99.81.75] helo=freefriends.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIsOg-0004fM-1o for bug-automake@gnu.org; Sun, 16 Jun 2024 12:06:28 -0400 X-Envelope-From: karl@freefriends.org X-Envelope-To: Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.16.1/8.16.1) with ESMTPS id 45GG6GNK648169 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Sun, 16 Jun 2024 10:06:16 -0600 Received: (from apache@localhost) by freefriends.org (8.16.1/8.14.7/Submit) id 45GG6GKx648168; Sun, 16 Jun 2024 10:06:16 -0600 Date: Sun, 16 Jun 2024 10:06:16 -0600 Message-Id: <202406161606.45GG6GKx648168@freefriends.org> From: Karl Berry Received-SPF: pass client-ip=198.99.81.75; envelope-from=karl@freefriends.org; helo=freefriends.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) When Paul fixed typos in various files a few days ago: commit 1d35638b23e95fe6f41c828a3442f6d7f242f4c4 Author: Paul Eggert AuthorDate: Fri Jun 7 08:41:45 2024 -0700 maint: spelling and whitespace fixes He noted: * t/instdir-ltlib.sh: Fix misspellings of macro names. This causes the test to fail, This test states that it is intentionally testing an empty string value for $(libdir) (and $(pyexecdir)), which results in passing an empty string to -rpath on the libtool command line: /bin/sh ./libtool --tag=CC --mode=link cc -g -O2 -o libfoo.la -rpath libfoo.lo And libtool then reports the error: libtool: error: only absolute run-paths are allowed which seems correct to me. So my "fix" was to move t/instdir-ltlib/sh from handwritten_TESTS (that are expected to succeed) to XFAIL_TESTS in t/list-of-tests.mk. (I'll commit it after this report gets a bug#.) I also wrote to bug-libtool suggesting an improvement to the error message. so someone with libtool expertise needs to look into this. I don't have any particular libtool expertise (it's hardly plausible that a libtool expert would appear out of nowhere to address this), but it had to be fixed, so the above is my best guess. Karl P.S. Please don't make commits that knowingly break the tests. Report a bug instead. Thanks. ----------------------------------------------------------------------------- test: the instdir-ltlib test is expected to fail. * t/list-of-tests.mk (handwritten_TESTS): move t/instdir-ltlib.sh (XFAIL_TESTS): to here. * t/instdir-ltlib.sh: add some doc. diff --git a/t/instdir-ltlib.sh b/t/instdir-ltlib.sh index 7744fd6e6..23fe9c12d 100644 --- a/t/instdir-ltlib.sh +++ b/t/instdir-ltlib.sh @@ -15,12 +15,20 @@ # along with this program. If not, see . # If $(libdir) or $(pyexecdir) is the empty string, then nothing should -# be installed there. -# This test exercises the libtool code paths. +# be installed there, and in fact libtool will refuse to link due to the +# missing argument for -rpath: +# /bin/sh ./libtool [...] -rpath libfoo.lo +# libtool: error: only absolute run-paths are allowed +# (Hopefully the error message will be improved.) +# Thus this test is expected to fail. +# +# This test exercises some of the libtool code paths. required='cc libtoolize' . test-init.sh +# Although LT_INIT is preferred nowadays, keep using AC_PROG_LIBTOOL +# to help make sure it's still supported. cat >>configure.ac <<'END' AC_PROG_CC AM_PROG_AR diff --git a/t/list-of-tests.mk b/t/list-of-tests.mk index 9f6a08685..3761d4ad3 100644 --- a/t/list-of-tests.mk +++ b/t/list-of-tests.mk @@ -36,6 +36,7 @@ t/override-conditional-2.sh \ t/override-conditional-pr13940.sh \ t/dist-pr109765.sh \ t/instdir-cond2.sh \ +t/instdir-ltlib.sh \ t/java-nobase.sh \ t/objext-pr10128.sh \ t/remake-timing-bug-pr8365.sh \ @@ -545,7 +546,6 @@ t/instdir-cond2.sh \ t/instdir-no-empty.sh \ t/instdir-java.sh \ t/instdir-lisp.sh \ -t/instdir-ltlib.sh \ t/instdir-prog.sh \ t/instdir-python.sh \ t/instdir-texi.sh \ compile finished at Sun Jun 16 09:05:03 2024 From unknown Thu Sep 11 06:33:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Karl Berry Subject: bug#71596: closed () Message-ID: References: <202406172055.45HKtach764938@freefriends.org> <202406161606.45GG6GKx648168@freefriends.org> X-Gnu-PR-Message: they-closed 71596 X-Gnu-PR-Package: automake Reply-To: 71596@debbugs.gnu.org Date: Mon, 17 Jun 2024 20:56:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1718657761-16303-1" This is a multi-part message in MIME format... ------------=_1718657761-16303-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #71596: instdir-ltlib test and libtool -rpath failure which was filed against the automake package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 71596@debbugs.gnu.org. --=20 71596: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71596 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1718657761-16303-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 71596-done) by debbugs.gnu.org; 17 Jun 2024 20:55:45 +0000 Received: from localhost ([127.0.0.1]:37444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJJOD-0004EM-IS for submit@debbugs.gnu.org; Mon, 17 Jun 2024 16:55:45 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:38102 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJJOC-0004EB-8W for 71596-done@debbugs.gnu.org; Mon, 17 Jun 2024 16:55:45 -0400 X-Envelope-From: karl@freefriends.org X-Envelope-To: <71596-done@debbugs.gnu.org> Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.16.1/8.16.1) with ESMTPS id 45HKtaEb764939 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for <71596-done@debbugs.gnu.org>; Mon, 17 Jun 2024 14:55:36 -0600 Received: (from apache@localhost) by freefriends.org (8.16.1/8.14.7/Submit) id 45HKtach764938; Mon, 17 Jun 2024 14:55:36 -0600 Date: Mon, 17 Jun 2024 14:55:36 -0600 Message-Id: <202406172055.45HKtach764938@freefriends.org> From: Karl Berry To: 71596-done@debbugs.gnu.org Subject: X-Spam-Score: 4.3 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Content analysis details: (4.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 2.3 EMPTY_MESSAGE Message appears to have no textual parts X-Debbugs-Envelope-To: 71596-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.3 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Content analysis details: (3.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 2.3 EMPTY_MESSAGE Message appears to have no textual parts -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager ------------=_1718657761-16303-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Jun 2024 16:06:36 +0000 Received: from localhost ([127.0.0.1]:40246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIsOp-0000DR-Gp for submit@debbugs.gnu.org; Sun, 16 Jun 2024 12:06:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:57102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIsOk-0000D5-VL for submit@debbugs.gnu.org; Sun, 16 Jun 2024 12:06:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIsOi-0003dc-Hs for bug-automake@gnu.org; Sun, 16 Jun 2024 12:06:28 -0400 Received: from frenzy.freefriends.org ([198.99.81.75] helo=freefriends.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIsOg-0004fM-1o for bug-automake@gnu.org; Sun, 16 Jun 2024 12:06:28 -0400 X-Envelope-From: karl@freefriends.org X-Envelope-To: Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.16.1/8.16.1) with ESMTPS id 45GG6GNK648169 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Sun, 16 Jun 2024 10:06:16 -0600 Received: (from apache@localhost) by freefriends.org (8.16.1/8.14.7/Submit) id 45GG6GKx648168; Sun, 16 Jun 2024 10:06:16 -0600 Date: Sun, 16 Jun 2024 10:06:16 -0600 Message-Id: <202406161606.45GG6GKx648168@freefriends.org> From: Karl Berry To: bug-automake@gnu.org Subject: instdir-ltlib test and libtool -rpath failure Received-SPF: pass client-ip=198.99.81.75; envelope-from=karl@freefriends.org; helo=freefriends.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) When Paul fixed typos in various files a few days ago: commit 1d35638b23e95fe6f41c828a3442f6d7f242f4c4 Author: Paul Eggert AuthorDate: Fri Jun 7 08:41:45 2024 -0700 maint: spelling and whitespace fixes He noted: * t/instdir-ltlib.sh: Fix misspellings of macro names. This causes the test to fail, This test states that it is intentionally testing an empty string value for $(libdir) (and $(pyexecdir)), which results in passing an empty string to -rpath on the libtool command line: /bin/sh ./libtool --tag=CC --mode=link cc -g -O2 -o libfoo.la -rpath libfoo.lo And libtool then reports the error: libtool: error: only absolute run-paths are allowed which seems correct to me. So my "fix" was to move t/instdir-ltlib/sh from handwritten_TESTS (that are expected to succeed) to XFAIL_TESTS in t/list-of-tests.mk. (I'll commit it after this report gets a bug#.) I also wrote to bug-libtool suggesting an improvement to the error message. so someone with libtool expertise needs to look into this. I don't have any particular libtool expertise (it's hardly plausible that a libtool expert would appear out of nowhere to address this), but it had to be fixed, so the above is my best guess. Karl P.S. Please don't make commits that knowingly break the tests. Report a bug instead. Thanks. ----------------------------------------------------------------------------- test: the instdir-ltlib test is expected to fail. * t/list-of-tests.mk (handwritten_TESTS): move t/instdir-ltlib.sh (XFAIL_TESTS): to here. * t/instdir-ltlib.sh: add some doc. diff --git a/t/instdir-ltlib.sh b/t/instdir-ltlib.sh index 7744fd6e6..23fe9c12d 100644 --- a/t/instdir-ltlib.sh +++ b/t/instdir-ltlib.sh @@ -15,12 +15,20 @@ # along with this program. If not, see . # If $(libdir) or $(pyexecdir) is the empty string, then nothing should -# be installed there. -# This test exercises the libtool code paths. +# be installed there, and in fact libtool will refuse to link due to the +# missing argument for -rpath: +# /bin/sh ./libtool [...] -rpath libfoo.lo +# libtool: error: only absolute run-paths are allowed +# (Hopefully the error message will be improved.) +# Thus this test is expected to fail. +# +# This test exercises some of the libtool code paths. required='cc libtoolize' . test-init.sh +# Although LT_INIT is preferred nowadays, keep using AC_PROG_LIBTOOL +# to help make sure it's still supported. cat >>configure.ac <<'END' AC_PROG_CC AM_PROG_AR diff --git a/t/list-of-tests.mk b/t/list-of-tests.mk index 9f6a08685..3761d4ad3 100644 --- a/t/list-of-tests.mk +++ b/t/list-of-tests.mk @@ -36,6 +36,7 @@ t/override-conditional-2.sh \ t/override-conditional-pr13940.sh \ t/dist-pr109765.sh \ t/instdir-cond2.sh \ +t/instdir-ltlib.sh \ t/java-nobase.sh \ t/objext-pr10128.sh \ t/remake-timing-bug-pr8365.sh \ @@ -545,7 +546,6 @@ t/instdir-cond2.sh \ t/instdir-no-empty.sh \ t/instdir-java.sh \ t/instdir-lisp.sh \ -t/instdir-ltlib.sh \ t/instdir-prog.sh \ t/instdir-python.sh \ t/instdir-texi.sh \ compile finished at Sun Jun 16 09:05:03 2024 ------------=_1718657761-16303-1--