[Buildroot] [PATCH 06/51] package/perl: include perl-cross in the legal-info output
Yann E. MORIN
yann.morin.1998 at free.fr
Mon Nov 23 14:47:36 UTC 2015
The perl-cross sources are combined with the perl sources, so they must
be redistributed for proper compliance.
Add a post-legal-info hook that also installs them in the legal-info
output.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Cc: Luca Ceresoli <luca at lucaceresoli.net>
Cc: Francois Perrad <fperrad at gmail.com>
---
package/perl/perl.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/perl/perl.mk b/package/perl/perl.mk
index f3b7b2b..25294e6 100644
--- a/package/perl/perl.mk
+++ b/package/perl/perl.mk
@@ -32,6 +32,13 @@ define PERL_CROSS_EXTRACT
endef
PERL_POST_EXTRACT_HOOKS += PERL_CROSS_EXTRACT
+# ... and as such should be part of the legal-info redistribution
+define PERL_CROSS_LEGAL_INFO
+ $(Q)$(call hardlink-copy,$(DL_DIR)/$(PERL_CROSS_SOURCE),\
+ $(PERL_REDIST_SOURCES_DIR))
+endef
+PERL_POST_LEGAL_INFO_HOOKS += PERL_CROSS_LEGAL_INFO
+
define PERL_CROSS_SET_POD
$(SED) s/$(PERL_CROSS_OLD_POD)/$(PERL_CROSS_NEW_POD)/g $(@D)/Makefile
endef
--
1.9.1
More information about the buildroot
mailing list