[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CDBS and DESTDIR



Hi

Arjan Oosting wrote:
Op di, 22-03-2005 te 12:04 -0300, schreef Nelson A. de Oliveira:

-----BEGIN PGP SIGNED MESSAGE-----
I have used that because I saw on a debian-mentors list archive.
(http://lists.debian.org/debian-mentors/2004/07/msg00392.html)

Even when using
DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(DEB_DESTDIR)
I had no sucess.

This should work, but are you sure the upstream Makefile of your package
understands DESTDIR? If not you should patch the upstream Makefile.
Maybe you could send the upstream Makefile so we can have a look?

OK.
The original Makefile is available here:
http://biolinux.df.ibilce.unesp.br/naoliv/cdbs/Makefile

Since it doesn't have DESTDIR, I have created a patch (available here:
http://biolinux.df.ibilce.unesp.br/naoliv/cdbs/01-makefile.diff)

The patch is being applied OK. Using dpkg-buildpackage gives:

/usr/bin/install -s -m 755 bin/ali2gff /bin/
/usr/bin/install: cannot create regular file `/bin/ali2gff': Permission
denied

But with "make install DESTDIR=/tmp", the DESTDIR variable is OK:

/usr/bin/install -s -m 755 bin/ali2gff /tmp/bin/
/usr/bin/install: cannot create regular file `/tmp/bin/': Is a directory

It gaves an error, since there was no directory bin on /tmp, but the
DESTDIR was passed OK!

My debian/rules is this:

#!/usr/bin/make -f

DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes
DEB_DESTDIR = $(CURDIR)/debian/gff2aplot
DEB_MAKE_CLEAN_TARGET    := clean
DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(DEB_DESTDIR)
prefix=$(DEB_DESTDIR)

include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/class/perlmodule.mk

(The prefix is on the same line of DEB_MAKE_INSTALL_TARGET)

Thank you
Nelson



Reply to: