Weblog entry #17 for lykwydchykyn
****************************************
/usr/bin/make install DESTDIR=/home/alanm/packages/jwm-2.0.1/debian/jwm prefix=/home/alanm/packages/jwm-2.0.1/debian/jwm
make[1]: Entering directory `/home/alanm/packages/jwm-2.0.1'
/usr/bin/make -C src all
make[2]: Entering directory `/home/alanm/packages/jwm-2.0.1/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/alanm/packages/jwm-2.0.1/src'
/usr/bin/make -C src install
make[2]: Entering directory `/home/alanm/packages/jwm-2.0.1/src'
install -d /usr/bin
install jwm /usr/bin/jwm
install: cannot remove `/usr/bin/jwm': Permission denied
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/alanm/packages/jwm-2.0.1/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/alanm/packages/jwm-2.0.1'
make: *** [install] Error 2
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit status 2
*******************************
It's as though "make install" is trying to install to /usr/bin instead of the build directory. Am I missing a step here?
Comments on this Entry
[ Send Message | View Steve's Scratchpad | View Weblogs ]
It seems clear that the Makefile is ignoring the DESTDIR setting you've passed to it.
I'd suggest you read the contents of the file to see if it is supposed to use it. Much software uses PREFIX instead of DESTDIR - and some software doesn't come with out of the box support for non-global installation at all, so you'll need to edit the Makefile yourself to add it ..
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
It depends is the best answer I could give. I fixup packages to install with a prefix, in general, and as you say that change would make it into the diff.gz file.
If you've got a Debian package, and you've extracted it vai "apt-get source" then the diff.gz file has already been applied - everything in "debian/" comes from there for a start.
If I run "apt-get source jwm", and then immediately change into that directory and run "debuild -sa" I see this:
.. make[2]: Leaving directory `/tmp/jwm-2.0.1/src' /usr/bin/make -C src install make[2]: Entering directory `/tmp/jwm-2.0.1/src' install -d /tmp/jwm-2.0.1/debian/jwm/usr/bin install -m 0755 jwm /tmp/jwm-2.0.1/debian/jwm/usr/bin/jwm make[2]: Leaving directory `/tmp/jwm-2.0.1/src' ..
So oddly it works for me..
I guess you
[ Parent | Reply to this comment ]