Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928893 - sys-process/systemd-cron-2.3.4 - ERROR: sys-process/systemd-cron-2.3.4::gentoo failed (pretend phase), broken test for merged-usr
Summary: sys-process/systemd-cron-2.3.4 - ERROR: sys-process/systemd-cron-2.3.4::gento...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Richard Freeman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-07 16:07 UTC by Toralf Förster
Modified: 2024-04-16 20:44 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.75 KB, text/plain)
2024-04-07 16:07 UTC, Toralf Förster
Details
die.env (die.env,185.61 KB, text/plain)
2024-04-07 16:07 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,67.91 KB, text/plain)
2024-04-07 16:07 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.15 KB, application/x-xz)
2024-04-07 16:07 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,20.75 KB, application/x-xz)
2024-04-07 16:07 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,952 bytes, application/x-xz)
2024-04-07 16:07 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,134.78 KB, text/plain)
2024-04-07 16:07 UTC, Toralf Förster
Details
sys-process:systemd-cron-2.3.4:20240407-153556.log (sys-process:systemd-cron-2.3.4:20240407-153556.log,1.39 KB, text/plain)
2024-04-07 16:07 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-04-07 16:07:15 UTC
 * Repository: gentoo
 * Maintainer: rich0@gentoo.org
 * USE:        abi_x86_64 amd64 cron-boot elibc_glibc kernel_linux minutely runparts setgid yearly
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Please complete the migration to merged-usr.
 * https://wiki.gentoo.org/wiki/Merge-usr
 * ERROR: sys-process/systemd-cron-2.3.4::gentoo failed (pretend phase):
 *   systemd-cron no longer supports split-usr
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd-20240406-051502

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 18.1.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.3
Python 3.11.9
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.1 linux/amd64

  HEAD of ::gentoo
commit 5dbef1b88e9ca265091c4dc400d4290b27baf18e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Apr 7 15:04:16 2024 +0000

    2024-04-07 15:04:16 UTC

emerge -qpvO sys-process/systemd-cron
[ebuild  N    ] sys-process/systemd-cron-2.3.4  USE="cron-boot minutely runparts setgid yearly -etc-crontab-systemd"
Comment 1 Toralf Förster gentoo-dev 2024-04-07 16:07:16 UTC
Created attachment 889740 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-07 16:07:17 UTC
Created attachment 889741 [details]
die.env
Comment 3 Toralf Förster gentoo-dev 2024-04-07 16:07:19 UTC
Created attachment 889742 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-04-07 16:07:19 UTC
Created attachment 889743 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-04-07 16:07:20 UTC
Created attachment 889744 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-07 16:07:21 UTC
Created attachment 889745 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-04-07 16:07:23 UTC
Created attachment 889746 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-04-07 16:07:23 UTC
Created attachment 889747 [details]
sys-process:systemd-cron-2.3.4:20240407-153556.log
Comment 9 Toralf Förster gentoo-dev 2024-04-07 16:08:05 UTC
It is my understanding that the image is a valid 23.0 stage3 (merged-usr), right?
Comment 10 Toralf Förster gentoo-dev 2024-04-07 16:08:20 UTC
tinderbox@mr-fox ~/run/23.0-20240407-113050/var/tmp/tb $ ls -l ~/run/23.0_desktop_plasma_systemd-20240406-051502/
total 20
lrwxrwxrwx 1 root root    7 Apr  1 01:17 bin -> usr/bin
drwxr-xr-x 1 root root   48 Apr  7 02:41 boot
drwxr-xr-x 1 root root   22 Apr  1 01:17 dev
drwxr-xr-x 1 root root 2476 Apr  7 16:08 etc
drwxr-xr-x 1 root root   18 Apr  6 05:16 home
lrwxrwxrwx 1 root root    7 Apr  1 01:17 lib -> usr/lib
lrwxrwxrwx 1 root root    9 Apr  1 01:17 lib64 -> usr/lib64
drwxr-xr-x 1 root root    0 Apr  1 01:17 media
drwxr-xr-x 1 root root    4 Apr  6 05:15 mnt
drwxr-xr-x 1 root root  156 Apr  7 14:48 opt
drwxr-xr-x 1 root root    0 Apr  1 01:17 proc
drwx------ 1 root root  126 Apr  7 08:43 root
drwxr-xr-x 1 root root    0 Apr  1 01:17 run
lrwxrwxrwx 1 root root    7 Apr  1 01:17 sbin -> usr/bin
drwxr-xr-x 1 root root    0 Apr  6 05:38 srv
drwxr-xr-x 1 root root    0 Apr  1 01:17 sys
drwxrwxrwt 1 root root    0 Apr  6 05:38 tmp
drwxr-xr-x 1 root root  122 Apr  1 01:18 usr
drwxr-xr-x 1 root root   80 Apr  7 05:41 var
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2024-04-07 16:23:59 UTC
run-parts belongs to debianutils, which recently got depcleaned in a lot of places.

