Menu

#142 Update m4/ macros

None
closed-fixed
nobody
None
5
2022-09-23
2022-09-23
Sam James
No

Could you consider syncing the m4/ macros included with quota to the latest versions from their respective upstreams?

The current macros are quite old which causes some portability issues.

For example, newer grep (grep 3.8+) causes;

checking for ld used by GCC... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... egrep: warning: egrep is obsolescent; using /bin/grep -E
yes
checking for shared library run path origin... egrep: warning: egrep is obsolescent; using /bin/grep -E
done
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes

A newer version of m4/lib-ld.m4 would fix this (it's currently from gettext-0.12, from 2003!)

The same applies to other macros (non-exhaustive list) like m4/iconv.m4, m4/gettext.m4, etc. Thank you!

Discussion

  • Sam James

    Sam James - 2022-09-23

    On my system, they're available in /usr/share/aclocal, although it may vary on other systems if development tools are not installed.

     
  • Sam James

    Sam James - 2022-09-23

    This will require changing AM_GNU_GETTEXT_VERSION in configure.ac, as it happens to control the versions of the macros too, unfortunately.

    But most projects use at minimum 0.18 or 0.19. 0.20.x should be fine even at this point.

     
  • Jan Kara

    Jan Kara - 2022-09-23

    Thanks for report. I've updated gettext version to 0.19 and refreshed m4 macros.

     
  • Jan Kara

    Jan Kara - 2022-09-23
    • status: open --> closed-fixed
    • Group: -->
     

Anonymous
Anonymous

Add attachments
Cancel