pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gettext-m4 Also install host-cpu-c-abi.m4 from g...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b117a3ba42f6
branches:  trunk
changeset: 406225:b117a3ba42f6
user:      kim <kim%pkgsrc.org@localhost>
date:      Mon Dec 16 14:44:56 2019 +0000

description:
Also install host-cpu-c-abi.m4 from gettext-tools/gnulib-m4

This fixes errors about gl_HOST_CPU_C_ABI_32BIT not being defined when
running autoreconf, and errors about such a command not being found when
the generated configure script is run.

configure.ac:20: warning: gl_HOST_CPU_C_ABI_32BIT is m4_require'd but not m4_defun'd

Based on only a cursory understanding of autoconf, it seems like all
the files in share/aclocal are always included. Therefore it should be
possible to detect errors like this by running autoconf or autoreconf,
before committing to pkgsrc.

diffstat:

 devel/gettext-m4/Makefile |  25 +++++++++++++++++++------
 devel/gettext-m4/PLIST    |   3 ++-
 2 files changed, 21 insertions(+), 7 deletions(-)

diffs (65 lines):

diff -r ef3512e3d377 -r b117a3ba42f6 devel/gettext-m4/Makefile
--- a/devel/gettext-m4/Makefile Mon Dec 16 13:31:52 2019 +0000
+++ b/devel/gettext-m4/Makefile Mon Dec 16 14:44:56 2019 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.25 2019/11/03 10:39:12 rillig Exp $
+# $NetBSD: Makefile,v 1.26 2019/12/16 14:44:56 kim Exp $
 
 .include "../../devel/gettext/Makefile.common"
 
 PKGNAME=       ${DISTNAME:S/-/-m4-/}
+PKGREVISION=   1
 COMMENT=       Autoconf/automake m4 files for GNU NLS library
 LICENSE=       gnu-gpl-v2
 
@@ -14,16 +15,28 @@
 
 INSTALLATION_DIRS+=    share/aclocal
 
+GNULIB_M4_FILES=                       \
+       codeset.m4              \
+       extern-inline.m4        \
+       host-cpu-c-abi.m4       \
+       lcmessage.m4            \
+       lib-ld.m4               \
+       lib-link.m4             \
+       lib-prefix.m4           \
+       lock.m4                 \
+       longlong.m4             \
+       threadlib.m4            \
+       wchar_t.m4              \
+       wint_t.m4               \
+
 do-install:
        ${INSTALL_DATA} ${WRKSRC}/gettext-runtime/m4/*.m4 \
                ${DESTDIR}${PREFIX}/share/aclocal
        ${INSTALL_DATA} ${WRKSRC}/gettext-tools/m4/*.m4 \
                ${DESTDIR}${PREFIX}/share/aclocal
-.for i in lib-ld.m4 lib-link.m4 lib-prefix.m4 extern-inline.m4 \
-           lock.m4 longlong.m4 lcmessage.m4 threadlib.m4 wchar_t.m4 \
-           wint_t.m4 codeset.m4
-           ${INSTALL_DATA} ${WRKSRC}/gettext-tools/gnulib-m4/${i} \
-               ${DESTDIR}${PREFIX}/share/aclocal
+.for i in ${GNULIB_M4_FILES}
+       ${INSTALL_DATA} ${WRKSRC}/gettext-tools/gnulib-m4/${i} \
+           ${DESTDIR}${PREFIX}/share/aclocal
 .endfor
 
 .include "../../mk/bsd.pkg.mk"
diff -r ef3512e3d377 -r b117a3ba42f6 devel/gettext-m4/PLIST
--- a/devel/gettext-m4/PLIST    Mon Dec 16 13:31:52 2019 +0000
+++ b/devel/gettext-m4/PLIST    Mon Dec 16 14:44:56 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2019/05/27 13:21:41 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.10 2019/12/16 14:44:56 kim Exp $
 share/aclocal/codeset.m4
 share/aclocal/exported.m4
 share/aclocal/extern-inline.m4
@@ -7,6 +7,7 @@
 share/aclocal/gettext.m4
 share/aclocal/glibc2.m4
 share/aclocal/glibc21.m4
+share/aclocal/host-cpu-c-abi.m4
 share/aclocal/hostname.m4
 share/aclocal/iconv.m4
 share/aclocal/intdiv0.m4



Home | Main Index | Thread Index | Old Index