Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 934468

Summary: sys-auth/elogind-246.10-r4 [+doc] Failed to create binpkg file Too many levels of symbolic links: '/var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr/share/doc/elogind-246.10-r4/html/sd_bus_add_match.html'
Product: Gentoo Linux Reporter: Arniii <lg3dx6fd>
Component: Current packagesAssignee: Andreas Sturmlechner <asturm>
Status: UNCONFIRMED ---    
Severity: normal CC: lg3dx6fd, nvinson234
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.lz // to read, you can use next : ` lzip -dc ./build.log.lz | less `
ls -l /var /var/tmp /var/tmp/portage /var/tmp/portage/sys-auth /var/tmp/portage/sys-auth/elogind-246.10-r4 /var/tmp/portage/sys-auth/elogind-246.10-r4/image /var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr /var/tmp/portage/sys-auth/elogind-246.10-r4/
/etc/portage/make.conf // profile default/linux/amd64/17.1/desktop/plasma gcc-13 O3 pipe march=native(verbose) lto graphite ggdb3 testing FEATUREs : testing

Description Arniii 2024-06-17 16:55:54 UTC
relevant part of build.log:

```
Traceback (most recent call last):
  File "/usr/lib/portage/python3.11/gpkg-helper.py", line 75, in <module>
    rval = main(sys.argv[:])
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/portage/python3.11/gpkg-helper.py", line 67, in main
    rval = command_compose(args[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/portage/python3.11/gpkg-helper.py", line 39, in command_compose
    gpkg_file.compress(image_dir, metadata)
  File "/usr/lib/python3.11/site-packages/portage/gpkg.py", line 912, in compress
    *self._check_pre_image_files(root_dir)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/portage/gpkg.py", line 1951, in _check_pre_image_files
    file_size = os.path.getsize(f)
                ^^^^^^^^^^^^^^^^^^
  File "<frozen genericpath>", line 50, in getsize
OSError: [Errno 40] Too many levels of symbolic links: '/var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr/share/doc/elogind-246.10-r4/html/sd_bus_add_match.html'
 * ERROR: sys-auth/elogind-246.10-r4::gentoo failed (package phase):
 *   Failed to create binpkg file


```
Comment 1 Arniii 2024-06-17 16:59:02 UTC
Created attachment 895953 [details]
build.log.lz // to read, you can use next : ` lzip -dc ./build.log.lz | less `
Comment 2 Arniii 2024-06-17 17:02:21 UTC
Created attachment 895976 [details]
ls -l /var /var/tmp /var/tmp/portage /var/tmp/portage/sys-auth /var/tmp/portage/sys-auth/elogind-246.10-r4 /var/tmp/portage/sys-auth/elogind-246.10-r4/image /var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr /var/tmp/portage/sys-auth/elogind-246.10-r4/

>>> <Arniii> https://0x0.st/XT-n.log';    is there a quick recipe how to solve it, or just file to bgo ?
>>> <Arniii>  Failed to create binpkg file  .   OSError: [Errno 40] Too many levels of symbolic links: '/var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr/share/doc/elogind-246.10-r4/html/sd_bus_add_match.html'
>>> <username234> Arniii: wgetpaste -c 'ls -l /var /var/tmp /var/tmp/portage /var/tmp/portage/sys-auth /var/tmp/portage/sys-auth/elogind-246.10-r4 /var/tmp/portage/sys-auth/elogind-246.10-r4/image /var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr /var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr/share /var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr/share/doc /var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr/share/doc/elogind-246.10-r4
>>> <username234> /var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr/share/doc/elogind-246.10-r4/html /var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr/share/doc/elogind-246.10-r4/html/sd_bus_add_match.html'
>>> <Arniii> username234, http://0x0.st/XToe.html;
>>> <username234> /var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr/share/doc/elogind-246.10-r4/html/sd_bus_add_match.html -> sd_bus_add_match.html
>>> <username234> hmm... I doubt that's right
>>> <username234> Arniii: wgetpaste -I
>>> <Arniii> username234, wgetpaste -s 0x0 -c "cat '/var/tmp/portage/sys-auth/elogind-246.10-r4/temp/environment'"  Your paste can be seen here: http://0x0.st/XToV.txt
>>> <konsolebox> Arniii: You can also disable doc for now.
>>> <Arniii> username234, /etc/portage/make.conf :  http://0x0.st/XToW.conf';      profile: default/linux/amd64/17.1/desktop/plasma
>>> <Arniii> konsolebox, I'll try
>>> <username234> Arniii: the wgetpaste -I output would've been more useful.
>>> <username234> Arniii: You should file a bug on this though. It looks like elogind[doc] is broken.
>>> <Arniii> username234, maybe, but afaik they don't show proper info if package is under env configs, even when `emerge --info pkg-atom` . environment file is at least true. Though, in this case, it isn't under a env, so it doesn't matter.
>>> <Arniii> username234, I'll file the bug.
Comment 3 Arniii 2024-06-17 17:04:57 UTC
Created attachment 895977 [details]
/etc/portage/make.conf // profile default/linux/amd64/17.1/desktop/plasma gcc-13 O3 pipe march=native(verbose) lto graphite ggdb3 testing FEATUREs : testing
Comment 4 nvinson234 2024-06-17 17:12:40 UTC
Issue appears to be because of a circular symlink:

/var/tmp/portage/sys-auth/elogind-246.10-r4/image/usr/share/doc/elogind-246.10-r4/html/sd_bus_add_match.html -> sd_bus_add_match.html