CRUX

Welcome to CRUX bug tracking.
Tasklist

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 Tim Biermann (tb) - Saturday, 25 September 2021, 16:44 GMT
Task Type Bug Report
Category tools → prt-get
Status Closed
Assigned To No-one
Operating System CRUX
Severity Low
Priority Normal
Reported Version 3.6
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

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:
#!/bin/bash

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

Closed by  Tim Biermann (tb)
Saturday, 25 September 2021, 16:44 GMT
Reason for closing:  Invalid
Additional comments about closing:  sudo is the default, closing as invalid
Comment by Tim Biermann (tb) - Thursday, 29 April 2021, 12:52 GMT
just in case, you might like contrib/opendoas to substitute for sudo

Loading...