Bug 723870

Summary: hplip: split sane driver (libsane-hpaio.* files) in subpackage hplip-sane
Product: [openSUSE] openSUSE 12.1 Reporter: Vincent Untz <vuntz>
Component: PrintingAssignee: Johannes Meixner <jsmeix>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Enhancement    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Vincent Untz 2011-10-13 12:44:26 UTC
I'd like to be able to use the scanner of my hp all-in-one printer, without installing all of hplip (since this implies installing python-qt4).

My understanding is that this sane driver doesn't depend on anything else in the package, so it'd be safe to do.

I'd also move the cups hpfax backend and hpcupsfax filter to subpackages, since this is similar.

So this would result in this:

 - hplip-sane subpackage: contains the sane driver
 - hplip-cups subpackage: contains the cups files
 - hplip: contains the /usr/bin/* tools, and all data files in /usr/share/hplip. Would depend on hplip-sane and hplip-cups.

I guess the udev files would stay with the main hplip package.
Comment 1 Johannes Meixner 2011-10-13 13:18:55 UTC
This is never ever a "normal" bug in openSUSE 12.1 and
for openSUSE 12.1 it is too late for a package rename+split.

This is a change request for openSUSE after 12.1.

I guess hplip-cups is what hplip-hpijs is today
i.e. only a rename hplip-hpijs => hplip-cups
and hplip-sane is a split from hplip.

Have in mind that the packages in the "Printing" project
are provided for various older openSUSE and SLE versions
which means that such a package rename+split must be done
in an way that it still works for the older openSUSE
and SLE versions in the "Printing" project.

If I remember correctly in older HPLIP versions there was
a subtle dependency between the CUPS backend "hp" and the "hpaio"
scanner driver. I don't know if such a dependency still exists.
Perhaps the dependency was gone after the special daemons in HPLIP
(hpiod and hpssd) became obsolete (see the RPM changelog)?

You should do it first of all in your OBS home project
to verify how such a package rename+split could be done
with appropriate RPM dependencies so that nothing
breaks in the patterns and in YaST.

If it works for you, you may discuss the package rename+spilt
on appropriate openSUSE mailing lists and if they agree,
you could submit it and maintain it thereafter.

I am afraid, I do not have any time to work on such requests
so that I close it as WONTFIX (from my point of view).
Comment 2 Vincent Untz 2011-10-13 14:52:31 UTC
Since I don't really see why this would be difficult, I just went ahead and created a sane subpackage and submitted this to the Printing project (sr#87727). I've tested the result, and it works fine.

There should be no issue for old distros: they will install hplip, which will automatically install hplip-sane (because of a Requires). So no change for them

Note that hplip-sane has a very strict Requires for hplip-hpijs because of the dependency of the libraries that are in hplip-hpijs. This should cover one of your worries.

To summarize, the only difference compared to before is that people can now choose to install hplip-sane separately from the hplip tools (which is what was wanted). Since it's really a simple change and it's been tested, I think it can go in 12.1.
Comment 3 Johannes Meixner 2011-10-14 07:24:34 UTC
Very many thanks for your contribution!

Without the rename hplip-hpijs => hplip-cups it is much easier
because the name "hplip-hpijs" is hardcoded e.g. in yast2-printer
and perhaps in our patterns and at many places in the documentation
in particular in openSUSE Wiki articles and this name is also
somewhat "hardcoded" in the minds of many openSUSE users.

With the RPM Requires for hplip-sane in hplip it is backward compatible.



$ osc results -v home:vuntz:branches:Printing hplip
--------------------------------------------------------------------
openSUSE_11.3        x86_64     succeeded
openSUSE_11.3        i586       succeeded
openSUSE_11.4        i586       succeeded
openSUSE_11.4        x86_64     succeeded
openSUSE_Factory     i586       succeeded
openSUSE_Factory     x86_64     succeeded
SLE_11               i586       succeeded
SLE_11               x86_64     succeeded
SLE_11_SP1           i586       succeeded
SLE_11_SP1           x86_64     succeeded
--------------------------------------------------------------------
Good!

I accepted submitrequest 87727.
Comment 4 Johannes Meixner 2011-10-18 13:44:41 UTC
It works for me on my SLED11-SP1 i586 workstation
with a HP LaserJet 1220.

It also works for Markus Rex with openSUSE 11.4 (German mail):
----------------------------------------------------------------------------
Date: Tue, 18 Oct 2011 ...
From: Markus Rex <...>
To: Johannes Meixner <jsmeix@suse.de>
Subject: Re: HP Plugin
...
> Nimm das allerneueste HPLIP aus dem "Printing" Projekt im
> openSUSE Build Service z.B. unter folgender direkten URL:
>
> http://download.opensuse.org/repositories/Printing/openSUSE_11.4/
>
> Du brauchst die Pakete "hplip", "hplip-hpijs", und "hplip-sane".
>
> "hplip-sane" ist neu, siehe
> https://bugzilla.novell.com/show_bug.cgi?id=723870
>
> Bitte Feedback, falls es Probleme gibt, wegen dem Split von "hplip-sane".

alles tut wunderbar und auf Anhieb! Vielen Dank.
----------------------------------------------------------------------------

Therefore I forwarded it from "Printing" to "openSUSE:Factory"
via submitrequest 88523
Comment 5 Bernhard Wiedemann 2011-10-18 14:00:12 UTC
This is an autogenerated message for OBS integration:
This bug (723870) was mentioned in
https://build.opensuse.org/request/show/88523 Factory / hplip