Skip to content

Commit

Permalink
Disable python36 module on RHEL 8
Browse files Browse the repository at this point in the history
It's enabled by default and prevents us from testing packages
it contains (dnf info module python36), e.g. python3-sqlalchemy

https://issues.redhat.com/browse/OSCI-5993

I hope (I checked with repoquery) it won't break testing
of any other python3 packages because of a dependency
on any package in this module.
  • Loading branch information
jpopelka committed Jan 31, 2024
1 parent 029290b commit f661c25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion mini-tps.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: mini-tps
Version: 0.1
Release: 168%{?dist}
Release: 169%{?dist}
Summary: Mini TPS - Test Package Sanity

License: GPLv2
Expand Down Expand Up @@ -64,6 +64,9 @@ install -pD -m 0755 profiles/fedora/prepare-system %{buildroot}%{_libexecdir}/mi


%changelog
* Wed Jan 31 2024 Jiri Popelka <[email protected]> - 0.1-169
- Disable python36 module on RHEL 8

* Mon Jan 29 2024 Jiri Popelka <[email protected]> - 0.1-168
- Handle missing compose (id)

Expand Down
9 changes: 7 additions & 2 deletions profiles/rhel/prepare-system
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ if [ -n "$ENABLE_BUILD_ROOT" ]; then
yum config-manager --set-enabled "$buildroot_repo"
fi

# repoquery util acts not on live system, but rather on set of enabled repos. mini-tps hold personal list of protected packages, such as openssh-server
# yum config-manager --set-enabled astepano-mini-tps || :
# Disable python36 module on RHEL 8
RHEL_VER_MAJOR=$(echo "${PROFILE}" | cut -d'-' -f2 | cut -c1)
if [[ "$RHEL_VER_MAJOR" -eq 8 ]]; then
if dnf module list --enabled | grep -q python36; then
dnf -y module disable python36
fi
fi

echo "Installing required packages for testing"
yum -y install createrepo_c which procps-ng
Expand Down

0 comments on commit f661c25

Please sign in to comment.