diff mbox series

[1/3] package/gettext-tiny: fix prefix in autopoint

Message ID 65fdd6f7c3a5900df8ab25d291fe29293f95b43c.1573759321.git.yann.morin.1998@free.fr
State Accepted
Headers show
Series [1/3] package/gettext-tiny: fix prefix in autopoint | expand

Commit Message

Yann E. MORIN Nov. 14, 2019, 7:22 p.m. UTC
gettext-tiny also installs a fake autopoint, but it still needs to be
pointed at the m4 macros, which the template autopoint expects to be in
@datadir@, where datadir is the traditional autotools datadir, derived
from datarootdir, itself derived from prefix.

So, pass prefix so all the locations are properly pointing to HOST_DIR,
instead of the default /usr/local.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Vadim Kochan <vadim4j@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/gettext-tiny/gettext-tiny.mk | 1 +
 1 file changed, 1 insertion(+)

Comments

Peter Korsgaard Nov. 19, 2019, 9:32 a.m. UTC | #1
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > gettext-tiny also installs a fake autopoint, but it still needs to be
 > pointed at the m4 macros, which the template autopoint expects to be in
 > @datadir@, where datadir is the traditional autotools datadir, derived
 > from datarootdir, itself derived from prefix.

 > So, pass prefix so all the locations are properly pointing to HOST_DIR,
 > instead of the default /usr/local.

 > Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
 > Cc: Vadim Kochan <vadim4j@gmail.com>
 > Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Committed to 2019.08.x (not in 2019.02.x), thanks.
diff mbox series

Patch

diff --git a/package/gettext-tiny/gettext-tiny.mk b/package/gettext-tiny/gettext-tiny.mk
index 23a9d9a057..6ee6269e09 100644
--- a/package/gettext-tiny/gettext-tiny.mk
+++ b/package/gettext-tiny/gettext-tiny.mk
@@ -52,6 +52,7 @@  HOST_GETTEXT_TINY_POST_PATCH_HOOKS += HOST_GETTEXT_TINY_COPY_EXTRA_FILES
 define HOST_GETTEXT_TINY_BUILD_CMDS
 	$(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
 		$(HOST_CONFIGURE_OPTS) \
+		prefix=$(HOST_DIR) \
 		CFLAGS="$(HOST_CFLAGS) -fPIC" \
 		LIBINTL=NONE