Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70341 - Unable to build dev-perl/SGMLSpm-1.03-r4
Summary: Unable to build dev-perl/SGMLSpm-1.03-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-07 04:34 UTC by Simon Stapleton
Modified: 2005-04-30 06:15 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 Simon Stapleton 2004-11-07 04:34:26 UTC
When emerging the above package, I get compile errors that appear to be related to the makefile.

Initial error is as follows:

>>> emerge (1 of 1) dev-perl/SGMLSpm-1.03-r4 to /
>>> md5 src_uri ;-) SGMLSpm-1.03ii.tar.gz
>>> Unpacking source...
>>> Unpacking SGMLSpm-1.03ii.tar.gz to /var/tmp/portage/SGMLSpm-1.03-r4/work
>>> Source unpacked.
if [ ! -d /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.6.1/SGMLS ]; then\
  mkdir /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.6.1/SGMLS; \
  chmod a+x /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.6.1/SGMLS; \
fi
sed -e 's!/usr/bin/perl!/usr/bin/perl!' sgmlspl.pl > /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/bin/sgmlspl
mkdir: cannot create directory `/var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.6.1/SGMLS': No such file or directory
chmod: failed to get attributes of `/var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.6.1/SGMLS': No such file or directory
/bin/sh: line 1: /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/bin/sgmlspl: No such file or directory
make: *** [/var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.6.1/SGMLS] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/var/tmp/portage/SGMLSpm-1.03-r4/image//usr/bin/sgmlspl] Error 1

This appears to be a failure in the ebuild, there should be a sed step that changes the 5.6.1 to the installed perl version (5.8.2 in my case)

If I manually change this in files/SGMLSpm-1.03-Makefile (relative to the ebuild), the above problem goes away, but the following happens:

>>> emerge (1 of 1) dev-perl/SGMLSpm-1.03-r4 to /
>>> md5 src_uri ;-) SGMLSpm-1.03ii.tar.gz
>>> Unpacking source...
>>> Unpacking SGMLSpm-1.03ii.tar.gz to /var/tmp/portage/SGMLSpm-1.03-r4/work
>>> Source unpacked.
if [ ! -d /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.8.2/SGMLS ]; then\
  mkdir /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.8.2/SGMLS; \
  chmod a+x /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.8.2/SGMLS; \
fi
sed -e 's!/usr/bin/perl!/usr/bin/perl!' sgmlspl.pl > /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/bin/sgmlspl
mkdir: cannot create directory `/var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.8.2/SGMLS': No such file or directory
chmod: failed to get attributes of `/var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.8.2/SGMLS': No such file or directory
/bin/sh: line 1: /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/bin/sgmlspl: No such file or directory
make: *** [/var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.8.2/SGMLS] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/var/tmp/portage/SGMLSpm-1.03-r4/image//usr/bin/sgmlspl] Error 1

As it stands, I can't get this to build directly, I'll build with cpan and then emerge -inject to get round it.

Reproducible: Always
Steps to Reproduce:
1. emerge dev-perl/SGMLSpm

Actual Results:  
failures as described above

Expected Results:  
built correctly
Comment 1 Miguel Sousa Filipe 2004-11-11 12:14:32 UTC
same problem here, gentoo/ppc also.

please fix this, allready saw the ebuild and something like:
if [ ! -d /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.6.1/SGMLS ]; then\
  mkdir /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.6.1/SGMLS; \
  chmod a+x /var/tmp/portage/SGMLSpm-1.03-r4/image//usr/lib/perl5/site_perl/5.6.1/SGMLS; \
isn't there...
waiting for this to emerge gnome :/

greets, miguel
Comment 2 Miguel Sousa Filipe 2004-11-11 12:15:33 UTC
dev-perl/SGMLSpm-1.03-r5 doesn't have this problem, please unmask this version. (its ~ppc)
Comment 3 Adam Tybor 2004-11-13 11:58:05 UTC
r5 wouldn't build either on ppc so I injected the package from CPAN.  My steps are below for anyone having trouble.

perl -MCPAN -e shell
cpan>fetch SGMLS
cpan>exit

# Extract the source and change to root source dir
# Edit the Makefile
PERL5DIR=/usr/lib/perl5/site_perl/5.8.4/powerpc-linux
make install

# Inject the package into portage
echo dev-perl/SGMLSpm-1.03-r4 >> /etc/portage/profile/package.provided

This got me over the hump when building Gnome 2.8... but its still building.

Comment 4 Johan Bolmsjo 2004-11-20 05:30:57 UTC
I managed to install the package by applying the following patch to /usr/portage/dev-perl/SGMLSpm/files/SGMLSpm-1.03-Makefile. Use at your own risk:)

--- SGMLSpm-1.03-Makefile.orig  2004-11-20 14:13:00.665883336 +0100
+++ SGMLSpm-1.03-Makefile       2004-11-20 14:12:41.216840040 +0100
@@ -53,10 +53,12 @@
 dist: ${DIST}
 
 ${BINDIR}/sgmlspl: sgmlspl.pl
+       mkdir -p ${BINDIR}
        sed -e 's!/usr/bin/perl!${PERL}!' sgmlspl.pl > ${BINDIR}/sgmlspl
        chmod a+x,a+r ${BINDIR}/sgmlspl
 
 ${PERL5DIR}/SGMLS.pm: SGMLS.pm
+       mkdir -p ${PERL5DIR}
        cp SGMLS.pm ${PERL5DIR}/SGMLS.pm
        chmod a+r ${PERL5DIR}/SGMLS.pm
 
@@ -67,6 +69,7 @@
        fi
 
 ${MODULEDIR}/Output.pm: Output.pm
+       mkdir -p ${MODULEDIR}
        cp Output.pm ${MODULEDIR}/Output.pm
        chmod a+r ${MODULEDIR}/Output.pm
Comment 5 Chris Austin-Lane 2005-01-08 17:57:01 UTC
r5 built fine for me on ppc - I think you should make unmask r5 for ppc.  
Comment 6 Chris Austin-Lane 2005-01-10 13:00:19 UTC
I added keyword "ppc" to my ebuild for r5 and successfully emerge -e world, so I think it can be bumped and this bug closed.  
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2005-04-30 06:15:41 UTC
closing - r5 is unmasked for all platforms