* [Buildroot] [PATCH 1/1] package/gutenprint: add back the hook for creating the m4local directory
@ 2020-02-17 22:52 Fabrice Fontaine
2020-02-18 2:50 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2020-02-17 22:52 UTC (permalink / raw)
To: buildroot
Commit 64c42c5e2c26261e26c3548c86b02f55d12f341b removed the hook for
creating the m4local directory with the assumption that it would be
created because the first include is treated in a special way if it
doesn't exists
However, this assumption was wrong as m4local is the second include, the
first one is m4 (which already exists in the archive). So put back the
hook. The other solutions would be to patch:
- Makefile.{am,in} to remove m4local
- configure.ac and Makefile.{am,in} to add m4local before m4
However, both solutions don't seem to be upstreamable
Fixes:
- http://autobuild.buildroot.org/results/e40313c6ec193d6156e26eff62303545fba09413
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/gutenprint/gutenprint.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/gutenprint/gutenprint.mk b/package/gutenprint/gutenprint.mk
index e99d62ca79..9cb80c3e95 100644
--- a/package/gutenprint/gutenprint.mk
+++ b/package/gutenprint/gutenprint.mk
@@ -14,6 +14,13 @@ GUTENPRINT_LICENSE_FILES = COPYING
# Needed, as we touch Makefile.am
GUTENPRINT_AUTORECONF = YES
+# Needed by autoreconf
+define GUTENPRINT_CREATE_M4_DIR
+ mkdir -p $(@D)/m4local
+endef
+GUTENPRINT_POST_PATCH_HOOKS += GUTENPRINT_CREATE_M4_DIR
+HOST_GUTENPRINT_POST_PATCH_HOOKS += GUTENPRINT_CREATE_M4_DIR
+
GUTENPRINT_DEPENDENCIES = \
cups host-pkgconf \
$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
--
2.24.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [Buildroot] [PATCH 1/1] package/gutenprint: add back the hook for creating the m4local directory
2020-02-17 22:52 [Buildroot] [PATCH 1/1] package/gutenprint: add back the hook for creating the m4local directory Fabrice Fontaine
@ 2020-02-18 2:50 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2020-02-18 2:50 UTC (permalink / raw)
To: buildroot
On Mon, 17 Feb 2020 23:52:02 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Commit 64c42c5e2c26261e26c3548c86b02f55d12f341b removed the hook for
> creating the m4local directory with the assumption that it would be
> created because the first include is treated in a special way if it
> doesn't exists
>
> However, this assumption was wrong as m4local is the second include, the
> first one is m4 (which already exists in the archive). So put back the
> hook. The other solutions would be to patch:
> - Makefile.{am,in} to remove m4local
> - configure.ac and Makefile.{am,in} to add m4local before m4
> However, both solutions don't seem to be upstreamable
>
> Fixes:
> - http://autobuild.buildroot.org/results/e40313c6ec193d6156e26eff62303545fba09413
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/gutenprint/gutenprint.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-18 2:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-17 22:52 [Buildroot] [PATCH 1/1] package/gutenprint: add back the hook for creating the m4local directory Fabrice Fontaine
2020-02-18 2:50 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox