<i>unix: make install fails when DESTDIR is used</i> status still Open with 4 other changes
by
.
D 2012-12-28T15:16:05
J icomment DESTDIR\s!=\sprefix\n\nDESTDIR\sis\sa\sway\sfor\spackagers\sto\sinstall\sstuff\sinto\sa\sdifferent\slocation\sthan\swhere\sit\swill\sbe\sused\sfinally,\sso\sit\sdoesn't\sclutter\stheir\sbuild\smachine,\sand\sso\sthat\sthe\scan\ssee\swhich\sfiles\sare\sgetting\sinstalled.\n\nin\smy\sspecific\scase,\smy\sdistribution\suses\sprefix=/\sand\sDESTDIR=/opt/packagename\sfor\sany\spackage\sthat\sgets\sbuilt.\nthen\sa\sfilelist\sof\s/opt/packagename\sis\screated,\sand\sall\sfiles\sin\s/opt/packagename\sget\ssymlinked\sinto\s/\s(prefix).\nthis\sway,\sinstalling\sa\sbinary\spackage\sis\sas\seasy\sas\suntarring\sit\sinto\s/opt\s(or\ssome\salternative\slocation),\sand\sthen\scall\sa\sscript\swhich\screates\sthe\sfilelist\sand\ssymlinks\sit\sinto\splace.\nif\si\swould\suse\sprefix\sfor\sthis,\sinternal\sdependencies\sin\sthe\sgenerated\slibraries\sand\sbinaries\swould\spoint\sto\s/opt/packagename\sinstead\sof\sthe\sintended\sprefix.\n\npackages\susing\sautoconf\s(approx\s95-98%\sof\sall\spackages\son\sdebian)\sautomatically\sprovide\sthe\sdistinct\sprefix\sand\sDESTDIR\sfunctionality,\swhich\smakes\sthem\svery\seasy\sto\shandle\sfor\spackagers.\n\na\sproper\sMakefile\swhich\sadheres\sto\sthese\swidely\saccepted\sand\sused\sstandard\sjust\sinstall\sits\sfiles\sinto\s$(DESTDIR)$(prefix)\s(note\sthat\sthere\sare\sno\sslashes)\n\nso\sthe\scombination\sprefix=""\s(empty)\sand\sDESTDIR=/opt/tcl\swould\sinstall\stclsh\sinto\s/opt/tcl/bin\nand\sthe\sline\sin\sthe\smakefile\swould\slook\slike:\ninstall\s-D\s-m\s755\stclsh\s$(DESTDIR)$(prefix)/bin/\n
J login roflz
J mimetype text/plain
J username roflz
K 3598282fffffffffffffffffffffffffffffffff
U roflz
Z 11c1403778586569a621d2cc24064132