[Rpm-maint] [rpm-software-management/rpm] Fix test-suite under Fedora 40 modern C rules (PR #3094)

Panu Matilainen notifications at github.com
Mon May 13 12:44:50 UTC 2024


Multiple tests are failing on Fedora 40 due to their distro-wide C modernization effort, which cause our ancient "hello world" package to fail due to implicit printf() function usage.

There are two separate issues here:
- hello-autopatch.spec had off-by-one in its patch application, causing the modernization patch to not apply (see #3093 for the reason)
- others were using the original hello-1.0-1.src.rpm from 2007 with some very outdated practises, code and md5 hashes

Update the src.rpm, removing silly fubar while we're at it. Regenerated now on x86_64 so adjust the test-expectation, and update the python archive test to calculate sha256 instead. And, fix the autopatch test numbers.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/3094

-- Commit Summary --

  * Fix test-suite under Fedora 40 modern C rules

-- File Changes --

    M tests/data/SPECS/hello-autopatch.spec (4)
    M tests/data/SRPMS/hello-1.0-1.src.rpm (0)
    M tests/rpmpython.at (2)
    M tests/rpmquery.at (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/3094.patch
https://github.com/rpm-software-management/rpm/pull/3094.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3094
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3094 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240513/ac560e36/attachment.html>


More information about the Rpm-maint mailing list