OpenCSW Bug Tracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004149 [php5_mysql] upgrade major always 2010-01-12 18:51 2012-01-29 16:47
Reporter dorix View Status public  
Assigned To bwalton
Priority normal Resolution fixed  
Status closed  
Summary 0004149: Cannot find
Description Since a recent upgrade of the Mysql5 packages, php5_mysql's file cannot find its required library anymore.

I have worked around this by:

ln -s /opt/csw/mysql5/lib/mysql /opt/csw/lib/mysql
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
pfelecan (developer)
2010-01-18 11:53

just to confirm that the workaround is correct
gadavis (reporter)
2010-02-02 23:21

Any chance we can get new packages built so that the library locations are corrected?
maciej (reporter)
2010-02-08 09:58

The conversation today on IRC:

08:51 <@automaciej> Dagobert: [^]
08:52 <@Dagobert> What is wrong in making that link I also proposed?
08:52 <@automaciej> ...I'm thinking that either this symlink shouldn't be there, or the whole package should be in /opt/csw.
08:52 <@Dagobert> We can reorder the library-includes in GAR
08:52 <@Dagobert> It is for legacy only!
08:52 <@Dagobert> We must update php.
08:52 <@automaciej> but if we have the symlink, it'll never go away
08:52 <@Dagobert> :-P
08:52 <@Dagobert> just for the few legacy packages.
08:52 <@automaciej> because people will keep linking against it
08:52 <@automaciej> in the new packages
08:53 <@Dagobert> *Sigh*
08:53 <@automaciej> so I can as well move the whole thing to /opt/csw.
08:53 <@Dagobert> NO!!
08:53 <@automaciej> so, "legacy forever"?
08:54 <@Dagobert> No. Just until the dependencies have been rebuild.
08:54 <@automaciej> Maybe CSWmysql5legacysymlink?
08:55 <@Dagobert> That wouldn't help because it wouldn't be pulled in automatically
08:55 <@automaciej> right, so we'll also need a check to verify that nothing links against /opt/csw/lib/mysql
08:55 <@Dagobert> Or try fixing php now.
08:56 <@automaciej> in other words, that /opt/csw/lib/mysql is not part of any RPATH of any binary in the new packages
08:56 <@Dagobert> Yes.
maciej (reporter)
2010-02-08 21:25

Updated rt packages are available for download: [^]
skayser (administrator)
2010-02-18 21:46

Problem with PHP's persists. Looks as if the symlink points one directory too high.

# pkgparam CSWmysql5rt VERSION

# grep /opt/csw/lib/mysql /var/sadm/install/contents
/opt/csw/lib/mysql=../../mysql5/lib/mysql s none CSWmysql5rt
# cd /opt/csw/lib/
# ls -l mysql
lrwxrwxrwx 1 root root 22 Feb 18 19:24 mysql -> ../../mysql5/lib/mysql
# cd ../../mysql5/lib/mysql
bash: cd: ../../mysql5/lib/mysql: No such file or directory
# ls -ld /opt/csw/mysql5/lib/mysql
drwxr-xr-x 2 root bin 512 Feb 18 19:24 /opt/csw/mysql5/lib/mysql

Re-pointing the link does the job (notice the single ../ instead of ../../).

# rm mysql
# ln -s ../mysql5/lib/mysql .
# ls -l mysql
lrwxrwxrwx 1 root root 19 Feb 18 21:45 mysql -> ../mysql5/lib/mysql
# cd mysql
# ls
64 sparcv9 sparcv8
bwalton (administrator)
2012-01-29 16:03

This is now resolved, no?
maciej (reporter)
2012-01-29 16:42

Yes, the libraries are now in /opt/csw/lib, any binary with /opt/csw/lib in the RPATH should be able to find them.
bwalton (administrator)
2012-01-29 16:47

No longer an issue.

Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker