Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1223248

Bug#1089365: liblopsub: Supporting rootless builds by default

From Andre Noll <maan@tuebingen.mpg.de>
Newsgroups linux.debian.bugs.dist
Subject Bug#1089365: liblopsub: Supporting rootless builds by default
Date 2024-12-08 18:40 +0100
Message-ID <JRtq9-eSyU-7@gated-at.bofh.it> (permalink)
References <JRtq9-eSyU-9@gated-at.bofh.it> <JRtq9-eSyU-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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/

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1089365: liblopsub: Supporting rootless builds by default Andre Noll <maan@tuebingen.mpg.de> - 2024-12-08 18:40 +0100
  Bug#1089365: liblopsub: Supporting rootless builds by default Andre Noll <maan@tuebingen.mpg.de> - 2024-12-09 21:00 +0100
    Bug#1089365: liblopsub: Supporting rootless builds by default Andre Noll <maan@tuebingen.mpg.de> - 2024-12-10 19:00 +0100
      Bug#1089365: liblopsub: Supporting rootless builds by default Andre Noll <maan@tuebingen.mpg.de> - 2024-12-12 21:20 +0100

csiph-web