Bug 553567

Summary: Missing dependency on lynx
Product: [Fedora] Fedora Reporter: Gianluca Sforna <giallu>
Component: jwhoisAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: amit.shah, nyh, oa+redhat, redhat-bugzilla, tmz, vcrhonek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-28 15:20:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gianluca Sforna 2010-01-08 09:47:37 UTC
I'm getting the following error with jwhois-4.0-18.fc12.x86_64:

whois last.pk
[Querying http://pknic.net.pk/cgi-bin/pknic-db/display.html]
[HTTP: Unable to run web browser: /usr/bin/lynx: No such file or directory]

so it seems the package misses a dependency on lynx (or a patch to use something else...)

Comment 1 Vitezslav Crhonek 2010-01-28 15:20:29 UTC
There's no dependency on lynx because it's up to user which browser he will use, if any.

See /etc/jwhois.conf:
[SNIP]
#
# Path to the browser to use for HTTP servers.
#
browser-pathname = "/usr/bin/lynx";
[SNIP]

Change it to the text-www-browser you prefer.

I don't want to e.g. add general text-www-browser and hack jwhois.conf during post install, because jwhois package works without it for many users and I want to avoid generating unnecessary dependencies.

Comment 2 Gianluca Sforna 2010-01-28 15:33:30 UTC
Oh, I didn't notice the configuration setting, I agree with the resolution.

In an ideal world though, executing the configured browser would trigger the packagekit command-not-found plugin and install the missing piece...

Comment 3 Robert Scheck 2010-01-28 17:58:07 UTC
Nobody needs or even wants a PackageKit dependency for a command line only
application. Depending on PackageKit with X and GTK/GNOME is definately the
wrong way. So please leave as it is - thanks Vitezslav :)

Comment 4 Gianluca Sforna 2010-01-28 21:13:47 UTC
I don't think that's what I said, and in fact I pretty much agree with you

Comment 5 Vitezslav Crhonek 2010-08-31 12:47:32 UTC
*** Bug 625772 has been marked as a duplicate of this bug. ***

Comment 6 Vitezslav Crhonek 2010-09-06 13:16:14 UTC
*** Bug 630333 has been marked as a duplicate of this bug. ***

Comment 7 Vitezslav Crhonek 2011-10-10 11:19:48 UTC
*** Bug 744198 has been marked as a duplicate of this bug. ***

Comment 8 Nadav Har'El 2015-02-18 11:40:40 UTC
I've also run into this problem on my installation of Fedora 21:

$ whois osv.io
[Querying http://www.io.io/cgi-bin/whois]
[HTTP: Unable to run web browser: /usr/bin/lynx: No such file or directory]

One can argue whether the problem is the missing dependency on lynx (as the original submitter said) or the configuration in /etc/jwhois.conf (as comment 1 said), but in both cases, this *is* a bug, and should not have been closed. Please note also how duplicates keep cropping up, and if I weren't paying attention enough, I would have created yet another dup today.

Comment 9 Vitezslav Crhonek 2015-02-18 12:28:49 UTC
Sorry, I really don't get it...

Why don't you just install lynx? Isn't the message clear enough?

jwhois can work fine without web browser, it's necessary only for some queries. That makes it optional dependency. And if you need it, jwhois will let you know quite nicely.

Leaving it as it is will save ~1.5 MB space for every user, who doesn't run http queries or is used to using different text browser.