Comment 1 for bug 2043625

Revision history for this message
Luca Boccassi (bluca) wrote : Re: libsolv: lack of zstd support makes it impossible to build SUSE/Fedora images with zypper/dnf

jammy, fix attached as debdiff and available on Salsa https://salsa.debian.org/debian/libsolv/-/tree/jammy?ref_type=heads

# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
# dpkg -l | grep libsolv1
ii libsolv1:amd64 0.7.20-1ubuntu0.22.04.1 amd64 dependency solver using a satisfiability algorithm (shared library)
# mkdir -p repos.d img
# cat <<EOF>repos.d/test.repo
[test.repo]
name=test.repo
baseurl=https://download.opensuse.org/tumbleweed/repo/oss/
gpgcheck=1
enabled=1
autorefresh=0
keeppackages=1
EOF
# zypper --reposd-dir=$PWD/repos.d --root=$PWD/img --gpg-auto-import-keys install distribution-release filesystem

Automatically importing the following key:

  Repository: test.repo
  Key Name: openSUSE Project Signing Key <email address hidden>
  Key Fingerprint: AD485664 E901B867 051AB15F 35A2F86E 29B700A4
  Key Created: Mon Jun 20 14:03:14 2022
  Key Expires: Fri Jun 19 14:03:14 2026
  Rpm Name: gpg-pubkey-29b700a4-62b07e22

Building repository 'test.repo' cache ..........................................................................[done]
Loading repository data...
Reading installed packages...
'distribution-release' not found in package names. Trying capabilities.
Resolving package dependencies...

The following 19 NEW packages are going to be installed:
  bash bash-sh compat-usrmerge-tools filesystem glibc glibc-extra libgcc_s1 libncurses6 libpcre2-8-0 libreadline8
  libselinux1 libstdc++6 ncurses-utils openSUSE-release openSUSE-release-appliance-custom system-user-root
  terminfo-base terminfo-screen timezone

The following 4 recommended packages were automatically selected:
  glibc-extra ncurses-utils terminfo-screen timezone

The following 9 packages are suggested, but will not be installed:
  branding-openSUSE distribution-logos-openSUSE-Tumbleweed java-11-openjdk mariadb mariadb-client openSUSE-build-key
  openSUSE-repos-Tumbleweed openssl-1_1 procps

19 new packages to install.
Overall download size: 7.3 MiB. Already cached: 0 B. After the operation, additional 16.3 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
<...>
Executing %posttrans scripts ...................................................................................[done]
# cat img/usr/lib/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20231114"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20231114"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20231114"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"