Skip to contentSkip to conversation

libauthen-sasl-perl,libhtml-tree-perl: allow PERL_USE_UNSAFE_INC

PATCH New Khem Raj 1 participant 2 messages Mar 1, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 libauthen-sasl-perl,libhtml-tree-perl: allow PERL_USE_UNSAFE_INC

latest perl has made it defualt to remove current directory from default include paths but some modules still depend on this behavior, so let them use it

---
 meta-perl/recipes-perl/libauthen/libauthen-sasl-perl_2.16.bb | 2 ++
 meta-perl/recipes-perl/libhtml/libhtml-tree-perl_5.03.bb     | 2 ++
 2 files changed, 4 insertions(+)
meta-perl/recipes-perl/libauthen/libauthen-sasl-perl_2.16.bb +2 -0
index e658a5ff11..c75deb0c3c 100644
@@ -21,6 +21,8 @@ S = "${WORKDIR}/Authen-SASL-${PV}"
 
 inherit cpan ptest
 
+export PERL_USE_UNSAFE_INC = "1"
+
 do_install_ptest () {
     cp -r ${B}/t ${D}${PTEST_PATH}
 }
meta-perl/recipes-perl/libhtml/libhtml-tree-perl_5.03.bb +2 -0
index 56dc19c85a..569ac696f8 100644
@@ -21,6 +21,8 @@ S = "${WORKDIR}/HTML-Tree-${PV}"
 
 inherit cpan_build
 
+export PERL_USE_UNSAFE_INC = "1"
+
 DEPENDS += "libmodule-build-perl-native \
 "
 
Signature · 1 line
2.30.1
author
#1 lore raw

PATCH 2/2 dvb-apps: Allow insecure inc paths

Latest perl have switched the default to not allow the unsafe include paths like current dir (.), but dvb-apps depend on this behaviour

Cc Andreas Müller <[email protected]>
---
 meta-multimedia/recipes-multimedia/dvb-apps/dvb-apps_1.1.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-multimedia/recipes-multimedia/dvb-apps/dvb-apps_1.1.1.bb +2 -0
index f354ef3872..977a9e7922 100644
@@ -20,6 +20,8 @@ inherit perlnative
 
 export enable_static="no"
 
+export PERL_USE_UNSAFE_INC = "1"
+
 do_configure() {
     sed -i -e s:/usr/include:${STAGING_INCDIR}:g util/av7110_loadkeys/generate-keynames.sh
 }
Signature · 1 line
2.30.1