GNU bug report logs - #52256
conditional info pages don't work

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; Severity: wishlist; Reported by: Mike Frysinger <vapier@HIDDEN>; merged with #7655; dated Fri, 3 Dec 2021 04:59:01 UTC; Maintainer for automake is bug-automake@HIDDEN.
Merged 7655 52256. Request was from Mike Frysinger <vapier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Mike Frysinger <vapier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 52256) by debbugs.gnu.org; 4 Dec 2021 03:15:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 03 22:15:30 2021
Received: from localhost ([127.0.0.1]:52580 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mtLWM-0000Mv-El
	for submit <at> debbugs.gnu.org; Fri, 03 Dec 2021 22:15:30 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183]:35172
 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vapier@HIDDEN>) id 1mtLWJ-0000Er-HA
 for 52256 <at> debbugs.gnu.org; Fri, 03 Dec 2021 22:15:28 -0500
Received: by smtp.gentoo.org (Postfix, from userid 559)
 id 4DDBB3433B4; Sat,  4 Dec 2021 03:15:21 +0000 (UTC)
Date: Fri, 3 Dec 2021 22:15:23 -0500
From: Mike Frysinger <vapier@HIDDEN>
To: Karl Berry <karl@HIDDEN>
Subject: Re: bug#52256: conditional info pages don't work
Message-ID: <YardS3ipigOuU7ay@vapier>
Mail-Followup-To: Karl Berry <karl@HIDDEN>, 52256 <at> debbugs.gnu.org
References: <Yamj/vyEz7fqtDUb@vapier>
 <202112032254.1B3Ms6lt012891@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="uJGLEsJfHy2GgrED"
Content-Disposition: inline
In-Reply-To: <202112032254.1B3Ms6lt012891@HIDDEN>
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 52256
Cc: 52256 <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: -6.0 (------)


--uJGLEsJfHy2GgrED
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 03 Dec 2021 15:54, Karl Berry wrote:
>     unfortunately, automake doesn't seem to handle this situation correct=
ly.
>=20
> Not surprising.
>=20
>     ctf-spec.texi:2: unknown command `forcedError'
>=20
> Maybe you would like to look into it? It's not like I have any special
> knowledge here.  At least the error message could be improved, if it
> turns out not to be feasible to make it work.

the error message isn't the point ... i did that just to make it clear the
file was being inspected.  if it was a valid file, there wouldn't be an
error like this.

>     +else
>     +ctf-spec.info:
>=20
> Seems like a fine workaround? I guess I could imagine documenting it, if
> that's the outcome. --thanks, karl.

it's the workaround i pushed in binutils.  if the automake folks want to
document it as a KI with this workaround, that seems like an OK workaround
until someone can figure out how to make it work.
-mike

--uJGLEsJfHy2GgrED
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmGq3UsACgkQQWM7n+g3
9YGWOw//d3/qe/FYM3bn2PxO5DgMVt6uwxmuOiyePw+sBnKjqmiSBJQarB67kSnC
uVrYaLGvYjnaxickouTsa1ZPu3M4s8NiTVabnj6HPrFwI/Bvhmenfo5mILrfwB7T
fdxvevkokwMeVohhUPTyhhmL1paL7AIv4GNBvSVzqKDtmKP+LKqVMo0ofGv+7/xF
cicjPnc5FcxikN+dq169YBBzQ3MiTRTRlHDdPnZVtQZTstbely0YxU012iTYqy3X
mw0465ztfoUsiG5+EdcKGZRvd+yguPrjV+WoTHyfZW10n0yAw+g7eXI1p8san4O4
AlgiLKD2ub9ss3TocRzndafrXM9md2M9oUCLRCiUEqSiSPd2MgkKrWOQDrqODzBn
/ZsppzfTkYIHhbbCz7ZEbNqkEQ+wlyfjbx2ojazorbPmIaV8aFiLTb7o0z+baVkl
W4U05QR5rWL0C9XMvOcX7O3reJA860SdAXY4PcrnhgrsbYVkCDrDoWljsmRfAe/R
dkHEkNVUeX/LJ3d8xLAbLSiyZpH/DhcFb2bagKwHOLyf2pS9CsiAt/6ssipel/dW
mi4qYBk3ae7sDEwEP9/Q6Xzy/lE4mpvKC2HzYjp2RqwhyIFaQ1djz20CELHpyPll
0vC6ToH016JB/WONvel0jrX5cSMsb7Eq4+hFrU7O8uP3JCevV5s=
=N7+v
-----END PGP SIGNATURE-----

--uJGLEsJfHy2GgrED--




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

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


Received: (at 52256) by debbugs.gnu.org; 3 Dec 2021 22:54:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 03 17:54:12 2021
Received: from localhost ([127.0.0.1]:52377 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mtHRT-0008Bb-R8
	for submit <at> debbugs.gnu.org; Fri, 03 Dec 2021 17:54:11 -0500
Received: from freefriends.org ([96.88.95.60]:32960)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <karl@HIDDEN>) id 1mtHRQ-0008BS-R3
 for 52256 <at> debbugs.gnu.org; Fri, 03 Dec 2021 17:54:10 -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 1B3Ms7n9012892
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); 
 Fri, 3 Dec 2021 15:54:07 -0700
Received: (from apache@localhost)
 by freefriends.org (8.14.7/8.14.7/Submit) id 1B3Ms6lt012891;
 Fri, 3 Dec 2021 15:54:06 -0700
Date: Fri, 3 Dec 2021 15:54:06 -0700
Message-Id: <202112032254.1B3Ms6lt012891@HIDDEN>
From: Karl Berry <karl@HIDDEN>
To: vapier@HIDDEN
Subject: Re: bug#52256: conditional info pages don't work
In-Reply-To: <Yamj/vyEz7fqtDUb@vapier>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 52256
Cc: 52256 <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 (---)

    unfortunately, automake doesn't seem to handle this situation correctly.

Not surprising.

    ctf-spec.texi:2: unknown command `forcedError'

