On Wed, Mar 21, 2007 at 03:13:55PM -0700, Allison Randal wrote:
> Steven Pritchard wrote:
> >I spent some more time getting a package built for Fedora. It
> >probably goes without saying, but this is still a bit difficult. If
> >anyone is interested, here's my current package:
>
> Thanks, Steve. Have you kept a list of the things that are difficult
> about the process? Making it easy to package up Parrot for .rpm, .deb,
> etc, is definitely one of our goals.
I didn't keep a list, but I do have the spec. Quickly glancing at it,
I see three things that I would classify as problems:
1) "lib" is hard-coded in a few places. (On x86_64 Fedora and other
RH derivatives, the system library path is /lib64 and /usr/lib64.)
I hack around that in %prep with this:
%{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \
src/library.c
%{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \
tools/dev/install_files.pl \
tools/dev/mk_manifests.pl
Ideally, the install scripts should allow for installing
non-architecture-specific bits in /usr/share and the
architecture-specific binary bits in /usr/lib64.
2) The last time I checked, to get everything to work right I had to
set LD_LIBRARY_PATH to $topdir/blib/lib.
3) The languages/ stuff isn't installed automatically. I'm not even
sure where it should go.
The rest is all minor cleanup and sub-optimal (for my purposes)
defaults. If you look through the spec, it should all be pretty
obvious...
Steve
--
Steven Pritchard - K&S Pritchard Enterprises, Inc.
Email: [EMAIL PROTECTED] http://www.kspei.com/
Phone: (618)398-3000 Mobile: (618)567-7320