Not the best way to test for split/merged.
Comment 12 Ionen Wolkens gentoo-dev 2024-04-07 16:55:10 UTC
fwiw it does depends on debianutils with USE=runparts, but can't rely on dependencies being installed during pkg_pretend so..

It'd probably be nicer to just mask the USE on split-usr profiles though, not that it's super straight forward because of the older profiles (e.g. base force split-usr, then 23.0 *and* features/merged-usr unforce it since features/split-usr is not used by older profiles that I can see).
Comment 13 Ionen Wolkens gentoo-dev 2024-04-07 17:00:25 UTC
(In reply to Ionen Wolkens from comment #12)
> It'd probably be nicer to just mask ...
That is, unless the goal was to avoid having it happen without warning -- news item may have made more sense if that was the intend though.

Not that I keep up with what been happening with systemd-cron.
Comment 14 Richard Freeman gentoo-dev 2024-04-07 18:56:22 UTC
Looking at history this is at least the third way that testing for split-usr has been implemented - I haven't dug back enough to find where it was first tested (via checking symlink on /bin).

An alternative might be to put IUSE=split-usr back in, then test:
if use runparts && use split-usr ; then...

(That is a little more similar to how systemd-9999 implements the check - this was the way systemd-cron did it, but when making it conditional on runparts it was switched to checking the path of run-parts, not catching the issue with pkg_pretend.  I'm pretty confident I didn't think of that one on my own though I couldn't tell you where it came from.)

Any preferences?
Comment 15 Richard Freeman gentoo-dev 2024-04-13 11:53:41 UTC
Ok, if there are no objections I'll implement the IUSE=split-usr fix in a few days...
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-14 11:20:04 UTC
Is there a compelling reason to not just depend on >=sys-apps/systemd-255[-split-usr(-)] and drop all the silly checks?
Comment 17 Richard Freeman gentoo-dev 2024-04-14 21:49:48 UTC
(In reply to Sam James from comment #16)
> Is there a compelling reason to not just depend on
> >=sys-apps/systemd-255[-split-usr(-)] and drop all the silly checks?

Very good point - the migration path for systemd itself makes sense, but at this point it is hard to imagine people are using systemd-cron and haven't made the migration...

I'll make that change in a few days.
Comment 18 Larry the Git Cow gentoo-dev 2024-04-16 15:16:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=641c536fe4afa656f34ebb656bf1e8bca8bd87bc

commit 641c536fe4afa656f34ebb656bf1e8bca8bd87bc
Author:     Richard Freeman <rich0@gentoo.org>
AuthorDate: 2024-04-16 15:14:12 +0000
Commit:     Richard Freeman <rich0@gentoo.org>
CommitDate: 2024-04-16 15:16:02 +0000

    sys-process/systemd-cron: Require split-usr in deps and no longer die.
    
    Closes: https://bugs.gentoo.org/928893
    Signed-off-by: Richard Freeman <rich0@gentoo.org>

 ...{systemd-cron-2.3.4.ebuild => systemd-cron-2.3.4-r1.ebuild} | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
Comment 19 Larry the Git Cow gentoo-dev 2024-04-16 20:44:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5674137a39abeaa635c087fec1019a6cbdc2d40b

commit 5674137a39abeaa635c087fec1019a6cbdc2d40b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-04-16 20:43:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-16 20:43:33 +0000

    profiles: mask >=sys-process/systemd-cron-2.3.4-r1 on split-usr
    
    >=systemd-255 needs merged-usr.
    
    Bug: https://bugs.gentoo.org/928893
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/features/merged-usr/package.mask | 3 ++-
 profiles/features/split-usr/package.mask  | 3 ++-
 profiles/releases/17.0/package.mask       | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)