diff mbox series

docs: add util-linux-script package for Fedora 42+

Message ID 20250922065859.157251-1-adrian.freihofer@siemens.com
State Under Review
Headers show
Series docs: add util-linux-script package for Fedora 42+ | expand

Commit Message

Freihofer, Adrian Sept. 22, 2025, 6:58 a.m. UTC
From: Adrian Freihofer <adrian.freihofer@siemens.com>

Fedora 42 split the script utility from util-linux into a separate
util-linux-script package. This change adds conditional installation
of util-linux-script for Fedora 42 and later versions.
https://src.fedoraproject.org/rpms/util-linux/c/5a2471d6e5b0055cb607b30dc2e9613b312ffb74?branch=rawhide

The package is added conditionally using rpm macro evaluation to
maintain compatibility with older Fedora versions where script was
included in the base util-linux package.

Note that different distributions handle this differently - for example,
Debian provides the script utility in a separate bsdutils package
rather than in util-linux.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 documentation/tools/host_packages_scripts/fedora_essential.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Antonin Godard Sept. 22, 2025, 2:11 p.m. UTC | #1
On Mon Sep 22, 2025 at 8:58 AM CEST, Adrian Freihofer via lists.yoctoproject.org wrote:
> From: Adrian Freihofer <adrian.freihofer@siemens.com>
>
> Fedora 42 split the script utility from util-linux into a separate
> util-linux-script package. This change adds conditional installation
> of util-linux-script for Fedora 42 and later versions.
> https://src.fedoraproject.org/rpms/util-linux/c/5a2471d6e5b0055cb607b30dc2e9613b312ffb74?branch=rawhide
>

Hi Adrian,

I just realized that Fedora 42 is not (yet) part of the supported distributions,
see https://git.yoctoproject.org/meta-yocto/tree/meta-poky/conf/distro/poky.conf#n33.

So it does not really make sense to make this appear here for now. However I'll
keep this patch handy once we add support for it.

Thanks,
Antonin
Richard Purdie Sept. 22, 2025, 9:35 p.m. UTC | #2
On Mon, 2025-09-22 at 16:11 +0200, Antonin Godard via lists.yoctoproject.org wrote:
> On Mon Sep 22, 2025 at 8:58 AM CEST, Adrian Freihofer via lists.yoctoproject.org wrote:
> > From: Adrian Freihofer <adrian.freihofer@siemens.com>
> > 
> > Fedora 42 split the script utility from util-linux into a separate
> > util-linux-script package. This change adds conditional installation
> > of util-linux-script for Fedora 42 and later versions.
> > https://src.fedoraproject.org/rpms/util-linux/c/5a2471d6e5b0055cb607b30dc2e9613b312ffb74?branch=rawhide
> > 
> 
> Hi Adrian,
> 
> I just realized that Fedora 42 is not (yet) part of the supported distributions,
> see https://git.yoctoproject.org/meta-yocto/tree/meta-poky/conf/distro/poky.conf#n33.
> 
> So it does not really make sense to make this appear here for now. However I'll
> keep this patch handy once we add support for it.

There is a fedora42 worker present on the autobuilder now:

https://autobuilder.yoctoproject.org/valkyrie/#/workers

so we probably should update that!

Cheers,

Richard
diff mbox series

Patch

diff --git a/documentation/tools/host_packages_scripts/fedora_essential.sh b/documentation/tools/host_packages_scripts/fedora_essential.sh
index ea14134398b..99e5d2c0b0b 100644
--- a/documentation/tools/host_packages_scripts/fedora_essential.sh
+++ b/documentation/tools/host_packages_scripts/fedora_essential.sh
@@ -1 +1 @@ 
-sudo dnf install bzip2 ccache chrpath cpio cpp diffstat diffutils file findutils gawk gcc gcc-c++ git glibc-devel glibc-langpack-en gzip hostname libacl make patch perl perl-Data-Dumper perl-File-Compare perl-File-Copy perl-FindBin perl-Text-ParseWords perl-Thread-Queue perl-bignum perl-locale python python3 python3-GitPython python3-jinja2 python3-pexpect python3-pip rpcgen socat tar texinfo unzip wget which xz zstd
+sudo dnf install bzip2 ccache chrpath cpio cpp diffstat diffutils file findutils gawk gcc gcc-c++ git glibc-devel glibc-langpack-en gzip hostname libacl make patch perl perl-Data-Dumper perl-File-Compare perl-File-Copy perl-FindBin perl-Text-ParseWords perl-Thread-Queue perl-bignum perl-locale python python3 python3-GitPython python3-jinja2 python3-pexpect python3-pip rpcgen socat tar texinfo unzip wget which xz zstd $([ $(rpm -E %fedora) -ge 42 ] && echo "util-linux-script")