Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137934 - cups-1.2 should depend on htmlview
Summary: cups-1.2 should depend on htmlview
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-25 06:08 UTC by Wiktor Wandachowicz
Modified: 2006-08-18 15:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cups-1.2.1-desktop.diff (cups-1.2.1-desktop.diff,424 bytes, patch)
2006-06-25 06:10 UTC, Wiktor Wandachowicz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wiktor Wandachowicz 2006-06-25 06:08:11 UTC
cups-1.2 installs a /usr/share/applications/cups.desktop entry, which contains
"http://localhost:631/" invocation. However, by default www-client/htmlview
atom is not in present (R)DEPEND in the ebuild. This prevents opening the CUPS
web interface in a browser. But the htmlview package can be found in portage,
so it should be added to DEPEND / RDEPEND to fully utilize cups features.


Actual results:

# emerge -pv cups

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-print/cups-1.2.1-r2  USE="dbus jpeg nls pam png samba ssl tiff -gnutls -slp" 0 kB

# equery files cups | grep .desktop
/usr/share/applications/cups.desktop

# grep Exec /usr/share/applications/cups.desktop
Exec=htmlview http://localhost:631/

$ htmlview http://localhost:631/
bash: htmlview: command not found


Workaround - install manually:

# emerge -av htmlview


What should the software do instead:

www-client/htmlview package should be a dependency of cups-1.2*
Comment 1 Wiktor Wandachowicz 2006-06-25 06:10:10 UTC
Created attachment 90102 [details, diff]
cups-1.2.1-desktop.diff

And while we are at it...

A pl_PL localization patch for the problematic .desktop entry.
Could it go in one shot with the htmlview?
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-18 12:47:36 UTC
I have committed a fix for this:

1) Depend on xdg-utils instead of htmlview, because xdg-utils will be used more often and already be on users systems.

2) utilize the X useflag to exclude pure server environments without desktop

Please submit your polish patch upstream to the cups developers. Thank you for reporting.
Comment 3 Wiktor Wandachowicz 2006-08-18 15:35:22 UTC
(In reply to comment #2)
> I have committed a fix for this:

Thanks a lot!

> Please submit your polish patch upstream to the cups developers.

I've filled a Software Trouble Reported (STR #1920) against cups-1.2.2
as requested. See here if you want to track it further:

http://www.cups.org/str.php?L1920