Re: libtool cannot create a file in /usr/lib/x86_64-linux-gnu/ within pbuilder environment
On 27 August 2012 15:03, Paul Gevers <elbrus@debian.org> wrote:
>> `/usr/lib/x86_64-linux-gnu/libcupsfilters.so.1.0.0': Permission denied
>
> You don't have permissions, obviously. This is because pbuilder runs
> under the pbuilder user, not under root.
>
>> drwxr-xr-x 37 root root 4096 Aug 27 18:30 /usr/lib
>> drwxr-xr-x 14 root root 24576 Aug 27 18:30 /usr/lib/x86_64-linux-gnu/
>
> I think this actually catches an error. Why install in /usr/lib? I think
> it needs to install into your package, not in the pbuilder file
> structure. Probably some makefile or install script is installing into
> the wrong (hardcoded) location.
Looks like adding this line to debian/rules helped to solve the problem.
DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(CURDIR)/debian/tmp/
Thanks Paul!
-Alex
Reply to: