Subject: | Double Prefix problem with --destdir and --prefix |
See the following shell transcript (running on Mandriva Linux Cooker,
but also reproducible on Fedora Core 5):
<<<<
$ pwd
/home/shlomi/Download/unpack/perl/HTML-Widgets-NavMenu-1.0000
$ perl -MModule::Build -le 'print $Module::Build::VERSION'
0.2801
$ perl Build.PL
Checking whether your kit is complete...
Looks good
Checking prerequisites...
Looks good
Creating new 'Build' script for 'HTML-Widgets-NavMenu' version '1.0000'
$ ./Build
lib/HTML/Widgets/NavMenu/Tree/Iterator/Stack.pm ->
blib/lib/HTML/Widgets/NavMenu/Tree/Iterator/Stack.pm
lib/HTML/Widgets/NavMenu/Object.pm ->
blib/lib/HTML/Widgets/NavMenu/Object.pm
lib/HTML/Widgets/NavMenu.pm -> blib/lib/HTML/Widgets/NavMenu.pm
lib/HTML/Widgets/NavMenu/Predicate.pm ->
blib/lib/HTML/Widgets/NavMenu/Predicate.pm
lib/HTML/Widgets/NavMenu/Iterator/SiteMap.pm ->
blib/lib/HTML/Widgets/NavMenu/Iterator/SiteMap.pm
lib/HTML/Widgets/NavMenu/Tree/Iterator.pm ->
blib/lib/HTML/Widgets/NavMenu/Tree/Iterator.pm
lib/HTML/Widgets/NavMenu/Iterator/Html.pm ->
blib/lib/HTML/Widgets/NavMenu/Iterator/Html.pm
lib/HTML/Widgets/NavMenu/EscapeHtml.pm ->
blib/lib/HTML/Widgets/NavMenu/EscapeHtml.pm
lib/HTML/Widgets/NavMenu/Iterator/NavMenu/HeaderRole.pm ->
blib/lib/HTML/Widgets/NavMenu/Iterator/NavMenu/HeaderRole.pm
lib/HTML/Widgets/NavMenu/Url.pm -> blib/lib/HTML/Widgets/NavMenu/Url.pm
lib/HTML/Widgets/NavMenu/Iterator/NavMenu.pm ->
blib/lib/HTML/Widgets/NavMenu/Iterator/NavMenu.pm
lib/HTML/Widgets/NavMenu/Tree/Iterator/Item.pm ->
blib/lib/HTML/Widgets/NavMenu/Tree/Iterator/Item.pm
lib/HTML/Widgets/NavMenu/HeaderRole.pm ->
blib/lib/HTML/Widgets/NavMenu/HeaderRole.pm
lib/HTML/Widgets/NavMenu/TagGen.pm ->
blib/lib/HTML/Widgets/NavMenu/TagGen.pm
lib/HTML/Widgets/NavMenu/Iterator/Base.pm ->
blib/lib/HTML/Widgets/NavMenu/Iterator/Base.pm
lib/HTML/Widgets/NavMenu/Tree/Node.pm ->
blib/lib/HTML/Widgets/NavMenu/Tree/Node.pm
Manifying blib/lib/HTML/Widgets/NavMenu/HeaderRole.pm ->
blib/libdoc/HTML::Widgets::NavMenu::HeaderRole.3pm
Manifying blib/lib/HTML/Widgets/NavMenu.pm ->
blib/libdoc/HTML::Widgets::NavMenu.3pm
$ ./Build --destdir=/home/shlomi/Perl/ --prefix=/usr install
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Object.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Predicate.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/EscapeHtml.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Url.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/HeaderRole.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/TagGen.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Tree/Iterator.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Tree/Node.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Tree/Iterator/Stack.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Tree/Iterator/Item.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Iterator/SiteMap.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Iterator/Html.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Iterator/NavMenu.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Iterator/Base.pm
Installing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/HTML/Widgets/NavMenu/Iterator/NavMenu/HeaderRole.pm
Installing
/home/shlomi/Perl/usr/usr/local/share/man/man3/HTML::Widgets::NavMenu::HeaderRole.3pm
Installing
/home/shlomi/Perl/usr/usr/local/share/man/man3/HTML::Widgets::NavMenu.3pm
Writing
/home/shlomi/Perl/usr/usr/lib/perl5/site_perl/5.8.8/i386-linux/auto/HTML/Widgets/NavMenu/.packlist
## Differing version of HTML/Widgets/NavMenu.pm found. You might like to
rm /usr/lib/perl5/site_perl/5.8.7/HTML/Widgets/NavMenu.pm
## Running 'make install UNINST=1' will unlink this file for you.
$
Show quoted text
>>>>
As one can see Module::Build installs the modules under $DESTDIR/usr/usr
instead of $DESTDIR/usr.
I'll try to fix it myself, but when I tried to a few days ago, I broke
some of the tests.