Bug 274010 - pkg: open(…FreeBSD-libmagic-15.pkg): Too many levels of symbolic links
Summary: pkg: open(…FreeBSD-libmagic-15.pkg): Too many levels of symbolic links
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-pkgbase (Nobody)
URL:
Keywords: pkgbase
Depends on:
Blocks:
 
Reported: 2023-09-21 22:32 UTC by Mina Galić
Modified: 2023-10-01 15:26 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mina Galić freebsd_triage 2023-09-21 22:32:10 UTC
root@PkgBase-current15:~ # env ABI=FreeBSD:15:amd64 pkg upgrade -r FreeBSD-base FreeBSD-utilities
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
The following 15 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        FreeBSD-openssl-lib-lib32: 15.snap20230921172812 [FreeBSD-base]

Installed packages to be UPGRADED:
        FreeBSD-clibs: 14.a4.20230904142027 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-libarchive-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-libbsm-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-libbz2-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-libcasper-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-libldns: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-liblzma: 14.a4.20230904142027 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-libmagic: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-libucl-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-runtime-lib32: 14.a4.20230904142027 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-tcpd-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-ufs-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-utilities: 14.a4.20230904142027 -> 15.snap20230921172812 [FreeBSD-base]
        FreeBSD-zfs-lib32: 14.a4.20230904142027 -> 15.snap20230921172812 [FreeBSD-base]

Number of packages to be installed: 1
Number of packages to be upgraded: 14

The operation will free 4 MiB.
18 MiB to be downloaded.

Proceed with this action? [y/N]: y
pkg: open(poudriere/data/images/current-amd64-repo/FreeBSD:15:amd64/latest/FreeBSD-libmagic-15.snap20230921172812.pkg): Too many levels of symbolic links
root@PkgBase-current15:~ #
Comment 1 Mina Galić freebsd_triage 2023-09-21 22:34:43 UTC
Weirdly enough, it works if I `cd /`, and repeat the operation.

Note that this is a bectl jail, and I have the repository nullfs mounted from the outside.
Comment 2 Mark Johnston freebsd_committer freebsd_triage 2023-10-01 15:26:30 UTC
(In reply to Mina Galić from comment #1)
So what was the cwd when you ran the command the first time?  Is "poudriere/data/images/current-amd64-repo/FreeBSD:15:amd64/latest/FreeBSD-libmagic-15.snap20230921172812.pkg" indeed an invalid path due to a cycle?