pbuild fails with "Permission denied"
Loïc Minier
lool at dooz.org
Mon May 17 08:56:15 UTC 2010
Hi
On Sun, May 16, 2010, Ole Streicher wrote:
> I am quite new to pbuilder, and could already successfully build two
> packages. Howeverm my third package fails within the build process:
>
> [...]
> make[2]: Leaving directory `/build/buildd/libwcs-4.4.4/utils'
> /usr/bin/install -c -m 644 C/libwcs-4.4.4.a /usr/lib
> /usr/bin/install: cannot create regular file `/usr/lib/libwcs-4.4.4.a': Permission denied
This means you're trying to install to the system directory /usr/lib;
change your debian/rules to install to debian/tmp, and to copy to
binary packages in debian/name-of-package/. Usually, make install
DESTIR=debian/tmp + dh_install or something like that.
> When building directly, everything works fine.
This might be because you're building as root, DO NOT build as root.
HTH
--
Loïc Minier
More information about the Pbuilder-maint
mailing list