Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516832 - www-servers/hiawatha with net-libs/polarssl - add support for POLARSSL_THREADING_PT1HREAD compiler flag
Summary: www-servers/hiawatha with net-libs/polarssl - add support for POLARSSL_THREAD...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-07-10 09:47 UTC by milk
Modified: 2014-07-11 13:01 UTC (History)
1 user (show)

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


Attachments
patch the polarssl-1.3.7.ebuild to enable pthreads (polarssl-1.3.7.ebuild.pthread.patch,847 bytes, patch)
2014-07-10 09:47 UTC, milk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description milk 2014-07-10 09:47:02 UTC
Created attachment 380538 [details, diff]
patch the polarssl-1.3.7.ebuild to enable pthreads

Hi,

I updated my system and after that www-servers/hiawatha-9.6-r1 complained to start
with the following error:

PolarSSL was compiled without the required POLARSSL_THREADING_PT1HREAD compiler flag.

So I copied the ebuild-drectory for net-libs/polarssl from /usr/portage to /usr/local/portage end patched it as follows:

--- snip ---

--- polarssl-1.3.7.ebuild.original      2014-07-10 10:17:44.000000000 +0200
+++ polarssl-1.3.7.ebuild       2014-07-10 10:21:05.000000000 +0200
@@ -13,7 +13,7 @@ SRC_URI="http://polarssl.org/download/${
 LICENSE="GPL-2"
 SLOT="0/6"
 KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-fbsd ~x86-fbsd"
-IUSE="doc havege programs sse2 static-libs test zlib"
+IUSE="doc havege programs sse2 static-libs test zlib threads"

 RDEPEND="
  programs? ( dev-libs/openssl:0 )
@@ -34,6 +34,8 @@ src_prepare() {
  use sse2 && enable_polarssl_option POLARSSL_HAVE_SSE2
  use zlib && enable_polarssl_option POLARSSL_ZLIB_SUPPORT
  use havege && enable_polarssl_option POLARSSL_HAVEGE_C
+ use threads && enable_polarssl_option POLARSSL_THREADING_C
+ use threads && enable_polarssl_option POLARSSL_THREADING_PTHREAD
 }

 multilib_src_configure() {

--- snap ---

After reinstalling hiawatha wasn't complaining anymore.

I'm including the patch as attachment.

milk
Comment 1 Julian Ospald 2014-07-11 12:57:53 UTC
+*polarssl-1.3.7-r1 (11 Jul 2014)
+
+  11 Jul 2014; Julian Ospald <hasufell@gentoo.org> +polarssl-1.3.7-r1.ebuild:
+  add threads USE flag wrt #516832
Comment 2 Julian Ospald 2014-07-11 13:01:23 UTC
+  11 Jul 2014; Julian Ospald <hasufell@gentoo.org> hiawatha-9.5.ebuild,
+  hiawatha-9.6.ebuild, hiawatha-9.6-r1.ebuild:
+  fix polarssl dep wrt #516832