GNU bug report logs - #60508
archive DEPENDENCIES incorrectly depends on ordering

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake; Reported by: Mike Frysinger <vapier@HIDDEN>; Keywords: confirmed help; dated Tue, 3 Jan 2023 04:33:02 UTC; Maintainer for automake is bug-automake@HIDDEN.
Added tag(s) confirmed and help. Request was from Mike Frysinger <vapier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 60508 <at> debbugs.gnu.org:


Received: (at 60508) by debbugs.gnu.org; 3 Jan 2023 22:16:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 03 17:16:33 2023
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>
To: vapier@HIDDEN
Subject: Re: bug#60508: archive DEPENDENCIES incorrectly depends on ordering
In-Reply-To: <Y7Ov2IttlgEsTYhh@vapier>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 60508
Cc: 60508 <at> debbugs.gnu.org
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.




Information forwarded to bug-automake@HIDDEN:
bug#60508; Package automake. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Jan 2023 04:32:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 02 23:32:36 2023
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>
To: bug-automake@HIDDEN
Subject: archive DEPENDENCIES incorrectly depends on ordering
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-Debbugs-Envelope-To: submit
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--




Acknowledgement sent to Mike Frysinger <vapier@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#60508; Package automake. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 13 Jan 2023 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.