Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927040 - app-cdr/cdemu-daemon: USE=systemd
Summary: app-cdr/cdemu-daemon: USE=systemd
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-14 23:18 UTC by CaptainBlood
Modified: 2024-03-15 00:32 UTC (History)
1 user (show)

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


Attachments
ebuild log (app-cdr:cdemu-daemon-3.2.6-r0:20240314-225800.log.gz,4.57 KB, application/gzip)
2024-03-14 23:19 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2024-03-14 23:18:09 UTC
amd64 ~ # emerge --info  app-cdr/cdemu-daemon
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r10, 6.8.0-gentoo-std x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.8.0-gentoo-std-x86_64-Intel-R-_Core-TM-_i3-6100_CPU_@_3.70GHz-with-glibc2.38
KiB Mem:     3931628 total,    511084 free
KiB Swap:   65535996 total,  65535472 free
Timestamp of repository gentoo: Thu, 14 Mar 2024 22:15:00 +0000
Head commit of repository gentoo: b22c739d7d8c141beb380f9e59455d52dba322bc

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.1-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           2.7.18_p16-r2::gentoo, 3.10.13_p3::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust:             1.76.0::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.0::gentoo
sys-devel/gcc:             10.5.0::gentoo, 11.4.1_p20231214::gentoo, 12.3.1_p20240112::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             15.0.7::gentoo, 17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.0::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 10000
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
AR="gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
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.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alert y 			--alphabetical 			--ask-enter-invalid 			--autounmask y  	--autounmask-only n  			--autounmask-unrestricted-atoms y  			--autounmask-write y              --complete-graph y  			--misspell-suggestions n 			--noconfmem 			--nospinner  			--tree 			--with-bdeps y"
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=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/     http://ftp.halifax.rwth-aachen.de/gentoo/     http://ftp.free.fr/mirrors/ftp.gentoo.org/     http://mirrors.soeasyto.com/distfiles.gentoo.org/     http://gentoo.mirrors.ovh.net/gentoo-distfiles/     http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/     http://mirror.leaseweb.com/gentoo/     http://www.mirrorservice.org/sites/distfiles.gentoo.org/     http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/     http://mirror.bytemark.co.uk/gentoo/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,-fuse-ld=mold "
LEX="flex"
LINGUAS="fr"
MAKEOPTS="-j3 -l3"
NM="gcc-nm"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
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="gcc-ranlib"
SHELL="/bin/bash"
USE="amd64 asm custom-cflags emacs eselect-ldso fortran gentoo-vm gtk-doc minimal modules-compress modules-sign ocamlopt split-usr test-rust verify-sig" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" PHP_TARGETS="php8-1" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel"
Unset:  ADDR2LINE, 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, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

app-cdr/cdemu-daemon-3.2.6-r0::local was built with the following:
USE="-systemd" ABI_X86="(64)"
-------------------------------------------------------------------------------------------------------
-rO;;local is onlu aboud escaping from systemd

amd64 ~ # diff /var/db/repos/gentoo/app-cdr/cdemu-daemon/cdemu-daemon-3.2.6.ebuild /var/db/repos/local/app-cdr/cdemu-daemon/cdemu-daemon-3.2.6-r0.ebuild
1c1
< # Copyright 1999-2022 Gentoo Authors
---
> # Copyright 1999-2021 Gentoo Authors
4c4
< EAPI=7
---
> EAPI=8
14c14,16
< KEYWORDS="amd64 x86"
---
> KEYWORDS="~amd64 ~x86"
> 
> IUSE="systemd"
30a33
> 	use systemd || eapply "${FILESDIR}/${P}-001-force-openrc.patch"
34c37,42
< 	systemd_douserunit service-example/cdemu-daemon.service
---
> 	if use systemd ; then
> 		systemd_douserunit service-example/cdemu-daemon.service
> 	else
> 		insinto /etc/udev/rules.d
> 		newins - 69-vhba.rules <<<"KERNEL==\"vhba_ctl\", MODE=\"0660\", OWNER=\"root\", GROUP=\"cdrom\""
> 	fi
36a45
> 


Reproducible: Always
Comment 1 CaptainBlood 2024-03-14 23:19:27 UTC
Created attachment 887655 [details]
ebuild log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-14 23:24:37 UTC
Can you describe what the problem actually is?

I see no instances of 'bfd', 'mold', or 'fuse-ld' in the sources.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-14 23:25:35 UTC
(also, the local repo looks pointless for this, just use INSTALL_MASK if you're literally just adding USE=systemd for the service..)
Comment 4 CaptainBlood 2024-03-14 23:48:06 UTC
Oops,
ebuild log has -fuse-ld=mold.

Sorry I'm unaware what INSTALL_MASK is all about.
Will investigate, hoping to learn something new and usefull.
Comment 5 CaptainBlood 2024-03-15 00:11:59 UTC
(In reply to Sam James from comment #3)
> (also, the local repo looks pointless for this, just use INSTALL_MASK if
> you're literally just adding USE=systemd for the service..)

app-cdr/cdemu-daemon only integrates well with systemd.

I've added IUSE=systemd to allow to diverge to an openrc system when negated.
Since I see no openrc USE flag, I thought negating systemd could be a local workaround tp avoid creating a new USE flag.
Comment 6 Paul Zander 2024-03-15 00:31:57 UTC
Please refer to https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0301 for further details