package/m4: fix build on host with glibc-2.28
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 17 Aug 2018 12:38:03 +0000 (14:38 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 17 Aug 2018 16:57:25 +0000 (18:57 +0200)
commitc48f8a64626c60bd1b46804b7cf1a699ff53cdf3
treedab7ba21271ffdc2877177b10ec4d3c134c6af65
parentf70b13a7cb6eb01e9d78fddcb695b84a22e5699b
package/m4: fix build on host with glibc-2.28

glibc-2.28 did quite some lifting in their headers, which breaks the
way some packages were detecting glibc, like gnulib.

However, packages do bundle gnulib (it was meant to be bundled),
and so does m4.

Since m4 hasn't seen the slightest commit since 2017-01-09, it is
bundling an old gnulib version, that predates glibc-2.28, and thus
breaks. It also means that upstream hasn't already fixed the issue.

Furthermore, as upstream is using a git submodule for gnulib, and
that the paths are not the same in the release tarball (in lib/)
and in the git tree (in gnulib/), we can't do a plain backport.

So, we selectively backport the two patches from gnulib upstream,
restricted to only the files that happen to be used in m4.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reported-by: c32 on IRC
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/m4/0001-fflush-adjust-to-glibc-2.28-libio.h-removal.patch [new file with mode: 0644]
package/m4/0002-fflush-be-more-paranoid-about-libio.h-change.patch [new file with mode: 0644]