Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629856 - dev-libs/libmowgli-2.1.0 needs openssl[-bindist] ( fatal error: openssl/ec.h: No such file or directory )
Summary: dev-libs/libmowgli-2.1.0 needs openssl[-bindist] ( fatal error: openssl/ec.h:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Wade Cline
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-04 06:16 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2017-09-06 10:59 UTC (History)
2 users (show)

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


Attachments
build.log (libmowgli-2.1.0:20170904-061106.log,9.57 KB, text/plain)
2017-09-04 06:16 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
[1/2] (0001-dev-libs-libmowgli-Bump-to-2.1.1.patch,3.15 KB, patch)
2017-09-06 00:59 UTC, Wade Cline
Details | Diff
[2/2] (0002-net-irc-atheme-services-Revbump-to-7.2.9-r1.patch,1.27 KB, patch)
2017-09-06 01:00 UTC, Wade Cline
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-09-04 06:16:58 UTC
Created attachment 492230 [details]
build.log

When openssl is built with USE=bindist,  support and headers for EC algorithms is disabled:


quse -D bindist | grep ssl
 local:bindist:dev-libs/openssl: Disable EC algorithms (as they seem to be patented) -- note: changes the ABI

This error occurs regardless of the USE="ssl" on this package, and USE="-ssl" still appears to compile against openssl

config.status: creating src/libmowgli/platform/autoconf.h

Configuration:
   OpenSSL support: yes
   Examples: no

Now type "make" to build, and "make install" to install.
Thank you for using libmowgli.

...

CompileLib: metadata.lib.o
Link: mowgli.platform.lib.a
make[3]: warning: -jN forced in submake: disabling jobserver mode.
CompileLib: vio.lib.o
CompileLib: vio_sockets.lib.o
make[4]: warning: -jN forced in submake: disabling jobserver mode.
vio_openssl.c:36:26: fatal error: openssl/ec.h: No such file or directory
compilation terminated.
CompileLib: vio_openssl.lib.o
CompileLib: posix_mutexops.lib.o
CompileLib: win32_mutexops.lib.o
Link: mowgli.object.lib.a
vio_openssl.c:36:26: fatal error: openssl/ec.h: No such file or directory
compilation terminated.
make[3]: *** [../../../buildsys.mk:349: vio_openssl.lib.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [../../buildsys.mk:114: vio] Error 2
make[2]: *** Waiting for unfinished jobs....
Link: mowgli.thread.lib.a
make[1]: *** [../buildsys.mk:114: libmowgli] Error 2
Comment 1 Wade Cline 2017-09-04 23:42:17 UTC
I may not get a chance to take a stab at this before going on vacation, but will for sure look at it when I return (after Sept 17th).
Comment 2 Wade Cline 2017-09-05 05:18:04 UTC
I talked with the upstream and there is both a problem with the autotools not disabling OpenSSL appropriately and also trying to include disabled algorithms.  It should be fixed in the next release.  I'll see about adding a workaround for the current release.
Comment 3 Aaron Jones 2017-09-05 05:31:57 UTC
(I am upstream) This has been fixed in version 2.1.1 and an ebuild for this will be created eventually.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-09-05 07:08:18 UTC
Thanks a lot to you both. Wade, if you don't have time to bump it, just let me know. I suppose this will be a simple bump which I can do for you.
Comment 5 Wade Cline 2017-09-06 00:59:58 UTC
Created attachment 492716 [details, diff]
[1/2]
Comment 6 Wade Cline 2017-09-06 01:00:19 UTC
Created attachment 492718 [details, diff]
[2/2]
Comment 7 Wade Cline 2017-09-06 01:02:07 UTC
These patches should fix the issue, and also fix https://bugs.gentoo.org/show_bug.cgi?id=629644 as well.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-09-06 08:13:06 UTC
Comment on attachment 492716 [details, diff]
[1/2]

>From 3c65546014c97b966aac40b37ea1e24552ed7a20 Mon Sep 17 00:00:00 2001
>From: Wade Cline <wadecline@hotmail.com>
>Date: Tue, 5 Sep 2017 16:50:40 -0700
>Subject: [PATCH 1/2] dev-libs/libmowgli: Bump to 2.1.1.
>
>Closes: https://bugs.gentoo.org/629644
>Closes: https://bugs.gentoo.org/629856
>---
> dev-libs/libmowgli/Manifest                                          | 2 +-
> .../libmowgli/{libmowgli-2.1.0.ebuild => libmowgli-2.1.1.ebuild}     | 5 +++--
> 2 files changed, 4 insertions(+), 3 deletions(-)
> rename dev-libs/libmowgli/{libmowgli-2.1.0.ebuild => libmowgli-2.1.1.ebuild} (89%)
>
>diff --git a/dev-libs/libmowgli/Manifest b/dev-libs/libmowgli/Manifest
>index 35ef2c43ee5..7962384462e 100644
>--- a/dev-libs/libmowgli/Manifest
>+++ b/dev-libs/libmowgli/Manifest
>@@ -1,3 +1,3 @@
> DIST libmowgli-1.0.0.tar.bz2 105929 SHA256 8ea0dfd606b0ac280747c9a5f93ca940c23c7367dee0776715c87623ae6624fb SHA512 f3f7f9a527cb3f6f24c23d0585b55509d8721023c670df9e59a7f5667d4e12caf17ed71773cd1283a3ebfada465824653f654aa29d857c076875d36b2a824313 WHIRLPOOL 209cb5a81003eac9952a771a0afc08073f242566e28d378432a0f172b8b195ccfc03b1a8f85949f1d22063c1519afd48b6263de7e4403a14c365de94d5f8f83e
> DIST libmowgli-2.0.0.tar.gz 200771 SHA256 7c5a94082899d055fc9a02b94e2658b42616fdb98e58e9a71165c07b6f5cceba SHA512 efccd93824c116fa8440f1d327382997f7d752d007dc9fad650ef1935fe0cee1a3fa1c645442a3f3f0f6d9f2916f66882e537a1692c494303fc0bf062df51e3a WHIRLPOOL 75c5698e1ccc5e1895d8d5f35d00347ceaf5424a621ecae399ebfe6537bf591edc21d0e42f7923704e3c857cc7349447d514605bb1d3e0e78f136e530933e8ed
>-DIST libmowgli-2.1.0.tar.gz 227664 SHA256 46ef60c642c457a5d0e36bfc8c277e74d2ebf4ab9cbc4e40153781ed4ab0fe7d SHA512 d6a219ea24d0aa391ba1e62439fb208259f96ba469324bf789a66d917a13a90f3ff5fcc5f8cc956ae594aecfbbfe1165add3dc15faa1c09dd559ccbb8d8ea4ee WHIRLPOOL 0bdc724bf8cb7960c990902fc2a80c61473cd4060808fd2aaded8e70b029c5a80ee30e57a3989922e7b927879a188e192efc1972127a2ef89c1975c383d9ddf3
>+DIST libmowgli-2.1.1.tar.gz 227731 SHA256 98d6cf3faba0a6f3e919598cbb21e069f4ba77af09ec968f377ac1b5d3f507d2 SHA512 9880d4fcfba28cf0fb19033b48f95cd3555efd6f3e6a7a2c9f39be2a07df0217eb9ce83fa18ecc6707a04252dbaf6be4efce8258100e3da0a64690a6801b8882 WHIRLPOOL 1279b09a464535d225924de5092b199d0d0c56530a55a765db3113dd6e696ec2501567e354109cd925050099805728251e8d293f76ec0779d15bed5da314d1a5
>diff --git a/dev-libs/libmowgli/libmowgli-2.1.0.ebuild b/dev-libs/libmowgli/libmowgli-2.1.1.ebuild
>similarity index 89%
>rename from dev-libs/libmowgli/libmowgli-2.1.0.ebuild
>rename to dev-libs/libmowgli/libmowgli-2.1.1.ebuild
>index d2eefabb7e0..ddd1f1d1cce 100644
>--- a/dev-libs/libmowgli/libmowgli-2.1.0.ebuild
>+++ b/dev-libs/libmowgli/libmowgli-2.1.1.ebuild
>@@ -8,12 +8,13 @@ HOMEPAGE="https://github.com/atheme/libmowgli-2"
> SRC_URI="https://github.com/atheme/libmowgli-2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
> 
> LICENSE="BSD-2"
>-SLOT="0"
>+SLOT="2"
> KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
> IUSE="ssl"
> 
> RDEPEND="ssl? ( dev-libs/openssl:0= )"
>-DEPEND="${RDEPEND}"
>+DEPEND="${RDEPEND}
>+	!!=dev-libs/libmowgli-2.1.0" # Bug 629644

Actually, a weak blocker is enough (!).

> 
> DOCS=(AUTHORS README doc/BOOST doc/design-concepts.txt)
> S="${WORKDIR}/${PN}-2-${PV}"
>-- 
>2.13.5
>

...but I'll fix that for you, I wouldn't be able to stand reviewing yet one more patch on Bugzilla. This workflow is so horrible.
Comment 9 Larry the Git Cow gentoo-dev 2017-09-06 10:59:29 UTC
Bug has been closed via the following commit:
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c3f94a9b81e9939493f6c85a8ae905f2625d2b5

    commit 4c3f94a9b81e9939493f6c85a8ae905f2625d2b5
Author:     Wade Cline <wadecline@hotmail.com>
AuthorDate: 2017-09-05 23:50:40 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2017-09-06 10:58:29 +0000

    dev-libs/libmowgli: Bump to 2.1.1.
    
    Closes: https://bugs.gentoo.org/629644
    Closes: https://bugs.gentoo.org/629856

 dev-libs/libmowgli/Manifest                                          | 2 +-
 .../libmowgli/{libmowgli-2.1.0.ebuild => libmowgli-2.1.1.ebuild}     | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)