yay v6.727
When running yay -Syu yesterday, a conflict occured between xorg-server and xf86-video-intel-git, and following yay's suggestion, I deleted the latter.
This morning, I noticed that my external monitor would keep a black screen although i3 and xrandr seem to understand the monitor is there, so I tried reinstalling xf86-video-intel-git. That's when the error occured.
$ yay -S xf86-video-intel-git
:: Querying AUR...
panic: runtime error: index out of range
goroutine 1 [running]:
main.checkVersions(0xc4200a7180, 0xc42005d0a8, 0x2)
/home/dori/.cache/yay/yay/src/yay-6.727/dependencies.go:565 +0x105d
main.getDepTree(0xc42008cdb0, 0x1, 0x1, 0xc4200a4550, 0x0, 0x80, 0xc4201d6a80)
/home/dori/.cache/yay/yay/src/yay-6.727/dependencies.go:397 +0x79a
main.install(0xc42008ede0, 0xc42005dc58, 0x2)
/home/dori/.cache/yay/yay/src/yay-6.727/install.go:64 +0x296
main.handleSync(0xc4200a0430, 0x1)
/home/dori/.cache/yay/yay/src/yay-6.727/cmd.go:403 +0x47b
main.handleCmd(0x0, 0x0)
/home/dori/.cache/yay/yay/src/yay-6.727/cmd.go:166 +0x51f
main.main()
/home/dori/.cache/yay/yay/src/yay-6.727/main.go:211 +0x253
$ yay -Sc
[sudo] password for dori:
Packages to keep:
All locally installed packages
Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove all other packages from cache? [Y/n]
removing old packages from cache...
Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n]
removing unused sync repositories...
Build directory: /home/dori/.cache/yay/
==> Do you want to remove all other AUR packages from cache? [Y/n]
removing AUR packages from cache...
==> Do you want to remove ALL untracked AUR files? [Y/n]
removing Untracked AUR files from cache...
$ yay -S xf86-video-intel-git
:: Querying AUR...
panic: runtime error: index out of range
goroutine 1 [running]:
main.checkVersions(0xc4200a7180, 0xc42005d0a8, 0x2)
/home/dori/.cache/yay/yay/src/yay-6.727/dependencies.go:565 +0x105d
main.getDepTree(0xc42008cdb0, 0x1, 0x1, 0xc4200a4550, 0x0, 0x80, 0xc4201d6a80)
/home/dori/.cache/yay/yay/src/yay-6.727/dependencies.go:397 +0x79a
main.install(0xc42008ede0, 0xc42005dc58, 0x2)
/home/dori/.cache/yay/yay/src/yay-6.727/install.go:64 +0x296
main.handleSync(0xc4200a0430, 0x1)
/home/dori/.cache/yay/yay/src/yay-6.727/cmd.go:403 +0x47b
main.handleCmd(0x0, 0x0)
/home/dori/.cache/yay/yay/src/yay-6.727/cmd.go:166 +0x51f
main.main()
/home/dori/.cache/yay/yay/src/yay-6.727/main.go:211 +0x253
Should be fixed in -git.
@Morganamilo thanks for the quick follow-up
Installed yay-git, then retried. Getting another error now
➜ yay -S xf86-video-intel-git
:: Querying AUR...
-> Missing AUR Packages: X-ABI-VIDEODRV_VERSION
==> Error: Could not find all required packages:
X-ABI-VIDEODRV_VERSION
X-ABI-VIDEODRV_VERSION>=23 X-ABI-VIDEODRV_VERSION<=23
➜ yay -V
yay v6.727.r46.g6be6ffc
Looks like another problem with the version checking. Should be all fixed in #401. For now yay -Sd xf86-video-intel-git should hopefully work.
@Morganamilo
$ yay -Sd xf86-video-intel-git
:: Querying AUR...
-> Missing AUR Packages: X-ABI-VIDEODRV_VERSION
==> Error: Could not find all required packages:
X-ABI-VIDEODRV_VERSION
I reported it on the xf86-video-intel-git aur page, looks like this new issue is unrelated to yay. Thank you for the support, I'll close this issue for now.
try with makepkg before saying it's unrelated with Yay.
I just tried this myself with Yay and I don't get the error.
X-ABI-VIDEODRV_VERSION is provided by xorg so it shouldn't be missing. I don't know why Yay can't find it.
What does pacman -Si xorg-server and pacman -Qi xorg-server show.
➜ pacman -Si xorg-server [c43fe7f3; 11:22:54; 130]
Repository : extra
Name : xorg-server
Version : 1.20.0-2
Description : Xorg X server
Architecture : x86_64
URL : http://xorg.freedesktop.org
Licenses : custom
Groups : xorg
Provides : X-ABI-VIDEODRV_VERSION=24.0 X-ABI-XINPUT_VERSION=24.1
X-ABI-EXTENSION_VERSION=10.0 x-server
Depends On : libepoxy libxfont2 pixman xorg-server-common libunwind dbus libgl
xf86-input-libinput nettle libpciaccess libdrm libxshmfence
Optional Deps : None
Conflicts With : nvidia-utils<=331.20 glamor-egl xf86-video-modesetting
Replaces : glamor-egl xf86-video-modesetting
Download Size : 1275.28 KiB
Installed Size : 5872.00 KiB
Packager : Andreas Radke <[email protected]>
Build Date : Thu 17 May 2018 12:25:35 AM JST
Validated By : MD5 Sum SHA-256 Sum Signature
➜ pacman -Qi xorg-server [c43fe7f3; 11:22:25]
Name : xorg-server
Version : 1.20.0-2
Description : Xorg X server
Architecture : x86_64
URL : http://xorg.freedesktop.org
Licenses : custom
Groups : xorg
Provides : X-ABI-VIDEODRV_VERSION=24.0 X-ABI-XINPUT_VERSION=24.1
X-ABI-EXTENSION_VERSION=10.0 x-server
Depends On : libepoxy libxfont2 pixman xorg-server-common libunwind dbus libgl
xf86-input-libinput nettle libpciaccess libdrm libxshmfence
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : nvidia-utils<=331.20 glamor-egl xf86-video-modesetting
Replaces : glamor-egl xf86-video-modesetting
Installed Size : 5.73 MiB
Packager : Andreas Radke <[email protected]>
Build Date : Thu 17 May 2018 12:25:35 AM JST
Install Date : Thu 17 May 2018 07:21:43 PM JST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
Indeed, let me manually install it to verify
makepkg -si [11:24:52]
==> Making package: xf86-video-intel-git 1:2.99.917+781+gc8990575-1 (Fri May 18 11:25:21 JST 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for dori:
error: target not found: X-ABI-VIDEODRV_VERSION=23
==> ERROR: 'pacman' failed to install missing dependencies.
Basically, xf86-video-intel-git requires a version of X-ABI-VIDEODRV_VERSION that is older than the one currently provided by xorg-server. I'd have to downgrade xorg-server, so it really looks unrelated to yay :)
But indeed, it would be helpful if yay could output the same error message
Yep indeed looks unrelated to Yay. Thanks for testing.
But indeed, it would be helpful if yay could output the same error message
==> Error: Could not find all required packages:
X-ABI-VIDEODRV_VERSION
X-ABI-VIDEODRV_VERSION>=23 X-ABI-VIDEODRV_VERSION<=23
I think is readable enough.
==> Error: Could not find all required packages:
X-ABI-VIDEODRV_VERSION=23 ( Tree: xf86-video-intel-git -> )
Maybe it's just me but I find the "package -> " with nothing after the arrow a bit strange... a tree is a graph and in a graph you don't have edges with only 1 vertex either.
Well in my head it points, back to X-ABI-VIDEODRV_VERSION=23. It's just that it comes first because it's the most important aspect. It's not final anyway so it could change.
Most helpful comment
I think is readable enough.
401 should make is more like this though.