Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353721 - x11-misc/xdg-utils missing dev-perl/File-MimeInfo RDEPEND
Summary: x11-misc/xdg-utils missing dev-perl/File-MimeInfo RDEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
: 368531 398967 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-04 21:01 UTC by Cedric Sodhi
Modified: 2012-01-23 09:17 UTC (History)
8 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Sodhi 2011-02-04 21:01:16 UTC
xdg-open is hardly functional to what I experience udner openbox. The script which is an "initiative of freedesktop" doesn't seem to even remotely heed the freedesktop recommendation of mime-actions/desktop-entries. It just wraps arround some statically written list of browsers such as Evince and Firefox, blindly tries them and hopes that either debian or mimeopen are installed to do the job for it.

On the other hand, mimeopen appears no where in the repositories.

May I suggest adding mimeopen to the repositories and doing something about xdg-open which hardly works generically.

Reproducible: Always

Steps to Reproduce:
1. Try to xdg-open a file
Comment 1 Wormo (RETIRED) gentoo-dev 2011-02-05 06:59:35 UTC
Actually, mimeopen is available -- try installing dev-perl/File-MimeInfo

However I think you make a good point that xdg-utils would work better in non-gnome/non-kde case if mimeopen is available. Seems like a dependency on dev-perl/File-MimeInfo would be good, at least an optional one controlled by a useflag.

Comment 2 Cedric Sodhi 2011-02-05 08:22:27 UTC
Funny, I'm usually the guy who complains about bloated dependencies on Gentoo - but I guess a USE-Flag would be fine, default on or off.

However, I have the impression that in case xdg-open requires mimeopen to work, mimeopen in turn obsoletes xdg-open, after all xdg-open is just a useless wrapper arround mimeopen.

Could we perhaps extract mimeinfo from the perl devel package and put it into a separate one? I for my part would prefer no unecessary perl-tools on my box and in general no tools that I don't explicitly want at all.
Comment 3 Cedric Sodhi 2011-02-05 08:23:27 UTC
s/mimeinfo/mimeopen
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-02-05 09:16:52 UTC
in cvs
Comment 5 Nikolaj Šujskij 2011-02-05 15:58:56 UTC
43 more perl packages unconditionally? That's not what I call Gentoo way...
Comment 6 Cedric Sodhi 2011-02-05 17:05:42 UTC
Why is this marked RESOLVED/FIXED without any further comment?
Comment 7 Cedric Sodhi 2011-02-05 17:19:22 UTC
I'm even unable to locate said file-mimeinfo
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2011-02-05 17:21:45 UTC
Because it is committed to CVS?
Comment 9 Cedric Sodhi 2011-02-05 18:29:37 UTC
Is that some sort of quiz? I don't know whether it is committed in CVS. Someone said CVS indeed but he said neither *what* is committed nor why it fixes this issue. Are we getting a pile of perl now? If that is the case, I don't think this issue should be fixed until there is a proper solution.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2011-02-05 18:34:23 UTC
The correct depend was added to the ebuild and it shouldn't be optional as it's essential to the functionality of the package.  And don't try to be too dramatic about it, those perl packages are all very small. You propably wouldn't be complaining at all if they were shipped in one big package. ;-)
Comment 11 Cedric Sodhi 2011-02-05 18:46:01 UTC
No one is dramatic about it. This is not the Gentoo-way, as has been pointed out.

You wouldn't like it either if bash only comes with 20 ruby on rails packages, openrc can only be obtained with a haskell library, etc... You can't just take it "the easy" way and call that a solution. If everyone did that I'd have my harddisk bull with junk by now. No offense, and nothing personal, but this is quick dirty fix and not a resolution that puts the issue ad acta.
Comment 12 Mattias Merilai 2011-02-06 13:53:53 UTC
Something like this?
< IUSE="doc"
> IUSE="doc kde gnome"
<       dev-perl/File-MimeInfo
>       !kde? ( !gnome? ( dev-perl/File-MimeInfo ) )
Comment 13 Märt Bakhoff 2011-02-06 19:57:34 UTC
I like the solution offered in comment #12
Comment 14 Nikolaj Šujskij 2011-02-06 19:59:55 UTC
package.provided to the rescue!
Comment 15 wojtek 2011-02-07 16:41:42 UTC
is this bug  definitely closed?
Comment 16 wojtek 2011-02-07 16:42:52 UTC
is this bug definitely closed? 
Comment 17 Cedric Sodhi 2011-02-07 17:20:13 UTC
As far as I'm concerned I'll wait a few --syncs and if I feel like I need to install perl packages to use xdg-open I'll reopen it. Right now I'm not even sure what has been changed.
Comment 18 Nils Stöckmann 2011-04-25 18:00:57 UTC
i use xfce on a rather old laptop, and until now did not need 14 more Perl-package, since xdg-open ran fine without them. 
Although it's only 1MB compressed source, I don't see why I have to install them.
As Cedric previously pointed out - this simple thought chain "required in some cases => make a forced dependency" is not what i chose gentoo for.

I'd ask to reopen this bug, since it is obviously UNFIXED.

As of today('s sync), /xdg-utils-1.1.0_rc1_p20110329.ebuild is availible, without any use-flag or intelligent dependency (as suggested in Comment #12). 

As an alternative, a default-on USE-Flag i.e. "perl-file-mime" could be created to default-install that package for those people who do not care.

I as an advanced gentoo-user want to have the choice. By setting a use-flag, since that's what they've been invented for.
Comment 19 Samuli Suominen (RETIRED) gentoo-dev 2011-04-25 18:08:46 UTC
I won't cripple the package and drop mime support, and force the package to use hardcoded list instead, because you want to avoid couple of small perl dependencies.
Comment 20 Samuli Suominen (RETIRED) gentoo-dev 2012-01-15 13:51:51 UTC
*** Bug 368531 has been marked as a duplicate of this bug. ***
Comment 21 Samuli Suominen (RETIRED) gentoo-dev 2012-01-15 13:51:59 UTC
*** Bug 398967 has been marked as a duplicate of this bug. ***
Comment 22 Maxim Kammerer 2012-01-15 15:38:42 UTC
Hi, from what I see, the current xdg-open (1.1.0_rc1_p20111003) no longer uses a hardcoded list, but quite thoroughly parses .desktop files according to the type inferred with xdg-mime: see open_generic_xdg_mime() in /usr/bin/xdg-open.

xdg-open still prefers mimeopen when available, but it is in no way crippled when mimeopen is not present.

Also, I would like to note that the issue is not necessarily "a couple of small Perl dependencies" - I don't have Perl at all in my deployment system, for instance.

Please reopen the bug, and split the dependency into a USE-flag!
Comment 23 Maxim Kammerer 2012-01-15 17:16:40 UTC
Also, if the hardcoded list is that of browsers, note that the user can set the BROWSER environment variable to anything they want. For some reason, xdg-open determines the correct MIME type of given file, but still opens it in the browser for me, but that would be a bug in xdg-open - surely it could parse /usr/share/applications/mimeinfo.cache after successfully determining the file type.
Comment 24 Samuli Suominen (RETIRED) gentoo-dev 2012-01-22 23:44:41 UTC
*** Bug 398967 has been marked as a duplicate of this bug. ***