Bug 388149

Summary: hpijs-standalone was installed by default instead of hplip + hplip-hpijs
Product: [openSUSE] openSUSE 11.0 Reporter: Johannes Meixner <jsmeix>
Component: PatternsAssignee: Michal Zugec <mzugec>
Status: RESOLVED FIXED QA Contact: Stephan Kulow <coolo>
Severity: Major    
Priority: P5 - None CC: ccox, forgotten_--EoyBps8f, forgotten_AO1_-eKXeh, lslezak, vmicho
Version: Beta 2   
Target Milestone: openSUSE 11.1   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard: printer
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Johannes Meixner 2008-05-08 10:27:01 UTC
I did a 11.0 beta2 installation from scratch
with KDE4 on x86_64 hardware.

hpijs-standalone was installed by default
instead of hplip + hplip-hpijs

hpijs-standalone is only useful for special cases
(e.g. for LPRng/lpdfilter, for a minimal printing
system or for printing without any printing system)
but it is totally insufficient to use HP printers
and all-in-one devices under normal circumstances,
see the hpijs-standalone RPM info.

Therefore hplip should be in all desktop patterns
(i.e. whenever a "normal" printing system is installed).

A bad side effect of an installed hpijs-standalone
is that the YaST printer module fails to install
the hplip packages if it detects a HP printer
because hpijs-standalone conflicts with hplip
so that even with the YaST printer module it is
not possible to use HP printers and all-in-one devices
if hpijs-standalone is installed.
Comment 1 Stephan Kulow 2008-05-08 11:36:34 UTC
I can fix the default install of the DVD in recommending one of the choices in patterns. But I can't do that on the CD as the requirements of this stack is pretty huge - so yast2-printer needs a way to force the replacement. Most likely a function missing in yast2-pkg-bindings to force resolve - or it's there and just needs to be called.
Comment 2 Stephan Kulow 2008-05-08 11:38:17 UTC
recommending hplip in DVD pattern now
Comment 3 Johannes Meixner 2008-05-08 11:49:09 UTC
Michal,
as there is YST 'text freeze' we cannot show a message
if hpijs-standalone is installed.

Therefore test if hplip + hplip-hpijs are available
(remember that Package::Available returns 'nil'
 if even no package source is available)
and if hplip + hplip-hpijs are available,
simply remove hpijs-standalone silently
before installing hplip + hplip-hpijs.

This is sufficient because there is a message that
hplip is to be installed and if a user had installed
hpijs-standalone intentionally, he should know
what "hplip" means.
Comment 4 Michal Zugec 2008-05-22 12:04:21 UTC
fixed in yast2-printer-2.16.31
there is ugly hack with changing textdomain (to use strings from "base" package), but it works
Comment 5 Michal Zugec 2008-05-22 12:05:18 UTC
*** Bug 330063 has been marked as a duplicate of this bug. ***
Comment 6 Christopher Stender 2008-06-24 16:45:56 UTC
I installed openSUSE 11.0 from DVD9 and it seems that this is not fixed for me. hpijs-standalone was installed by default. IIRC it worked fine with a DVD5.
Comment 7 Christopher Stender 2008-06-28 23:44:16 UTC
Not fixed with openSUSE 11.0 GM (retail DVD9).
Comment 8 Michal Zugec 2008-06-29 08:11:15 UTC
>> it seems that this is not fixed for me
Please explain what did you do and what did you expect
Comment 9 Christopher Stender 2008-06-30 19:21:31 UTC
I installed openSUSE 11.0 (retail DVD9). YaST detected my HP 6540 printer and built the printer database but the model field was empty. I tried to select the model manually but it was not in the list (I looked for a 6500 or 6520 because there is no 6540 atm, see https://bugs.launchpad.net/hplip/+bug/235148). Then I checked which packages are installed. On my machine only hpijs-standalone was there. After I removed this package and installed hplip YaST detected my printer and chose the 6520 ppd (which is correct atm). This is what I expected because it works without problems on openSUSE 10.2 and 10.3.
Comment 10 Johannes Meixner 2008-09-02 06:38:28 UTC
I can confirm that it seems to be not fixed at all
(i.e. not fixed in the patterns for DVD):

I installed on my workstation in the Suse network
"openSUSE_DVD 11.0 GM i386" from
nfs://.../SLP/openSUSE-11.0-RC4-DVD/i386/DVD1
and hpijs-standalone was installed by default
instead of hplip + hplip-hpijs.

If it is the same on the DVDs for our customers,
it would be very annoying for our customers
because it makes setup of most HP printers
impossible for normal users.
Comment 11 Johannes Meixner 2008-09-02 06:44:38 UTC
*** Bug 421819 has been marked as a duplicate of this bug. ***
Comment 12 Johannes Meixner 2008-09-02 06:45:17 UTC
*** Bug 421812 has been marked as a duplicate of this bug. ***
Comment 13 Johannes Meixner 2008-09-04 11:36:07 UTC
To avoid this ugly problem in the future (i.e. for openSUSE 11.1)
I changed the "Conflicts: hpijs-standalone" in hplip-hpijs
to "Obsoletes: hpijs-standalone".
Right now I submitted hplip to STABLE (i.e. for openSUSE 11.1).

Now when hplip is to be installed (e.g. by YaST),
hplip requires hplip-hpijs and this would now silently
supersede an installed hpijs-standalone.

The drawback is that now YaST could silently replace
an intentional minimalist hpijs-standalone installation
by the full-featured HPLIP installation (which could
pull in tons of other necessary packages - in particular
on a minimalist server system).

Comment 14 Johannes Meixner 2008-09-09 06:49:55 UTC
*** Bug 424151 has been marked as a duplicate of this bug. ***
Comment 15 Johannes Meixner 2008-11-11 09:54:37 UTC
To get rid of this ugly problem once and for all in the future
(i.e. for openSUSE 11.1 and later) I dropped the
hpijs-standalone package.

Nevertheless in case of an update or in case of whatever
strange package repositories in YaST, the hpijs-standalone
package might still be somewhere available for installation
and then the above RPM Conflicts and Obsoletes should help.