Bug 9902 - Configuring a printer shouldn't require task-printing-hp if you don't have an hp printer
Summary: Configuring a printer shouldn't require task-printing-hp if you don't have an...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High normal
Target Milestone: Mageia 8
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
: 25346 26909 (view as bug list)
Depends on:
Blocks: 18367 13083
  Show dependency treegraph
 
Reported: 2013-04-28 12:07 CEST by Perilio Castrol
Modified: 2021-02-15 18:27 CET (History)
11 users (show)

See Also:
Source RPM: system-config-printer-1.3.12-5.mga3.src.rpm
CVE:
Status comment:


Attachments

Description Perilio Castrol 2013-04-28 12:07:48 CEST
Description of problem:
The first time you open system-config-printer, it asks to install task-printing-server and task-printing-hp, even if you don't have an hp printer. You have to install the hp package in order to continue.


More information can be found in this Mandriva bug https://qa.mandriva.com/show_bug.cgi?id=50689


How reproducible:
Always

Steps to Reproduce:
If you have never installed a printer in the system:
1. Open Mageia Control Center.
2. Go to Hardware, Set up the printer ...
3. You will see the pop up asking to install these packages.

Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2013-05-05 13:23:42 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => dmorganec

D Morgan 2013-09-18 00:15:56 CEST

Assignee: dmorganec => bugsquad

Comment 1 Alex Loginov 2014-03-25 09:57:42 CET
The first time you open system-config-printer, it asks to install task-printing-server and task-printing-hp, but no auto installed for task-printing.
I installed task-printing manually.

CC: (none) => loginov_alex

Alex Loginov 2014-03-25 10:59:43 CET

Blocks: (none) => 13083

