Packaging icons and %{yast_icondir} macro
Hi! In Tumbleweed they want to change the default permissions of the /usr/share/icons/ directory. That makes troubles with YaST packages as we also own that directory, this creates a conflict [1]. One possibility is to change the %{yast_icondir} macro to point to /usr/share/icons/hicolor, see [2]. All YaST packages install the icons to the "hicolor" subdirectory so this is a pretty safe change. The advantage is that this fix is trivial (only one package affected), the disadvantage is that the problem is just moved one level down, in the future the same problem might appear with the "hicolor" subdirectory. But that "hicolor" is owned by more than 270 packages (excluding YaST) so they will not hurry with that change... Dirk suggested a better solution, fix the spec files of the YaST packages so the %{yast_icondir} is not owned, see example [3]. This example also fixes the same problem with the sysconfig fillup templates. The advantage is that this is a future proof change, the disadvantage is that we will need to update many spec files. My quick grep reports more than 70 spec files... So the question is which way to go? The simple way or the more complex one that might on the other hand save some time in the future? [1] https://bugzilla.suse.com/show_bug.cgi?id=1186066 [2] https://github.com/yast/yast-devtools/pull/161 [3] https://github.com/yast/yast-bootloader/pull/642 -- Ladislav Slezák YaST Developer SUSE LINUX, s.r.o. Corso IIa Křižíkova 148/34 18600 Praha 8
On Tue, May 18 2021 at 16:14:24 +0200, Ladislav Slezak <lslezak@suse.cz> wrote:
One possibility is to change the %{yast_icondir} macro to point to /usr/share/icons/hicolor, see [2]. All YaST packages install the icons to the "hicolor" subdirectory so this is a pretty safe change.
All but one that is ;) https://github.com/yast/yast-theme/blob/master/package/yast2-theme.spec LCP [Sasi] https://lcp.world
participants (2)
-
Ladislav Slezak
-
Sasi Olin