Summary: | template perl script error (--prefix) | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Patrick Girard <patrick.girard> |
Component: | general | Assignee: | KDevelop-Devel List <kdevelop-devel> |
Status: | CLOSED INTENTIONAL | ||
Severity: | normal | CC: | halls |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Patrick Girard
2003-02-17 13:41:09 UTC
I'm unsure of a way around this automatically using autotools. I think the best solution is to run a "make distclean" on that directory, if not on kdevelop itself when changing installation directories. Caleb I think I found a way to fix this. Should be updated in CVS. I'm afraid that the commits for this bug have broken the ability to do 'make install DESTDIR=/path/to/dir', such as used when building .debs. The reason is, the generated Makefile.ins look like this: install-data-local: script.local $(INSTALL_DATA) script.local $(DESTDIR)$(chellodir)/script #>- rm script.local #>+ 1 rm $(DESTDIR)script.local So 'make install DESDIR=/path/to/dir' would end up trying to: rm /path/to/dirscript.local Which doesn't exist, obviously. Removing the 'rm' line in all the Makefile.am's works for me, but I'm not sure why it was there in the first place and whether it is necessary. Chris I'm afraid that the commits for this bug have broken the ability to do 'make install DESTDIR=/path/to/dir', such as used when building .debs. The reason is, the generated Makefile.ins look like this: install-data-local: script.local $(INSTALL_DATA) script.local $(DESTDIR)$(chellodir)/script #>- rm script.local #>+ 1 rm $(DESTDIR)script.local So 'make install DESDIR=/path/to/dir' would end up trying to: rm /path/to/dirscript.local Which doesn't exist, obviously. Removing the 'rm' line in all the Makefile.am's works for me, but I'm not sure why it was there in the first place and whether it is necessary. Chris Ugh. It's there because if you rerun ./configure and change the --prefix directory, those changes do not get saved into the script.local files. Removing them was a dirty hack in order to force them to be remade each time. Someone with a better working knowledge of autotools might be able to help us out here. Could you check if using the following works: Instead of: rm script.local try rm ${srcdir}/script.local I don't think that will help either. I get this in the generated Makefile.in: #>- rm ${srcdir}/script.local #>+ 1 rm $(DESTDIR)${srcdir}/script.local BTW, looks like Ralf already removed these lines from the Makefile.am in CVS. ok, my rebuild finished, and to confirm: /bin/sh ../../../admin/mkinstalldirs /home/challs/kde/kdevelop/debian/tmp/usr/share/apps/kdevappwizard/template-pyqt mkdir -p -- /home/challs/kde/kdevelop/debian/tmp/usr/share/apps/kdevappwizard/template-pyqt install -p -c -m 644 script.local /home/challs/kde/kdevelop/debian/tmp/usr/share/apps/kdevappwizard/template-pyqt/script rm /home/challs/kde/kdevelop/debian/tmp./script.local rm: cannot remove `/home/challs/kde/kdevelop/debian/tmp./script.local': No such file or directory make[5]: *** [install-data-local] Error 1 |