Archive rebuild to test potential stdlib.h / sys/types.h changes in glibc 2.23

Zack Weinberg zackw@panix.com
Sun Nov 15 21:19:00 GMT 2015


glibc upstream would like to fix a long-standing problem involving
<stdlib.h> polluting the user namespace with macros named 'major' and
'minor'.  This is not technically an ISO nor POSIX conformance violation
since it only happens in extended compilation modes, but extensions are
on by default (and worse, g++ unconditionally defines _GNU_SOURCE
regardless of conformance mode - which is agreed to be a bug, but very
difficult to fix due to libstdc++ headers needing some of those
extensions) so it's likely to trip people up.  For more detail see
https://sourceware.org/bugzilla/show_bug.cgi?id=19239 and the libc-alpha
discussion starting at
https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html .

We have identified two potential changes which could fix this problem;
unfortunately both of them have fairly high risk of breaking software
which expects stdlib.h to include sys/types.h, sys/types.h to include
sys/sysmacros.h, or both.  (Neither of those is guaranteed by any
standard, but I think we all know how little that means.)  We would
therefore like to ask for an archive-rebuild test using the modified
glibc.  This would involve updating the glibc packages to 2.23-dev
first, and then applying one or both of the attached patches.  (Ideally
there would be four tests - 2.23-dev baseline, patch 1 only, patch 2
only, and both patches.  But we realize that this is an expensive
proposition.)

How can we arrange for this to happen?

Thanks,
zw
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Don-t-include-sys-types.h-from-stdlib.h.patch
Type: text/x-patch
Size: 2477 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151115/c272aebb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-include-sys-sysmacros.h-from-sys-types.h.patch
Type: text/x-patch
Size: 628 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151115/c272aebb/attachment-0001.bin>


More information about the Libc-alpha mailing list