You are not logged in.
I am testing the latest pacman 7.1.x;
As I run Arch from a small external USB drive, I keep the cache dir in /tmp, which is, of course, erased after each boot...
Ver 7.x used to create it automatically, but with ver 7.1.x I got this error after reboot:
"error: 'failed to resolve path '/tmp/cache/pacman/pkg/' passed to 'CacheDir': No such file or directory"
This is my pacman.conf related line(s)
#CacheDir = /var/cache/pacman/pkg/
CacheDir = /tmp/cache/pacman/pkg/
Is this a bug or will it be a norm for this release?
TIA
Last edited by spsf64 (2025-12-12 20:25:00)
Sergio S.
Yes, I'm old and bald!
Offline
Probably related to https://gitlab.archlinux.org/pacman/pacman/-/issues/289
Online
Probably related to https://gitlab.archlinux.org/pacman/pacman/-/issues/289
Not related directly - that bug is when there are multiple CacheDir entries. This is about directories that do not exist.
File a bug report and I will remember to fix it.
Offline
seth wrote:Probably related to https://gitlab.archlinux.org/pacman/pacman/-/issues/289
Not related directly - that bug is when there are multiple CacheDir entries. This is about directories that do not exist.
File a bug report and I will remember to fix it.
Thanks for replying!
I tried to file a bug report but the gitlab requested me to create a new account, I did, waiting for approval...
Maybe someone with an account can do this??
Sergio S.
Yes, I'm old and bald!
Offline
Do you meantime have an account?
Fwwi
This provides checks that the directories specified in pacman.conf exist.
It will also fix the "bug" where people replace their pacman package cache with a symlink to another directory, and have issues mid-transaction when pacman is upgraded (and the symlink becomes a directory again).
Any fix itr would defeat the first aspect by necessity but for the second it's probably sufficient to default back to the configured path if realpath returns null (and have sync create the directory later on)?
Online
Pretty much the fix I am implementing.
Offline
Pretty much the fix I am implementing.
Just tested the latest 7.1.0.r7.gb9f7d4a-1, it works as expected!
Thank you!!
Marking this as solved
Sergio S.
Yes, I'm old and bald!
Offline