pacutils icon indicating copy to clipboard operation
pacutils copied to clipboard

Support pacman 7.0

Open Foxboron opened this issue 1 year ago • 3 comments

pacconf returns an error, but I suspect there are other places as well. Needs to support DisableSandbox as well I assume?

warning: config /etc/pacman.conf line 39: unknown option 'DownloadUser'

Foxboron avatar Sep 09 '24 18:09 Foxboron

Please check with the pacman-7.0.0 branch.

andrewgregory avatar Sep 10 '24 21:09 andrewgregory

While the pacman-7.0.0 branch silences the warning about the unknown config option, it also does not correctly parse/display their value:

$ make clean
$ make SYSCONFDIR=/etc LOCALSTATEDIR=/var -j$(nproc)
$ LD_LIBRARY_PATH=lib/ ./src/pacconf --config=pacman.conf | grep -E "DisableSandbox|DownloadUser"
<no result>
$ LD_LIBRARY_PATH=lib/ ./src/pacconf --config=pacman.conf DisableSandbox DownloadUser
warning: unknown directive 'DisableSandbox'
warning: unknown directive 'DownloadUser'
$ grep -E "DisableSandbox|DownloadUser" pacman.conf
DownloadUser = alpm
DisableSandbox

I have sent a PR to fix it 😅

christian-heusel avatar Sep 12 '24 01:09 christian-heusel

well, we need a new release with the fixes. pacman 7 is out.

solsticedhiver avatar Sep 14 '24 16:09 solsticedhiver

The presence of DownloadUser in pacman.conf causes pacsync to fail with error: could not sync dbs (unexpected error). Using --debug doesn't give any information about it.

patlefort avatar Mar 14 '25 12:03 patlefort

Cannot reproduce.

andrewgregory avatar Mar 15 '25 02:03 andrewgregory

I can reproduce it by running pacsync as a normal user if DownloadUser is set. It will fail at trying to chown temporary download directories. Is syncing always expected to be running as root?

patlefort avatar Mar 15 '25 11:03 patlefort

Please open a separate issue about this then 😊

christian-heusel avatar Mar 15 '25 11:03 christian-heusel