Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299558 - dev-db/oracle-instantclient-basic-11.2.0.0.2 installs broken symlinks
Summary: dev-db/oracle-instantclient-basic-11.2.0.0.2 installs broken symlinks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Tobias Scherbaum (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-04 08:14 UTC by Martin von Gagern
Modified: 2010-01-26 19:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Revert from CVS 1.2 to 1.1 (bug299558a.patch,1.03 KB, patch)
2010-01-04 08:32 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2010-01-04 08:14:53 UTC
My oracle-instantclient-basic-11.2.0.0.2 installation contains some symlinks for libs but lacks the corresponding lib files:

# ls -l /usr/lib64/oracle/11.2.0.0.2/client/lib/*.so*
lrwxrwxrwx 1 root root       57 Jan  3 20:53 /usr/lib64/oracle/11.2.0.0.2/client/lib/libclntsh.so -> /usr/lib64/oracle/11.2.0.0.2/client/lib/libclntsh.so.11.2
-rw-r--r-- 1 root root     9128 Jan  3 20:53 /usr/lib64/oracle/11.2.0.0.2/client/lib/libheteroxa11.so
-rw-r--r-- 1 root root  2901720 Jan  3 20:53 /usr/lib64/oracle/11.2.0.0.2/client/lib/libnnz11.so
lrwxrwxrwx 1 root root       55 Jan  3 20:53 /usr/lib64/oracle/11.2.0.0.2/client/lib/libocci.so -> /usr/lib64/oracle/11.2.0.0.2/client/lib/libocci.so.11.2
-rw-r--r-- 1 root root 87837544 Jan  3 20:53 /usr/lib64/oracle/11.2.0.0.2/client/lib/libociei.so
-rw-r--r-- 1 root root   137064 Jan  3 20:53 /usr/lib64/oracle/11.2.0.0.2/client/lib/libocijdbc11.so

Looking at the build log:
>>> Install oracle-instantclient-basic-11.2.0.0.2 into /var/tmp/portage/dev-db/oracle-instantclient-basic-11.2.0.0.2/image/ category dev-db
install: cannot stat `*.so.11.2': No such file or directory
!!! doins: *.so.11.2 does not exist
>>> Completed installing oracle-instantclient-basic-11.2.0.0.2 into /var/tmp/portage/dev-db/oracle-instantclient-basic-11.2.0.0.2/image/

 * QA Notice: file does not exist:
 * 
 *      doins: *.so.11.2 does not exist

As a consequence, the build is pretty unusable, and other packages trying to compile against it (e.g. dev-lang/php-5.2.12[oci8-instant-client]) will fail to do so.

Looking at the unpacked work dir, it seems that the libs in question still use the 11.1 sonames, despite the changed package version number. Which seems a good thing, as e.g. php explicitely checks for 11.1 and would fail otherwise.

So the solution is simple, change the doins to *.so.11.1 or *.so.11.*.
Comment 1 Martin von Gagern 2010-01-04 08:32:50 UTC
Created attachment 215140 [details, diff]
Revert from CVS 1.2 to 1.1

(In reply to comment #0)
> So the solution is simple, change the doins to *.so.11.1 or *.so.11.*.

... and adjust the "fixes symlinks" section.

Looks like everything was all right in CVS rev 1.1 of that ebuild, but 1.2 broke things while according to the commit message it was supposed to "Fix doins". So the diff to fix this is there already, albeit reversed:
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-11.2.0.0.2.ebuild?r1=1.1&r2=1.2
I've attached it as a forward case for your convenience.

When fixing this you should bump the revision, as the issue affects the runtime behaviour of the installed package.
Comment 2 Eric Johnson 2010-01-08 16:54:03 UTC
(In reply to comment #1)
> As a consequence, the build is pretty unusable, and other packages trying to
> compile against it (e.g. dev-lang/php-5.2.12[oci8-instant-client]) will fail to
> do so.

It installs broken links for me, as well. I've pulled the more recent build of 11.2.0.1 and libocci.so and libclntsh.so are both broken, so that dev-db/tora-2.1.0 and dev-db/tora-2.1.1 do not build.
Comment 3 Tobias Scherbaum (RETIRED) gentoo-dev 2010-01-26 19:09:02 UTC
Fixed in CVS.