Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549888 - dev-perl/File-MimeInfo-0.270.0 should depend on dev-perl/File-BaseDir
Summary: dev-perl/File-MimeInfo-0.270.0 should depend on dev-perl/File-BaseDir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-19 10:36 UTC by Francisco J. Vazquez
Modified: 2015-06-03 19:43 UTC (History)
0 users

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 Francisco J. Vazquez 2015-05-19 10:36:51 UTC
After upgrading File-MimeInfo today from 0.260 to 0.270 I get this error when running xdg-open:

Can't locate File/BaseDir.pm in @INC (you may need to install the File::BaseDir module) (@INC contains: /etc/perl /usr/local/lib64/perl5/5.20.2/x86_64-linux /usr/local/lib64/perl5/5.20.2 /usr/lib64/perl5/vendor_perl/5.20.2/x86_64-linux /usr/lib64/perl5/vendor_perl/5.20.2 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.20.2/x86_64-linux /usr/lib64/perl5/5.20.2 .) at /usr/lib64/perl5/vendor_perl/5.20.2/File/MimeInfo/Magic.pm line 6.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.20.2/File/MimeInfo/Magic.pm line 6.
Compilation failed in require at (eval 1) line 1.
BEGIN failed--compilation aborted at (eval 1) line 1.
xdg-mime: mimetype argument missing
Try 'xdg-mime --help' for more information.

Indeed, in line 6 of /usr/lib64/perl5/vendor_perl/5.20.2/File/MimeInfo/Magic.pm there is a line "use File::BaseDir qw/data_files/;". It even complains during emerging:

Warning: prerequisite File::BaseDir 0.03 not found.
Warning: prerequisite File::DesktopEntry 0.04 not found.

Emerging File::BaseDir manually solves the problem. 

The File::BaseDir dependency was there in File-MimeInfo-0.260.0 (as well as File-DesktopEntry). Why were they removed?

Reproducible: Always
Comment 1 Patrice Clement gentoo-dev 2015-05-29 08:07:53 UTC
monsieurp@epsilon ~/gentoo-x86/dev-perl/File-MimeInfo $ diff -u File-MimeInfo-0.260.0.ebuild File-MimeInfo-0.270.0.ebuild
--- File-MimeInfo-0.260.0.ebuild        2015-04-04 23:44:49.000000000 +0000
+++ File-MimeInfo-0.270.0.ebuild        2015-05-18 21:22:43.000000000 +0000
@@ -1,11 +1,11 @@
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-MimeInfo/File-MimeInfo-0.260.0.ebuild,v 1.2 2015/04/04 23:44:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-MimeInfo/File-MimeInfo-0.270.0.ebuild,v 1.1 2015/05/18 21:22:43 dilfridge Exp $

 EAPI=5

 MODULE_AUTHOR=MICHIELB
-MODULE_VERSION=0.26
+MODULE_VERSION=0.27
 inherit perl-module

 DESCRIPTION="Determine file type"
@@ -15,16 +15,9 @@
 IUSE="test"

 RDEPEND="
-       >=dev-perl/File-BaseDir-0.03
-       >=dev-perl/File-DesktopEntry-0.04
-       x11-misc/shared-mime-info
 "
 DEPEND="${RDEPEND}
-       virtual/perl-Module-Build
-       test? (
-               dev-perl/Test-Pod
-               dev-perl/Test-Pod-Coverage
-       )
+       virtual/perl-ExtUtils-MakeMaker
 "

-SRC_TEST="do"
+SRC_TEST="do parallel"

260 has the correct deps but not 270. Last version bumped made by dilfridge:

18 May 2015; Andreas K. Huettel <dilfridge@gentoo.org>
-File-MimeInfo-0.170.0-r1.ebuild, +File-MimeInfo-0.270.0.ebuild:
Version bump

I think it's a mistake. I will add the deps back.
Comment 2 Patrice Clement gentoo-dev 2015-06-03 19:43:49 UTC
+  03 Jun 2015; Patrice Clement <monsieurp@gentoo.org>
+  File-MimeInfo-0.270.0.ebuild:
+  Add back dependencies to RDEPEND and DEPEND. Fix bug 549888.
+

Thanks!