[oe-commits] org.oe.dev perl 5.8.8: Directly patch the files that need patching instead of having a

lenehan commit openembedded-commits at lists.openembedded.org
Thu Jun 14 06:59:50 UTC 2007


perl 5.8.8: Directly patch the files that need patching instead of having a
makefile within the perl build apply the patches. This was a left over from
the previous perl version and makes modifying these patches a lot more
difficult than it really needs to be.

Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: 4a5a6f45601434b2c4586d73b0c75df2bfcbf294
ViewMTN: http://monotone.openembedded.org/revision.psp?id=4a5a6f45601434b2c4586d73b0c75df2bfcbf294
Files:
1
packages/perl/perl-5.8.8/installperl.patch
packages/perl/perl-5.8.8/Makefile.patch
packages/perl/perl_5.8.8.bb
Diffs:

#
# mt diff -r7565aee415f022c20a6d6e06942848f8faa9dd75 -r4a5a6f45601434b2c4586d73b0c75df2bfcbf294
#
# 
# 
# add_file "packages/perl/perl-5.8.8/installperl.patch"
#  content [e78d9cfc6e280d50746efe99c20fce49e58880b2]
# 
# patch "packages/perl/perl-5.8.8/Makefile.patch"
#  from [6f359df57fe38d4d5dd2510183f8c52b4154882f]
#    to [2ab735b5d45bce841767d68fbf8da78ae4499a95]
# 
# patch "packages/perl/perl_5.8.8.bb"
#  from [6210bc3775ad177704d1f931b5c2e24109792fed]
#    to [f198d25a435c2c098c223920580b19b2aca03755]
# 
============================================================
--- packages/perl/perl-5.8.8/installperl.patch	e78d9cfc6e280d50746efe99c20fce49e58880b2
+++ packages/perl/perl-5.8.8/installperl.patch	e78d9cfc6e280d50746efe99c20fce49e58880b2
@@ -0,0 +1,15 @@
+Index: perl-5.8.8/installperl
+===================================================================
+--- perl-5.8.8.orig/installperl	2007-06-14 12:36:23.000000000 +1000
++++ perl-5.8.8/installperl	2007-06-14 12:38:39.000000000 +1000
+@@ -3,8 +3,8 @@
+ BEGIN {
+     require 5.004;
+     chdir '..' if !-d 'lib' and -d '../lib';
+-    @INC = 'lib';
+-    $ENV{PERL5LIB} = 'lib';
++#    @INC = 'lib';
++#    $ENV{PERL5LIB} = 'lib';
+ }
+ 
+ use strict;
============================================================
--- packages/perl/perl-5.8.8/Makefile.patch	6f359df57fe38d4d5dd2510183f8c52b4154882f
+++ packages/perl/perl-5.8.8/Makefile.patch	2ab735b5d45bce841767d68fbf8da78ae4499a95
@@ -1,5 +1,7 @@
---- perl-5.8.8/Cross/Makefile	2007/04/06 00:47:46	1.1
-+++ perl-5.8.8/Cross/Makefile	2007/04/06 00:48:04
+Index: perl-5.8.8/Cross/Makefile
+===================================================================
+--- perl-5.8.8.orig/Cross/Makefile	2004-01-13 07:44:01.000000000 +1100
++++ perl-5.8.8/Cross/Makefile	2007-06-14 12:40:44.000000000 +1000
 @@ -12,7 +12,7 @@
  
  export CC = $(CROSS)gcc
@@ -9,7 +11,29 @@
  export STRIP = $(CROSS)strip
  export AR = $(CROSS)ar
  export RANLIB = $(CROSS)ranlib
-@@ -58,11 +58,11 @@
+@@ -34,21 +34,6 @@
+ all:
+ 	@echo Please read the README file before doing anything else.
+ 
+-gen_patch:
+-	diff -Bbur ../Makefile.SH Makefile.SH > Makefile.SH.patch
+-	diff -Bbur ../installperl installperl > installperl.patch
+-
+-patch:
+-	cd .. ; if [ ! -e ./CROSS_PATCHED ] ; then \
+-		patch -p1 < Cross/Makefile.SH.patch; \
+-		patch -p1 < Cross/installperl.patch ; mv installperl installperl-patched; \
+-		sed -e 's/XXSTRIPXX/$(SYS)/' installperl-patched > installperl; \
+-		touch CROSS_PATCHED ; fi
+-
+-dry_patch:
+-	cd .. ;	patch --dry-run -p1 < Cross/Makefile.SH.patch; \
+-		patch --dry-run -p1 < Cross/installperl.patch; \
+-
+ perl:
+ 	@echo Perl cross-build directory is $(TOPDIR)
+ 	@echo Target arch is $(SYS)
+@@ -58,11 +43,11 @@
  	$(TOPDIR)/generate_config_sh config.sh-$(SYS) > $(TOPDIR)/../config.sh
  	cd $(TOPDIR)/.. ; ./Configure -S ; make depend ; make ; make more
  	cd $(TOPDIR)/.. ; mkdir -p fake_config_library ; cp lib/Config.pm fake_config_library
============================================================
--- packages/perl/perl_5.8.8.bb	6210bc3775ad177704d1f931b5c2e24109792fed
+++ packages/perl/perl_5.8.8.bb	f198d25a435c2c098c223920580b19b2aca03755
@@ -5,14 +5,15 @@ DEPENDS = "virtual/db perl-native grep-n
 PRIORITY = "optional"
 # We need gnugrep (for -I)
 DEPENDS = "virtual/db perl-native grep-native"
-PR = "r21"
+PR = "r22"
 
 # Major part of version
 PVM = "5.8"
 
 SRC_URI = "ftp://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz \
         file://Makefile.patch;patch=1 \
-        file://Makefile.SH.patch \
+        file://Makefile.SH.patch;patch=1 \
+        file://installperl.patch;patch=1 \
         file://perl-dynloader.patch;patch=1 \
         file://perl-moreconfig.patch;patch=1 \
         file://letgcc-find-errno.patch;patch=1 \
@@ -44,9 +45,8 @@ do_configure() {
         # Make hostperl in build directory be the native perl
         cp -f ${HOSTPERL} hostperl
 
-        # This is silly - should just patch Makefile.SH directly
+        # Do out work in the cross subdir
         cd Cross
-        cp -f ${WORKDIR}/Makefile.SH.patch .
 
         # Generate configuration
         rm -f config.sh-${TARGET_ARCH}-${TARGET_OS}
@@ -88,8 +88,6 @@ do_configure() {
         rm -f config
         echo "ARCH = ${TARGET_ARCH}" > config
         echo "OS = ${TARGET_OS}" >> config
-
-        oe_runmake patch
 }
 do_compile() {
         if test "${MACHINE}" != "native"; then






More information about the Openembedded-commits mailing list