Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832711 - sys-fs/cryptsetup-2.4.3: USE flags "static" and "ssh" are incompatible
Summary: sys-fs/cryptsetup-2.4.3: USE flags "static" and "ssh" are incompatible
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-04 15:44 UTC by cbus
Modified: 2022-02-10 19:23 UTC (History)
0 users

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


Attachments
A log of the failing build (build.log,9.21 KB, text/x-log)
2022-02-05 11:31 UTC, cbus
Details
Proposed fix (cryptsetup-2.4.3-r2.ebuild,4.10 KB, text/plain)
2022-02-07 19:55 UTC, cbus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cbus 2022-02-04 15:44:25 UTC
The USE flag "ssh" enables the flag "ssh-token" to the configure script, and the USE flag "static" disables the flag "external-tokens" to the configure script.

The configure script of cryptsetup includes the following:
```
if test "x$enable_ssh_token" = "xyes" -a "x$enable_external_tokens" = "xno"; then
	AC_MSG_ERROR([Requested LUKS2 ssh-token build, but external tokens are disabled.])
fi
```
So these flags are incompatible.

Proposed fix: change the ebuild, so its impossible to use "static" and "ssh" simultaneously.

Reproducible: Always

Steps to Reproduce:
Call
# USE="static ssh" emerge -vq1 >=sys-fs/cryptsetup-2.4.3
Actual Results:  
The build fails with the message:

configure: error: Requested LUKS2 ssh-token build, but external tokens are disabled.

Expected Results:  
Portage should not even try to build this.

Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-11.2.0, glibc-2.34-r3, 5.16.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.16.3-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-glibc2.34
KiB Mem:     7891380 total,   3040528 free
KiB Swap:    8388604 total,   8387068 free
Timestamp of repository gentoo: Fri, 04 Feb 2022 00:45:01 +0000
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p8::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust-bin:         1.58.1::gentoo
dev-util/cmake:            3.21.4::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.15.1-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:        2.37_p1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-webrsync-verify-signature: yes

localoverlay
    location: /usr/local/portage
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

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

nix-guix
    location: /var/lib/layman/nix-guix
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -mtune=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=3072"
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/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="-O2 -pipe -march=core2 -mtune=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=3072"
DISTDIR="/usr/portage/distfiles"
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 binpkg-multi-instance buildpkg-live config-protect-if-modified 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
SHELL="/bin/bash"
USE="X acl acpi adns alsa amd64 apm bash-completion bluetooth bzip2 cairo clang cron crypt cryptsetup cxx deblob device-mapper dvd egl emacs flac fontconfig gif git gles gnutls gpg gpm hardened iconv icu imap ipv6 jpeg latex libglvnd libtirpc mmx ncurses nls nptl openmp pam pcre pie png pop readline sasl scsi seccomp sftp smtp split-usr sse sse3 ssh ssl ssp svg truetype unicode upower urandom usb verify-sig wifi xattr xml xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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="mcx16 mmx mmxext sse sse2 sse3 sse4.1 ssse3" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="en en-GB de" 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-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 cbus 2022-02-05 11:31:20 UTC
Created attachment 764400 [details]
A log of the failing build
Comment 2 cbus 2022-02-07 19:55:07 UTC
Created attachment 764545 [details]
Proposed fix
Comment 3 cbus 2022-02-07 19:59:06 UTC
In the proposed fix, I modified the $REQUIRED_USE variable accordingly, as mentioned previously. The file is based on the current cryptsetup-2.4.3-r1.ebuild.
I don't know whether I got the formatting of the comment right, which mentioned the involved bugs.
Comment 4 Larry the Git Cow gentoo-dev 2022-02-07 20:07:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ba9ed3ff5f358bbae9500325a84357ff50cb291

commit 8ba9ed3ff5f358bbae9500325a84357ff50cb291
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-02-07 20:06:33 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-02-07 20:06:33 +0000

    sys-fs/cryptsetup: set REQUIRED_USE="static? ( !ssh )"
    
    Closes: https://bugs.gentoo.org/832711
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-fs/cryptsetup/cryptsetup-2.4.3-r1.ebuild | 2 +-
 sys-fs/cryptsetup/cryptsetup-2.4.3.ebuild    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 5 cbus 2022-02-10 19:23:46 UTC
Thanks!