[Bug 369450] New: zypper install hides rpm %post script output
https://bugzilla.novell.com/show_bug.cgi?id=369450 Summary: zypper install hides rpm %post script output Product: openSUSE 10.3 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: dmacvicar@novell.com ReportedBy: archie@dellroad.org QAContact: dmacvicar@novell.com Found By: Customer All other tools I've used to install RPMs (e.g., apt, smart, rpm, etc.) will show you the output of the RPM's scriptlets. zypper(1) however does not. This is a problem because often these messages are important for the person doing the installation to see, e.g., "Don't forget to do XXX after you install this" etc. Even when zypper is given the "-v" flag this output is suppressed. Please change zypper to show the output of the RPM scriptlets to stdout, or at least do so when "-v" is supplied. Versions: zypper-0.8.25-0.1 libzypp-3.26.8-0.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=369450 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|dmacvicar@novell.com |zypp-maintainers@forge.provo.novell.com Severity|Normal |Minor Priority|P5 - None |P2 - High -- 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=369450 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c1 --- Comment #1 from Ján Kupec <jkupec@novell.com> 2008-09-30 10:28:25 MDT --- The output is written to /var/log/YaST/y2logRPM; since libzypp 5.12.1 to /var/log/zypp/history. See http://en.opensuse.org/Libzypp/Package_History for example. It is not optimal as an immediate notification, though. But when showing the output simply among the downloading/installing lines it can quickly scroll out of the screen. Any ideas for a better solution (like e.g. Debian's debconf), or should we just display the output of rpm when installing/removing packages with zypper? -- 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=369450 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c2 --- Comment #2 from Ján Kupec <jkupec@novell.com> 2008-10-03 02:53:14 MDT --- Another issue related to this is when the package expects user input on stdin in scriptlets. See bug 430791. Should we consider that a bug in the package? Or is there a standard way of dealing with such case? -- 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=369450 User hpj@urpla.net added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c3 Hans-Peter Jansen <hpj@urpla.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hpj@urpla.net --- Comment #3 from Hans-Peter Jansen <hpj@urpla.net> 2008-10-03 03:13:24 MDT --- If zypper is redirecting the output to some file and post is waiting for some input, how should aunt tilly know, why this process is hanging there forever? In my case, VMware-Workstation is not even properly installed, since it does the whole installation process in %post (as drain bammaged as it is). Sure, output is scrolled away, but if you redirect it to some file additionally, it's not lost and most terminals have some way of scrolling up. Thus, yes, sure, this is a genuine bug in my book, not simply some user inconvenience. -- 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=369450 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c5 --- Comment #5 from Michael Schröder <mls@novell.com> 2008-10-06 06:46:17 MDT --- Regarding #2: that's a package bug. Actually I wouldn't mind to change rpm so that it makes fd 0 point to /dev/null. -- 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=369450 User hpj@urpla.net added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c6 Hans-Peter Jansen <hpj@urpla.net> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Linux |Red Hat 6.2 --- Comment #6 from Hans-Peter Jansen <hpj@urpla.net> 2008-10-07 04:06:24 MDT --- Michael, I'm going to accept your claim, IF either - you convince the RPM people to accept such a change officially - e.g. next fedora isn't accepting anything on stdin in rpm scripts. That way, you force those silly rpm creators to rethink their sillyness or - you convince your bosses to buy VMware and force them that way to create proper rpm packages. But until then, please cope with standard rpm behavior. If you change only Novells version of rpm, the web will fill up with silly "Novell blocks VMware products" statements. Do you want that? (I bet, your management will intervene at this point). Sure, I hate the VMware-Workstation rpm behavior. It's brain devastated. It's effectively ostracising package management (which is one important reason for me to keep using your products). But my users depend on VMware-Workstation, which allowed me to run SUSE Linux desktops diskless in a commercial setting since 1998, and believe me, it's hard enough to keep up even without any package management handling issues. -- 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=369450 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c7 --- Comment #7 from Michael Schröder <mls@novell.com> 2008-10-07 06:30:40 MDT --- The problem is that returning an error in the post script will abort the rpm transaction and leave the system in a mess. That's not so critical for SUSE systems, as we call rpm for every transaction element, but on a fedora system you're hosed. (But maybe they don't return an error, I've not tried to install that package.) -- 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=369450 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c11 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lslezak@novell.com, ma@novell.com --- Comment #11 from Michael Andres <ma@novell.com> 2008-12-18 15:27:27 MST --- @ openSUSE 11.1/ SLE-11 Unfortunately the required new callback method needs to be virtual, so it breaks binary compatibility. There's a similar report assigned to Ladislav, because pkg-bindings still try to read this additional output from y2logRPM, which no longer exists (bug #456446). But we could report the additional rpm output (warnings or output from scripts) via the existing virtual void finish( Resolvable::constPtr /*resolvable*/ , Error /*error*/ , const std::string &/*reason*/ ) {} With error==NO_ERROR we could pass the additional output as 'reason'. -- 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=369450 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c12 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tporter@novell.com --- Comment #12 from Ján Kupec <jkupec@novell.com> 2009-01-23 06:04:07 MST --- *** Bug 468161 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=468161 -- 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=369450 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c13 --- Comment #13 from Michael Andres <ma@novell.com> 2009-02-03 09:46:35 MST --- @ openSUSE 11.1/ SLE-11 Since libzypp-5.27.4 any additional rpm output is sent via the Install/RemoveResolvableReport finish() callback. The string is readu for being printed. I suppose just zypper/src/callbacks/rpm.h has to be adapted. In case of success any non-empty reason string should be written to stdout. "%s:\n%s\n" % _("Additional rpm output") % rpmmsg -- 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=369450 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c14 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|zypp-maintainers@forge.prov |dmacvicar@novell.com |o.novell.com | --- Comment #14 from Michael Andres <ma@novell.com> 2009-02-03 09:51:31 MST --- (accidentally hit <commit>) The result string already contains the 'Additional rpm output:' headline. Just write 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=369450 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|dmacvicar@novell.com |jkupec@novell.com -- 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=369450 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c15 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ma@novell.com --- Comment #15 from Ján Kupec <jkupec@novell.com> 2009-02-15 13:34:59 MST --- Only in case of success? I would guess that we'd want _any_ rpm output, even from a failed operation, or? -- 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=369450 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c16 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|ma@novell.com | --- Comment #16 from Michael Andres <ma@novell.com> 2009-02-16 03:32:14 MST --- In case of an error rpm output is already reported via the problem() callback. -- 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=369450 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c17 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Status Whiteboard| |in-git --- Comment #17 from Ján Kupec <jkupec@novell.com> 2009-02-17 05:25:10 MST --- Thanx. Done in git, will be in zypper 1.0.7 and 1.1.0. -- 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=369450 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369450#c18 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Status Whiteboard|in-git | --- Comment #18 from Ján Kupec <jkupec@novell.com> 2009-02-19 06:21:15 MST --- submitted -- 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.
participants (1)
-
bugzilla_noreply@novell.com