[Bug 1056718] New: package java-1_5_0-gcj-compat: installation error
http://bugzilla.opensuse.org/show_bug.cgi?id=1056718 Bug ID: 1056718 Summary: package java-1_5_0-gcj-compat: installation error Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: PC OS: openSUSE 42.3 Status: NEW Severity: Normal Priority: P5 - None Component: Installation Assignee: yast2-maintainers@suse.de Reporter: comes@naic.edu QA Contact: jsrain@suse.com Found By: --- Blocker: --- After I perform a standard installation that includes also the pattern: Java Development I found this error in /var/log/zypp/history: # 2017-08-31 11:41:19 java-1_5_0-gcj-compat-1.5.0.0-137.24.x86_64.rpm installed ok # Additional rpm output: # update-alternatives: using /usr/lib64/jvm/jre-1.5.0-gcj/bin/java to provide /usr/bin/java (java) in auto mode # update-alternatives: using /usr/lib64/jvm/jre-1.5.0-gcj to provide /usr/lib64/jvm/jre-gcj (jre_gcj) in auto mode # update-alternatives: using /usr/lib64/jvm/jre-1.5.0-gcj to provide /usr/lib64/jvm/jre-1.5.0 (jre_1.5.0) in auto mode # /var/tmp/rpm-tmp.X23HDn: line 41: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 42: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 41: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 42: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 41: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 42: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 41: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 42: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 41: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 42: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 41: sed: command not found # /var/tmp/rpm-tmp.X23HDn: line 42: sed: command not found # 2017-08-31 11:41:19|install|java-1_5_0-gcj-compat|1.5.0.0-137.24|x86_64||openSUSE-Leap-42.3-0|17950505d2dd0d9958bd2d48b428932da47839f9| The problem is that java-1_5_0-gcj-compat is installed before sed and at that time the binaries sed used in the postinstall scriptlet, is not available yet. A possible fix is to add this line in java-1_5_0-gcj-compat.spec: Requires(pre): gcc-gij Requires(post): update-alternatives +Requires(post): sed PreReq: coreutils -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1056718 http://bugzilla.opensuse.org/show_bug.cgi?id=1056718#c1 Andreas Stieger <astieger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED Component|Installation |Java Assignee|yast2-maintainers@suse.de |pmonrealgonzalez@suse.com Summary|package |package |java-1_5_0-gcj-compat: |java-1_5_0-gcj-compat: |installation error |installation error: sed: | |command not found QA Contact|jsrain@suse.com |qa-bugs@suse.de --- Comment #1 from Andreas Stieger <astieger@suse.com> --- Assign to SLE maintainer -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1056718 http://bugzilla.opensuse.org/show_bug.cgi?id=1056718#c2 --- Comment #2 from Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com> --- Well, sed should be in your base system. It looks like a problem in your local configuration, maybe it cannot be found via your $PATH definition or /usr/bin/sed has been deleted. Could you please check this as I cannot reproduce it here? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1056718 http://bugzilla.opensuse.org/show_bug.cgi?id=1056718#c3 Andreas Stieger <astieger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |astieger@suse.com --- Comment #3 from Andreas Stieger <astieger@suse.com> --- This is a problem during installation, not in the running system. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1056718 http://bugzilla.opensuse.org/show_bug.cgi?id=1056718#c4 --- Comment #4 from Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com> --- Sorry, I cannot reproduce it in 42.3 or TW but the proposed solution should fix it. Note that I have also included a Requires in the %pre section as the sed command is also needed there. Please, see sr#139803. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1056718 http://bugzilla.opensuse.org/show_bug.cgi?id=1056718#c6 --- Comment #6 from Giacomo Comes <comes@naic.edu> --- After further investigation I can explain why you are not able to reproduce the bug. During the installation I enable another repository that contains some packages with fixes that I need. I have a modified package of lomoco which fixes bug 1040198 (the maintainer decided not to fix it in Leap 42.3). The presence of this modified package in my auxiliary repository triggers the installation error of java-1_5_0-gcj-compat. However the Requires(pre/post) line in the spec file is necessary anyway whether the bug is triggered or not. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1056718 http://bugzilla.opensuse.org/show_bug.cgi?id=1056718#c7 --- Comment #7 from Andreas Stieger <astieger@suse.com> --- Don't forget Factory... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1056718 http://bugzilla.opensuse.org/show_bug.cgi?id=1056718#c9 Andreas Stieger <astieger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #9 from Andreas Stieger <astieger@suse.com> --- submitted -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com