Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726786 - x11-themes/adwaita-icon-theme-3.32.0 takes ages to install
Summary: x11-themes/adwaita-icon-theme-3.32.0 takes ages to install
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://gitlab.gnome.org/GNOME/adwait...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-02 16:56 UTC by Rolf Eike Beer
Modified: 2020-06-04 19:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer archtester 2020-06-02 16:56:42 UTC
The problem is this block:

size='scalable-up-to-32'
for file in `cd ../../Adwaita/$size; find . -name "*.png"`; do \
              context="`dirname $file`"; \
              /bin/mkdir -p /var/tmp/portage/x11-themes/adwaita-icon-theme-3.32.0/image//usr/share/icons/Adwaita/$size/$context; \
              /bin/sh /var/tmp/portage/x11-themes/adwaita-icon-theme-3.32.0/work/adwaita-icon-theme-3.32.0/install-sh -c -m 644 ../../Adwaita/$size/$file /var/tmp/portage/x11-themes/adwaita-icon-theme-3.32.0/image//usr/share/icons/Adwaita/$size/$file; \
      done; \ 
for file in `cd ../../Adwaita/scalable-up-to-32; find . -name "*.svg"`; do \
        context="`dirname $file`"; \
        /bin/mkdir -p /var/tmp/portage/x11-themes/adwaita-icon-theme-3.32.0/image//usr/share/icons/Adwaita/scalable-up-to-32/$context; \
        /bin/sh /var/tmp/portage/x11-themes/adwaita-icon-theme-3.32.0/work/adwaita-icon-theme-3.32.0/install-sh -c -m 644 ../../Adwaita/scalable-up-to-32/$file /var/tmp/portage/x11-themes/adwaita-icon-theme-3.32.0/image//usr/share/icons/Adwaita/scalable-up-to-32/$file; \ 
done

This installs files one by one, uses explicit mkdir and install-sh instead of plain "install" with "-D". This forks a gazillion of process, which takes minutes to complete. And it calls dirname for every file.
Comment 1 Mart Raudsepp gentoo-dev 2020-06-03 07:50:50 UTC
This would be something to take up with upstream (with patches), I believe :)