Package Details: aurutils 19.3-1

Git Clone URL: https://aur.archlinux.org/aurutils.git (read-only, click to copy)
Package Base: aurutils
Description: helper tools for the arch user repository
Upstream URL: https://github.com/AladW/aurutils
Keywords: aur aur-helper helper
Licenses: custom:ISC
Submitter: Alad
Maintainer: Alad (rafasc, cgirard, maximbaz, zoorat)
Last Packager: Alad
Votes: 265
Popularity: 2.07
First Submitted: 2016-03-26 19:17 (UTC)
Last Updated: 2024-03-30 10:39 (UTC)

Dependencies (14)

Sources (1)

Pinned Comments

Alad commented on 2023-05-21 12:54 (UTC) (edited on 2023-05-21 12:54 (UTC) by Alad)

After the git migration and introduction of pkgctl with devtools 1.0.0, it is recommended to recreate all aurutils chroots and update any pacman configuration in /etc/aurutils/pacman-x86_64.conf.

rm -rf /var/lib/aurbuild
cp /usr/share/devtools/pacman.conf.d/extra.conf /etc/aurutils/pacman-x86_64.conf
vim /etc/aurutils/pacman-x86_64.conf  # add local repository

https://archlinux.org/news/git-migration-completed/

Latest Comments

« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 11 12 13 14 Next › Last »

Alad commented on 2019-10-31 21:49 (UTC)

I've updated the neomutt-git package. Thanks.

brianbuccola commented on 2019-10-31 21:23 (UTC)

Thanks @maximbaz, you were right. Changing s/-/./g to s/-//g in the git describe line of pkgver() in the PKGBUILD fixed the issue.

maximbaz commented on 2019-10-31 12:30 (UTC)

It's probably an issue with neomutt-git, whose pkgver() returns 2019.10.25.r58.g71b81b594-1 instead of 20191025.r58.g71b81b594-1

brianbuccola commented on 2019-10-31 12:24 (UTC) (edited on 2019-10-31 12:26 (UTC) by brianbuccola)

Hi Alad, I've just installed neomutt-git, and aurutils thinks it needs to be upgraded (actually, downgraded) because the installed version differs from the AUR version:

% pacman -Sl custom | grep "\[installed\]" | cut -d' ' -f2,3 | aur vercmp
neomutt-git: 2019.10.25.r58.g71b81b594-1 -> 20180716.r180.gb6a602e8a-1

And when I run "aur -uc", it starts to reinstall neomutt-git:

==> Using [custom] repository
  -> neomutt-git: 2019.10.25.r58.g71b81b594-1 -> 20180716.r180.gb6a602e8a-1
...
==> WARNING: skipping built package (use -f to overwrite)
/var/cache/pacman/custom/neomutt-git-2019.10.25.r58.g71b81b594-1-x86_64.pkg.tar.xz

I'm not sure whether this is an aurutils issue or a neomutt-git issue, but since you maintain both packages, I figured you might be able to help. Thanks.

brisbin33 commented on 2019-10-29 18:32 (UTC)

Sorry about that, I didn't realize which package I was commenting on.

Alad commented on 2019-10-28 21:13 (UTC)

That code isn't available anywhere in aurutils. If anywhere, mention it to aurto.

brisbin33 commented on 2019-10-28 21:07 (UTC) (edited on 2019-10-28 21:08 (UTC) by brisbin33)

I believe this is the problem:

echo "Running: aur sync --no-view --no-confirm --database=aurto --makepkg-conf=/etc/aurto/makepkg-chroot.conf $chroot_arg --upgrades" >&2
sudo -u "$user" \

Without -E, sudo will not pass GNUPGHOME on to the invoked command, so it won't be able to find my keys.

However, -E is not the default behavior for some (I assume) security reasons, so I'm not sure you want to make that change. WDYT?

brisbin33 commented on 2019-10-28 20:59 (UTC)

Thanks for the quick reply, I edited my previous comment, but I'll repeat here too:

