Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Martin Cermak
d071621a56 Drop vim modeline, add rpm --nosignature to override new (and unrelated) default. 2026-04-15 09:07:57 +02:00
Martin Cermak
064b95ec27 Sanity/install-weak-deps: Additional check for weak deps 2025-01-17 13:24:25 +01:00
Martin Cermak
36937a99b2 New test: /Sanity/install-weak-deps 2025-01-17 12:25:03 +01:00
Jesus Checa Hidalgo
bc3f003633 Update relevancies for rhel 10 2024-06-26 17:31:27 +02:00
Jesus Checa Hidalgo
89d13e8a13 bz580078-valgrind-aborts-with-vex-x86...: Fix gcc 14 warnings 2024-05-02 16:07:53 +02:00
7 changed files with 152 additions and 0 deletions

View file

@ -1,6 +1,8 @@
#include <nss.h>
#include <stdlib.h>
extern int NSS_NoDB_Init(void*);
int main()
{
NSS_NoDB_Init(NULL);

View file

@ -45,6 +45,10 @@ adjust:
- enabled: false
when: arch != x86_64
# No i686 in RHEL-10+
- enabled: false
when: distro >= rhel-10
# Testing farm does not support installing i686 packages in bodhi update testing,
# so we disable this test there until that capacity is implemented.
- enabled: false

View file

@ -26,6 +26,10 @@ adjust:
- enabled: false
when: arch != x86_64
# No i686 in RHEL-10+
- enabled: false
when: distro >= rhel-10
# Testing farm does not support installing i686 packages in bodhi update testing,
# so we disable this test there until that capacity is implemented.
- enabled: false

View file

@ -0,0 +1,6 @@
summary: Make sure dnf installs weak dep packages (such as valgrind + valgrind-scripts)
test: ./runtest.sh
framework: beakerlib
require:
- rpm-build
- createrepo

View file

@ -0,0 +1,50 @@
#!/bin/bash
. /usr/share/beakerlib/beakerlib.sh || exit 1
DNFSWITCHES="--disablerepo=\* --enablerepo=mytestingrepo"
rlJournalStart
rlPhaseStartSetup
rlRun "dnf -y remove trivial-empty\* ||:"
rlRun "rm /etc/yum.repos.d/mytestingrepo.repo ||:"
rlPhaseEnd
rlPhaseStartTest
rlRun "rpmbuild -ba trivial-empty-v1.spec"
rlRun "rpmbuild -ba trivial-empty-v2.spec"
rlRun "a=$(rpm -E '%_arch')"
rlRun "pushd $HOME/rpmbuild/RPMS/$a"
rlRun "createrepo ."
rlRun "popd"
rlRun "rpm -Uvh --nosignature $HOME/rpmbuild/RPMS/$a/trivial-empty-1.0-1*"
rlRun "rpm -qa | grep -F trivial-empty-sub" 1
rlRun "rpm -qa | grep -F trivial-empty-1.0-1"
rlRun "rpm -qa | grep -F trivial-empty-1.0-2" 1
cat > /etc/yum.repos.d/mytestingrepo.repo <<EOF
[mytestingrepo]
name=mytestingrepo
baseurl=file:///$HOME/rpmbuild/RPMS/$a
gpgcheck=0
enabled=1
EOF
rlRun "cat /etc/yum.repos.d/mytestingrepo.repo"
rlRun "dnf $DNFSWITCHES clean all"
rlRun "dnf $DNFSWITCHES -y update trivial-empty"
rlRun "rpm -qa | grep -F trivial-empty-1.0-1" 1
rlRun "rpm -qa | grep -F trivial-empty-1.0-2"
# The gist of this test is to make sure the following
# trivial-empty-sub-1.0-2 is now installed as a weak dep
rlRun "rpm -qa | grep -F trivial-empty-sub-1.0-2"
# Since it's a weak dep, it should be possible to remove
# trivial-empty-sub now, and the trivial-empty should still
# be installed
rlRun "dnf $DNFSWITCHES remove -y trivial-empty-sub"
rlRun "rpm -qa | grep -F trivial-empty-1.0-2"
rlRun "rpm -qa | grep -F trivial-empty-sub-1.0-2" 1
rlPhaseEnd
rlPhaseStartCleanup
rlRun "dnf -y remove trivial-empty\*"
rlRun "rm /etc/yum.repos.d/mytestingrepo.repo"
rlPhaseEnd
rlJournalEnd

View file

@ -0,0 +1,34 @@
Name: trivial-empty
Version: 1.0
Release: 1%{?dist}
Epoch: 1
Summary: A trivial RPM package with an empty payload
License: MIT
BuildArch: %_arch
# Description of the package
%description
This is a trivial RPM package with no payload. It serves as an example
of how to create an RPM specfile with minimal content.
# Prep stage: nothing to prepare
%prep
# Empty section
# Build stage: nothing to build
%build
# Empty section
# Install stage: nothing to install
%install
# Empty section
# Files: no files to include
%files
# Empty section
# Changelog for the RPM package
%changelog
* Thu Jan 16 2025 Example Maintainer <example@example.com> - 1.0-1
- Initial creation of a trivial RPM with no payload

View file

@ -0,0 +1,52 @@
Name: trivial-empty
Version: 1.0
Release: 2%{?dist}
Epoch: 1
Summary: A trivial RPM package with an empty payload
License: MIT
BuildArch: %_arch
# Set weak dependency on trivial-empty-sub which is a new subpackage
# introduced within this update
Recommends: trivial-empty-sub = %{epoch}:%{version}-%{release}
# Requires: trivial-empty-sub = %{epoch}:%{version}-%{release}
# Description of the package
%description
This is a trivial RPM package with no payload. It serves as an example
of how to create an RPM specfile with minimal content.
%package sub
Summary: A trivial RPM subpackage with an empty payload
# Description for the subpackage
%description sub
This is a subpackage of trivial-empty, with an empty payload.
# Prep stage: nothing to prepare
%prep
# Empty section
# Build stage: nothing to build
%build
# Empty section
# Install stage: nothing to install
%install
# Empty section
# Files: no files to include
%files
# Empty section
# Subpackage files: no files to include
%files sub
# Empty section
# Changelog for the RPM package
%changelog
* Thu Jan 16 2025 Example Maintainer <example@example.com> - 1.0-2
- Initial creation of the trivial RPM with no payload
* Thu Jan 16 2025 Example Maintainer <example@example.com> - 1.0-1
- Initial creation of a trivial RPM with no payload