Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925484 - app-crypt/gnupg-2.2.42-r2 configure failure with dev-libs/npth-1.7
Summary: app-crypt/gnupg-2.2.42-r2 configure failure with dev-libs/npth-1.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-25 10:06 UTC by Ulrich Müller
Modified: 2024-02-25 11:19 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,17.99 KB, text/plain)
2024-02-25 10:06 UTC, Ulrich Müller
Details
config.log (config.log,226.29 KB, text/plain)
2024-02-25 10:06 UTC, Ulrich Müller
Details
gnupg-2.2.42-npth-1.7.patch (gnupg-2.2.42-npth-1.7.patch,652 bytes, patch)
2024-02-25 11:19 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2024-02-25 10:06:10 UTC
configure:
***
*** It is now required to build with support for the
*** New Portable Threads Library (nPth). Please install this
*** library first.  The library is for example available at
***   https://gnupg.org/ftp/gcrypt/npth/
*** (at least version 1.2 (API 1) is required).
***
configure: error: 
***
*** Required libraries not found. Please consult the above messages
*** and install them before running configure again.
***

!!! Please attach the following file when seeking support:
!!! /tmp/portage/app-crypt/gnupg-2.2.42-r2/work/gnupg-2.2.42_build/config.log
 * ERROR: app-crypt/gnupg-2.2.42-r2::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  136:  Called src_configure
 *             environment, line 1807:  Called out-of-source_src_configure
 *             environment, line 1682:  Called my_src_configure
 *             environment, line 1623:  Called econf '--enable-bzip2' '--enable-nls' '--enable-scdaemon' '--enable-gnutls' '--disable-all-tests' '--disable-tests' '--disable-tofu' '--enable-ccid-driver' '--disable-wks-tools' '--without-ldap' '--with-readline' '--with-mailprog=/usr/libexec/sendmail' '--disable-ntbtls' '--enable-gpg' '--enable-gpgsm' '--enable-large-secmem' 'CC_FOR_BUILD=x86_64-pc-linux-gnu-gcc' 'GPG_ERROR_CONFIG=/usr/bin/x86_64-pc-linux-gnu-gpg-error-config' 'KSBA_CONFIG=/usr/bin/ksba-config' 'LIBASSUAN_CONFIG=/usr/bin/libassuan-config' 'LIBGCRYPT_CONFIG=/usr/bin/x86_64-pc-linux-gnu-libgcrypt-config' 'NPTH_CONFIG=/usr/bin/npth-config' '--without-libiconv-prefix' '--without-libintl-prefix'
 *        phase-helpers.sh, line  732:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *   		die "$@"