Comment 2 Florian Hubold 2014-11-30 14:16:53 CET
(In reply to Alex Loginov from comment #1)
> The first time you open system-config-printer, it asks to install
> task-printing-server and task-printing-hp, but no auto installed for
> task-printing.
> I installed task-printing manually.

This is not related to the issue reported here. Also, why do you require task-printing?

CC: (none) => doktor5000

Comment 3 Alex Loginov 2014-11-30 14:20:56 CET
Florian, hi,
I have no HP printer, I have Samsung, then why I need task-printing-hp requirement, but not task-printing instead?
Comment 4 Florian Hubold 2014-11-30 21:35:21 CET
You need task-printing-server which is what it wants to install.
task-printing-hp is required to be able to add HP printers. Feel free to send a patch that does not break HP support and fixes the initially reported issue.

Same applies for e.g. not requiring task-printing-server if you don't have a local cups server, but want to connect directly to a remote cups server, where printers are installed. Feel free to send patches that enable that.
Comment 5 Rémi Verschelde 2014-12-18 17:40:01 CET
I confirm the issue reported in comment 0. In my case I have a Canon printer, but it did not suggest installing task-printing-canon, only task-printing-hp, so I had to install the canon one manually.

CC: (none) => remi

Comment 6 Florian Hubold 2014-12-18 23:48:06 CET
(In reply to Rémi Verschelde from comment #5)
> In my case I have a Canon printer, but it did not suggest installing
> task-printing-canon, only task-printing-hp, so I had to install the canon one
> manually.

Strictly speaking, that would actually be a completely different bug then reported in comment 0 - yours is about printer autodetection for canon, the initial report is about task-printing-hp being required for everybody.

IIRC the last time this was fixed and worked properly was quite some time ago:
http://svnweb.mageia.org/packages?view=revision&revision=226535
Feel free to fix our custom backends and related hooks and submit a fix to system-config-printer.
Comment 7 Rémi Verschelde 2014-12-19 07:50:27 CET
(In reply to Florian Hubold from comment #6)
> (In reply to Rémi Verschelde from comment #5)
> > In my case I have a Canon printer, but it did not suggest installing
> > task-printing-canon, only task-printing-hp, so I had to install the canon one
> > manually.
> 
> Strictly speaking, that would actually be a completely different bug then
> reported in comment 0 - yours is about printer autodetection for canon, the
> initial report is about task-printing-hp being required for everybody.
> 
The canon autodetection is indeed another bug, but the fact that task-printing-hp got installed when I have no HP devices seems to me to be precisely what comment 0 is about.
Comment 8 Alex Loginov 2014-12-19 09:01:52 CET
system-config-printer install nothing for popular printers, but install for hp for everybody. Solution: revert changes https://bugs.mageia.org/show_bug.cgi?id=4811
Comment 9 Florian Hubold 2014-12-21 17:22:29 CET
(In reply to Alex Loginov from comment #8)
> system-config-printer install nothing for popular printers, but install for
> hp for everybody. Solution: revert changes
> https://bugs.mageia.org/show_bug.cgi?id=4811

So you did verify that reverting that commit causes no regressions and fixes printer auto-detection so that necessary packages will be installed automatically?  Also that commit was never related to task-printing-hp but to task-printing installed for everybody.

See the link to the commit I've posted previously. Those changes need to be rechecked and maybe adapted to new version, and not reverted.
Marja Van Waes 2016-05-05 10:22:15 CEST

Blocks: (none) => 18367

Comment 11 Marja Van Waes 2016-08-10 19:41:18 CEST
On the 25th of July, Phillipem uploaded the following packages to 
Cauldron's core/updates_testing:

    system-config-printer-1.5.7-5.mga6.i586
    system-config-printer-applet-1.5.7-5.mga6.i586
    system-config-printer-udev-1.5.7-5.mga6.i586

    system-config-printer-libs-1.5.7-5.mga6.noarch

    system-config-printer-1.5.7-5.mga6.x86_64
    system-config-printer-applet-1.5.7-5.mga6.x86_64
    system-config-printer-udev-1.5.7-5.mga6.x86_64


@ Anyone reading this:

* If this bug is valid for you in cauldron, then please test whether updating your system-config-printer packages to version 1.5.7-5.mga6 fixes the problem and report back in this bug report.

* If you do not have this bug in cauldron, but you do run cauldron, then please update those packages, too, and report in bug 18367 whether they work as expected.

CC: (none) => marja11

Comment 12 Pana Sum 2016-08-13 23:15:58 CEST
I have tried version 1.5.7-8.mga6 and it still asks for task-printing-hp

CC: (none) => panasum

Samuel Verschelde 2016-10-15 22:26:07 CEST

Assignee: bugsquad => pkg-bugs

Morgan Leijström 2020-01-16 20:50:52 CET

CC: (none) => fri

Comment 13 Morgan Leijström 2021-02-11 14:09:26 CET
Ping?
Comment 14 Aurelien Oudelet 2021-02-11 14:26:07 CET
This is still the case.

A) Clicking under MCC to setup printer for the first time, it loads gurpmi and wants blindly install task-printing-server AND task-printing-hp. The latter is unnecessary as long as everyone does not need it.

B) In facts, out tools should install task-printing-server and print-manager under Plasma. Then, it should asks for Printer Mark (hp, canon, epson)... and then launches the CUPS server in order to have system-config-printer being able to set printer. I do ask the script to install print-manager package under Plasma in order to let user being able to control print-job queue and that's permit feedback if something goes wrong when printing a document. Current situation is after request a print job under Libreoffice for example, you don't have a system feedback about job complete or not. You can't, in current situation, have feedback about printer supplies/cartridges or missing paper. This is an absolute necessity because printers are not necessarily near the computer... 

C) Installing task-printing-server DOES NOT launch CUPS after installation. But, a running CUPS server is needed to set a printer.
And that's why task-printing-hp is installed blindly (in facts hard-coded) because installing it DOES launch CUPS when the RPM is installed...

I do think the better way is B. Better user experience, no need to have an hplip icon in systray for those don't need it, less printing footprints...

But installing task-printing only should not be an option.

CC: (none) => ouaurelien

Aurelien Oudelet 2021-02-11 14:26:20 CET

Priority: Normal => High

Aurelien Oudelet 2021-02-11 14:26:38 CET

Target Milestone: --- => Mageia 8
Hardware: i586 => All

Comment 15 Dave Hodgins 2021-02-12 21:06:56 CET
Keep in mind that cups server may be running on a different computer in the lan.

CC: (none) => davidwhodgins

Comment 16 Aurelien Oudelet 2021-02-13 10:21:37 CET
(In reply to Dave Hodgins from comment #15)
> Keep in mind that cups server may be running on a different computer in the
> lan.

Yeah, so we need to add an extra text at the beginning to some Lan topology...
But I keep say that installing task-printing-hp will necessary activate a local CUPS server because it is in RPM script.
Comment 17 Dave Hodgins 2021-02-13 20:25:45 CET
task-printing-hp contains no files and no scripts, just dependencies. It's
the hplip package that does that, and has the icon that annoys people.

CC: (none) => geiger.david68210

Comment 18 Dave Hodgins 2021-02-13 20:28:27 CET
Oops. Saved too soon. Meant to add a comment, that I'm adding David Geiger to
the cc list as the packager who has worked on hplip the most recently.
Comment 19 Aurelien Oudelet 2021-02-15 17:37:01 CET
*** Bug 26909 has been marked as a duplicate of this bug. ***
Comment 20 Aurelien Oudelet 2021-02-15 17:37:31 CET
*** Bug 25346 has been marked as a duplicate of this bug. ***

CC: (none) => joselp

Comment 21 Aurelien Oudelet 2021-02-15 17:39:27 CET
MCC => Hardware => "Set up the printer,..."
launches a gurpmi telling it wants to install:
- task-printing-server
- task-printing-hp

I really do think after several tests, that task-printing-hp is unnecessary.
Also, installing all task-printer-{manufacturer} is too heavy and add clutter in Application Menu.

On my system, with a Canon Multifunctions Printer (2015), I can use system-confi-printer to add a print-job queue and I am able to print. I also have a recent HP printer (2018), I can also print to it without all hplip software, of course because it is a AirPrint (iOS-compatible) one.

Instead of that, I wonder if we should implement a modal dialog to ask for User's printer manufacturer. Then, propose to install "task-printing-{owned printer manufacturer}".
Comment 22 Morgan Leijström 2021-02-15 18:27:06 CET
I think the question here is what is really needed to make autodetection of printers work.

It is hplip-model-data, that is required for system-config-printer.  Would that dependency be enough, not needing rest of hplip?

On my mga7 workstation I can uninstall task-printing-hp, hplip, hplip-gui, hplip-hpijs, hplip-hpijs-ppds without it pulling anything more.




BTW, In many cases "task-printing-{owned printer manufacturer}" does not make the printer work, it may even be in the way.  
For our Canon, I have to https://forums.mageia.org/en/viewtopic.php?f=24&t=4203'

I have been thinking some times, that we should have a printing wiki page, with links to some other pages where needed describing special procedures like that.  Like some "all-(problems)-in-one" printer+scanner apparatus frequenting the forum.

Note You need to log in before you can comment on or make changes to this bug.