Package: uaputl
Version: 1.12-1
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch
Hi,
We're discovered an issue with uaputl 1.12-1 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/uaputl-1.12'
cc -Wall -c -o uaputl.o uaputl.c
uaputl.c: In function 'apcmd_sys_config':
uaputl.c:3817:29: warning: 'argv_dummy' may be used uninitialized in
this function [-Wuninitialized]
cc -Wall -c -o uapcmd.o uapcmd.c
cc -lrt -o uaputl uaputl.o uapcmd.o
cp: cannot create regular file `../../uaputl': Permission denied
make[1]: *** [build] Error 1
make[1]: Leaving directory `/build/buildd/uaputl-1.12'
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 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:
install -d $(CURDIR)/debian/tmp
INSTALLDIR=$(CURDIR)/debian/tmp dh_auto_build
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
uaputl_1.12-1ubuntu1.debdiff
Description: Binary data