Maybe you would like to look into it? It's not like I have any special
knowledge here.  At least the error message could be improved, if it
turns out not to be feasible to make it work.

    +else
    +ctf-spec.info:

Seems like a fine workaround? I guess I could imagine documenting it, if
that's the outcome. --thanks, karl.




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

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


Received: (at submit) by debbugs.gnu.org; 3 Dec 2021 04:58:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 02 23:58:53 2021
Received: from localhost ([127.0.0.1]:49863 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mt0er-0007Z3-LZ
	for submit <at> debbugs.gnu.org; Thu, 02 Dec 2021 23:58:53 -0500
Received: from lists.gnu.org ([209.51.188.17]:52032)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vapier@HIDDEN>) id 1mt0en-0007Yt-5E
 for submit <at> debbugs.gnu.org; Thu, 02 Dec 2021 23:58:52 -0500
Received: from eggs.gnu.org ([209.51.188.92]:59904)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vapier@HIDDEN>) id 1mt0em-0004LO-Pc
 for bug-automake@HIDDEN; Thu, 02 Dec 2021 23:58:48 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183]:52310
 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 1mt0ek-0007Yn-02
 for bug-automake@HIDDEN; Thu, 02 Dec 2021 23:58:47 -0500
Received: by smtp.gentoo.org (Postfix, from userid 559)
 id EE30E343158; Fri,  3 Dec 2021 04:58:36 +0000 (UTC)
Date: Thu, 2 Dec 2021 23:58:38 -0500
From: Mike Frysinger <vapier@HIDDEN>
To: bug-automake@HIDDEN
Subject: conditional info pages don't work
Message-ID: <Yamj/vyEz7fqtDUb@vapier>
Mail-Followup-To: bug-automake@HIDDEN
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="EYvhPQ4fDEteTADu"
Content-Disposition: inline
Received-SPF: pass client-ip=140.211.166.183; envelope-from=vapier@HIDDEN;
 helo=smtp.gentoo.org
X-Spam_score_int: -68
X-Spam_score: -6.9
X-Spam_bar: ------
X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5,
 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: -1.6 (-)
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: -2.6 (--)


--EYvhPQ4fDEteTADu
Content-Type: multipart/mixed; boundary="FWrEkX/Hryua5GRu"
Content-Disposition: inline


--FWrEkX/Hryua5GRu
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

