mirror of
https://git.yoctoproject.org/meta-security
synced 2026-07-16 15:57:21 +00:00
85f21ebd70
This introduces a number of changes:
- Fix the python PACKAGECONFIG knob
- The included python support is python3-based, so use those classes.
- When set, make sure to RDEPEND on the python modules the tools use.
- Fix the perl PACKAGECONFIG knob
- Add two patches so that configure will find perl and then compile
will cross-compile the library correctly.
- So that we place perl modules in the correct location we need cpan
to be inherited.
- When disabled, remove the RDEPENDS on perl as the RDEPENDS comes in
via inherit.
- Default to enabling the python and perl PACKAGECONFIG knobs as the
majority of the userspace tools are python3 based, and the few that
aren't that nor C based are perl based.
- Because of the above we must drop the -python package because it's
required for the utilities in the main package.
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
Upstream-Status: Inappropriate [configuration]
|
|
|
|
As we're cross-compiling here we need to override CC/LD that MakeMaker has
|
|
stuck in the generated Makefile with our cross tools. In this case, linking is
|
|
done via the compiler rather than the linker directly so pass in CC not LD
|
|
here.
|
|
|
|
Signed-Off-By: Tom Rini <trini@konsulko.com>
|
|
|
|
--- a/libraries/libapparmor/swig/perl/Makefile.am.orig 2017-06-13 19:04:43.296676212 -0400
|
|
+++ b/libraries/libapparmor/swig/perl/Makefile.am 2017-06-13 19:05:03.488676693 -0400
|
|
@@ -16,11 +16,11 @@
|
|
|
|
LibAppArmor.so: libapparmor_wrap.c Makefile.perl
|
|
if test ! -f libapparmor_wrap.c; then cp $(srcdir)/libapparmor_wrap.c . ; fi
|
|
- $(MAKE) -fMakefile.perl
|
|
+ $(MAKE) -fMakefile.perl CC='$(CC)' LD='$(CC)'
|
|
if test $(top_srcdir) != $(top_builddir) ; then rm -f libapparmor_wrap.c ; fi
|
|
|
|
install-exec-local: Makefile.perl
|
|
- $(MAKE) -fMakefile.perl install_vendor
|
|
+ $(MAKE) -fMakefile.perl install_vendor CC='$(CC)' LD='$(CC)'
|
|
|
|
# sadly there is no make uninstall for perl
|
|
#uninstall-local: Makefile.perl
|