GNOME Bugzilla – Bug 81791
make DESTDIR=/pkgdir install - doesn't work correctly
Last modified: 2009-08-15 18:40:50 UTC
hola, i tried to create a package using: make DESTDIR=/pkgdir install This is supposed to copy the files to /pkgdir/"prefix" instead of /"prefix". It works for most of the files, but at the end (I think where it's trying to install some plugins) it ignores the DESTDIR and trys to install to the real destination instead.. which of course is bad because these files will be missing in the package. Max
Could you be a bit more specific about what happens "at the end"? It would be easier to check and fix this bug if you could point out when this occurs (in which directory/Makefile) and maybe what files are affected.
hello, i have removed gimp again and then recompiled / reinstalled to find the error. it's in .../gimp-1.2.3/plug-ins/perl/Makefile, at the line that reads: for plugin in * ; do \ /usr/bin/ginstall -c "$$plugin" $(gimpplugindir)/plug-ins/ ; \ done that should be changed to the following: for plugin in * ; do \ /usr/bin/ginstall -c "$$plugin" $(DESTDIR)$(gimpplugindir)/plug-ins/ ; \ done that seems to be enough to get it through the install process while using DESTDIR= though I have noticed another thing.. just a warning: libtool: install: warning: `../../libgimp/libgimpui.la' has not been installed in `/usr/local/lib' libtool: install: warning: `../../libgimp/libgimp.la' has not been installed in `/usr/local/lib' i get this warning a few dozen times. you think i can ignore that? or is it something else that needs to be fixed when running the installation with DESTDIR=? cya
I'd appreciate if Yosh would have a look at this.
Are you sure the perl examples are the only things not following $DESTDIR? AFAIK, the perl makefile stuff itself (which the perl installed on the users system generates) doesn't follow that either, so Gimp.pm etc. won't be installed within the $DESTDIR either. A quick search on the net reveals several other packages haven't solved this problem either. So $DESTDIR isn't supported with --enable-perl until perl is fixed itself. Packagers always seem to special case this.
Looks as if we can not do anything about this until someone finds a way to better integrate the build of gimp-perl with the rest of the GIMP build.
Fixed by Marc Lehmann: - use DESTDIR when installing plug-ins.
The fix is part of the stable release 1.2.4. Closing this bug.
Changing a bunch of bugs I missed (no idea why) to the gimp-perl product