"-Werror=unused-variable" in build flags makes libssh fail to build with gcrypt.
Well, gcrypt support is deprecated in this release. Maybe we should just drop it.
$ emerge -pqv '=net-libs/libssh-0.11.1::gentoo' --getbinpkg=n [ebuild U ] net-libs/libssh-0.11.1 [0.10.6-r1] USE="gcrypt sftp zlib -debug -doc -examples -gssapi -mbedtls -pcap -server -static-libs -test" ABI_X86="(64) -32 (-x32)" $ emerge --info '=net-libs/libssh-0.11.1::gentoo' Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/split-usr/hardened, gcc-13, glibc-2.39-r6, 6.11.5-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.11.5-gentoo-x86_64-AMD_FX-8320E_Eight-Core_Processor-with-glibc2.39 KiB Mem: 12201520 total, 2038612 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Thu, 31 Oct 2024 18:45:00 +0000 Head commit of repository gentoo: d3f4d5aa2db95ba8155365c819442220513ade99 Timestamp of repository 4nykey: Thu, 31 Oct 2024 09:18:27 +0000 Head commit of repository 4nykey: b4aab59d1b0360e7fc55ea5adea5d263353d3aa0 Timestamp of repository booboo: Wed, 30 Oct 2024 11:52:55 +0000 Head commit of repository booboo: 83cdd51eee0122a1aded024d6fda2fcca08260b5 Timestamp of repository dilfridge: Wed, 23 Oct 2024 21:18:21 +0000 Head commit of repository dilfridge: 5e018f2314d746c3f6f8e1b7fa84d3baaa6010f4 Timestamp of repository dlang: Thu, 24 Oct 2024 09:19:03 +0000 Head commit of repository dlang: cbf333ffbd45bcb01fc45ed9d2a2e438961392a9 Timestamp of repository guru: Thu, 31 Oct 2024 17:18:29 +0000 Head commit of repository guru: 4ad2470e842df4d760a42039d57157af7c58c041 Timestamp of repository haskell: Thu, 17 Oct 2024 05:33:27 +0000 Head commit of repository haskell: c33ea05f7004d6de509cda3ae084645c5d7a0cda Timestamp of repository holgersson-overlay: Sun, 27 Oct 2024 21:03:20 +0000 Head commit of repository holgersson-overlay: 18bda17e52b7a91946dd09d1103c7bd4fb994a9b Timestamp of repository junkdrawer: Wed, 30 Oct 2024 11:52:57 +0000 Head commit of repository junkdrawer: 584208b92e8af73b649331b42a5f7587257b59d3 Timestamp of repository libressl: Wed, 30 Oct 2024 19:48:20 +0000 Head commit of repository libressl: 878a1a4722e8e04b4862db8d09e6a54273c96b74 Head commit of repository librewolf: a5f3e5866200f1de7217cd7e917f6cfb56bb28e9 Timestamp of repository mv: Wed, 30 Oct 2024 17:18:36 +0000 Head commit of repository mv: a4565189a4213e9b92ed79aa3604a6219e163ca5 Timestamp of repository palemoon: Wed, 09 Oct 2024 22:06:03 +0000 Head commit of repository palemoon: 76e546a1896373b2139d9fd10b2c37826122ec73 Timestamp of repository parona-overlay: Tue, 29 Oct 2024 23:33:17 +0000 Head commit of repository parona-overlay: 974085fe0db0a37d94813cd8c471832889e8ddbf Timestamp of repository pentoo: Wed, 30 Oct 2024 11:52:55 +0000 Head commit of repository pentoo: ab3d6de0bffe2bb225cc509905ea54eb684dfb18 Timestamp of repository rion: Sat, 26 Oct 2024 13:18:19 +0000 Head commit of repository rion: 66051e84fd72a4357f4ab76e25c469440166b7cb Timestamp of repository vowstar: Wed, 30 Oct 2024 11:52:59 +0000 Head commit of repository vowstar: a53a52e5614afc24050e9cc7f69165231f07809d Timestamp of repository wayland-desktop: Mon, 14 Oct 2024 12:50:43 +0000 Head commit of repository wayland-desktop: 72e2e53f3b71aac34a65fd64b8cb527b0ac1e613 sh dash 0.5.12 ld GNU ld (Gentoo 2.42 p6) 2.42.0 distcc 3.4 x86_64-pc-linux-gnu [disabled] ccache version 4.10.2 [enabled] app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo, 1.17-r1::gentoo dev-build/cmake: 3.30.5::gentoo dev-build/libtool: 2.5.3::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.6.0::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.11.10_p1::libressl, 3.12.7_p1::libressl, 3.13.0::libressl dev-lang/rust-bin: 1.82.0::gentoo dev-util/ccache: 4.10.2-r1::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.54.2::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.42-r2::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 18.1.8::gentoo sys-devel/gcc: 13.3.1_p20240614::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 18.1.8::gentoo sys-devel/llvm: 18.1.8-r1::gentoo sys-kernel/linux-headers: 6.11::gentoo (virtual/os-headers) sys-libs/glibc: 2.39-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync1.ru.gentoo.org/gentoo-portage/ priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-max-age: 3 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 7 4nykey location: /var/db/repos/4nykey sync-type: git sync-uri: https://github.com/gentoo-mirror/4nykey.git masters: gentoo volatile: False booboo location: /var/db/repos/booboo sync-type: git sync-uri: https://github.com/gentoo-mirror/booboo.git masters: gentoo volatile: False dilfridge location: /var/db/repos/dilfridge sync-type: git sync-uri: https://github.com/gentoo-mirror/dilfridge.git masters: gentoo volatile: False dlang location: /var/db/repos/dlang sync-type: git sync-uri: https://github.com/gentoo-mirror/dlang.git masters: gentoo volatile: False go-overlay location: /var/db/repos/go-overlay masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False haskell location: /var/db/repos/haskell sync-type: git sync-uri: https://github.com/gentoo-mirror/haskell.git masters: gentoo volatile: False holgersson-overlay location: /var/db/repos/holgersson-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/holgersson-overlay.git masters: gentoo volatile: False junkdrawer location: /var/db/repos/junkdrawer sync-type: git sync-uri: https://github.com/gentoo-mirror/junkdrawer.git masters: dlang gentoo volatile: False libressl location: /var/db/repos/libressl sync-type: git sync-uri: https://github.com/gentoo-mirror/libressl.git masters: gentoo volatile: False librewolf location: /var/db/repos/librewolf sync-type: git sync-uri: https://codeberg.org/librewolf/gentoo.git masters: gentoo volatile: False mv location: /var/db/repos/mv sync-type: git sync-uri: https://github.com/gentoo-mirror/mv.git masters: gentoo volatile: False palemoon location: /var/db/repos/palemoon sync-type: git sync-uri: https://github.com/gentoo-mirror/palemoon.git masters: gentoo volatile: True parona-overlay location: /var/db/repos/parona-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/parona-overlay.git masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False rion location: /var/db/repos/rion sync-type: git sync-uri: https://github.com/gentoo-mirror/rion.git masters: gentoo volatile: False vowstar location: /var/db/repos/vowstar sync-type: git sync-uri: https://github.com/gentoo-mirror/vowstar.git masters: gentoo volatile: False wayland-desktop location: /var/db/repos/wayland-desktop sync-type: git sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git masters: gentoo volatile: False lolca location: /var/db/repos/lolca masters: gentoo guru priority: 100 volatile: True Binary Repositories: gentoo-hardened priority: 100 sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64_hardened calculate priority: 50 sync-uri: https://mirror.yandex.ru/calculate/grp/x86_64 gentoo priority: 30 sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64 gentoo-llvm priority: 20 sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64_llvm ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE CC-BY-NC-ND-4.0 CC-BY-NC-SA-3.0 JSON free-noncomm freedist freenoncomm vim.org" ADDR2LINE="llvm-addr2line" AR="llvm-ar" AS="clang -c" CBUILD="x86_64-pc-linux-gnu" CC="clang" CFLAGS="-march=bdver2 -O2 -pipe -fpch-preprocess" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/zookeeper-bin/conf /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf /var/bind /var/lib/i2pd/certificates" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.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" CPP="clang-cpp" CXX="clang++" CXXFLAGS="-march=bdver2 -O2 -pipe -fpch-preprocess" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS=" --nospinner --getbinpkg --usepkg-exclude=' dev-lang/perl dev-perl/* dev-lang/ruby dev-ruby/* app-crypt/gcr dev-cpp/abseil-cpp dev-libs/protobuf dev-qt/qtcore gui-libs/gtk sci-geosciences/geocode-glib sys-apps/openrc ' " 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=bdver2 -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-march=bdver2 -O2 -pipe" GENTOO_MIRRORS="http://gentoo.osuosl.org/" INSTALL_MASK=" /usr/share/doc/ghc-*/html /opt/palemoon/gtk2/* " LANG="ru_RU.utf8" LD="ld.lld" LDFLAGS="-Wl,--as-needed" LEX="reflex" MAKEOPTS="-j8 -l16" NM="llvm-nm" OBJCOPY="llvm-objcopy" OBJDUMP="llvm-objdump" PKGDIR="/var/cache/binpkgs" PORTAGE_BZIP2_COMMAND="/usr/bin/lbzip2" PORTAGE_COMPRESS="" 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" RANLIB="llvm-ranlib" READELF="llvm-readelf" SHELL="/bin/bash" STRINGS="llvm-strings" STRIP="llvm-strip" USE="X a52 aac accessibility accountsservice acl acpi adns amd64 apng appindicator applet appstream archive argon2 aspell autocrypt bash-completion bidi bluetooth boinc bpf branding brightness-control brotli bzip2 cairo cancel-locks caps cdda cdr cgi chafa cjk clang cli compress-xz crypt cue cups curl dav1d dbus declarative discover djvu dolphin dri drm dts dvd dvdr egl elogind emoji enchant encode epub eselect-ldso exif farstream fastcgi fbcon ffmpeg fftw finger firmware flac flatpak fluidsynth fontconfig fribidi ftp gbm gcrypt gdbm gdk-pixbuf gemini geoclue geolocation gif gnome-online-accounts gnutls gopher gpg gpgme gpm graphicsmagick gui h264 haptic hardened hdf5 highlight http2 http3 hunspell ibus iconv icu ident idn imap imlib io-uring ipv6 irc jack jemalloc jingle jit joystick jpeg jpeg2k jpegxl justify kaccounts kde kdesu keyring kf6compat kwallet lame ldap leveldb libadwaita libarchive libass libcaca libdrm libedit libmpv libnotify libplacebo libproxy libsamplerate libtirpc libtls libtomcrypt libunibreak libuv libvirt llvm llvm-libunwind lm-sensors lmdb logrotate lv2 lxqt lz4 lzma mac mad magic man markdown mbrola midi mng mobi modemmanager mp3 mp4 mpeg mtp multilib native-extensions ncurses netlink nls nntp nscd nuspell nvenc oauth oauth-gtk3 oauth-gtk4 offensive ogg omemo opengl openh264 openmp opus otr pam pango pcre pcre2 pdf pgo phonon pic pie pim pipewire plasma png policykit postgres postproc postscript ppds pretty-log printsupport pulseaudio qml qt5 qt6 rar rdp readline redis rss screencast sdl seccomp semantic-desktop shaderc share sip smtp sndfile socks5 sound source-highlight speech spell spice split-usr sqlite ssh ssl ssp startup-notification svg system-bootstrap system-ffmpeg system-icu system-libs system-qca system-sqlite system-ssl system-tbb system-zlib taglib test-rust theora tiff tofu truetype twolame udev udisks uefi unicode upower usb usbredir v4l vim-syntax virgl vorbis vpx vulkan wavpack wayland webengine webp widgets wmf wxwidgets x265 xa xattr xcb xface xfce xfconf xft xinetd xml xmpp xtpax xv xvid xwayland xxhash yescrypt zip zlib" ABI_X86="64" ADA_TARGET="gcc_12" 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="mmx mmxext sse sse2 aes avx fma3 fma4 popcnt sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput joystick" KERNEL="linux" L10N="en en-GB en-US la ru tok" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="AArch64 ARM AVR Hexagon Lanai MSP430 Mips PowerPC RISCV Sparc SystemZ WebAssembly XCore" LUA_SINGLE_TARGET="lua5-3 lua5-4 luajit" LUA_TARGETS="luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31" VIDEO_CARDS="nouveau qxl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" YACC="byacc" Unset: ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RUSTFLAGS, SIZE, YFLAGS
(In reply to Sam James from comment #1) > Well, gcrypt support is deprecated in this release. Maybe we should just > drop it. "-Werror=unused-variable" worths patching out anyway
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6208707df3fc27f35365245b6c7c67c2781bec8 commit f6208707df3fc27f35365245b6c7c67c2781bec8 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-01 04:08:12 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-01 04:11:10 +0000 net-libs/libssh: drop libgcrypt support This is deprecated and slated for removal in the next release and apparently doesn't build anymore anyway. Just drop it. Closes: https://bugs.gentoo.org/942634 Signed-off-by: Sam James <sam@gentoo.org> net-libs/libssh/libssh-0.11.1.ebuild | 12 +++--------- net-libs/libssh/libssh-9999.ebuild | 12 +++--------- 2 files changed, 6 insertions(+), 18 deletions(-)