logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: perl-5.8.0: msg#00152

Subject: Re: perl-5.8.0
The issue of making a updated perl available via fink has come up several
times.  There are some general problems, notably the fact that any perl
script which is going to use your version will have to start with
#!/sw/bin/perl
rather than the conventional /usr/bin/perl.

As far as the specific problems you are running into go: when there is a
name conflict between two packages, something has to be renamed.  YOu
can do the renaming in your InstallScript, after installation.  (For
example, "mv %i/foo %i/foo.new".)

Your other problem derives from the fact that Darwin hardcodes library
pathnames into executables (and other libs) at link time, and the
name which is hardcoded is the one given by the -install_name flag
when the library was built.  So you have to be sure that this install_name
flag has the value of the eventual location of the fink package, not
the location during build time.

Many fink packages use "prefix=%p" during the build, and "prefix=%i"
during the install, to get around things like this.  I notice that you
are putting %i into your build-time flags, and that might not be the
best choice.  (The %i expands to the long name with /sw/src, and that's
where fink does an "install" when it is build the .deb file.)  You'll
have to study the configure script and/or Makefiles to figure out
how to implement this in your case.

  -- Dave



-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31


<Prev in Thread] Current Thread [Next in Thread>