although zlib is supported via "#define POLARSSL_ZLIB_SUPPORT" in include/polarssl/config.h (commented) and "ifdef ZLIB" in Makefile
Created attachment 357970 [details, diff] polarssl-1.2.8-r1.ebuild.diff * use EAPI=5 * add havege (#483792), static-libs and zlib (#483784) useflags * remove unneded patch * respect CFLAGS in linking command (as advised by toolchain team) * die on all non-portage functions * remove obsolete dies * make some variables local
Created attachment 357972 [details, diff] polarssl-1.2.0-cflags.patch
I forgot... I changed the sed from "-DHAVE_SSE2" to "-DPOLARSSL_HAVE_SSE2", because I there is no "HAVE_SSE2" ifdef in the code, check https://github.com/polarssl/polarssl/blob/e29ab067011b8e79fdd5c16bcb0604587ea6e5de/include/polarssl/config.h#L96
on the other hand, the CFLAGS magic might be insufficient, because "config.h" is shipped with the headers, so it's probably better so sed the "config.h" file for all useflags
Created attachment 357978 [details, diff] polarssl-1.2.8-r1.ebuild.diff * use EAPI=5 * add havege (#483792), static-libs and zlib (#483784) useflags * remove unneded patch * respect CFLAGS in linking command (as advised by toolchain team) * die on all non-portage functions * remove obsolete dies * make some variables local * fix sse2 useflag * sed config.h rather than adding CFLAGS since config.h is shipped
Created attachment 357980 [details] polarssl-1.2.8-r1.ebuild plain ebuild
Created attachment 357986 [details, diff] polarssl-1.2.8-r1-x509write.patch fix for https://polarssl.org/discussions/bug-report-issues/c-plus-plus-linking-issues-with-x509write-c-vc-plus-plus
can the maintainer comment on this?
(In reply to Julian Ospald (hasufell) from comment #8) > can the maintainer comment on this? Why did you add the OFLAGS variable in the emake options in src_compile? I also dont see any option to disable static libs and no reasoning, why a static lib should be installed. The rest should be ok (In reply to Michael Cook from comment #7) > Created attachment 357986 [details, diff] [details, diff] > polarssl-1.2.8-r1-x509write.patch > > fix for > https://polarssl.org/discussions/bug-report-issues/c-plus-plus-linking- > issues-with-x509write-c-vc-plus-plus Any specific reason, why we should do this patch downstream instead of waiting for upstream to include it in a future release?
(In reply to Thomas Sachau from comment #9) > (In reply to Julian Ospald (hasufell) from comment #8) > > can the maintainer comment on this? > > Why did you add the OFLAGS variable in the emake options in src_compile? Because that is easier than sedding CFLAGS+="-fPIC" into the Makefile. > I also dont see any option to disable static libs and no reasoning, why a > static lib should be installed. > to disable static libs you do USE="-static-libs" If libraries allow building of static libs, then we should provide that as an ebuild option. Gentoo is not just for end users. It doesn't matter if there is no consumer or obvious use case.
ebuild patch applied to 1.3.0
thanks bro