[Po4a-devel] [po4a-Bugs][314392] Installation doesn't fully respect PREFIX

po4a-bugs at alioth.debian.org po4a-bugs at alioth.debian.org
Wed Sep 4 18:01:17 UTC 2013


po4a-Bugs item #314392 was changed at 2013-09-04 12:01 by Justin Hallett
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=410622&aid=314392&group_id=30267

Status: Open
Priority: 3
Submitted By: Renato Botelho (garga-guest)
Assigned to: Denis Barbier (barbier-guest)
Summary: Installation doesn't fully respect PREFIX 
Category: None
Group: None
Resolution: None


Initial Comment:
I'm working to update po4a to 0.44 on FreeBSD ports tree, and I'm having issues when I set prefix to something != /usr/local. It installs some files on the PREFIX I defined and other files on /usr/local. I'm attaching a full buildlog so you can see which files are installed on /tmp/po4a-0.44 prefix and which ones are installed on /usr/local.

----------------------------------------------------------------------

Comment By: Justin Hallett (thesin-guest)
Date: 2013-09-04 12:01

Message:
I used 

perl -pi -e 's,install_sets[\(]\$self-(.)installdirs[\)]-.(\{)(.)bindoc.,install_map-\1\2\3blib/bindoc\3,g' Po4aBuilder.pm

to patch before build which gives me

my $mandir = $self->install_map->{'blib/bindoc'};

on line 135 of Po4aBuilder.pm

but now I get these errors, that is the right line cause I had no /usr/local but it's not not installed locales or intl man pages at all.

./Build install --install_path lib=/sw/lib/perl5 --install_path arch=/sw/lib/perl5/darwin-thread-multi-2level --install_path script=/sw/bin --install_path bin=/sw/bin --install_path bindoc=/sw/share/man/man1 --install_path libdoc=/sw/share/man/man3 --install_path binhtml=/sw/share/man/man1 --install_path libhtml=/sw/share/man/man3 destdir=/sw/src/fink.build/root-po4a-0.45-1
Use of uninitialized value $mandir in substitution (s///) at Po4aBuilder.pm line 136.
Use of uninitialized value $localedir in substitution (s///) at Po4aBuilder.pm line 141.


----------------------------------------------------------------------

Comment By: Denis Barbier (barbier-guest)
Date: 2013-09-04 10:11

Message:
Replace l.132 of Po4aBuilder.pm
    my $mandir = $self->install_sets($self->installdirs)->{'bindoc'};
by
    my $mandir = $self->install_map->{'blib/bindoc'};


----------------------------------------------------------------------

Comment By: Justin Hallett (thesin-guest)
Date: 2013-09-03 16:34

Message:
it does not, I can post my build log if it helps but 0.45 is doing the same thing.

----------------------------------------------------------------------

Comment By: Denis Barbier (barbier-guest)
Date: 2013-09-03 15:54

Message:
Hello,

I had trouble with Module::Build, and made some changes in 0.45.  Could you please check whether 0.45 fixes this bug?

----------------------------------------------------------------------

Comment By: Justin Hallett (thesin-guest)
Date: 2013-09-03 15:48

Message:
As the fink maintainer for po4a I can confirm this behaviour from 0.42 to 0.45, is there a patch or Build option to fix this yet?

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=410622&aid=314392&group_id=30267



More information about the Po4a-devel mailing list