[Buildroot] [git commit] package/madplay: fix build when NLS is enabled

Arnout Vandecappelle (Essensium/Mind) arnout at mind.be
Wed Apr 17 20:00:44 UTC 2019

commit: https://git.buildroot.net/buildroot/commit/?id=00b733a39b0fe3902c96f6734c4f82c310cffc26
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

MKINSTALLDIRS is not automatically called by autotools when
This leads to the following error during install:

`/bin/sh @MKINSTALLDIRS@ /home/dawncrow/buildroot-test/scripts/instance-0/output/target/usr/share
/bin/sh: 0: Can't open @MKINSTALLDIRS@`

because @MKINSTALLDIRS@ doesn't get substituted during autoreconf.

This particular command only gets invoked when NLS is enabled.

Add patch that explicitly calls AM_MKINSTALLDIRS macro to substitute
every @MKINSTALLDIRS@ occurence in *.in Makefile.

Patch is not sent upstream since upstream is dead.


Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
 .../0004-configure-ac-call-AM_MKINSTALLDIRS.patch  | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/package/madplay/0004-configure-ac-call-AM_MKINSTALLDIRS.patch b/package/madplay/0004-configure-ac-call-AM_MKINSTALLDIRS.patch
new file mode 100644
index 0000000000..7d3fb8ddc6
--- /dev/null
+++ b/package/madplay/0004-configure-ac-call-AM_MKINSTALLDIRS.patch
@@ -0,0 +1,23 @@
+configure.ac: call AM_MKINSTALLDIRS to substitute @MKINSTALLDIRS@
+MKINSTALLDIRS is obsolete and doesn't get automatically called.
+Force call AM_MKINSTALLDIRS() macro to substitute every @MKINSTALLDIRS@
+occurence in *.in files.
+Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
+diff -urpN madplay-0.15.2b.orig/configure.ac madplay-0.15.2b/configure.ac
+--- madplay-0.15.2b.orig/configure.ac	2019-04-16 12:06:03.781018755 +0200
++++ madplay-0.15.2b/configure.ac	2019-04-16 12:07:48.399162610 +0200
+@@ -146,6 +146,10 @@ ALL_LINGUAS="en es fr hr no"
+ AM_GNU_GETTEXT([use-libtool])
++dnl Substitute MKINSTALLDIRS
+ dnl Checks for header files.

More information about the buildroot mailing list