Skip to content

Instantly share code, notes, and snippets.

@faxm0dem
Created November 19, 2012 09:53
Show Gist options
  • Save faxm0dem/4109897 to your computer and use it in GitHub Desktop.
Save faxm0dem/4109897 to your computer and use it in GitHub Desktop.
INSTALLDIRS
# apparently combining INSTALL_BASE and INSTALLDIRS doesn't work (as with PREFIX+INSTALLDIRS):
# pwd
/tmp/pff/collectd-5.2.0/bindings/perl
# perl Makefile.PL PREFIX=/tmp/test INSTALLDIRS=vendor
Writing Makefile for Collectd
# make install
Skip blib/lib/Collectd/Plugins/OpenVZ.pm (unchanged)
Skip blib/lib/Collectd/Unixsock.pm (unchanged)
Skip blib/lib/Collectd/Plugins/Monitorus.pm (unchanged)
Skip blib/lib/Collectd.pm (unchanged)
Manifying blib/man3/Collectd::Unixsock.3pm
Installing /tmp/test/share/perl5/vendor_perl/Collectd.pm
Installing /tmp/test/share/perl5/vendor_perl/Collectd/Unixsock.pm
Installing /tmp/test/share/perl5/vendor_perl/Collectd/Plugins/OpenVZ.pm
Installing /tmp/test/share/perl5/vendor_perl/Collectd/Plugins/Monitorus.pm
Installing /tmp/test/share/man/man3/Collectd::Unixsock.3pm
Appending installation info to /tmp/test/lib64/perl5/perllocal.pod
# perl Makefile.PL INSTALL_BASE=/tmp/test INSTALLDIRS=vendor
Writing Makefile for Collectd
# make install
Skip blib/lib/Collectd/Plugins/OpenVZ.pm (unchanged)
Skip blib/lib/Collectd/Unixsock.pm (unchanged)
Skip blib/lib/Collectd/Plugins/Monitorus.pm (unchanged)
Skip blib/lib/Collectd.pm (unchanged)
Manifying blib/man3/Collectd::Unixsock.3pm
Installing /tmp/test/lib/perl5/Collectd.pm
Installing /tmp/test/lib/perl5/Collectd/Unixsock.pm
Installing /tmp/test/lib/perl5/Collectd/Plugins/OpenVZ.pm
Installing /tmp/test/lib/perl5/Collectd/Plugins/Monitorus.pm
Installing /tmp/test/man/man3/Collectd::Unixsock.3pm
Appending installation info to /tmp/test/lib/perl5/x86_64-linux-thread-multi/per
llocal.pod
#
# ./configure 'CFLAGS=-DLT_LAZY_OR_NOW='\\''RTLD_LAZY|RTLD_GLOBAL'\\'' -g -O0' --p
refix=/usr --sbindir=/usr/sbin --mandir=/usr/share/man --libdir=/usr/lib64 --sys
confdir=/etc --disable-battery --disable-notify_desktop --enable-debug --with-pe
rl-bindings="INSTALLDIRS=vendor"
[...]
$ make install DESTDIR=/tmp/pff-dest/
[...]
$ find /tmp/pff-dest -name \*pm
/tmp/pff-dest/usr/man/man3/Collectd::Unixsock.3pm
/tmp/pff-dest/usr/lib/perl5/Collectd.pm
/tmp/pff-dest/usr/lib/perl5/Collectd/Unixsock.pm
/tmp/pff-dest/usr/lib/perl5/Collectd/Plugins/OpenVZ.pm
######### with 5.1.0 ############
# ./configure 'CFLAGS=-DLT_LAZY_OR_NOW='\\''RTLD_LAZY|RTLD_GLOBAL'\\'' -g -O0' --p
refix=/usr --sbindir=/usr/sbin --mandir=/usr/share/man --libdir=/usr/lib64 --sys
confdir=/etc --disable-battery --disable-notify_desktop --enable-debug --with-pe
rl-bindings="INSTALLDIRS=vendor"
[...]
$ make install DESTDIR=/tmp/pff-dest2/
[...]
$ find /tmp/pff-dest2 -name \*pm
/tmp/pff-dest2/usr/share/man/man3/Collectd::Unixsock.3pm
/tmp/pff-dest2/usr/share/perl5/vendor_perl/Collectd.pm
/tmp/pff-dest2/usr/share/perl5/vendor_perl/Collectd/Unixsock.pm
/tmp/pff-dest2/usr/share/perl5/vendor_perl/Collectd/Plugins/OpenVZ.pm
/tmp/pff-dest2/usr/share/perl5/vendor_perl/Collectd/Plugins/Monitorus.pm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment