[Bug 485918] New: hplip-2.8.7 package contains problematic init script
https://bugzilla.novell.com/show_bug.cgi?id=485918 Summary: hplip-2.8.7 package contains problematic init script Classification: openSUSE Product: openSUSE 11.0 Version: Final Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: bugs@singvogel.com QAContact: jsmeix@novell.com Found By: --- User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.9 (like Gecko) SUSE I bought a HP Color Laserjet CP1515n, and as hplip.sf.net suggests, I need hplip-2.8.5 or later to have drivers for this printer. The good news is that I found the hplip-2.8.7 at the openSUSE buildservice in home:jsmeix. Perfect. :-) So I installed on my openSUSE_11.0 x86_64 the packages: rpm -hiv <<URL_to_package>> The update fails with an error message from RPM regarding the init script. I noticed that there is an init script included, but it doesn't do anything except an error message. I would suggest to remove this script or not to print out any error messages. Reproducible: Always Steps to Reproduce: 1. Don't have hplip installed. 2. Install package: rpm -hiv <<URL>> 3. Actual Results: failure at installation Expected Results: no failure of package installation -- 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=485918 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=485918#c1 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Johannes Meixner <jsmeix@novell.com> 2009-03-25 01:19:58 MST --- The hplip-2.8.7 RPM at http://download.opensuse.org/repositories/home:/jsmeix/openSUSE_11.0/x86_64/ does not contain any init script at all. See the RPM changelog: ----------------------------------------------------------------------------- * Thu Aug 14 2008 jsmeix@suse.de - Removed the hplip init script which is obsolete since version 2.8.4 where hpssd is gone and replaced by hp-systray, see Novell/Suse Bugzilla bnc#390663. . . . * Thu Apr 03 2008 jsmeix@suse.de - Updated to version 2.8.4: Elimination of all persistent startup daemons. The last daemon hpssd has been replaced with hp-systray. ... - Adapted the hplip init script to provide backward compatibility: It still exists to avoid that printer/scanner setup tools fail when they try to enable the "hplip" service but all it does is to stop a possibly running hpssd. ----------------------------------------------------------------------------- The original hplip-2.8.4 RPM in openSUSE 11.0 contained a dummy init script to provide backward compatibility, see bug #390663 (and I never got a problem report because of this dummy init script). I didn't check the RPM's install/update magic in detail but perhaps on your machine the old dummy init script is still present because you did "rpm -i" instead of "rpm -U"? On the other hand, even if the old dummy init script is still present it should not cause a problem because all it does is to try to stop the hpssd. Perhaps you got an error message because it cannot stop hpssd e.g. simply because no hpssd was running an then there is a "FAILED" error message but as far as I see the return code of the dummy init script is always 0 because I have an explicite "return 0" therein. I didn't try to reproduce it (I will not install openSUSE 11.0 only for such a test) and currently I do not understand what exactly went wrong on your system but from my point ov view it seems an invalid bug caused by "rpm -i" instead of "rpm -U" and I close it accordingly. Even if there were a bug for openSUSE 11.0 I would close it with "wontfix" for openSUSE 11.0 because it is already "fixed" for openSUSE 11.1 where the whole init script stuff is gone. -- 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=485918 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=485918#c2 --- Comment #2 from Johannes Meixner <jsmeix@novell.com> 2009-03-25 02:45:37 MST --- I think I found something: In the spec file of hplip-2.8.7 in home:jsmeix in the openSUSE build service there is ------------------------------------------------------------------ %postun .. %restart_on_update hplip %insserv_cleanup ------------------------------------------------------------------ but a restart is of course not possible after an update because there is no longer an init script after the update. This stuff is no longer present in the spec file of hplip in openSUSE 11.1 so that it is fixed there. -- 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=485918 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=485918#c3 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #3 from Johannes Meixner <jsmeix@novell.com> 2009-03-25 03:00:20 MST --- I think I even found the reason how it happened: When I submitted hplip to STABLE for openSUSE 11.1 with the RPM changelog entry "Removed the hplip init script" I also removed the lines %restart_on_update hplip %insserv_cleanup from the %postun scriplet and the line %stop_on_removal hplip from the %preun scriplet in the spec file for openSUSE 11.1. But because the spec file on the openSUSE build service is a bit different because of some additional suse_version magic regarding version dependant BuildRequires which is not needed for STABLE, I simply forgot to adapt %postun scriplet in the spec file on the openSUSE build service accordingly. I fixed the spec file in home:jsmeix on the openSUSE build service. -- 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