X-Loop: help-debbugs@HIDDEN Subject: bug#60508: archive DEPENDENCIES incorrectly depends on ordering Resent-From: Mike Frysinger <vapier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-automake@HIDDEN Resent-Date: Tue, 03 Jan 2023 04:33:02 +0000 Resent-Message-ID: <handler.60508.B.16727203563081 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 60508 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 60508 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-automake@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.16727203563081 (code B ref -1); Tue, 03 Jan 2023 04:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jan 2023 04:32:36 +0000 Received: from localhost ([127.0.0.1]:44469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pCYyZ-0000nd-KJ for submit <at> debbugs.gnu.org; Mon, 02 Jan 2023 23:32:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:36488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <vapier@HIDDEN>) id 1pCYyV-0000nP-C1 for submit <at> debbugs.gnu.org; Mon, 02 Jan 2023 23:32:33 -0500 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 <vapier@HIDDEN>) id 1pCYyV-0006iR-5T for bug-automake@HIDDEN; Mon, 02 Jan 2023 23:32:31 -0500 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <vapier@HIDDEN>) id 1pCYyT-0002bn-AC for bug-automake@HIDDEN; Mon, 02 Jan 2023 23:32:30 -0500 Received: by smtp.gentoo.org (Postfix, from userid 559) id 50814340AE2; Tue, 3 Jan 2023 04:32:26 +0000 (UTC) Date: Mon, 2 Jan 2023 23:32:24 -0500 From: Mike Frysinger <vapier@HIDDEN> Message-ID: <Y7Ov2IttlgEsTYhh@vapier> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lTgQvQihUKumLSQV" Content-Disposition: inline Received-SPF: pass client-ip=140.211.166.183; envelope-from=vapier@HIDDEN; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) --lTgQvQihUKumLSQV Content-Type: multipart/mixed; boundary="wvWQVSUc3En9+fx8" Content-Disposition: inline --wvWQVSUc3En9+fx8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline i have a project that generates a bunch of arch-specific archives. i also have an intermediate archive for holding common objects (so only need to build them once). i noticed that while (ab)using LIBADD & OBJECTS variables, Automake incorrectly omits propagating OBJECTS variables from LIBADD to DEPENDENCIES if the library using the OBJECTS comes before the library defining the OBJECTS. attaching a testcase to run against current git that triggers the bug that hopefully makes it a little clearer: * libmMID.a defines a bunch of common objects * libaFIRST.a and libzLAST.a adds libmMID.a's objects to its libadd * libaFIRST.a's dependency is *missing* the objects, but libzLAST.a has them $ ./pre-inst-env ./runtest t/ar-dep.sh ... + grep _a_DEPENDENCIES = Makefile.in libaFIRST_a_DEPENDENCIES = libzLAST_a_DEPENDENCIES = $(libmMID_a_OBJECTS) + grep ^libzLAST_a_DEPENDENCIES = $(libmMID_a_OBJECTS) Makefile.in libzLAST_a_DEPENDENCIES = $(libmMID_a_OBJECTS) + grep ^libaFIRSTT_a_DEPENDENCIES = $(libmMID_a_OBJECTS) Makefile.in + am_exit_trap 1 ... -mike --wvWQVSUc3En9+fx8 Content-Type: application/x-sh Content-Disposition: attachment; filename="ar-dep.sh" Content-Transfer-Encoding: quoted-printable #! /bin/sh=0A# Copyright (C) 2023 Free Software Foundation, Inc.=0A#=0A# Th= is program is free software; you can redistribute it and/or modify=0A# it u= nder the terms of the GNU General Public License as published by=0A# the Fr= ee Software Foundation; either version 2, or (at your option)=0A# any later= version.=0A#=0A# This program is distributed in the hope that it will be u= seful,=0A# but WITHOUT ANY WARRANTY; without even the implied warranty of= =0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the=0A# GNU = General Public License for more details.=0A#=0A# You should have received a= copy of the GNU General Public License=0A# along with this program. If no= t, see <https://www.gnu.org/licenses/>.=0A=0A# Test for bug in DEPENDENCIES= settings.=0A=0A. test-init.sh=0A=0Acat >> configure.ac << 'END'=0AAC_PROG_= CC=0AAM_PROG_AR=0AAC_PROG_RANLIB=0AEND=0A=0Acat > Makefile.am << 'END'=0Ano= inst_LIBRARIES =3D=0A=0AlibmMID_a_SOURCES =3D source.c=0Anoinst_LIBRARIES += =3D libmMID.a=0A=0AlibaFIRST_a_SOURCES =3D=0AlibaFIRST_a_LIBADD =3D $(libmM= ID_a_OBJECTS)=0Anoinst_LIBRARIES +=3D libaFIRST.a=0A=0AlibzLAST_a_SOURCES = =3D=0AlibzLAST_a_LIBADD =3D $(libmMID_a_OBJECTS)=0Anoinst_LIBRARIES +=3D li= bzLAST.a=0AEND=0A=0A: > ar-lib=0A=0A$ACLOCAL=0A$AUTOMAKE=0A=0A# Make sure D= EPENDENCIES is setup correctly.=0Agrep '_a_DEPENDENCIES =3D' Makefile.in=0A= grep '^libzLAST_a_DEPENDENCIES =3D $(libmMID_a_OBJECTS)' Makefile.in=0Agrep= '^libaFIRSTT_a_DEPENDENCIES =3D $(libmMID_a_OBJECTS)' Makefile.in=0A=0A:=0A --wvWQVSUc3En9+fx8-- --lTgQvQihUKumLSQV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmOzr9gACgkQQWM7n+g3 9YG2iA//UgxIwQLeDl2xeza1iheAogC40OVx2cehfYp7sd56KroM64V7KL+9Y1ag 9bUyKxj+5AoNrgzAX6SiAy7jF8gxhYdrjwm39uF8ChXu2uUTNwVRuNAaq1hPnr+W JEV8CAAdkNmTBScZh3dnH+BknP6UPPeE1xV2KafbGANhUbj48eOSwu9YlYtopWMG rUO6eG0N9HTKJrhTE89xAxahjinnsBeS0o1FK9TuBF0ETRS4w9ikEEIQh6nOXIOG L/Twai5BLc+g0XpcuOsyUHKskavTFRqjFcnPgQ5vbpo//e3Xplx9s3c8DZxEAhNn ay7pXE0rfQPDHOSdKB+k+jMlAcYx/Ry64+W3njkogqnDdM36ET3+QMxhCHNOHVt1 fqI/WuARkJDMfTPfSPLqC1rlEpWu3fGYPVjQCIUeE02DJkX13wxhJUUiOEFkzQHo QZ95N8lWhfPQLrfFPu70AWoJsXoi2ymiwDVsdpvWIA/v6fgwJtJ2FKWu54N2I8vT MGxvD8PuNKryYjbaGmlxN+xwPFcT7I0dXNCJ9n44GvPNwRGa7rtkc3vnfEtF3cjd KevddSfqDY1uqRsuTYrLNqysurx4kz5yV33+XdZAwWAVKff/xExZqvYkIS6ZH8eq bZKeUnuHG9PKhr3zjAu9qhrj2R8HT2pMZjIugL6wuwSvEcGfuuo= =vxn7 -----END PGP SIGNATURE----- --lTgQvQihUKumLSQV--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Mike Frysinger <vapier@HIDDEN> Subject: bug#60508: Acknowledgement (archive DEPENDENCIES incorrectly depends on ordering) Message-ID: <handler.60508.B.16727203563081.ack <at> debbugs.gnu.org> References: <Y7Ov2IttlgEsTYhh@vapier> X-Gnu-PR-Message: ack 60508 X-Gnu-PR-Package: automake Reply-To: 60508 <at> debbugs.gnu.org Date: Tue, 03 Jan 2023 04:33:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-automake@HIDDEN If you wish to submit further information on this problem, please send it to 60508 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 60508: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60508 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#60508: archive DEPENDENCIES incorrectly depends on ordering References: <Y7Ov2IttlgEsTYhh@vapier> Resent-From: Karl Berry <karl@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-automake@HIDDEN Resent-Date: Tue, 03 Jan 2023 22:17:01 +0000 Resent-Message-ID: <handler.60508.B60508.167278419329293 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 60508 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: vapier@HIDDEN Cc: 60508 <at> debbugs.gnu.org Received: via spool by 60508-submit <at> debbugs.gnu.org id=B60508.167278419329293 (code B ref 60508); Tue, 03 Jan 2023 22:17:01 +0000 Received: (at 60508) by debbugs.gnu.org; 3 Jan 2023 22:16:33 +0000 Received: from localhost ([127.0.0.1]:46942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pCpaD-0007cO-56 for submit <at> debbugs.gnu.org; Tue, 03 Jan 2023 17:16:33 -0500 Received: from freefriends.org ([96.88.95.60]:54278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <karl@HIDDEN>) id 1pCpaC-0007cH-6p for 60508 <at> debbugs.gnu.org; Tue, 03 Jan 2023 17:16:32 -0500 X-Envelope-From: karl@HIDDEN Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 303MGUBC031205 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 3 Jan 2023 15:16:31 -0700 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 303MGUps031204; Tue, 3 Jan 2023 15:16:30 -0700 Date: Tue, 3 Jan 2023 15:16:30 -0700 Message-Id: <202301032216.303MGUps031204@HIDDEN> From: Karl Berry <karl@HIDDEN> In-Reply-To: <Y7Ov2IttlgEsTYhh@vapier> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Hi Mike - thanks for the report. * libmMID.a defines a bunch of common objects * libaFIRST.a and libzLAST.a adds libmMID.a's objects to its libadd * libaFIRST.a's dependency is *missing* the objects, but libzLAST.a has them Yikes. Well, if you or anyone can find a patch, that would be great. Else I'll look at it when I have a chance (not soon, unfortunately). --thanks again, karl.
Received: (at control) by debbugs.gnu.org; 13 Jan 2023 05:37:20 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 13 00:37:20 2023 Received: from localhost ([127.0.0.1]:49149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pGCki-0006A3-GN for submit <at> debbugs.gnu.org; Fri, 13 Jan 2023 00:37:20 -0500 Received: from woodpecker.gentoo.org ([140.211.166.183]:38444 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <vapier@HIDDEN>) id 1pGCkh-00069m-CE for control <at> debbugs.gnu.org; Fri, 13 Jan 2023 00:37:19 -0500 Received: by smtp.gentoo.org (Postfix, from userid 559) id 20C9E340B10; Fri, 13 Jan 2023 05:37:13 +0000 (UTC) From: Mike Frysinger <vapier@HIDDEN> To: control <at> debbugs.gnu.org Subject: Control message Message-Id: <20230113053713.20C9E340B10@HIDDEN> Date: Fri, 13 Jan 2023 05:37:13 +0000 (UTC) X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) tag 60508 = confirmed, help thankyou
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.