Package Details: aurutils 20.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: ISC
Submitter: Alad
Maintainer: Alad (rafasc, cgirard, maximbaz, zoorat)
Last Packager: Alad
Votes: 270
Popularity: 1.74
First Submitted: 2016-03-26 19:17 (UTC)
Last Updated: 2024-10-28 08:40 (UTC)

Dependencies (14)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 15 Next › Last »

Alad commented on 2021-12-07 11:29 (UTC)

It seems because nnn can't handle the case of redirected standard input. E.g. nnn /tmp < <(echo foo) shows no entries. ranger even aborts with an error.

abouvier commented on 2021-12-07 00:05 (UTC)

aur sync doesn't work anymore with AUR_PAGER=nnn, nothing is displayed after retrieving package files.

codicodi commented on 2021-12-06 22:49 (UTC)

3.2.2-1 has bad checksum. Looks like it wasn't updated since 3.2.1

Alad commented on 2021-12-06 15:08 (UTC)

Thanks, I've updated the install file.

grawlinson commented on 2021-12-01 16:41 (UTC)

Hi! The install file seems to give the wrong path for pacman.conf.

The post_upgrade script spits this out:

As of 3.2.0, if --chroot is specified without --database, aur-build assumes
pacman.conf is located in /etc/pacman-x86_64.conf.

But the release notes on GitHub states this:

If --chroot is specified without --database, aur-build assumes pacman.conf is located in /etc/aurutils/pacman-$(uname -m).conf. 

brisbin33 commented on 2021-01-05 17:56 (UTC)

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 (UTC) (edited on 2021-01-04 18:01 (UTC) by Alad)

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 (UTC)

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 (UTC) (edited on 2020-12-22 17:13 (UTC) by krakenfury)

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.