public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Updating <sys/cdefs.h> in glibc and gnulib
@ 2023-02-21 10:14 Florian Weimer
  2023-02-26 19:02 ` Bruno Haible
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2023-02-21 10:14 UTC (permalink / raw)
  To: libc-alpha, bug-gnulib; +Cc: Sachin Monga

Why does gnulib bundle <sys/cdefs.h>?  We edit this file regularly in
glibc.  In the past, some gnulib-using programs supplied their own copy
of <sys/cdefs.h> instead, even when building against glibc.  This caused
build failures in the glibc headers because they (quite reasonably)
assumed that <sys/cdefs.h> defines the macros for that glibc version.

Does gnulib still override <sys/cdefs.h> unconditionally?

A version check will be difficult because sometimes, we have to backport
header fixes to older versions, and that may require adding additional
macros in <sys/cdefs.h>.

We could move glibc's internal definitions to a new header, reducing
<sys/cdefs.h> in scope, but presumably that means gnulib would just
starting bundling that other header, and we would have the same issue
once more.

Thanks,
Florian


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

end of thread, other threads:[~2023-02-27 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 10:14 Updating <sys/cdefs.h> in glibc and gnulib Florian Weimer
2023-02-26 19:02 ` Bruno Haible
2023-02-27 14:52   ` Florian Weimer

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).