Re: Newbe question: automated package building

2004-04-18 Thread Mark Nagel
Ralf S. Engelschall wrote:

After installing (in that order) the packages openpkg, make,
binutils, gcc, perl and (from OpenPKG-CURRENT) openpkg-tools 
I keep seeing this stated -- just install openpkg-tools from CURRENT. 
 Having engaged this weekend in an attempt to upgrade a site from 1.3 
to 2.0 and having found openpkg build gone, which I've come to rely 
upon and enjoy, I thought I'd just do this.  When I try, however, I get 
the error:

[EMAIL PROTECTED] root]# openpkg rpm --rebuild 
openpkg-tools-0.8.5-20040418.src.rpm
Installing openpkg-tools-0.8.5-20040418.src.rpm
error: Failed build dependencies:
openpkg = 20040409 is needed by openpkg-tools-0.8.5-20040418

So, is it also advised when running the 2.0 release that I upgrade to 
the CURRENT openpkg core?  If so, when I run openpkg build, is it 
going to try to update me on the CURRENT branch or 2.0?  Anything other 
than that to be wary of?

Thanks,
Mark
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Build Failures in Perl modules

2004-04-18 Thread Steffen Weinreich
Hi!

I've recently stubled two times over building perl packages where some 
linking fails but the RPM build process doesnt stop.  One ist the perl-gd 
which will not link without the X11 Libs, and the other one is perl-dbi 
with Oracle Support when the build process doesnt fiddle out the Ora-Libs.

It is a little bit annoying to find such an build error after the install 
of the Binary-RPM :-)

For the perl-gd I have a logfile at hand...

 ftp://ftp.openpkg.org/current/SRC/perl-gd-5.8.3-20040318.src.rpm 
Installing ftp://ftp.openpkg.org/current/SRC/perl-gd-5.8.3-20040318.src.rpm
Executing(%prep): env -i /opt/stw/lib/openpkg/bash --norc --noprofile 
--posix -e /opt/stw/RPM/TMP/rpm-tmp.72628
+ cd /opt/stw/RPM/TMP
+ cd /opt/stw/RPM/TMP
+ rm -rf perl-gd-5.8.3
+ /opt/stw/lib/openpkg/shtool mkdir -f -p -m 755 -p perl-gd-5.8.3
+ cd perl-gd-5.8.3
+ /opt/stw/lib/openpkg/gzip -dc /opt/stw/RPM/SRC/perl-gd/GD-2.12.tar.gz
+ /opt/stw/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ /opt/stw/lib/openpkg/gzip -dc 
/opt/stw/RPM/SRC/perl-gd/GDTextUtil-0.86.tar.gz
+ /opt/stw/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ /opt/stw/lib/openpkg/gzip -dc 
/opt/stw/RPM/SRC/perl-gd/GD-Barcode-1.14.tar.gz
+ /opt/stw/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ /opt/stw/lib/openpkg/gzip -dc /opt/stw/RPM/SRC/perl-gd/GDGraph-1.43.tar.gz
+ /opt/stw/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ /opt/stw/lib/openpkg/gzip -dc 
/opt/stw/RPM/SRC/perl-gd/GDGraph3d-0.56.tar.gz
+ /opt/stw/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ /opt/stw/lib/openpkg/gzip -dc 
/opt/stw/RPM/SRC/perl-gd/GDGraph-Map-1.05.tgz
+ /opt/stw/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ /opt/stw/lib/openpkg/gzip -dc /opt/stw/RPM/SRC/perl-gd/Chart-2.3.tar.gz
+ /opt/stw/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ /opt/stw/lib/openpkg/gzip -dc 
/opt/stw/RPM/SRC/perl-gd/Chart-ThreeD-0.01.tar.gz
+ /opt/stw/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ /opt/stw/lib/openpkg/gzip -dc 
/opt/stw/RPM/SRC/perl-gd/Chart-Plot-0.11.tar.gz
+ /opt/stw/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ /opt/stw/lib/openpkg/gzip -dc 
/opt/stw/RPM/SRC/perl-gd/Image-Timeline-0.11.tar.gz
+ /opt/stw/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ exit 0
Executing(%build): env -i /opt/stw/lib/openpkg/bash --norc --noprofile 
--posix -e /opt/stw/RPM/TMP/rpm-tmp.38005
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ exit 0
Executing(%install): env -i /opt/stw/lib/openpkg/bash --norc --noprofile 
--posix -e /opt/stw/RPM/TMP/rpm-tmp.38005
+ cd /opt/stw/RPM/TMP
+ cd perl-gd-5.8.3
+ /opt/stw/bin/perl-openpkg prepare
++ OpenPKG perl-openpkg 2.0.0 (26-Jan-2004)
++ determined RPM  program: /opt/stw/libexec/openpkg/rpm (4.2.1)
++ determined Perl program: /opt/stw/bin/perl (5.8.3)
++ step 1: prepare
++ cleaning up environment
+ /opt/stw/bin/perl-openpkg -d /opt/stw/RPM/SRC/perl-gd/GD-2.12.tar.gz 
configure build install
++ OpenPKG perl-openpkg 2.0.0 (26-Jan-2004)
++ determined RPM  program: /opt/stw/libexec/openpkg/rpm (4.2.1)
++ determined Perl program: /opt/stw/bin/perl (5.8.3)
++ step 2: configure

Where is libgd installed? [/usr/lib] /usr/lib

Please choose the features that match how libgd was built:
Build JPEG support? [y] y
Build FreeType support? [y] y
Build XPM support? [y] y
If you experience compile problems, please check the @INC, @LIBPATH and 
@LIBS
arrays defined in Makefile.PL and manually adjust, if necessary.

Checking if your kit is complete...
Looks good
Writing Makefile for GD
++ step 3: build
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
cp qd.pl blib/lib/qd.pl
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
/opt/stw/RPM/TMP/root-perl-openpkg-perl-gd/perl.sh 
/opt/stw/lib/perl/5.8.3/ExtUtils/xsubpp  -typemap 
/opt/stw/lib/perl/5.8.3/ExtUtils/typemap -typemap typemap  GD.xs  GD.xsc 
 mv GD.xsc GD.c
/opt/stw/bin/cc -c  -I/usr/local/include -I/usr/local/include/gd 
-fno-strict-aliasing -I/opt/stw/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -pipe   -DVERSION=\2.12\ 
-DXS_VERSION=\2.12\ -fpic -I/opt/stw/lib/perl/5.8.3/i686-linux/CORE 
-DHAVE_JPEG -DHAVE_FT -DHAVE_XPM GD.c
Running Mkbootstrap for GD ()
chmod 644 GD.bs
rm -f blib/arch/auto/GD/GD.so
LD_RUN_PATH=/usr/X11R6/lib /opt/stw/bin/cc  -shared -L/opt/stw/lib GD.o 
-o blib/arch/auto/GD/GD.so   -L/usr/lib/X11 -L/usr/X11R6/lib 
-L/usr/local/lib -lgd -lpng -lz -lfreetype -ljpeg -lm -lX11 -lXpm
/opt/stw/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/GD.so] Error 1
++ step 4: install
Installing