Package Details: yay 12.4.2-1

Git Clone URL: https://aur.archlinux.org/yay.git (read-only, click to copy)
Package Base: yay
Description: Yet another yogurt. Pacman wrapper and AUR helper written in go.
Upstream URL: https://github.com/Jguer/yay
Keywords: arm AUR go helper pacman wrapper x86
Licenses: GPL-3.0-or-later
Submitter: jguer
Maintainer: jguer
Last Packager: jguer
Votes: 2283
Popularity: 24.37
First Submitted: 2016-10-05 17:20 (UTC)
Last Updated: 2024-09-19 14:27 (UTC)

Pinned Comments

jguer commented on 2024-03-16 08:06 (UTC)

yay: error while loading shared libraries: libalpm.so.13: cannot open shared object file: No such file or directory

This will happen if you upgrade pacman and yay separately If you have this error you need to manually recompile yay

pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

jguer commented on 2019-04-16 14:08 (UTC)

I cannot delete the spam comments appearing regularly in this page, which has also led me to disable notifications from here. I remind that the best way to receive support or report a problem is through the Upstream URL.

Latest Comments

« First ‹ Previous 1 .. 16 17 18 19 20 21 22 23 24 25 26 .. 35 Next › Last »

Ergus commented on 2020-03-02 12:43 (UTC)

Same problem here!!

go build -v -mod=mod -ldflags '-s -w -linkmode external -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.version=9.4.6"' -modcacherw -gcflags all=-trimpath=/tmp/aurman/yay/src/yay-9.4.6 -asmflags all=-trimpath=/tmp/aurman/yay/src/yay-9.4.6 -o yay
flag provided but not defined: -modcacherw
usage: go build [-o output] [-i] [build flags] [packages]
Run 'go help build' for details.
make: *** [Makefile:49: yay] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
2020-03-02 13:39:01,941 - wrappers - makepkg - ERROR - makepkg query ['makepkg', '-cf', '--noconfirm'] failed in directory /tmp/aurman/yay

mokkurkalve commented on 2020-03-01 23:09 (UTC)

Yes, with gcc-go 9.2.1+20200130-2 I get:

go build -v -mod=mod -ldflags '-s -w -linkmode external -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.version=9.4.6"' -modcacherw -gcflags all=-trimpath=/tmp/makepkg/yay/src/yay-9.4.6 -asmflags all=-trimpath=/tmp/makepkg/yay/src/yay-9.4.6 -o yay
flag provided but not defined: -modcacherw
usage: go build [-o output] [-i] [build flags] [packages]
Run 'go help build' for details.
make: *** [Makefile:49: yay] Error 2

MagicAndWires commented on 2020-03-01 02:19 (UTC)

Cheers! A final small change would be to change the trimpath flags from $PWD to $srcdir, in order to clean up leftover references to $GOPATH from the binary.

chungy commented on 2020-03-01 00:35 (UTC)

Fails to build with gccgo:

==> Starting build()...
go build -v -mod=mod -ldflags '-s -w -linkmode external -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.version=9.4.6"' -modcacherw -gcflags all=-trimpath=/home/chungy/.cache/yay/yay/src/yay-9.4.6 -asmflags all=-trimpath=/home/chungy/.cache/yay/yay/src/yay-9.4.6 -o yay
flag provided but not defined: -modcacherw
usage: go build [-o output] [-i] [build flags] [packages]
Run 'go help build' for details.
make: *** [Makefile:49: yay] Error 2

MagicAndWires commented on 2020-02-29 19:34 (UTC)

Currently go dependencies are currently still stored in the default GOPATH, (usually a go directory in $HOME).

Please provide a custom $GOPATH variable to avoid contaminating home folders and building outside of srcdir.

mvertes commented on 2020-02-28 16:59 (UTC)

Please add 'arm' to supported arch targets. Tested ok on a Tonido2.

surf.bluecrab commented on 2020-02-28 04:06 (UTC) (edited on 2020-02-28 04:22 (UTC) by surf.bluecrab)

Problem with go too:


==> Making package: yay 9.4.5-1 (Fri 28 Feb 2020 12:02:50 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found yay-9.4.5.tar.gz
==> Validating source files with sha1sums...
    yay-9.4.5.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting yay-9.4.5.tar.gz with bsdtar
==> Sources are ready.
==> Making package: yay 9.4.5-1 (Fri 28 Feb 2020 12:02:56 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
go build -v -mod=vendor -ldflags '-s -w -linkmode external -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.version=9.4.5"' -gcflags all=-trimpath=/tmp/makepkg/yay/src/yay-9.4.5 -asmflags all=-trimpath=/tmp/makepkg/yay/src/yay-9.4.5 -o yay
/usr/lib/go/src/internal/reflectlite/value.go:8:2: read /usr/lib/go/src/runtime/mgclarge.go: unexpected NUL in input
/usr/lib/go/src/internal/syscall/unix/at.go:10:2: read /usr/lib/go/src/syscall/tables_nacljs.go: unexpected NUL in input
/usr/lib/go/src/crypto/tls/key_schedule.go:16:2: read /usr/lib/go/src/vendor/golang.org/x/crypto/curve25519/ladderstep_amd64.s: unexpected NUL in input
make: *** [Makefile:47: yay] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
Error making: yay

Update:

I uninstalled go then manualy removed * from /usr/lib/go then resintalled go and yay. Seems to have fixed the problem.

jguer commented on 2020-02-27 17:07 (UTC)

probably because of the new go version, I'll take a look at it

leanhtai01 commented on 2020-02-27 16:12 (UTC)

Having issues installing yay:


==> Making package: yay 9.4.4-1 (Thu 27 Feb 2020 11:10:31 PM +07)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found yay-9.4.4.tar.gz
==> Validating source files with sha1sums...
    yay-9.4.4.tar.gz ... Passed
==> Extracting sources...
  -> Extracting yay-9.4.4.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
go build -v -mod=vendor -ldflags '-s -w -linkmode external -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.version=9.4.4"' -gcflags all=-trimpath=/home/leanhtai01/Downloads/yay/src/yay-9.4.4 -asmflags all=-trimpath=/home/leanhtai01/Downloads/yay/src/yay-9.4.4 -o yay
go: inconsistent vendoring in /home/leanhtai01/Downloads/yay/src/yay-9.4.4:
    github.com/Jguer/go-alpm@v0.0.0-20191122171459-5cffc6e8fc69: is explicitly required in go.mod, but vendor/modules.txt indicates github.com/Jguer/go-alpm@v0.0.0-20191021114528-e11e8a60f385
    github.com/mikkeloscar/aur@v0.0.0-20191216074712-ebecb34b95b4: is explicitly required in go.mod, but vendor/modules.txt indicates github.com/mikkeloscar/aur@v0.0.0-20190912174111-183f80a38525

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory make: *** [Makefile:47: yay] Error 1 ==> ERROR: A failure occurred in build(). Aborting...