Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m4: Only expose what GNU gettext also exposes #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lanodan
Copy link
Contributor

@lanodan lanodan commented May 24, 2024

Otherwise gettext-tiny m4 libs ends up overriding other versions
of vendored gnulib, making autoreconf fail.

Additionally I checked that each m4 file has it's required
automake functions, which can be listed with the following command:

$ grep AC_REQUIRE m4/*.m4 | grep AM

Otherwise gettext-tiny m4 libs ends up overriding other versions
of vendored gnulib, making autoreconf fail.

Additionally I checked that each m4 file has it's required
automake functions, which can be listed with the following command:

  $ grep AC_REQUIRE m4/*.m4 | grep AM
@rofl0r
Copy link
Member

rofl0r commented May 24, 2024

this makes autoreconf -i fail on weechat 3.0 tarball.

[snip]
configure.ac:68: warning: gl_GLIBC21 is m4_require'd but not m4_defun'd
m4/intl.m4:25: AM_INTL_SUBDIR is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:68: the top level
configure.ac:68: warning: gl_XSIZE is m4_require'd but not m4_defun'd
m4/intl.m4:25: AM_INTL_SUBDIR is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:68: the top level
configure.ac:68: warning: gl_FCNTL_O_FLAGS is m4_require'd but not m4_defun'd
m4/intl.m4:25: AM_INTL_SUBDIR is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:68: the top level
configure.ac:68: warning: gl_EXTERN_INLINE is m4_require'd but not m4_defun'd
m4/intl.m4:25: AM_INTL_SUBDIR is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:68: the top level
configure:16955: error: possibly undefined macro: gl_AC_HEADER_STDINT_H
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure:17344: error: possibly undefined macro: gl_AC_TYPE_UINTMAX_T
configure:18647: error: possibly undefined macro: gl_AC_HEADER_INTTYPES_H
configure:18847: error: possibly undefined macro: AM_LANGINFO_CODESET
autoreconf: /bin/autoconf failed with exit status: 1

@lanodan
Copy link
Contributor Author

lanodan commented May 24, 2024 via email

@rofl0r
Copy link
Member

rofl0r commented May 24, 2024

the optimal solution would be to ship only the m4 macros that are expected to be provided by autopoint, but strip them to the bare minimum without depending on the whole gnulib junk.

@rofl0r
Copy link
Member

rofl0r commented May 24, 2024

@lanodan does the PR i just merged fix this (sed-4.9) issue for you ?

@lanodan
Copy link
Contributor Author

lanodan commented May 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants