Welcome to CRUX bug tracking.

FS#1861 - prt-get: Problem with makecommand and options passed to pkgmk

Attached to Project: CRUX
Opened by Feodor Petrov (teodor) - Thursday, 08 April 2021, 13:55 GMT
Last edited by Feodor Petrov (teodor) - Thursday, 08 April 2021, 15:42 GMT
Task Type Bug Report
Category tools → prt-get
Status New
Assigned To No-one
Operating System CRUX
Severity Low
Priority Normal
Reported Version 3.6
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


I don't have sudo in my system for security reasons.

I edited makecommand in /etc/prt-get.conf to point to a script which uses su to run pkgmk with fakeroot.

If run prt-get with options which it passes to pkgmk (-fr, -um, -im, -us, -is, -uf, -if, -ns, -kw), there is an error, saying that su gets an unknown option (for example -k, from -kw). That means su gets options which shoud be passed to pkgmk.

The problem is only with options for pkgmk (which mentioned above). No such problem with other options.

The script for makecommand:

exec su pkgmk -c "fakeroot -- pkgmk '$@'"
This task depends upon

Comment by Tim Biermann (tb) - Thursday, 29 April 2021, 12:52 GMT
just in case, you might like contrib/opendoas to substitute for sudo