I created a systemd "drop in":

% sudo systemctl cat update-aurto.service
# /usr/lib/systemd/system/update-aurto.service
[Unit]
Description=Updates 'aurto' repo
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/lib/aurto/update-aurto

# /etc/systemd/system/update-aurto.service.d/10-gnupg.conf
[Service]
Environment=GNUPGHOME=/home/patrick/.config/gnupg

I executed the daemon-reload and restarted the service, but the error persists: unknown public key. Hmm.

Alad commented on 2019-10-28 20:54 (UTC)

Try setting GNUPGHOME.

brisbin33 commented on 2019-10-28 20:51 (UTC) (edited on 2019-10-28 20:57 (UTC) by brisbin33)

Hi Alad, is it incorrect to expect the update-aurto systemd unit to work again after running --recv-keys?

It does not, so I'm not sure if there's more to debug, or if I'm expected to build aurto once manually before that'll work again.

% gpg --recv-keys DBE7D3DD8C81D58D0A13D0E76BC26A17B9B7018A
gpg: key 6BC26A17B9B7018A: 12 duplicate signatures removed
gpg: key 6BC26A17B9B7018A: 33 signatures not checked due to missing keys
gpg: key 6BC26A17B9B7018A: 12 signatures reordered
gpg: key 6BC26A17B9B7018A: "Alad Wenter <alad@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Logs:

Oct 28 16:27:01 leo update-aurto[90105]: ==> WARNING: PACKAGER should have the format 'Example Name <email@address.invalid>'
Oct 28 16:27:01 leo update-aurto[90105]: ==> Making package: aurutils 2.3.2-1 (Mon Oct 28 16:27:01 2019)
Oct 28 16:27:01 leo update-aurto[90105]: ==> Retrieving sources...
Oct 28 16:27:01 leo update-aurto[90105]:   -> Found aurutils-2.3.2.tar.gz
Oct 28 16:27:01 leo update-aurto[90105]:   -> Found aurutils-2.3.2.tar.gz.asc
Oct 28 16:27:01 leo update-aurto[90105]: ==> Validating source files with sha256sums...
Oct 28 16:27:01 leo update-aurto[90105]:     aurutils-2.3.2.tar.gz ... Passed
Oct 28 16:27:01 leo update-aurto[90105]:     aurutils-2.3.2.tar.gz.asc ... Skipped
Oct 28 16:27:01 leo update-aurto[90105]: ==> Verifying source file signatures with gpg...
Oct 28 16:27:01 leo update-aurto[90105]:     aurutils-2.3.2.tar.gz ... FAILED (unknown public key 6BC26A17B9B7018A)
Oct 28 16:27:01 leo update-aurto[90105]: ==> ERROR: One or more PGP signatures could not be verified!
Oct 28 16:27:01 leo update-aurto[90105]: ==> ERROR: Could not download sources.
Oct 28 16:27:01 leo update-aurto[90105]: `aur sync --no-view --no-confirm --database=aurto --makepkg-conf=/etc/aurto/makepkg-chroot.conf --chroot --upgrades` failed with exit code 255 ✗
Oct 28 16:27:01 leo sudo[90119]: pam_unix(sudo:session): session closed for user patrick
Oct 28 16:27:01 leo systemd[1]: update-aurto.service: Main process exited, code=exited, status=255/EXCEPTION
Oct 28 16:27:01 leo systemd[1]: update-aurto.service: Failed with result 'exit-code'.

I use an alternative GPG home directory (~/.config/gnupg) so it's possible I need to export an environment variable somewhere to make this unit aware of that?

EDIT: I created a systemd "drop in":

% sudo systemctl cat update-aurto.service
# /usr/lib/systemd/system/update-aurto.service
[Unit]
Description=Updates 'aurto' repo
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/lib/aurto/update-aurto

# /etc/systemd/system/update-aurto.service.d/10-gnupg.conf
[Service]
Environment=GNUPGHOME=/home/patrick/.config/gnupg

But the error persists.