[Bug 843331] New: package bash: installation error
https://bugzilla.novell.com/show_bug.cgi?id=843331 https://bugzilla.novell.com/show_bug.cgi?id=843331#c0 Summary: package bash: installation error Classification: openSUSE Product: openSUSE Factory Version: 13.1 Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: comes@naic.edu QAContact: jsrain@suse.com Found By: --- Blocker: --- After a default installation I found this error in /var/log/zypp/history: # 2013-09-19 14:13:27 libgcc43-4.3.4_20091019-18.3.x86_64.rpm installed ok # Additional rpm output: # /bin/sh: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory # warning: %post(libgcc43-4.3.4_20091019-18.3.x86_64) scriptlet failed, exit status 127 # 2013-09-19 14:13:27|install|libgcc43|4.3.4_20091019-18.3|x86_64||openSUSE-13.1-1.19|4231fbd596877ff9929071840941a850f5e6a6c39c147140950fd699cc2393fa| ------------------------------------------------------------------------------------------ # 2013-09-19 14:14:00 libstdc++6-4.8.1_20130909-2.1.x86_64.rpm installed ok # Additional rpm output: # /bin/sh: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory # warning: %post(libstdc++6-4.8.1_20130909-2.1.x86_64) scriptlet failed, exit status 127 # 2013-09-19 14:14:00|install|libstdc++6|4.8.1_20130909-2.1|x86_64||openSUSE-13.1-1.19|6e94dd2821ece8580004b9c6c8c2eab25c4a0bce0cc35e60b10bbd0d318e6424| The problem is that when libstdc++6 and libgcc43 are installed bash is already installed but libreadline6 it is not yet. A possible fix is to add two lines in bash.spec: BuildRequires: ncurses-devel BuildRequires: patchutils BuildRequires: screen +PreReq: libreadline6 +PreReq: libncurses5 %define bash_vers 4.2 %define rl_vers 6.2 %define extend "" It is necessary to add not only libreadline6 but also libncurses5. If only libreadline6 is added then after an installation that uses the modifyed bash rpm this error message appears in in /var/log/zypp/history: # 2013-09-19 19:33:16 libgcc43-4.3.4_20091019-18.3.x86_64.rpm installed ok # Additional rpm output: # /bin/sh: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory # warning: %post(libgcc43-4.3.4_20091019-18.3.x86_64) scriptlet failed, exit status 127 # 2013-09-19 19:33:16|install|libgcc43|4.3.4_20091019-18.3|x86_64||openSUSE-13.1-1.19|4231fbd596877ff9929071840941a850f5e6a6c39c147140950fd699cc2393fa| ------------------------------------------------------------------------------------------ # 2013-09-19 19:33:16 libstdc++6-4.8.1_20130909-2.1.x86_64.rpm installed ok # Additional rpm output: # /bin/sh: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory # warning: %post(libstdc++6-4.8.1_20130909-2.1.x86_64) scriptlet failed, exit status 127 # 2013-09-19 19:33:16|install|libstdc++6|4.8.1_20130909-2.1|x86_64||openSUSE-13.1-1.19|6e94dd2821ece8580004b9c6c8c2eab25c4a0bce0cc35e60b10bbd0d318e6424| meaning that libncurses5 is needed as well. -- 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=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c
Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c2
--- Comment #2 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c3
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c4
Giacomo Comes
I do not think that PreRequire within the bash will help. Or do you have tested this out?
I have tested my fix. I rebuild bash with the fix and I used the new rpm for a standard installation: no more error. to Comment 2:
AFAIK the metadata generator in obs for susetags repos is/was broken and wrongly injected prerequires as normal requires. This could verry well be the case here.
It could be that something like that is the main cause. This bug is not the only one of this kind. For 13.1 I have submitted already 839477, 839520, 839736 and 839750. The same problem existed also for 12.3 (other packages). -- 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=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c5
Richard Biener
Nevertheless the error had occured
found in gcc43.spec
%post -n libgcc43 /sbin/ldconfig
using
%post -n libgcc43 -p /sbin/ldconfig
would solve the problem
libgcc43 shouldn't even be on any 13.1 ISO nor should it end up being required by anything. So, why does it get picked up for installation in the first place? -- 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=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c6
--- Comment #6 from Richard Biener
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c7
--- Comment #7 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c8
--- Comment #8 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c9
Michael Andres
libgcc43 shouldn't even be on any 13.1 ISO nor should it end up being required by anything. So, why does it get picked up for installation in the first place?
According to the history it has been on the media: 2013-09-1914:13:27|install|\ libgcc43|4.3.4_20091019-18.3|x86_64||openSUSE-13.1-1.19| Maybe a (meanwhile fixed) missprint or a wrong media. Anyway I can't find it on /dist/.../openSUSE-13.1-Beta1. Last seen on openSUSE-13.1-Milestone2 (4.3.4_20091019-17.12). Maybe Coolo knows something about it. -- 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=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c10
Giacomo Comes
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c11
Richard Biener
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c12
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c13
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=843331
https://bugzilla.novell.com/show_bug.cgi?id=843331#c14
--- Comment #14 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com