Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 825342

Summary: dev-libs/cyrus-sasl-2.1.27-r5 : autoconf-2.70+ incompatibility prevents proper libgssapiv2 build
Product: Gentoo Linux Reporter: Douglas Paul <doug-gentoo>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732648    
Attachments: Correct build with new autotools

Description Douglas Paul 2021-11-20 18:09:54 UTC
When building cyrus-sasl-2.1.27-r5, there is incompatibility with the package's autoconf.ac, which causes failures when building this specific library.

Notably, this breaks authentication against AD using SSSD. The symptom of this is messages like this in the log:
sssd_be[76089]: No worthy mechs found

This is the same issue shown here:
https://src.fedoraproject.org/rpms/cyrus-sasl/c/874e9fc816a140251b12f37b1bf63a697cec34c1?branch=f35

When building, in the configure phase, there will be messages like this littered throughout, notably when checking for spnego support in libkrb5.

./configure: line 2165: ac_fn_c_try_run: command not found


Reproducible: Always

Steps to Reproduce:
1. Install autoconf > 2.70 (I have 2.71 installed)
2. Try to build cyrus-sasl with kerberos use flag

Actual Results:  
No error will be seen, but libgssapiv2.so will not be built with spnego support.

Expected Results:  
Expected spnego support, needed for SSSD AD authentication

Portage 3.0.28 (python 3.9.8-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.0, glibc-2.33-r7, 5.10.27-gentoo x86_64)
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-AMD_FX-tm-4170_Quad-Core_Processor-with-glibc2.33
KiB Mem:     8102484 total,   2609656 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Sat, 20 Nov 2021 06:15:01 +0000
Head commit of repository gentoo: 6814ed3538f749d8b57f9cdfae05d9970abeca3e
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
distcc 3.4 x86_64-pc-linux-gnu [enabled]
ccache version 4.4.2 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r3::gentoo
dev-lang/python:          3.9.8::gentoo
dev-lang/rust:            1.47.0-r2::gentoo
dev-util/ccache:          4.4.2::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://[local]/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=bdver1 --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=bdver1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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/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=bdver1 --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=bdver1 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 4 --load-average 4 --keep-going --rebuilt-binaries --usepkg"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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-docompress binpkg-dostrip binpkg-logs collision-protect config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_CA en_GB fr fr_CA fr_FR"
MAKEOPTS="-j 4 -l 4"
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 a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds emboss encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui hal ibus iconv icu introspection ipv6 jpeg kerberos lcms ldap libglvnd libnotify libsecret libtirpc mad maildir mng mono mp2 mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png pnm policykit ppds pulseaudio qt5 quicktime readline real rtsp sdl seccomp spell split-usr ssl startup-notification svg sysprof systemd theora threads tiff tracker truetype udev udisks unicode upnp upower usb vorbis wayland wifi wxwidgets x264 xattr xcb xinerama xml xulrunner xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2019" 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 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-CA en-GB fr fr-CA fr-FR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27"
Comment 1 Douglas Paul 2021-11-20 18:11:04 UTC
Created attachment 754022 [details, diff]
Correct build with new autotools
Comment 2 Larry the Git Cow gentoo-dev 2021-11-22 09:52:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d0711ff5c0e069faa6aed313e975b8800e48a65

commit 6d0711ff5c0e069faa6aed313e975b8800e48a65
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-22 09:51:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-22 09:51:41 +0000

    dev-libs/cyrus-sasl: fix autoconf 2.71 compatibility (breaks gssapi detection)
    
    Closes: https://bugs.gentoo.org/825342
    Signed-off-by: Sam James <sam@gentoo.org>

 ....1.27-r5.ebuild => cyrus-sasl-2.1.27-r6.ebuild} |  1 +
 .../files/cyrus-sasl-2.1.27-autoconf-2.71.patch    | 45 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)