[Bug 1131761] New: searhorse won't start (after recent 'zypper up')
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761 Bug ID: 1131761 Summary: searhorse won't start (after recent 'zypper up') Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X11 Applications Assignee: bnc-team-screening@forge.provo.novell.com Reporter: forumino@riseup.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I am using KDE Plasma and seahorse has always worked. But now: [~]: seahorse (process:26265): GLib-GIO-ERROR **: No GSettings schemas are installed on the system Trace/breakpoint trap (core dumped) This has been happening since a 'zypper up' ran yesterday during which the following packages were updated: rawtherapee libMagickCore-7_Q16HDRI6 libcaca0 libgd3 libmspack0 libnettle6 libnettle6-32bit libopenssl1_1 libpackagekitqt5-0 libwavpack1 os-prober libMagickWand-7_Q16HDRI6 gd libhogweed4 libhogweed4-32bit openssl-1_1 ntp ImageMagick libnettle-devel libopenssl-1_1-devel transcode -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761#c1
Suse User
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761#c2
--- Comment #2 from Suse User
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761#c3
Dominique Leuenberger
The issue might be related to /usr/share/glib-2.0/schemas/gschemas.compiled which I noticed to have 600 root:root permission and ownership. Changing its permissions to 644 fixes the issue.
Speculation:
Might be a result of root user having a 0077 umask which may have influenced (incorrectly) the file permissions of this particular file during update.
This is absolutely correct - all programs running during update are running as 'root' and the environment of this user is thus taken into account. Having a special umask is causing such issues. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761#c4
--- Comment #4 from Suse User
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761#c5
Yifan Jiang
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761#c6
Dominique Leuenberger
Hi Dominique,
It looks the %ghost directly relies on umask:
%ghost %{_datadir}/glib-2.0/schemas/gschemas.compiled
Since this is the first time I handle file attribute to %ghost directive in OBS, it would be great to have your insight. Do you think this change is sufficient and safe when an environment has a random umask?
This is not fixable in the .spec file - the problem is that /usr/bin/glib-compile-schemas creates a new file while compiling the schemas and this takes umask into account -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761#c7
--- Comment #7 from Dominique Leuenberger
I think this is incorrect behavior. This is the first time I see something like this.
Seen other cases - definitively not the first
Correct ownership and permissions must not depend on root's umask. Would you agree?
This is debatable - if you have your user configured for a special umask, programs started as that user should respect it (and rpm installation IS started as root). It's always a fine line between breaking what should work and following user configurations. in case of glib-compile-schema, it's probably best to ignore user configuration though and set hardcode mode 644 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761
http://bugzilla.opensuse.org/show_bug.cgi?id=1131761#c8
--- Comment #8 from Suse User
participants (1)
-
bugzilla_noreply@novell.com