Re: Regenerate newlib/newlib.hin?

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <ZSuvMu7Xpoikz3KP@vapier>
On 12 Sep 2023 20:54, Hans-Bernhard Bröker wrote:
> Am 11.09.2023 um 09:12 schrieb Sebastian Huber:
> > Hello,
> > 
> > when I run "autoreconf" in "newlib", I get the following local changes:
> [...]
> > Are these changes due to a local configuration or tooling issue or 
> > should we check in these changes?
> 
> You almost certainly should not check in those changes.  In fact, you 
> probably have to revert to the checked-in copy, or remove those changes 
> manually.
> 
> They result from the very unusual way newlib handles configuration 
> headers.  You'll find that those 4 elements are instead defined in the 
> _other_ checked-in *.hin file: _newlib_version.hin.  We artificially 
> split the autoheader definitions into these two separate files, and then 
> #include the configure-generated _newlib_version.h into the generated 
> newlib.h.
> 
> Unfortunately autoreconf does not really understand this rather 
> convoluted scheme. While it allows for more than one call to 
> AC_CONFIG_HEADER, to configure more than one *.hin file, it does not 
> recognize the idea that autoheader should put any less than all of the 
> AC_DEFINE()d entries into its output file (newlib.hin).
> 
> So this needs some extra, manual post-processing after running 
> autoreconf, to remove the duplicate definitions.

we already process newlib.h when generating it in configure to filter out
some content.  we could easily add these specific defines to the filter
to avoid confusion/mistakes during autoreconf.  i'll send a patch.
-mike
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCAAdFiEEfjLn+uywF2RXRpXdyTaAqES06MkFAmUrrzIACgkQyTaAqES0
6Mlt/Av/fQh++4yZDDSJVFo3Vnq383nm6GqtYchPeA18x1Ge9JnVzPYOTzhP+a9a
CXsHcend1MgUTfWfDQhKnk2q74iLcWtqiXxbOL/D3OkwLEI4p86GgZ5K6Zg9hNq0
CtYo78ayEgl9K9iQAm6wQEeXbcVe6HlnRgPh4u7zD23wCUhT2rWurYF/zvQ+g8d3
vJtXO7L6iD5RO4+wzbp1/RBGUs9tNTyWXDcWfuZKbSuk5Sm0LS8+fGF52E9DlB5D
8L7XXWgKZn/HUrQr5GiwsX8Q37yicu1PLMDELTk9f3lCUo6Fve3tTAs7MQI3XXzj
yBerGvzU2NIsgWERYUbeRd8mk/DtCJHQgF2HCnJDx2CY60H3iizbrnpzNXmUsdm5
+kloW1G1HL5VPOSyygw1OmUaltatWNw3U4hB3q+dsemxxeNPmKWMieN0WuPOC6i8
W/u/4UBGYIF3sHtbVLcdfji2AhDQ2TVnlhBf6cd1PNRYlXM4JbsT7YPu5JVLGHwn
GqhPYNAg
=Szkx
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.