Package Details: aurutils 3.1.2-2

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
Licenses: custom:ISC
Submitter: Alad
Maintainer: Alad (runical, cgirard, maximbaz)
Last Packager: maximbaz
Votes: 177
Popularity: 2.63
First Submitted: 2016-03-26 19:17
Last Updated: 2021-01-04 20:31

Pinned Comments

Alad commented on 2020-11-09 13:17

AUR_LIB_DIR was not correctly subsituted in aurutils 3.1.1. The fix is in 3.1.2. To update:

git clone https://aur.archlinux.org/aurutils.git
cd aurutils
/usr/lib/aurutils/aur-build

Latest Comments

1 2 3 4 5 6 ... Next › Last »

brisbin33 commented on 2021-01-05 17:56

OK, I think I figured out what I need to do to address this. It seems kind of strange, but...

For context, I have the following lines at the end of /etc/pacman.conf:

# aurto repo
Include = /etc/pacman.d/aurto

Which reference /etc/pacman.d/aurto:

[aurto]
SigLevel = Optional TrustAll
Server = file:///var/cache/pacman/aurto

These lines can't be removed, or else I get error: no sync db 'aurto' configured

It seems I need to also add the same content into /etc/aurutils/pacman-aurto.conf after starting it as a copy of /usr/share/devtools/pacman-extra.conf:

# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
# We cannot check disk space from within a chroot environment
#CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
[aurto]
SigLevel = Optional TrustAll
Server = file:///var/cache/pacman/aurto

After that, things seem to work.

Alad commented on 2021-01-04 17:59

Starting with aurutils 3.0 you need a seperate pacman configuration in /etc/aurutils/pacman-<repo name>.conf for chroot builds.

https://pkgbuild.com/~alad/aurutils_3.html#mozTocId493532

This is mentioned in the .install file, but apparently I forgot to reference it in the PKGBUILD...

brisbin33 commented on 2021-01-04 16:40

I tried that fix and the problem remains:

% git clone https://aur.archlinux.org/aurutils.git
cd aurutils                                       
/usr/lib/aurutils/aur-build
Cloning into 'aurutils'...
remote: Enumerating objects: 414, done.
remote: Counting objects: 100% (414/414), done.
remote: Compressing objects: 100% (283/283), done.
remote: Total 414 (delta 132), reused 413 (delta 131), pack-reused 0
Receiving objects: 100% (414/414), 84.50 KiB | 692.00 KiB/s, done.
Resolving deltas: 100% (132/132), done.
==> WARNING: build: skipping existing package (use -f to overwrite)
/var/cache/pacman/aurto/aurutils-3.1.2-1-any.pkg.tar.zst

Just to be sure, I manually installed the built package too:

% p -U /var/cache/pacman/aurto/aurutils-3.1.2-1-any.pkg.tar.zst
loading packages...
warning: aurutils-3.1.2-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) aurutils-3.1.2-1

Total Installed Size:  0.10 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
...

But still:

% aurto add aur-release-git
aurto: Checking maintainer trust... ✓
aurto: Running: aur sync --no-view --no-confirm --chroot --database=aurto --makepkg-conf=/etc/aurto/makepkg-chroot.conf aur-release-git
 Retrieving package files 
==> Using [aurto] repository
  -> aur-release-git: (none) -> 1.0.0-1
==> Retrieving package files
From https://aur.archlinux.org/aur-release-git
 = [up to date]      master     -> origin/master
Running aur chroot --create --makepkg-conf /etc/aurto/makepkg-chroot.conf --pacman-conf /etc/aurutils/pacman-aurto.conf
chroot: /etc/aurutils/pacman-aurto.conf is not a file
`aur sync --no-view --no-confirm --chroot --database=aurto --makepkg-conf=/etc/aurto/makepkg-chroot.conf aur-release-git` failed with exit code 2 ✗

Anything else I can try?

krakenfury commented on 2020-12-22 17:12

I guess I haven't installed any new aur packages in a few aurutils releases, because it looks broken for me:

aur sync -c butt
==> Using [custom] repository
  -> butt: (none) -> 0.1.25-1
==> Retrieving package files
From https://aur.archlinux.org/butt
 = [up to date]      master     -> origin/master
Running aur chroot --create --pacman-conf /etc/aurutils/pacman-custom.conf
chroot: /etc/aurutils/pacman-custom.conf is not a file

The man page for aur chroot says the default for --pacman-conf is in /usr/share/devtools/pacman-extra.conf. Am I correct in assuming aur sync -c used to use the default? If so, seems like making a copy of /usr/share/devtools/pacman-extra.conf to /etc/aurutils/pacman-custom.conf is the fix. Apologies if I missed some instruction or communication regarding this.

Alad commented on 2020-11-30 11:18

That's an issue with your sudo configuration. You can either set NOPASSWD for pacman/devtools invocations (see man aur-build), or set the timeout to 0.

https://wiki.archlinux.org/index.php/Sudo#Disable_password_prompt_timeout

Also: if the timeout occurred after the build was completed, you can run "pacsync <your repo name>" to reflect the changes in pacman -S.

myridium commented on 2020-11-30 09:35

Please fix the long-standing issue of a sudo: timed out reading password leaving the package database in a state of disrepair.

Alad commented on 2020-11-09 13:17

AUR_LIB_DIR was not correctly subsituted in aurutils 3.1.1. The fix is in 3.1.2. To update:

git clone https://aur.archlinux.org/aurutils.git
cd aurutils
/usr/lib/aurutils/aur-build

Alad commented on 2020-11-03 16:12

Thanks, fixed in 3.0.3-2

codicodi commented on 2020-11-03 14:45

3.0.3-1 build fails with: /startdir/PKGBUILD: line 29: cd: aurutils: No such file or directory The source subdir is versioned: aurutils-3.0.3

 build() {
-    cd aurutils
+    cd aurutils-$pkgver
     make
 }

 package() {
-    cd aurutils
+    cd aurutils-$pkgver
     make DESTDIR="$pkgdir" install
 }

Alad commented on 2020-10-29 21:31

Added in 3.0.0-2