Bug 382 - DESTDIR support is needed
DESTDIR support is needed
Status: RESOLVED FIXED
Product: Mktemp
Classification: Unclassified
Component: Build
1.6
All All
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-10 15:26 MST by Aleksey Cheusov
Modified: 2010-04-25 19:03 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksey Cheusov 2009-12-10 15:26:15 MST
It is common practice to support DESTDIR variable at installation time
in order to specify destination prefix directory.

That is 

  ./configure
   make
   make install DESTDIR=/tmp/.destdir.mktemp

should install mktemp(1) and man pages under
/tmp/.destdir.mktemp/usr/local/

Now it fails

 $ make DESTDIR=/tmp/1/2/3 install
 /bin/sh ./mkinstalldirs /usr/local/bin /usr/local/share/man/man1
 /bin/sh ./install-sh -c -m 0555 -s mktemp /usr/local/bin/mktemp
 cp: /usr/local/bin/26232.tmp: Permission denied
 *** Error code 1

 Stop.
 make: stopped in /tmp/mktemp-1.6
 $
Comment 1 Todd C. Miller 2010-04-25 19:03:38 MDT
Fix in mktemp 1.7