Bug#632871: Add support for cross-building perl modules

Steve McIntyre <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <20110706170349.GB8279__31971.9851519496$1309971981$gmane$org@linaro.org>
Package: dpkg-cross
Version: 2.6.4
Tags: patch
User: [email protected]
Usertags: cross

Hi,

I'm working on cross-building perl modules at the moment, which also
means cross-building perl itself. Then the Config.pm and
Config_heavy.pl config scripts need to be included in the crossed
perl-base package. This patch makes dpkg-cross support that.

--- /usr/bin/dpkg-cross~        2011-04-06 17:28:11.000000000 +0000
+++ /usr/bin/dpkg-cross 2011-07-06 10:54:15.357147784 +0000
@@ -864,6 +864,9 @@
                } elsif (m:^/usr/(lib/.*/tclConfig.sh):) {
                        # the tcl cross-configure script
                        link_file("$src$_", "$dst$crossdir/$1") or goto fail;
+               } elsif (m:^/usr/(lib/.*/(Config.pm|Config_heavy.pl)):) {
+                       # the perl cross-configure scripts
+                       link_file("$src$_", "$dst$crossdir/$1") or goto fail;
                } else {
                        # everything else
                        next;


Cheers,
-- 
Steve McIntyre
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.