On Sat, Dec 07, 20:34, Niels Thykier wrote

> During a test rebuild for building packages with
> `Rules-Requires-Root: no` as the default in `dpkg`,
> liblopsub failed to rebuild.
> 
> Log Summary:

[...]
>  debian/rules clean
> rm -f debian/substvars
> /usr/bin/make distclean
> make[1]: Entering directory '/<<PKGBUILDDIR>>'

The looks weird. Instead of '/<<PKGBUILDDIR>>' this should print the
actual name of the build directory.

> install -p -d -o root -g root -m 755 /<<PKGBUILDDIR>>/debian/tmp/usr/lib
> install: cannot change owner and permissions of
> ‘/<<PKGBUILDDIR>>/debian/tmp/usr/lib’: Operation not permitted

This corresponds to the

        $(MAKE_DIR) $(TMPDIR)/usr/lib

line in debian/rules. Here MAKE_DIR expands to

        install -p -d -o root -g root -m 755

which fails due to insufficient permissions.

Omitting the -o and -g options would likely fix the problem, but
that might cause other issues because then all installed files and
directories will be owned by the UID/GID that invoked make.

What do you suggest?

Thanks
Andre
-- 
Max Planck Institute for Biology
Tel: (+49) 7071 601 829
Max-Planck-Ring 5, 72076 Tübingen, Germany
http://people.tuebingen.mpg.de/maan/

Reply via email to