On Fri, Aug 06, 2004, Alexander Belck wrote: >Citando Thomas Lotterer <[EMAIL PROTECTED]>: ... >For what can I use OpenPKG perl ? Only for scripts written by me ? >And when OpenPKG upgrades perl-5.8.5 I still can get the same problem you did. > >In practice I see all scripts I get from live projects starting with: > >#!/usr/bin/perl > >So I can not make this projects use OpenPKG perl because my OS needs his one >version ?
Anything that builds using the standard CPAN method, ``perl Makefile.PL; Make, ...'' will take care of that automatically. For other scripts I generally use something to the effect: %build ... find . -type f | \ xargs egrep -l '/usr/bin/perl|/usr/local/bin/perl' > tmplist %{l_shtool} subst -s \ -e 's!/usr/bin/perl!%{l_prefix}/bin/perl!g' \ -e 's!/usr/local/bin/perl!%{l_prefix}/bin/perl!g' \ `cat tmplist` One could even do something similar to change all references to ``/usr/local'' to ``%{l_prefix}''. >When I get a project that's written in perl I mostly see as requirement >something like perl >= 5.6 or perl >= 5.8 not thinks like: >perl= perl-5.8.3_from_RH_9.0. This would restrict project usage too much. In many cases this requirement is a CWA note, usually meaning that the project depends on perl modules that are included in the RH or other distributions. While it may take some effort to adapt packages like this to run under OpenPKG, IHMO it's well worth it. I've been developing and maintaining various *nix based systems since 1982, using quite a bit of open source software to provide a uniform base across all systems. Until I started using OpenPKG after reading Ralf's article in SysAdmin, I spent a lot of time dealing with vendor specific issues, and my modifications would almost always render the vendor's on-line updates useless as I had to hack their RPMs (I used Caldera Linux from 1994 until SCO started suing everybody in sight :-). Having a uniform packaging system, independent of the vendor's has made my life far easier, and I don't have to worry about breaking the vendor's stuff (you ever looked at the guts of a Cobalt RAQ system :-). Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Systems, Inc. UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``The meek shall inherit the Earth, the rest of us will go to the stars...'' -Dr. Isaac Asimov ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]