Package: uapevent
Version: 1.4-1

Hi,

We're discovered an issue with uapevent while building it for Ubuntu
precise: it attempts to copy (install) compiled files to an
unreachable or restricted path:

make[1]: Entering directory `/build/buildd/uapevent-1.4'
cc  -Wall -c -o uapevent.o uapevent.c
cc -lrt -o uapevent uapevent.o
cp: cannot create regular file `../../uapevent': Permission denied
make[1]: *** [build] Error 1
make[1]: Leaving directory `/build/buildd/uapevent-1.4'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

On our buildds, this would essentially mean /, but on my system
(outside a chroot, but building in a separate directory than the
original source) it also means it tries to clobber the actual source
directory used, and fortunately fails to do so ;)

I was able to workaround the issue by adding a simple override to
dh_auto_build that would set INSTALLDIR to an absolute directory, thus
avoiding it being rewritten with "../..":

override_dh_auto_build:
        INSTALLDIR=$(CURDIR)/debian/tmp dh_auto_build


Kind regards,

Mathieu Trudel-Lapierre <mathieu...@gmail.com>
Freenode: cyphermox, Jabber: mathieu...@gmail.com
4096R/EE018C93 1967 8F7D 03A1 8F38 732E  FF82 C126 33E1 EE01 8C93



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to