Skip to contentSkip to conversation

perl: don't package the host configuration

PATCH In review Ross Burton 3 participants 4 messages Feb 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perl: don't package the host configuration

From: Ross Burton <[email protected]>

make install installs xconfig.h, which is the configuration of the *build host* used when building miniperl, used to bootstrap the Perl build.

As this changes depending on the build host, remove don't install it.

[ YOCTO #13372 ]

---
 meta/recipes-devtools/perl/perl_5.30.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/perl/perl_5.30.1.bb +4 -0
index d4b6bb32b43..8af9dfa4a2c 100644
@@ -139,6 +139,10 @@ do_install() {
     # Fix up shared library
     rm ${D}/${libdir}/perl5/${PV}/*/CORE/libperl.so
     ln -sf ../../../../libperl.so.${PERL_LIB_VER} $(echo ${D}/${libdir}/perl5/${PV}/*/CORE)/libperl.so
+
+    # This is the native configuration for the bootstrap perl, don't need it
+    # packaged.
+    rm -f ${D}${libdir}/perl5/${PV}/*/CORE/xconfig.h
 }
 
 do_install_append_class-target() {
Signature · 1 line
2.20.1
#1 lore raw

Should that bug number be 13772 not 13372?

Quoted 30 lines · Ross Burton

From: Ross Burton <[email protected]>

make install installs xconfig.h, which is the configuration of the *build host* used when building miniperl, used to bootstrap the Perl build.

As this changes depending on the build host, remove don't install it.

[ YOCTO #13372 ]

---
  meta/recipes-devtools/perl/perl_5.30.1.bb | 4 ++++
  1 file changed, 4 insertions(+)
meta/recipes-devtools/perl/perl_5.30.1.bb +4 -0
index d4b6bb32b43..8af9dfa4a2c 100644
@@ -139,6 +139,10 @@ do_install() {
      # Fix up shared library
      rm ${D}/${libdir}/perl5/${PV}/*/CORE/libperl.so
      ln -sf ../../../../libperl.so.${PERL_LIB_VER} $(echo ${D}/${libdir}/perl5/${PV}/*/CORE)/libperl.so
+
+    # This is the native configuration for the bootstrap perl, don't need it
+    # packaged.
+    rm -f ${D}${libdir}/perl5/${PV}/*/CORE/xconfig.h
  }
 
  do_install_append_class-target() {
Signature · 2 lines
Jeremy A. Puhlman
[email protected]
#2 lore raw
In reply to Ross Burton

My patch is more comprehensive, as it also adjusts the ptests ;)

Alex

Quoted 42 lines · Ross Burton

From: Ross Burton <[email protected]>

make install installs xconfig.h, which is the configuration of the *build host* used when building miniperl, used to bootstrap the Perl build.

As this changes depending on the build host, remove don't install it.

[ YOCTO #13372 ]

---
 meta/recipes-devtools/perl/perl_5.30.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/perl/perl_5.30.1.bb +0 -0
index d4b6bb32b43..8af9dfa4a2c 100644
@@ -139,6 +139,10 @@ do_install() {
     # Fix up shared library
     rm ${D}/${libdir}/perl5/${PV}/*/CORE/libperl.so
     ln -sf ../../../../libperl.so.${PERL_LIB_VER} $(echo

${D}/${libdir}/perl5/${PV}/*/CORE)/libperl.so

meta/recipes-devtools/perl/perl_5.30.1.bb +2 -0
+
+    # This is the native configuration for the bootstrap perl, don't need

it

meta/recipes-devtools/perl/perl_5.30.1.bb +2 -1
+    # packaged.
+    rm -f ${D}${libdir}/perl5/${PV}/*/CORE/xconfig.h
 }
 
 do_install_append_class-target() {
--

2.20.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw

Note to self: it’s time to stop working.

Quoted 49 lines · Alexander Kanavin

My patch is more comprehensive, as it also adjusts the ptests ;)

Alex

Quoted 42 lines · Ross Burton

From: Ross Burton <[email protected]>

make install installs xconfig.h, which is the configuration of the *build host* used when building miniperl, used to bootstrap the Perl build.

As this changes depending on the build host, remove don't install it.

[ YOCTO #13372 ]

---
 meta/recipes-devtools/perl/perl_5.30.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/perl/perl_5.30.1.bb +0 -0
index d4b6bb32b43..8af9dfa4a2c 100644
@@ -139,6 +139,10 @@ do_install() {
     # Fix up shared library
     rm ${D}/${libdir}/perl5/${PV}/*/CORE/libperl.so
     ln -sf ../../../../libperl.so.${PERL_LIB_VER} $(echo

${D}/${libdir}/perl5/${PV}/*/CORE)/libperl.so

meta/recipes-devtools/perl/perl_5.30.1.bb +2 -0
+
+    # This is the native configuration for the bootstrap perl, don't

need it

meta/recipes-devtools/perl/perl_5.30.1.bb +2 -1
+    # packaged.
+    rm -f ${D}${libdir}/perl5/${PV}/*/CORE/xconfig.h
 }
 
 do_install_append_class-target() {
--

2.20.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core