Sun 07 Nov 2004 08:37:28 AM UTC, comment #2:
Jay wrote:
> Yours is a clearly-worded comment, but I don't understand > it. Firstly, the construct you're talking about appears in > the Makefile.in, but not in the Makefile.am file. Hence it > is being put into the Makefile.in file by Automake. Is
> this a bug in Automake?
The construct appears in both Makefile.am (line and Makefile.in.
grep 'mkinstalldirs \$(locals' locate/Makefile.*
See patch attached to the bugreport, no bug in automake.
> Secondly, while I understand the physical nature of the
> change you suggest, what is its effect and why is it
> necessary?
"make DESTDIR" is designed to completely install the software under a temporary different location instead of /, it is e.g. used to build rpm or Debian packages. (During build you install in temporary directory as unprivileged user, tar it up and you are basically done.)
Currently locate/Makefile.* does not respect DESTDIR completely, with "make DESTDIR=/tmp/find install" it will put locate in /tmp/find/usr/bin/locate but it will try to generate the localstatedir (used for the locate-db) in /, i.e. try "mkdir /$localstatedir" instead of "mkdir /tmp/find/$localstatedir".
cu andreas
PS: sorry for the delayed response, but savannah had failed to send me a emailnotification on your followup.
|