Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271150 - net-libs/libproxy-0.2.3 keywording on sparc-solaris
Summary: net-libs/libproxy-0.2.3 keywording on sparc-solaris
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-25 00:10 UTC by Chí-Thanh Christopher Nguyễn
Modified: 2009-05-28 15:28 UTC (History)
1 user (show)

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


Attachments
libproxy-addrstrlen.patch (libproxy-addrstrlen.patch,1.02 KB, patch)
2009-05-25 00:12 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff
libproxy-0.2.3.ebuild.patch (libproxy-0.2.3.ebuild.patch,767 bytes, patch)
2009-05-25 00:13 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chí-Thanh Christopher Nguyễn gentoo-dev 2009-05-25 00:10:42 UTC
net-libs/libproxy-0.2.3 does not build by default on sparc-solaris because of missing "-lsocket -lnsl" flags and because Solaris does not define INET_ADDRSTRLEN/INET6_ADDRSTRLEN.

Attached patches make it emerge successfully.

Reproducible: Always

Steps to Reproduce:
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-05-25 00:12:00 UTC
Created attachment 192354 [details, diff]
libproxy-addrstrlen.patch

This patch adds INET_ADDRSTRLEN/INET6_ADDRSTRLEN defines when undefined
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-05-25 00:13:13 UTC
Created attachment 192356 [details, diff]
libproxy-0.2.3.ebuild.patch

diff to updated ebuild, also adds necessary linker flags
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-05-26 22:25:01 UTC
Thanks, I added it.

Could you be so kind as to submit it upstream: http://code.google.com/p/libproxy/issues/list ??
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-05-26 22:48:22 UTC
Submitted the issues upstream
http://code.google.com/p/libproxy/issues/detail?id=51
http://code.google.com/p/libproxy/issues/detail?id=52
Comment 5 Marius Konitzer 2009-05-28 14:49:54 UTC
libproxy still doesn't compile on Solaris.

Line 63 of net-libs/libproxy/libproxy-0.2.3.ebuild is:
[[ ${CHOST} == *-solaris ]] && extralibs="-lsocket -lnsl"
but should be:
[[ ${CHOST} == *-solaris* ]] && extralibs="-lsocket -lnsl"
in order to be set on Solaris systems. With this fixed compilation works fine.

Could you please add the required asterisk?
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-05-28 15:28:50 UTC
(In reply to comment #5)
> libproxy still doesn't compile on Solaris.
> 
> Line 63 of net-libs/libproxy/libproxy-0.2.3.ebuild is:
> [[ ${CHOST} == *-solaris ]] && extralibs="-lsocket -lnsl"
> but should be:
> [[ ${CHOST} == *-solaris* ]] && extralibs="-lsocket -lnsl"
> in order to be set on Solaris systems. With this fixed compilation works fine.
> 
> Could you please add the required asterisk?
> 

Seems reasonable to me, added.