-
Notifications
You must be signed in to change notification settings - Fork 15
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
Can't autoreconf polkit-0.115 without nls.m4 in /usr/share/aclocal #27
Comments
i am not fimiliar with autoxxx. But running autogen.sh with polkit 0.114 seems fine. autopoint will copy all m4 files in to ./m4, but that did not work out this problem. Any idea, @rofl0r ? |
does the real gettext copy nls.m4 to /usr/share/aclocal/nls.m4 ? if so maybe we should too. |
Yes, actually:
|
OK, like so?
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ bindir=$(prefix)/bin
includedir=$(prefix)/include
libdir=$(prefix)/lib
sysconfdir=$(prefix)/etc
-datadir=$(prefix)/share/gettext-tiny
+datarootdir=$(prefix)/share
+datadir=$(datarootdir)/gettext-tiny
ifeq ($(LIBINTL), MUSL)
@@ -43,6 +44,7 @@ BUILDCFLAGS=$(CFLAGS)
all: $(ALL_LIBS) $(ALL_TOOLS)
install: $(ALL_LIBS:lib%=$(DESTDIR)$(libdir)/lib%) $(ALL_INCLUDES:%=$(DESTDIR)$(includedir)/%) $(ALL_TOOLS:%=$(DESTDIR)$(bindir)/%) $(ALL_M4S:%=$(DESTDIR)$(datadir)/%) $(ALL_DATA:%=$(DESTDIR)$(datadir)/%)
+ ln -s gettext-tiny/m4 $(DESTDIR)$(datarootdir)/aclocal
clean:
rm -f $(ALL_LIBS)
@@ -82,6 +84,3 @@ $(DESTDIR)$(datadir)/%: %
install -D -m 644 $< $@
.PHONY: all clean install
-
-
- |
not exactly what i had in mind. other packages (e.g. automake, curl, libxml2...) install stuff into $prefix/share/aclocal too, so those files would end up in the gettext-tiny dir. worse yet, when you install gettext-tiny after curl, we would replace the existing stuff in the directory with the symlink. |
follow #27. According to @awilfox, GNU gettext will install m4 files to aclocal dir. But gettext-tiny did not. So autoreconf just stops working and complains that it can not find needed macros. Suggested by rofl0r, symlinking all m4 files into $(dataroot)/aclocal is a good idea. Save a little disk space.
@awilfox what about the commit? It's tested with msys2. I think it should work out your problem. |
I can confirm this fixes the issue. Thank you very much! |
With stock gettext-tiny, and the .m4 files in /usr/share/gettext-tiny/m4:
If I copy
/usr/share/gettext-tiny/m4/nls.m4
to/usr/share/aclocal/nls.m4
, it works correctly:This is the first failure of this kind, in about 600 packages.
The text was updated successfully, but these errors were encountered: