Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5993 - SGMLSpm-1.03-r1.ebuild fails due to incorrect perl version detected
Summary: SGMLSpm-1.03-r1.ebuild fails due to incorrect perl version detected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 5091
Blocks:
  Show dependency tree
 
Reported: 2002-08-04 06:57 UTC by Ronald Hummelink
Modified: 2003-02-04 19:42 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 Ronald Hummelink 2002-08-04 06:57:14 UTC
Have Perl 5.8.0 installed

ebuild contains the lines:

src_install () {
        
        eval `perl '-V:package'`
        eval `perl '-V:version'`

running these manually:
miaka SGMLSpm # perl '-V:package'
package='perl5';
miaka SGMLSpm # perl '-V:version'
version='5.8.0';

but when the ebuild runs it seems 5.6.1 is used in a mkdir command and this fails. 

emerge -p clean doesn't show a sign of previous installed perl 5.6.1 nor is
there anything outside /usr/portage, /var/cache/edb/dep and /var/tmp/portage
found with "locate perl-5.6"
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2002-08-05 10:35:34 UTC
Adding dependancies to this bug. The 5.8 ebuild needs to be rewritten from 
scratch (in progress), there were inconsistancies in the ebuild that are 
breaking the "successfull" installs. Also added the bug report for general 
module support in 5.8.
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2002-08-05 19:41:19 UTC
SGMLSpm-1.03-r2.ebuild has been masked in portage. Please test and let me know
if this helps. It worked in perl 5.6.1 and perl 5.8.0. I changed the make line
to be less ambiguous since it was losing the version variable.
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2002-08-10 08:16:10 UTC
Ronald,

Have you had an opportunity to test the masked -r2 of this module to see if it
corrects your problem?
Comment 4 Nicholas Wourms 2002-08-10 12:39:35 UTC
I noticed something that could be an issue, but I'm not certain.  During the
src_unpack() phase, the ebuild copies a makefile provided in the files
directory.  That makefile contains a hard-coded referance to perl 5.6.1.  I
dunno if it makes a difference, but it could...
Comment 5 Nicholas Wourms 2002-08-10 13:14:23 UTC
Sorry, one more thing, I noticed in the ebuild that you did:

"make ${S}/Makefile"

If you are explicitly referring to a makefile, you must pass "-f" as in:

"make -f ${S}/Makefile"

otherwise the make program gets confused and will not build what you want it to.
 After fixing that, it works great now!
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2002-08-10 14:05:42 UTC
Nicholas,

     Thanks for the catch! Will fix and commit the correction in a bit.

Mike
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2002-08-13 10:32:28 UTC
-r3 has been commited to portage, masked. This revision addresses all of the 
hardcoded reference I could find in the Makefile that is distributed with 
SGMLSpm. It also fixes a few ancillary issues, like the messed up paths that 
get shipped with it. Let me know if this works for either of you, I've tested 
this in perl 5.6.1 and 5.8 without any *installation* problems (don't know 
about usability:). It now installs to /usr/lib/perl5/site_perl/${version} <--
5.6.1 or 5.8.0, depending on your perl. There are no pods distributed with this 
module, so you will not see it added to perllocal.pod.
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2002-08-18 15:58:56 UTC
-r3 has been unmasked in portage.