public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] newlib: Clarify regeneration of config files
@ 2023-09-13  9:00 Sebastian Huber
  2023-10-15  9:33 ` Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2023-09-13  9:00 UTC (permalink / raw)
  To: newlib

---
 newlib/README | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/newlib/README b/newlib/README
index 1b2c16cd4..234666e19 100644
--- a/newlib/README
+++ b/newlib/README
@@ -525,6 +525,20 @@ steps, add the -v option.
 It is strongly advised that you use an adequate version of autotools.  For this
 latest release, the following were used: autoconf 2.69 and automake 1.15.1.
 
+Running autoreconf in the newlib directory may produce changes in newlib.hin.
+Usually, these changes need to be reverted manually and should not be checked
+in.  The changes result from the very unusual way newlib handles configuration
+headers.  You will find that the new elements in newlib.hin are instead defined
+in the other checked-in file _newlib_version.hin.  Newlib splits the autoheader
+definitions into these two separate files, and then includes 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 entries defined by AC_DEFINE()
+into its output file (newlib.hin).  So, this needs some extra, manual
+post-processing after running autoreconf, to remove the duplicate definitions.
+
 Reporting Bugs
 ==============
 
-- 
2.35.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] newlib: Clarify regeneration of config files
  2023-09-13  9:00 [PATCH] newlib: Clarify regeneration of config files Sebastian Huber
@ 2023-10-15  9:33 ` Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2023-10-15  9:33 UTC (permalink / raw)
  To: Sebastian Huber; +Cc: newlib

[-- Attachment #1: Type: text/plain, Size: 95 bytes --]

i posted a patch to automate this, so hopefully we don't need this
documentation update.
-mike

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-15  9:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-13  9:00 [PATCH] newlib: Clarify regeneration of config files Sebastian Huber
2023-10-15  9:33 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).