[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] RAQ4: update to Perl-5.8.4
- Subject: Re: [cobalt-users] RAQ4: update to Perl-5.8.4
- From: "Zeffie" <cobaltlist@xxxxxxxx>
- Date: Sat Apr 24 18:39:01 2004
- Organization: Electronic Consultants Inc.
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> > > I have been reading the following excellent doc :
> > > http://www.depopo.net/content/howto/cobalt-raq4-perl584.htm
> > >
> > > And now I have several questions. Maybe someone would be
> > that kind to
> > > give me an explanation?
> > >
> > > 1) should I download the tarball to a certain dir, i.e. /usr/lib,
> > > prior to extracting ?
you should make a dir... oh somewhere you don't feel bad about making a
small mess that won't get in the way of other things... something like..
your userid dir... mkdir something, cd someting, wget bla, tar bla, bla ,bla
> > > 2) I do not use a postgresql but mysql. Does it make any
> > difference I
> > should
> > > be aware of?
> > > Arthur Sherman
the gui wants the postgresql... ummm don't do this as it builds a bad
binary...
> > I believe there is a package to do it easly.
> > Free and paid pkg's that install it so you can use both perls.
> > Brian at nuonce.net has one for raq4.
> > David Hahn
> > PageKeeper Service
it's "pay for" and posts like this are why I made the free one...
> Thank you David
> I would prefer to go with depopo.net doc, if I could get some help.
> Arthur
The doc is very bad information... this is how redhat is currently building
perl.... note the "patches" or changes to the source code before it is
built... and see my comments all the way at the bottom...
# this is ugly, but apparently necessary.
/usr/bin/dos2unix win32/Makefile win32/makefile.mk README.win32 README.dos
jpl/JNI/JNI.xs jpl/JNI/Makefile.PL
%patch17649 -p1
%patch18079 -p1
%patch18080 -p1
%patch18081 -p1
%patch18082 -p1
%patch18087 -p1
%patch18089 -p1
%patch18095 -p1
%patch18096 -p1
%patch18097 -p1
%patch18098 -p1
%patch18100 -p1
%patch18101 -p1
%patch18103 -p1
%patch18104 -p1
%patch18110 -p1
%patch18111 -p1
%patch18112 -p1
%patch18126 -p1
%patch18127 -p1
%patch18128 -p1
%patch18129 -p1
%patch18130 -p1
%patch18131 -p1
%patch18132 -p1
%patch18133 -p1
%patch18134 -p1
%patch18143 -p1
%patch18144 -p1
%patch18145 -p1
%patch18146 -p1
%patch18153 -p1
%patch18155 -p1
%patch18156 -p1
%patch18173 -p1
%patch18174 -p1
%patch18187 -p1
%patch18189 -p1
%patch18190 -p1
%patch18191 -p1
%patch18192 -p1
%patch18197 -p1
%patch18202 -p1
%patch18204 -p1
%patch18205 -p1
%patch18206 -p1
%patch18207 -p1
%patch18208 -p1
%patch18209 -p1
%patch18210 -p1
%patch18211 -p1
%patch18214 -p1
%patch18215 -p1
%patch18218 -p1
%patch18219 -p1
%patch18227 -p1
%patch18234 -p1
%patch18235 -p1
%patch18236 -p1
%patch18241 -p1
%patch18242 -p1
%patch18243 -p1
%patch18247 -p1
%patch18248 -p1
%patch18252 -p1
%patch18253 -p1
%patch18254 -p1
%patch18255 -p1
%patch18256 -p1
%patch18257 -p1
%patch18258 -p1
%patch18271 -p1
%patch18273 -p1
%patch18274 -p1
%patch18275 -p1
%patch18276 -p1
%patch18286 -p1
%patch18289 -p1
%patch18290 -p1
%patch18291 -p1
%patch18293 -p1
%patch18294 -p1
%patch18295 -p1
%patch18296 -p1
%patch18297 -p1
%patch18301 -p1
%patch18322 -p1
%patch18347 -p1
%patch18348 -p1
%patch18349 -p1
%patch18352 -p1
%patch18353 -p1
%patch18359 -p1
%patch18360 -p1
%patch18361 -p1
%patch18362 -p1
%patch18363 -p1
%patch18364 -p1
%patch18365 -p1
%patch18366 -p1
%patch18367 -p1
%patch18368 -p1
%patch18369 -p1
%patch18370 -p1
%patch18375 -p1
%patch18379 -p1
%patch18380 -p1
%patch32000 -p1 -b .protofix
%patch32001 -p1
find . -name \*.orig -exec rm -fv {} \;
sh Configure -des -Doptimize="$RPM_OPT_FLAGS" \
-Dmyhostname=localhost \
-Dperladmin=root@localhost \
-Dcc='%{__cc}' \
-Dcf_by='Red Hat, Inc.' \
-Dinstallprefix=$RPM_BUILD_ROOT%{_prefix} \
-Dprefix=%{_prefix} \
-Darchname=%{_arch}-%{_os} \
-Dvendorprefix=%{_prefix} \
-Dsiteprefix=%{_prefix} \
-Dotherlibdirs=/usr/lib/perl5/%{perlver} \
-Duseshrplib \
%if %threading
-Dusethreads \
-Duseithreads \
%else
-Uusethreads \
-Uuseithreads \
%endif
%if %largefiles
-Duselargefiles \
%else
-Uuselargefiles \
%endif
-Dd_dosuid \
-Dd_semctl_semun \
-Di_db \
-Ui_ndbm \
-Di_gdbm \
-Di_shadow \
-Di_syslog \
-Dman3ext=3pm \
-Duseperlio \
-Dinstallusrbinperl \
-Ubincompat5005 \
-Uversiononly \
-Dpager='/usr/bin/less -isr'
make -f Makefile
make -f Makefile test || /bin/true
make install -f Makefile
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
install -m 755 utils/pl2pm ${RPM_BUILD_ROOT}%{_bindir}/pl2pm
# Generate *.ph files with a trick. Is this sick or what ?
make all -f - <<EOF
PKGS = glibc-devel gdbm-devel gpm-devel libgr-devel libjpeg-devel \
libpng-devel libtiff-devel ncurses-devel popt \
zlib-devel binutils libelf e2fsprogs-devel pam pwdb \
rpm-devel
STDH = \$(filter %{_includedir}/include/%%, \$(shell rpm -q --queryformat
'[%%{FILENAMES}\n]' \$(PKGS)))
STDH +=\$(wildcard %{_includedir}/linux/*.h) \
\$(wildcard %{_includedir}/bits/*.h) \
\$(wildcard %{_includedir}/sys/*.h) \
\$(wildcard %{_includedir}/scsi/*.h)
# \$(wildcard %{_includedir}/asm/*.h)
GCCDIR = \$(shell gcc --print-file-name include)
GCCH = \$(filter \$(GCCDIR)/%%, \$(shell rpm -q --queryformat
'[%%{FILEMODES} %%{FILENAMES}\n]' gcc | grep -v ^4 | awk '{print $NF}'))
PERLLIB = \$(RPM_BUILD_ROOT)%{_libdir}/perl5/%{perlver}
ARCHLIB =
\$(RPM_BUILD_ROOT)%{_libdir}/perl5/%{perlver}/%{_arch}-%{_os}%{thread_arch}
PERL = LD_PRELOAD=\$(RPM_BUILD_DIR)/perl-%{perlver}/libperl.so
LD_LIBRARY_PATH=\$(ARCHLIB)/CORE PERL5LIB=\$(PERLLIB)
\$(RPM_BUILD_ROOT)%{_bindir}/perl
PHDIR = \$(PERLLIB)/\${RPM_ARCH}-linux*
H2PH = \$(PERL) \$(RPM_BUILD_ROOT)%{_bindir}/h2ph -d \$(PHDIR)/
all: std-headers gcc-headers fix-config
std-headers: \$(STDH)
cd %{_includedir} && \$(H2PH) \$(STDH:%{_includedir}/%%=%%)
gcc-headers: \$(GCCH)
cd \$(GCCDIR) && \$(H2PH) \$(GCCH:\$(GCCDIR)/%%=%%) || true
fix-config: \$(PHDIR)/Config.pm
\$(PERL) -i -p -e "s|\$(RPM_BUILD_ROOT)||g;" \$<
EOF
now.... with over 120 patches and many additional things to do... (I did
remove a little from to keep the size of the post smaller) do you think we
might have a bit much to add to that doc? I do... now I have built the
redhat versions but they just aren't as complete as the ActivePerl
versions... so I perfer the ActivePerl... I think they do good work!
You can ActivePerl here
http://www.ActivePerl.com
and a free pkg file with it here...
http://www.zeffie.net/ActivePerl.html
Zeffie... "Get your Z's with Zeffie" 734-454-9117
Cobalt RaQ Repairs, Development, and Maintenance.
Cobalt Spam Filter, Security, Firewall, Anti Virus Products
http://www.wordassassin.com/ Wordassassin Authorized Dealer
http://www.zeffie.net/ Free pkg and rpm resources for the Cobalt user
http://www.zeffie.com/ Home of the Worlds Largest Collection of RaQ rpms
"We have joy, we have fun, we boot Linux on our SUN..."