Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#15 make install DESTDIR=... support

closed-accepted
nobody
None
5
2006-02-14
2005-07-17
Ville Skyttä
No

Here's a patch which adds support for staged installs using
"make install DESTDIR=...".

Discussion

  • Ville Skyttä
    Ville Skyttä
    2005-07-17

    support for make install DESTDIR=...

     
    Attachments
  • Werner Baumann
    Werner Baumann
    2005-10-08

    Logged In: YES
    user_id=1260327

    Hello Ville,

    This issue is already addressed by the GNU build system. It
    is a configuration time option and should not be placed in
    Makefile.in.

    You can do a
    ./configure --prefix=whateveryouwish
    to achive this goal.

    Please see
    ./configure --help

    This will not work for the localstatedir, as I disagree with
    the defaults of the GNU build system in this case. As
    localstatedir contains variable data it should not be in
    /usr according to the File System Hierarchy Standard. I
    hardcoded /var/run in Makefile.in. But maybe there is a
    better way to allow changes at configuration time (should be
    done in configure.in).

    Greetings
    Werner

     
  • Ville Skyttä
    Ville Skyttä
    2005-10-08

    Logged In: YES
    user_id=32457

    ./configure --prefix=... is not the same thing as support for staged
    installs using DESTDIR. See the autoconf/automake
    documentation.

    Proper DESTDIR support enables support for configuring the
    software to its final runtime location using ./configure, but
    installing it into a temporary staging dir without affecting the
    configured install paths, for example when building rpm or
    debian etc packages of the software.

     
  • Werner Baumann
    Werner Baumann
    2005-10-12

    Logged In: YES
    user_id=1260327

    Now I see the point.
    Added the patch to cvs. Thanks to Ville.

    Werner

     
  • Werner Baumann
    Werner Baumann
    2006-02-14

    • status: open --> closed-accepted