Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349791 - sys-apps/ack-1.92 does not list File-Next as a requirement
Summary: sys-apps/ack-1.92 does not list File-Next as a requirement
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-26 15:42 UTC by Hugh Nowlan
Modified: 2010-12-26 21:27 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 Hugh Nowlan 2010-12-26 15:42:54 UTC
ack requires the perl File-Next package to correctly install but it is not listed as a dependency in the package.

Reproducible: Always

Steps to Reproduce:
1. emerge ack-1.92 without File-Next installed

Actual Results:  
The emerge fails

Expected Results:  
A successful emerge.
Comment 1 Fabian Groffen gentoo-dev 2010-12-26 15:59:19 UTC
The ebuild states:

DEPEND=">=dev-perl/File-Next-1.02

what went wrong in your case that it emerged without it?
Comment 2 Hugh Nowlan 2010-12-26 16:10:23 UTC
(In reply to comment #1)
> The ebuild states:
> 
> DEPEND=">=dev-perl/File-Next-1.02
> 
> what went wrong in your case that it emerged without it?
> 

My initial "emerge ack" produced


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/ack-1.92
 * ack-1.92.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                  [ ok ]
 * Package:    sys-apps/ack-1.92
 * Repository: gentoo_prefix
 * Maintainer: rajiv@gentoo.org
 * USE:        bash-completion elibc_Darwin kernel_Darwin prefix userland_GNU x86-macos
 * FEATURES:   nostrip preserve-libs
>>> Unpacking source...
>>> Unpacking ack-1.92.tar.gz to /Users/nosmo/Portage/var/tmp/portage/sys-apps/ack-1.92/work
>>> Source unpacked in /Users/nosmo/Portage/var/tmp/portage/sys-apps/ack-1.92/work
>>> Compiling source in /Users/nosmo/Portage/var/tmp/portage/sys-apps/ack-1.92/work/ack-1.92 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/Users/nosmo/Portage/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/Users/nosmo/Portage/var/tmp/portage/sys-apps/ack-1.92/image/
Checking if your kit is complete...
Looks good
Warning: prerequisite File::Next 0.4 not found.
No documentation found for "File::Next".
Writing Makefile for ack
make OTHERLDFLAGS=-Wl,-dead_strip_dylibs 
cp Ack.pm blib/lib/App/Ack.pm
cp Repository.pm blib/lib/App/Ack/Repository.pm
cp Plugin.pm blib/lib/App/Ack/Plugin.pm
cp Resource.pm blib/lib/App/Ack/Resource.pm
cp Basic.pm blib/lib/App/Ack/Plugin/Basic.pm
/Users/nosmo/Portage/usr/bin/perl squash ack-base File::Next Ack.pm Repository.pm Resource.pm Basic.pm > ack
Can't locate File/Next.pm in @INC (@INC contains: /Users/nosmo/Portage/usr/lib/perl5/site_perl/5.12.1/i686-darwin /Users/nosmo/Portage/usr/lib/perl5/site_perl/5.12.1 /Users/nosmo/Portage/usr/lib/perl5/vendor_perl/5.12.1/i686-darwin /Users/nosmo/Portage/usr/lib/perl5/vendor_perl/5.12.1 /Users/nosmo/Portage/usr/lib/perl5/5.12.1/i686-darwin /Users/nosmo/Portage/usr/lib/perl5/5.12.1 /Users/nosmo/Portage/usr/lib/perl5/site_perl /Users/nosmo/Portage/usr/lib/perl5/vendor_perl .) at squash line 7.
BEGIN failed--compilation aborted at squash line 7.
make: *** [ack] Error 2
emake failed
 * ERROR: sys-apps/ack-1.92 failed:
 *   compilation failed
 * 
 * Call stack:
 *     ebuild.sh, line   62:  Called src_compile
 *   environment, line 2739:  Called perl-module_src_compile
 *   environment, line 2346:  Called die
 * The specific snippet of code:
 *               emake OTHERLDFLAGS="${LDFLAGS}" ${mymake} || die "compilation failed";
 * 
 * If you need support, post the output of 'emerge --info =sys-apps/ack-1.92',
 * the complete build log and the output of 'emerge -pqv =sys-apps/ack-1.92'.
 * The complete build log is located at '/Users/nosmo/Portage/var/tmp/portage/sys-apps/ack-1.92/temp/build.log'.
 * The ebuild environment file is located at '/Users/nosmo/Portage/var/tmp/portage/sys-apps/ack-1.92/temp/environment'.
 * S: '/Users/nosmo/Portage/var/tmp/portage/sys-apps/ack-1.92/work/ack-1.92'

However, unmerging ack and File-Next and then emerging ack again leads to a successful install. I can't come up with an explanation for this unfortunately. 
Comment 3 Fabian Groffen gentoo-dev 2010-12-26 16:15:08 UTC
I think you had an old perl installed, and didn't run perl-cleaner (or it didn't finish).

Check if you have anything inside /Users/nosmo/Portage/usr/lib/perl5 besides 5.12.2?
Comment 4 Hugh Nowlan 2010-12-26 19:15:43 UTC
Hmm, yeah, there was another version kicking around that disappeared after a run of the cleaner. Sorry for the bogus report!
Comment 5 Fabian Groffen gentoo-dev 2010-12-26 21:27:12 UTC
happy to hear the problem can be logically explained :)