Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658210 - net-libs/neon-0.30.2 with >=dev-libs/libressl-2.7 breakage
Summary: net-libs/neon-0.30.2 with >=dev-libs/libressl-2.7 breakage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Arfrever Frehtes Taifersar Arahesis
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: libressl-2.8.0
  Show dependency tree
 
Reported: 2018-06-16 09:49 UTC by Tom Li
Modified: 2019-05-05 19:05 UTC (History)
1 user (show)

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


Attachments
Fix LibreSSL 2.7 (libressl-2.7.patch,1.82 KB, patch)
2018-06-16 09:49 UTC, Tom Li
Details | Diff
testcase (file_658210.txt,197 bytes, text/plain)
2019-03-04 07:19 UTC, pagorman
Details
environment file (environment,78.00 KB, text/plain)
2019-03-04 07:24 UTC, pagorman
Details
Build Log. (net-libs:neon-0.30.2:20190304-070844.log,29.19 KB, text/plain)
2019-03-04 07:26 UTC, pagorman
Details
successful-build-log-with-proposed-patch (net-libs:neon-0.30.2:20190304-072224.log,66.21 KB, text/plain)
2019-03-04 07:34 UTC, pagorman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Li 2018-06-16 09:49:53 UTC
Created attachment 536046 [details, diff]
Fix LibreSSL 2.7

Because LibreSSL introduced several new APIs to the upstream, net-libs/neon-0.30.2 cannot be built with LibreSSL 2.7 successfully due to the redefinition of X509_up_ref, EVP_PKEY_up_ref, EVP_PKEY_get0_RSA, RSA_meth_free, etc. The attached patch fixes the issue.
Comment 1 Ulenrich 2018-06-16 13:00:47 UTC
for me the neon compiles without above patch:
---
# qlist -Iv libressl
dev-libs/libressl-2.7.4

# emerge -1 net-libs/neon

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

Calculating dependencies  .... .. .... done!
[ebuild   R    ] net-libs/neon-0.30.2:0/27::gentoo  USE="-doc expat -gnutls -kerberos -libproxy libressl nls -pkcs11 ssl -static-libs zlib" ABI_X86="32 (64) (-x32)" 0 KiB

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

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) net-libs/neon-0.30.2::gentoo
>>> Installing (1 of 1) net-libs/neon-0.30.2::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 4.67, 3.35, 3.97
>>> Auto-cleaning packages...
---
Comment 2 Tom Li 2018-06-16 17:25:14 UTC
Try enable the "pkcs11" flag.
Comment 3 Stefan Strogin gentoo-dev 2019-02-26 15:49:43 UTC
Cannot reproduce with LibreSSL 2.8.3. Does this bug still exist? If so, could you please attach build logs and your exact use flags ("emerge -pqv '=net-libs/neon-0.30.2::gentoo'") and system configuration ("emerge --info")?
Comment 4 pagorman 2019-03-04 07:19:53 UTC
Created attachment 567724 [details]
testcase

fails to build with libressl-2.8.3 and gcc-8.3.0 when pkcs11 useflag is set.
Comment 5 pagorman 2019-03-04 07:21:54 UTC
emerge --info
Portage 2.3.51 (python 3.6.5-final-0, default/linux/amd64/17.0/hardened, gcc-8.3.0, glibc-2.27-r6, 4.19.26-gentoocryptZ x86_64)
=================================================================
System uname: Linux-4.19.26-gentoocryptZ-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.6
KiB Mem:    31266848 total,  20255524 free
KiB Swap:   34603004 total,  34603004 free
Timestamp of repository gentoo: Mon, 04 Mar 2019 03:00:01 +0000
Head commit of repository gentoo: e2d5c56450b953372bcff4792994a9df3665c66d
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            8.3.0::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

libressl
    location: /var/lib/layman/libressl
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.heanet.ie/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 bzip2 consolekit crypt custom-cflags custom-optimization custom-optimizations cxx doc hardened hwaccel iconv ipv6 libressl libtirpc multilib ncurses nls nptl openmp pam pcre pie policykit pulseaudio readline seccomp ssl ssp unicode xattr xtpax zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc multiboot qemu xen" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 arm" QEMU_USER_TARGETS="aarch64 aarch64_be arm armeb i386 x86_64" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 pagorman 2019-03-04 07:24:28 UTC
Created attachment 567726 [details]
environment file
Comment 7 pagorman 2019-03-04 07:26:31 UTC
Created attachment 567728 [details]
Build Log.
Comment 8 pagorman 2019-03-04 07:34:45 UTC
Created attachment 567730 [details]
successful-build-log-with-proposed-patch
Comment 9 pagorman 2019-04-25 21:54:08 UTC
builds fine with LibreSSL-2.9.1 and the pkcs11 useflag on amd64.
Comment 10 Arfrever Frehtes Taifersar Arahesis 2019-04-26 02:39:11 UTC
Summary of availability of necessary functions:

EVP_PKEY_get0_RSA             Added in LibreSSL 2.7.0
EVP_PKEY_up_ref               Added in LibreSSL 2.7.0
RSA_meth_new                  Added in LibreSSL 2.7.0
RSA_meth_free                 Added in LibreSSL 2.7.0
RSA_meth_get0_app_data        ABSENT in LibreSSL 2.9.1
RSA_meth_set0_app_data        ABSENT in LibreSSL 2.9.1
RSA_meth_set_priv_enc         Added in LibreSSL 2.7.0
X509_up_ref                   Added in LibreSSL 2.5.1
Comment 11 Larry the Git Cow gentoo-dev 2019-05-05 19:05:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4817be8b81641fdc439e4c847d16dad216357cbd

commit 4817be8b81641fdc439e4c847d16dad216357cbd
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2019-05-05 01:45:17 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-05-05 19:04:00 +0000

    net-libs/neon: Fix building with >=dev-libs/libressl-2.7.
    
    Fixes: https://bugs.gentoo.org/658210
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-libs/neon/neon-0.30.2.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)