Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425486 - app-admin/eselect-php: get_libname() is not multilib aware
Summary: app-admin/eselect-php: get_libname() is not multilib aware
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ole Markus With (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: portage-multilib
  Show dependency tree
 
Reported: 2012-07-09 12:43 UTC by Anthony Basile
Modified: 2012-07-10 17:45 UTC (History)
1 user (show)

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


Attachments
Fix eselect python to be multilib aware (multilib-aware.patch,415 bytes, text/plain)
2012-07-09 12:43 UTC, Anthony Basile
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Basile gentoo-dev 2012-07-09 12:43:10 UTC
Created attachment 317684 [details]
Fix eselect python to be multilib aware

Hi Ole, in eselect-php, in get_libname(), you use libz.* to get the extension on libraries, eg .a or .so.  Its popular enough, but you assume that it is found at "${EROOT}"/lib/libz.*.  This is not necessarily the case on true multilib systesm --- I hit this on a mips64el and there you need to look for /lib32/libz.so.1.2.7.

The fix is simple enough since you already have get_active_libdir() so use it as you do elsewhere in the code.  See my patch.
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2012-07-09 18:49:49 UTC
Applied the patch and bumped.
Comment 2 Anthony Basile gentoo-dev 2012-07-10 15:58:22 UTC
Uh oh!

blueness@yellow /tmp $  wget http://olemarkus.org/~olemarkus/gentoo/eselect-php-0.6.7.bz2
--2012-07-10 11:57:55--  http://olemarkus.org/~olemarkus/gentoo/eselect-php-0.6.7.bz2
Resolving olemarkus.org... 178.79.164.89, 2a01:7e00::f03c:91ff:fe93:2dbe
Connecting to olemarkus.org|178.79.164.89|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://barelysufficient.org/~olemarkus/gentoo/eselect-php-0.6.7.bz2 [following]
--2012-07-10 11:57:56--  https://barelysufficient.org/~olemarkus/gentoo/eselect-php-0.6.7.bz2
Resolving barelysufficient.org... 178.79.164.89, 2a01:7e00::f03c:91ff:fe93:2dbe
Connecting to barelysufficient.org|178.79.164.89|:443... connected.
ERROR: The certificate of `barelysufficient.org' is not trusted.
ERROR: The certificate of `barelysufficient.org' hasn't got a known issuer.
Comment 3 Ole Markus With (RETIRED) gentoo-dev 2012-07-10 16:03:10 UTC
Yeah. Some version of wget/ca-certificates or something else do not like my certificates. Works for "most", not for "some". Dunno why. But I moved the file to devspace this morning, so if you resync, it should work.
Comment 4 Anthony Basile gentoo-dev 2012-07-10 17:45:18 UTC
Thanks, that did it.

Off topic: There's a lot of ca-cert badness going around.  There are issues with nss, openssl and gnutls!  See bug 403619.  Look at robbat2's analysis.