{"thread":{"id":"31525","subject":"Git Perl module not installed to --prefix","startedAt":"2012-09-13T18:30:19Z","lastAt":"2012-09-13T18:40:59Z","messageCount":2,"participants":["Peter Colberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"198951","messageId":"20120913183019.GA15312@pignolo.chem.utoronto.ca","threadId":"31525","inReplyTo":null,"subject":"Git Perl module not installed to --prefix","fromName":"Peter Colberg","fromEmail":"peter@colberg.org","sentAt":"2012-09-13T18:30:19Z","receivedAt":"2012-09-13T18:30:19Z","isPatch":false,"sender":{"key":"peter@colberg.org","avatar":"https://avatars.githubusercontent.com/u/5453048?v=4"},"body":"Hi,\n\nI have trouble installing the Git Perl module to the correct\ninstallation prefix, which is required for git send-email.\n\nThe problem is reproducible with the following commands:\n\n    ./configure --prefix=/home/peter/usr/rhel6-x86_64/git-1.7.12\n    make\n    make install\n\nWhile git is installed to --prefix, the Git Perl module is not:\n\n    …\n    make -C templates DESTDIR='' install\n    make[2]: Entering directory `/tmp/git/git-1.7.12/templates'\n    install -d -m 755 '/home/peter/usr/rhel6-x86_64/git-1.7.12/share/git-core/templates'\n    (cd blt && gtar cf - .) | \\\n            (cd '/home/peter/usr/rhel6-x86_64/git-1.7.12/share/git-core/templates' && umask 022 && gtar xof -)\n    make[2]: Leaving directory `/tmp/git/git-1.7.12/templates'\n    install -d -m 755 '/home/peter/usr/rhel6-x86_64/git-1.7.12/libexec/git-core/mergetools'\n    install -m 644 mergetools/* '/home/peter/usr/rhel6-x86_64/git-1.7.12/libexec/git-core/mergetools'\n    install -d -m 755 '/home/peter/usr/rhel6-x86_64/git-1.7.12/share/locale'\n    (cd po/build/locale && gtar cf - .) | \\\n            (cd '/home/peter/usr/rhel6-x86_64/git-1.7.12/share/locale' && umask 022 && gtar xof -)\n    make -C perl prefix='/home/peter/usr/rhel6-x86_64/git-1.7.12' DESTDIR='' install\n    make[2]: Entering directory `/tmp/git/git-1.7.12/perl'\n    make[3]: Entering directory `/tmp/git/git-1.7.12/perl'\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/I18N.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/IndexInfo.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Log.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Fetcher.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Ra.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Prompt.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Migration.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Utils.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Editor.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/GlobSpec.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Memoize/YAML.pm\n    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Prompt.3pm\n    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Fetcher.3pm\n    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Editor.3pm\n    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::I18N.3pm\n    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Memoize::YAML.3pm\n    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Ra.3pm\n    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git.3pm\n    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Utils.3pm\n    Appending installation info to /home/peter/usr/rhel6-x86_64/lib64/perl5/perllocal.pod\n    make[3]: Leaving directory `/tmp/git/git-1.7.12/perl'\n    make[2]: Leaving directory `/tmp/git/git-1.7.12/perl'\n    …\n\nAs seen above, the perl module is installed to the parent directory.\n\nStrangely, if perl/Makefile is invoked manually, it works:\n\n    make -C perl prefix='/home/peter/usr/rhel6-x86_64/git-1.7.12' DESTDIR='' install\n\n    make: Entering directory `/tmp/git/git-1.7.12/perl'\n    make[1]: Entering directory `/tmp/git/git-1.7.12/perl'\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/I18N.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/IndexInfo.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Log.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Fetcher.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Ra.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Prompt.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Migration.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Utils.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Editor.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/GlobSpec.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Memoize/YAML.pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Prompt.3pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Fetcher.3pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Editor.3pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::I18N.3pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Memoize::YAML.3pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Ra.3pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git.3pm\n    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Utils.3pm\n    Appending installation info to /home/peter/usr/rhel6-x86_64/git-1.7.12/lib64/perl5/perllocal.pod\n    make[1]: Leaving directory `/tmp/git/git-1.7.12/perl'\n    make: Leaving directory `/tmp/git/git-1.7.12/perl'\n\nThanks,\nPeter\n"},{"id":"198954","messageId":"20120913184059.GB15312@pignolo.chem.utoronto.ca","threadId":"31525","inReplyTo":"20120913183019.GA15312@pignolo.chem.utoronto.ca","subject":"Re: Git Perl module not installed to --prefix","fromName":"Peter Colberg","fromEmail":"peter@colberg.org","sentAt":"2012-09-13T18:40:59Z","receivedAt":"2012-09-13T18:40:59Z","isPatch":false,"sender":{"key":"peter@colberg.org","avatar":"https://avatars.githubusercontent.com/u/5453048?v=4"},"body":"On Thu, Sep 13, 2012 at 02:30:19PM -0400, Peter Colberg wrote:\n> I have trouble installing the Git Perl module to the correct\n> installation prefix, which is required for git send-email.\n> \n> The problem is reproducible with the following commands:\n> \n>     ./configure --prefix=/home/peter/usr/rhel6-x86_64/git-1.7.12\n>     make\n>     make install\n> \n> While git is installed to --prefix, the Git Perl module is not:\n\nSorry, I have figured out the reason: The above commands are in fact\ninvoked from an installation makefile, which uses PREFIX as the\npackage installation prefix. Apparently this PREFIX variable was\ninherited by make install, but only for the perl module.\n\n    make -f packages.mk PREFIX=/home/peter/usr/rhel6-x86_64 CONCURRENCY_LEVEL=16 install-git\n\nIf I run configure/make/make install manually, it works fine.\n\nPlease excuse the false report.\n\nPeter\n"}]}