[Bug 365649] New: zypper doesn't run SuSEconfig after installing packages
https://bugzilla.novell.com/show_bug.cgi?id=365649 Summary: zypper doesn't run SuSEconfig after installing packages Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: dmacvicar@novell.com ReportedBy: wberrier@novell.com QAContact: dmacvicar@novell.com CC: twiest@novell.com Found By: --- I have an rpm that installs new icons in /usr/share/icons/hicolor. When I install it with zypper, the icons don't show up in the gnome main menu because the icon cache hasn't been updated. Installing from yast runs SuSEconfig, and the icon cache gets updated, and icons are loaded as expected. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=365649
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c1
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=365649
User twiest@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c2
--- Comment #2 from Thomas Wiest
https://bugzilla.novell.com/show_bug.cgi?id=365649
User wberrier@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c3
Wade Berrier
https://bugzilla.novell.com/show_bug.cgi?id=365649
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c4
Ján Kupec
Side note: What would be really sweet is to have a way in the .spec file that would queue up which SuSEconfig modules should be run after all packages are installed, and only run those.
That's exactly my point. Running suseconfig every time would very much affect user's experience of zypper in a negative way. Running it selectively is very desirable. The situation in YaST is a bit different from user's POV - you can browse through the packages, select/unselect them randomly and after you're finished, you click to install them all at once. There is a smaller chance that you will want to choose a few, install, choose another, install, etc. But with zypper the chance is bigger. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=365649
User wberrier@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c5
--- Comment #5 from Wade Berrier
(In reply to comment #3 from Wade Berrier)
Side note: What would be really sweet is to have a way in the .spec file that would queue up which SuSEconfig modules should be run after all packages are installed, and only run those.
That's exactly my point. Running suseconfig every time would very much affect user's experience of zypper in a negative way. Running it selectively is very desirable.
Agreed. (I've heard rumors about doing something like this, but I can't find any traces.)
The situation in YaST is a bit different from user's POV - you can browse through the packages, select/unselect them randomly and after you're finished, you click to install them all at once. There is a smaller chance that you will want to choose a few, install, choose another, install, etc. But with zypper the chance is bigger.
The main issue is that installing packages with yast versus zypper gives different results. Maybe even a note after zypper install saying, "You should probably run SuSEconfig manually" ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=365649
User vuntz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c6
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=365649
User crrodriguez@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c7
Cristian Rodriguez
The main issue is that installing packages with yast versus zypper gives different results. Maybe even a note after zypper install saying, "You should probably run SuSEconfig manually" ?
SuSEconfig is deprecated and I cant make much sense on making it to run on every package install , isnt the %run_suseconfig macro enough to accomplish this task ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=365649
User wberrier@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c8
--- Comment #8 from Wade Berrier
(In reply to comment #5 from Wade Berrier)
SuSEconfig is deprecated and I cant make much sense on making it to run on every package install , isnt the %run_suseconfig macro enough to accomplish this task ?
Ah, I didn't know about that macro, although maybe that's what I'd heard about before? Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=365649
User crrodriguez@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c9
--- Comment #9 from Cristian Rodriguez
Ah, I didn't know about that macro, although maybe that's what I'd heard about before? Thanks!
Yes, we need documentation, for usage you can read the source ;) /usr/lib/rpm/suse_macros -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=365649
User visnov@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c10
Stanislav Visnovsky
https://bugzilla.novell.com/show_bug.cgi?id=365649
User vuntz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c11
--- Comment #11 from Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=365649
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c12
--- Comment #12 from Ján Kupec
Just wondering: if I install many packages using %run_suseconfig, will all of them do the call or will it be done only once at the end of the zypper run?
If I read it correctly, it seems it's the former. The latter would make things
You're right.
a bit faster. I can open another bug if there's interest in implementing this.
A FATE request would be more appropriate IMO. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=365649
User visnov@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c13
--- Comment #13 from Stanislav Visnovsky
https://bugzilla.novell.com/show_bug.cgi?id=365649
User sbrabec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c14
--- Comment #14 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=365649
User visnov@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c15
--- Comment #15 from Stanislav Visnovsky
https://bugzilla.novell.com/show_bug.cgi?id=365649
User sbrabec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c16
--- Comment #16 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=365649
User sbrabec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c17
--- Comment #17 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=365649
User vuntz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c18
--- Comment #18 from Vincent Untz
Well, there is another solution, at least for icon cache:
- Patch gtk to search icon everywhere, if it is not found in cache.
Will have an impact on performance.
- Add gtk-update-icon-cache to cron-weekly.
Will look broken for users who install a package and don't see some icons when they launch the application. I'm not an expert, but triggers do look like the right solution. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=365649
User sbrabec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c19
--- Comment #19 from Stanislav Brabec
- Patch gtk to search icon everywhere, if it is not found in cache. Will have an impact on performance.
Yes, it will. Icon lookup may require to check 530 directories: find /usr/share/icons/hicolor /usr/share/icons/gnome /usr/share/icons/Tango -type d | wc -l 529
I'm not an expert, but triggers do look like the right solution.
These triggers don't exist yet (Depending on opinion of RPM developers, they will or will not appear in future. It's implementation is not popular, as it would require to check all symbols, not only package names.) Maybe it is possible to move this function to libzypp - simply keep SuSEconfig scripts as they are, and change a way they are called: directory /etc/zypper-conf.d: gtk2.conf: final_trigger_recursive /usr/share/icons /sbin/conf.d/SuSEconfig.gtk2 desktop-file-utils.conf: final_trigger /usr/share/applications/*.desktop /sbin/conf.d/SuSEconfig.desktop-file-utils gnome-vfs2.conf: final_trigger /usr/share/applications/*.desktop /sbin/conf.d/SuSEconfig.gnome-vfs2 It can even be extended with other similar use cases: fonts.conf: final_trigger_recursive /usr/share/fonts /sbin/conf.d/SuSEconfig.fonts glibc.conf: transaction_trigger /lib/*.so* /sbin/ldconfig transaction_trigger /usr/lib/*.so* /sbin/ldconfig transaction_trigger /opt/*/lib/*.so* /sbin/ldconfig -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=365649
User jpr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c20
JP Rosevear
https://bugzilla.novell.com/show_bug.cgi?id=365649
User sbrabec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c21
--- Comment #21 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=365649
User jpr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c22
--- Comment #22 from JP Rosevear
https://bugzilla.novell.com/show_bug.cgi?id=365649
User sbrabec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c23
--- Comment #23 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=365649
User jpr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c24
--- Comment #24 from JP Rosevear
https://bugzilla.novell.com/show_bug.cgi?id=365649
User wberrier@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c25
--- Comment #25 from Wade Berrier
Ok, the problem is though that given we are trying to deprecate SuSEconfig, it seems odd to go back and add it to all the necessary .spec files.
+1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=365649
User visnov@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c26
--- Comment #26 from Stanislav Visnovsky
https://bugzilla.novell.com/show_bug.cgi?id=365649
User schubi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c27
Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=365649
User jon@jcosby.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c28
Jon Cosby
https://bugzilla.novell.com/show_bug.cgi?id=365649
User sbrabec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c29
--- Comment #29 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=365649
User wberrier@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c30
--- Comment #30 from Wade Berrier
https://bugzilla.novell.com/show_bug.cgi?id=365649
User locilka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c31
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=365649
User coolo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c32
--- Comment #32 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=365649
User coolo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c33
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=365649
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c34
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=365649
User casualprogrammer@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c35
Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=365649
User sbrabec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c36
--- Comment #36 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=365649
User wberrier@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c37
Wade Berrier
https://bugzilla.novell.com/show_bug.cgi?id=365649
User dmacvicar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c38
Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=365649
User vuntz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c39
--- Comment #39 from Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=365649
User vuntz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c40
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=365649
User vuntz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c41
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=365649
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c42
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=365649
User crivera@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c43
Chris Rivera
https://bugzilla.novell.com/show_bug.cgi?id=365649
User sbrabec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365649#c44
Stanislav Brabec
participants (1)
-
bugzilla_noreply@novell.com