[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#632871: Problem in dpkg-cross/perl regexp

On Mon, Jul 18, 2011 at 02:25:33PM +0100, Steve McIntyre wrote:
>On Sun, Jul 17, 2011 at 04:51:20PM +0100, Neil Williams wrote:
>>tag 632871 - patch
>>tag 632871 + moreinfo
>>The problem with the patch is that it isn't specific for perl itself.
>>$ find /usr/lib -name Config.pm 
>>First one is for perl-base, second perl (are both relevant?), third the
>>Apt perl bindings. :-(
>Bugger, yes.
>>packages.debian.org search lists quite a few more (parrot and a few
>>random perl modules). (Is Config_heavy.pm a local / during build-only
>>module? Can't find that in Debian.)
>They're both generated by the cross-build of perl (#633884). Config.pm
>is the core config script used by the Makefile in a perl module to
>work out config. It, in turn, requires Config_heavy.pm.
>>I can't see a good way out of this though. The name of the file is just
>>too obvious and common and the location varies by version.
>  \/usr\/lib\/perl\/v\d+\.\d+\.\d+\/Config.pm
>might work? i.e. tie it down. Of course, with m-a this path is going
>to change at the same time as a lot of dpkg-cross has to change (or
>even goes away?)

Just tested:

                } elsif (m:^/usr/(lib/perl/\d+\.\d+\.\d/(Config.pm|Config_heavy.pl)):) {
                        # the perl cross-configure scripts
                        link_file("$src$_", "$dst$crossdir/$1") or goto fail;

seems to do the right thing for me, and is much more specific. Is that
better for you?

Steve McIntyre

Reply to: