Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74678 - perl-module eclass doesnt handle builder modules nicely
Summary: perl-module eclass doesnt handle builder modules nicely
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 74727 74736 (view as bug list)
Depends on: 68570
Blocks:
  Show dependency tree
 
Reported: 2004-12-16 13:46 UTC by SpanKY
Modified: 2005-03-14 10:58 UTC (History)
6 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 SpanKY gentoo-dev 2004-12-16 13:46:38 UTC
if an ebuild uses the builder style, the eclass should handle the DEPEND for it:
if [[ ${style} = "builder" ]] ; then
    DEPEND="${DEPEND} dev-perl/module-build"
fi

also, if module-build isnt emerged, and you try to emerge a perl module which needs it, the eclass doesnt fail at all:

root@spyro 0 ~ # emerge sdl-perl   
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-perl/sdl-perl-2.1.2 to /
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) sdl-perl-1.20.3.ebuild
>>> md5 files   ;-) sdl-perl-2.1.2.ebuild
>>> md5 files   ;-) files/digest-sdl-perl-1.20.3
>>> md5 files   ;-) files/digest-sdl-perl-2.1.2
>>> md5 src_uri ;-) SDL_Perl-2.1.2.tar.gz
>>> Unpacking source...
>>> Unpacking SDL_Perl-2.1.2.tar.gz to /var/tmp/portage/sdl-perl-2.1.2/work
>>> Source unpacked.
Base class package "Module::Build" is empty.
    (Perhaps you need to 'use' the module which defines that package first.)
 at make/lib/SDL/Build.pm line 9
BEGIN failed--compilation aborted at make/lib/SDL/Build.pm line 9.
Compilation failed in require at /var/tmp/portage/sdl-perl-2.1.2/work/SDL_Perl-2.1.2/Build.PL line 11.
BEGIN failed--compilation aborted at /var/tmp/portage/sdl-perl-2.1.2/work/SDL_Perl-2.1.2/Build.PL line 11.
>>> Test phase [not enabled]: dev-perl/sdl-perl-2.1.2
Comment 1 SpanKY gentoo-dev 2004-12-17 00:24:43 UTC
*** Bug 74727 has been marked as a duplicate of this bug. ***
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-12-17 03:46:47 UTC
*** Bug 74736 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2004-12-18 19:30:06 UTC
*** Bug 74821 has been marked as a duplicate of this bug. ***
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2004-12-20 02:35:08 UTC
I got sidetracked in real life, but work for making module::build as a "core" part of the eclass is already under way. Arch's have tested, and forthcoming is a change to the eclass to handle Build.pl scripts internally.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2004-12-27 15:03:08 UTC
*** Bug 75700 has been marked as a duplicate of this bug. ***
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2005-03-14 10:58:51 UTC
Smile - does now.