Portage 3.0.62 (python 3.12.2-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.39-r1, 6.6.13-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.13-gentoo-x86_64-AMD_Ryzen_7_PRO_7730U_with_Radeon_Graphics-with-glibc2.39
KiB Mem:    31632924 total,  23016268 free
KiB Swap:   33554428 total,  33262572 free
Timestamp of repository gentoo: Sat, 24 Feb 2024 16:45:00 +0000
Head commit of repository gentoo: ef17f21c1016796a9e010ce8586c0ef8dce7a85d
Timestamp of repository emacs: Mon, 12 Feb 2024 16:35:38 +0000
Head commit of repository emacs: 01e60bf118c79eae38bf9f30d6fb8ee7a3d549cf

Timestamp of repository ulm: Sat, 13 Jan 2024 20:35:12 +0000
Head commit of repository ulm: 9a235528b70309270af9bee0ac179f2923585544

sh bash 5.2_p26
ld GNU ld (Gentoo 2.42 p3) 2.42.0
ccache version 4.9.1 [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           2.7.18_p16-r2::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust:             1.75.0-r1::gentoo
dev-util/ccache:           4.9.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync1.de.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 8
    sync-rsync-extra-opts: --exclude=/lost+found
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-metamanifest: yes

emacs
    location: /var/db/repos/emacs
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/emacs.git
    masters: gentoo
    volatile: False

ulm
    location: /var/db/repos/ulm
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/ulm.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 100
    volatile: True

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /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=native -ggdb -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --dynamic-deps=n --changed-deps-report=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=native -ggdb -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env"
FFLAGS="-march=native -ggdb -O2 -pipe"
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/   http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/   http://mirror.netcologne.de/gentoo/   http://gentoo.osuosl.org/"
LANG="POSIX"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_GB en_US de de@1901 de_DE fr fr_FR la"
MAKEOPTS="-j16 -l24"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/lost+found"
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="/tmp"
SHELL="/bin/bash"
USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 amr bash-completion bbdb bluetooth branding bzip2 cairo caps cdda cdparanoia cdr cli crypt css cups curl dbus dri dts dvd dvdr elogind emacs encode exif expat fbcon ffmpeg filecaps flac fontconfig fortran gd gdbm ggi gif gimp gmp gpg gpm gstreamer gtk gui guile harfbuzz iconv icu imagemagick imap inotify ipv6 jbig jpeg kpathsea latex lcms libcaca libnotify libtirpc lua lzma m17n-lib mad math metric mng motif mp3 mp4 mpeg multilib ncurses nls nscd nsplugin offensive ogg opengl openmp pam pango pcre pdf pkcs11 plotutils png policykit portaudio postgres postscript ppds pulseaudio qt5 readline recode regex sdl seccomp skey sound sox speex spell split-usr ssl startup-notification svg t1lib test-rust tiff truetype udev udisks unicode upower usb v4l vorbis wifi wxwidgets x264 xattr xcb xft xml xpm xv xvid xvmc zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en en-GB de de-1901 fr la" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_12" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev radeonsi vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
YACC="bison -y"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YFLAGS

=================================================================
                        Package Settings
=================================================================

app-crypt/gnupg-2.2.42-r2::gentoo was built with the following:
USE="bzip2 doc nls readline smartcard ssl usb -ldap (-selinux) -test -tofu -tools -user-socket -verify-sig -wks-server" ABI_X86="(64)"
FEATURES="binpkg-logs binpkg-docompress preserve-libs userpriv usersandbox sign binpkg-multi-instance userfetch parallel-fetch ccache buildpkg-live collision-protect distlocks fakeroot sandbox warn-on-large-env sfperms compressdebug usersync fixlafiles unmerge-orphans assume-digests strict protect-owned binpkg-dostrip strict-keepdir ebuild-locks qa-unresolved-soname-deps unmerge-logs ipc-sandbox unknown-features-warn splitdebug merge-wait network-sandbox news pkgdir-index-trusted multilib-strict merge-sync config-protect-if-modified pid-sandbox"
Comment 1 Ulrich Müller gentoo-dev 2024-02-25 10:06:34 UTC
Created attachment 885941 [details]
build.log
Comment 2 Ulrich Müller gentoo-dev 2024-02-25 10:06:58 UTC
Created attachment 885942 [details]
config.log
Comment 3 Jakov Smolić archtester gentoo-dev 2024-02-25 10:25:00 UTC
I'm able to build most recent gnupg with npth-1.7, but 2.2.42-r2 fails as well.
It's due to npth not installing `npth-config` by default any more (https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git;a=blobdiff;f=NEWS;h=08f7507118b2da424260277d35e9860462fc4f95;hp=d74292ff492852bfd5e07f3e6d9a53d088d04125;hb=2b6a8e5369ed37d64d1bafd3a546ec52e25acd26;hpb=ebdc0da1fc416cb9f7edf9e490a15b7a8fe94b55) and I guess this gnupg version doesn't try to use `gpgrt-config`, which gnupg-2.4.4-r1 does. We can either add a limit on npth version in gnupg or add a configure swtich in npth to keep installing `npth-config`
Comment 4 Jakov Smolić archtester gentoo-dev 2024-02-25 10:40:16 UTC
I guess it's better to just install this file in npth than adding a '<' dep so I'll commit this change to npth in a moment.
Comment 5 Larry the Git Cow gentoo-dev 2024-02-25 10:41:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cbdd9d36f13b1b7892c388edd8f52e6ce6e0c53

commit 2cbdd9d36f13b1b7892c388edd8f52e6ce6e0c53
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2024-02-25 10:36:30 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2024-02-25 10:40:53 +0000

    dev-libs/npth: Install npth-config program for older gnupg compatibility
    
    Closes: https://bugs.gentoo.org/925484
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 dev-libs/npth/{npth-1.7.ebuild => npth-1.7-r1.ebuild} | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 6 Ulrich Müller gentoo-dev 2024-02-25 11:19:46 UTC
Created attachment 885948 [details, diff]
gnupg-2.2.42-npth-1.7.patch

Attached patch (plus eautoreconf) fixes the problem for me.