the gdb/binutils/gcc projects don't commit info pages to the git tree.
but people build them from git on old distros semi-frequently.  so the
tree handles things like old versions of makeinfo -- if a version is
too old, then info pages aren't built.

unfortunately, automake doesn't seem to handle this situation correctly.
it wants to always build the .info pages even when they're under an
automake conditional that is disabled.

consider the attached files which are a reduced testcase.  the texinfo
file has errors in it purely to show the automake issue.

$ autoconf --version | head -1
autoconf (GNU Autoconf) 2.71
$ automake --version | head -1
automake (GNU automake) 1.16.5
$ autoreconf -fi
$ ./configure -q
$ make
  MAKEINFO ctf-spec.info
ctf-spec.texi:2: unknown command `forcedError'
make: *** [Makefile:327: ctf-spec.info] Error 1

if i add a stub target in the Makefile.am, it works correctly:

--- a/Makefile.am
+++ b/Makefile.am
@@ -2,4 +2,6 @@
 info_TEXINFOS =
 if BUILD_INFO
 info_TEXINFOS += ctf-spec.texi
+else
+ctf-spec.info:
 endif

$ autoreconf -fi
$ ./configure -q
$ make
make: Nothing to be done for 'all'.
-mike

--FWrEkX/Hryua5GRu
Content-Type: application/pkix-attr-cert
Content-Disposition: attachment; filename="configure.ac"
Content-Transfer-Encoding: quoted-printable

AC_INIT(cond-info, 0)=0AAM_INIT_AUTOMAKE=0AAM_SILENT_RULES([yes])=0AAM_COND=
ITIONAL(BUILD_INFO, false)=0AAC_CONFIG_FILES(Makefile)=0AAC_OUTPUT=0A
--FWrEkX/Hryua5GRu
Content-Type: application/x-texinfo
Content-Disposition: attachment; filename="ctf-spec.texi"
Content-Transfer-Encoding: quoted-printable

@setfilename ctf-spec.info=0A@forcedError=0A
--FWrEkX/Hryua5GRu
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="Makefile.am"

AUTOMAKE_OPTIONS = foreign info-in-builddir no-texinfo.tex
info_TEXINFOS =
if BUILD_INFO
info_TEXINFOS += ctf-spec.texi
endif

--FWrEkX/Hryua5GRu--

--EYvhPQ4fDEteTADu
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmGpo/4ACgkQQWM7n+g3
9YHKBg/9FheXQjAxUpYK9CD6Zy/ie1KeySrSUPFHFfycdsxBUlL8dZ/BjkZiZe7f
0wHASHoJY7t419ni0QMNAl8vYmXsVirClrjJJlVlZQ5bwfI+JYsYxFgJixGz7Gly
IIPjQwENrhwMzPEY93VbtneaFoNjNzNc+CG/fJ6d604GvD0T/52p/zVs7Ajbx7ir
ymVveb5nEuH5RBwrKPJm4zFB2YoacoP9mFqt3Z9pQh900esoa1KnyRufeVU3kKum
L5vCnvM/IDVs7Lxr0ACAxyvjB/5c5FL2/3dv8MyUfctmMlDc7sPz9Sb0deHG94OJ
g7latUPQQVLnp+UoHcusjcFijhimBY+P+04qdn7RDMtedr0wXs4j6QWgA4NVkRg7
8nxACwqStEcGYVIR+cHCe+iAQqpAORwggVF1yfd1t+XSW7q4lX+Edb/h0d9kIT8X
2cENuPmGKL+1/VfEg+JDwlbSBiHAHwzfso3jiJg/TdhFG325Pk5u6ZIv/WWRcfkQ
ACfLibOvP1+gpy37tBTxMhsH+sb/fWYqrthTD9q3yRD22rg+8MAuZBJjzrMn9ReK
NSVNIu39R5vAgTHYwtOTTq46y+TG0VuXMbO/xs4zShe+rYMhJqaUyqO0o0CT7m1E
0M0dFJyd0IvyByHZ5wLf9JQ5ZBUVvlAanjrYdvGTdFECHMlLZVA=
=OVkN
-----END PGP SIGNATURE-----

--EYvhPQ4fDEteTADu--




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#52256; 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, 21 Jan 2022 08:45:01 UTC

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