git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git Perl module not installed to --prefix

From
Peter Colberg <peter@colberg.org>
Date
Sep 13, 2012, 18:30 UTC
Message-ID
<20120913183019.GA15312@pignolo.chem.utoronto.ca>
Hi,

I have trouble installing the Git Perl module to the correct installation prefix, which is required for git send-email.

The problem is reproducible with the following commands:
    ./configure --prefix=/home/peter/usr/rhel6-x86_64/git-1.7.12
    make
    make install
While git is installed to --prefix, the Git Perl module is not:
    …
    make -C templates DESTDIR='' install
    make[2]: Entering directory `/tmp/git/git-1.7.12/templates'
    install -d -m 755 '/home/peter/usr/rhel6-x86_64/git-1.7.12/share/git-core/templates'
    (cd blt && gtar cf - .) | \
            (cd '/home/peter/usr/rhel6-x86_64/git-1.7.12/share/git-core/templates' && umask 022 && gtar xof -)
    make[2]: Leaving directory `/tmp/git/git-1.7.12/templates'
    install -d -m 755 '/home/peter/usr/rhel6-x86_64/git-1.7.12/libexec/git-core/mergetools'
    install -m 644 mergetools/* '/home/peter/usr/rhel6-x86_64/git-1.7.12/libexec/git-core/mergetools'
    install -d -m 755 '/home/peter/usr/rhel6-x86_64/git-1.7.12/share/locale'
    (cd po/build/locale && gtar cf - .) | \
            (cd '/home/peter/usr/rhel6-x86_64/git-1.7.12/share/locale' && umask 022 && gtar xof -)
    make -C perl prefix='/home/peter/usr/rhel6-x86_64/git-1.7.12' DESTDIR='' install
    make[2]: Entering directory `/tmp/git/git-1.7.12/perl'
    make[3]: Entering directory `/tmp/git/git-1.7.12/perl'
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/I18N.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/IndexInfo.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Log.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Fetcher.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Ra.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Prompt.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Migration.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Utils.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Editor.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/GlobSpec.pm
    Installing /home/peter/usr/rhel6-x86_64/share/perl5/Git/SVN/Memoize/YAML.pm
    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Prompt.3pm
    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Fetcher.3pm
    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Editor.3pm
    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::I18N.3pm
    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Memoize::YAML.3pm
    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Ra.3pm
    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git.3pm
    Installing /home/peter/usr/rhel6-x86_64/share/man/man3/Git::SVN::Utils.3pm
    Appending installation info to /home/peter/usr/rhel6-x86_64/lib64/perl5/perllocal.pod
    make[3]: Leaving directory `/tmp/git/git-1.7.12/perl'
    make[2]: Leaving directory `/tmp/git/git-1.7.12/perl'
    …
As seen above, the perl module is installed to the parent directory.
Strangely, if perl/Makefile is invoked manually, it works:
    make -C perl prefix='/home/peter/usr/rhel6-x86_64/git-1.7.12' DESTDIR='' install
    make: Entering directory `/tmp/git/git-1.7.12/perl'
    make[1]: Entering directory `/tmp/git/git-1.7.12/perl'
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/I18N.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/IndexInfo.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Log.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Fetcher.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Ra.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Prompt.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Migration.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Utils.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Editor.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/GlobSpec.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/perl5/Git/SVN/Memoize/YAML.pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Prompt.3pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Fetcher.3pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Editor.3pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::I18N.3pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Memoize::YAML.3pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Ra.3pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git.3pm
    Installing /home/peter/usr/rhel6-x86_64/git-1.7.12/share/man/man3/Git::SVN::Utils.3pm
    Appending installation info to /home/peter/usr/rhel6-x86_64/git-1.7.12/lib64/perl5/perllocal.pod
    make[1]: Leaving directory `/tmp/git/git-1.7.12/perl'
    make: Leaving directory `/tmp/git/git-1.7.12/perl'

Thanks, Peter

Next: Peter Colberg
Message 1 of 2 in “Git Perl module not installed to --prefix”
  1. Peter ColbergSep 13, 2012
  2. Peter ColbergSep 13, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.