[kde-solaris] package relocation, episode II :-)

Stefan Teleman steleman at nyc.rr.com
Wed Sep 10 00:10:26 CEST 2003


The easiest way of relocating the libraries which would have been 
installed in /usr/local:

1. find \ 
<absolute-path-of-the-directory-where-the-package-was-relocated> \
-type f -name "*.la" -print > /tmp/relocateFiles
2. edit the script named "relocateUSRLOCAL" (attached) and edit the 
expression >>>> TYPE THE RELOCATED PATH HERE <<<<< between the 
hashes, replacing it with the path to the directory where the 
SUNWkderequired package was relocated (for example, /opt/local-3.1.3 
if you used pkgadd -R /opt/local-3.1.3). Do not remove the hash '#' 
characters in the sed expression.
3. run the script 'relocateUSRLOCAL'

4. find /opt/kde-3.1.3/lib -type f -name "*.la" -print > \ 
/tmp/relocateKDE
5. edit the script named relocateKDE (attached) and edit the 
expression >>>> TYPE THE RELOCATED PATH HERE <<<<< between the hashes 
(#), replacing it with the path to the directory where the 
SUNWkderequired package was relocated (for example, /opt/local-3.1.3 
if you used pkgadd -R /opt/local-3.1.3). Do not remove the hash '#' 
characters in the sed expression.
6. run the script 'relocateKDE'

Make sure the relocated path is in startkde and in LD_LIBRARY_PATH.

This should do it.

--Stefan

------

On Tuesday 09 September 2003 13:10, Stefan Teleman wrote:
> Relocating a package:
>
> pkgadd -R
>
> (man pkgadd)
>
> relocating and symlinking is fine, as long as all the required
> libraries
> and binaries can be found, and you edit the startkde script to see
> this
> root path instead of /usr/local. if you relocate /usr/local, you
> can edit
> the *.la files with sed and replace /usr/local with whatever
> the new root path is.
>
> i do not see libart2_lgpl, SDL, the audio libraries or the
> gtk+/glib packages
> for example. this will cause many endless problems down the road.
>
> using different libraries of a different version built differently
> will
> also cause problems.
>
> --Stefan

-- 
Stefan Teleman          'Nobody Expects the Spanish Inquisition'
steleman at nyc.rr.com                          -Monty Python
-------------- next part --------------
A non-text attachment was scrubbed...
Name: relocateUSRLOCAL
Type: application/x-shellscript
Size: 195 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-solaris/attachments/20030909/648a0e7c/relocateUSRLOCAL-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: relocateKDE
Type: application/x-shellscript
Size: 192 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-solaris/attachments/20030909/648a0e7c/relocateKDE-0001.bin


More information about the kde-solaris mailing list