Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669886 - net-misc/spice-gtk-0.35 fails to emerge with "libressl" useflag.
Summary: net-misc/spice-gtk-0.35 fails to emerge with "libressl" useflag.
Status: RESOLVED DUPLICATE of bug 664512
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2018-10-28 19:17 UTC by pagorman
Modified: 2018-11-03 01:13 UTC (History)
0 users

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


Attachments
emerge --info on the package. (emerge--info.spice-gtk,6.12 KB, text/plain)
2018-10-28 19:17 UTC, pagorman
Details
Build Log. (net-misc:spice-gtk-0.35:20181028-191040.log,46.00 KB, text/plain)
2018-10-28 19:18 UTC, pagorman
Details
patch to change static declarations to dynamic, assuring compatibility with LibreSSL 2.7.4 (spice-gtk-0.35-libressl-2.7.4.patch,2.69 KB, patch)
2018-10-28 23:19 UTC, pagorman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pagorman 2018-10-28 19:17:26 UTC
Created attachment 553544 [details]
emerge --info on the package.

MAKEOPTS="-j1" emerge -av1 spice-gtk

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] net-misc/spice-gtk-0.35::gentoo  USE="dbus gtk3 introspection libressl lz4 policykit pulseaudio usbredir -gstaudio -gstvideo -mjpeg -sasl -smartcard -static-libs -vala -webdav" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

----------------------

ssl_verify.c:37:29: error: static declaration of ‘ASN1_STRING_get0_data’ follows non-static declaration
 static const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1)
                             ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/rsa.h:64:0,
                 from ssl_verify.h:31,
                 from ssl_verify.c:24:
/usr/include/openssl/asn1.h:788:22: note: previous declaration of ‘ASN1_STRING_get0_data’ was here
 const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x);
                      ^~~~~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:568: ssl_verify.lo] Error 1
make[5]: Leaving directory '/var/tmp/portage/net-misc/spice-gtk-0.35/work/spice-gtk-0.35/spice-common/common'
make[4]: *** [Makefile:468: all] Error 2
make[4]: Leaving directory '/var/tmp/portage/net-misc/spice-gtk-0.35/work/spice-gtk-0.35/spice-common/common'
make[3]: *** [Makefile:459: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/net-misc/spice-gtk-0.35/work/spice-gtk-0.35/spice-common'
make[2]: *** [Makefile:391: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/net-misc/spice-gtk-0.35/work/spice-gtk-0.35/spice-common'
make[1]: *** [Makefile:621: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/spice-gtk-0.35/work/spice-gtk-0.35'
make: *** [Makefile:528: all] Error 2
 * ERROR: net-misc/spice-gtk-0.35::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-misc/spice-gtk-0.35::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/spice-gtk-0.35::gentoo'`.
 * The complete build log is located at '/usr/portage/logs/net-misc:spice-gtk-0.35:20181028-191040.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-misc/spice-gtk-0.35/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/spice-gtk-0.35/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/spice-gtk-0.35/work/spice-gtk-0.35'
 * S: '/var/tmp/portage/net-misc/spice-gtk-0.35/work/spice-gtk-0.35'

>>> Failed to emerge net-misc/spice-gtk-0.35, Log file:

>>>  '/usr/portage/logs/net-misc:spice-gtk-0.35:20181028-191040.log'
Comment 1 pagorman 2018-10-28 19:18:31 UTC
Created attachment 553546 [details]
Build Log.
Comment 2 pagorman 2018-10-28 23:17:35 UTC
Turns out that OpenSSL declares heaps of the codebase as static, while LibreSSL (at least, v2.7.4, as I'm using) does not in many cases.

Wrote a quick patch to address this.
Comment 3 pagorman 2018-10-28 23:19:50 UTC
Created attachment 553574 [details, diff]
patch to change static declarations to dynamic, assuring compatibility with LibreSSL 2.7.4

Note that we're using LibreSSL 2.7.4 - I'm not certain if this is much of what's making that particular unmask a challenge, but I do enjoy finding out.
Comment 4 pagorman 2018-11-03 01:13:31 UTC
https://bugs.gentoo.org/664512
Better solution.
Comment 5 pagorman 2018-11-03 01:13:52 UTC

*** This bug has been marked as a duplicate of bug 664512 ***