tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: make package run as root
On Thu, Oct 17, 2019 at 03:32:31PM +0200, Manuel Bouyer wrote:
> Hello,
> while working on an upgrade of the sympa package, I'm running into an
> issue: make install is run under su as root (as expected, as there is
> no full destdir support) but privileges are dropped before 'make package':
> => Checking for missing run-time search paths in sympa-6.2.48
> WARNING: Skipping check for SSP in DESTDIR mode.
> => Checking for work-directory references in sympa-6.2.48
> => Dropping ``root'' privileges.
> => Creating binary package /usr/tmp/mail/sympa/work/.packages/sympa-6.2.48.tgz
> pkg_create: cannot open data file sympa/bin/sympa_newaliases-wrapper: Permission denied
> mv: rename /usr/tmp/mail/sympa/work/.packages/sympa-6.2.48.tmp.tgz to /usr/tmp/mail/sympa/work/.packages/sympa-6.2.48.tgz: No such file or directory
> *** Error code 1
>
> It fails because sympa/bin/sympa_newaliases-wrapper is mode 1550 (and we want
> it this way).
> What is the proper way to have 'make package' run under su too ?
Actually, it looks like it should be run as root. Building the same in
a chroot under pbulk doens't have this issue.
The difference is that in the chroot I don't have this in mk.conf:
PKG_DEVELOPER=yes
DEPENDS_TARGET=bin-install
BINPKG_SITES=/chroot/packages
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index