[Rpm-maint] [rpm-software-management/rpm] rpm 4.16.90 breaks perl-RPM4's testsuite (actually it's the sqlite backend) (#1693)

soig notifications at github.com
Wed Jun 2 19:58:14 UTC 2021


rpm 4.16.90 breaks perl-RPM4's testsuite.
I've tested with the fix for rpmv3 packages which makes no changes.
(It does however fix urpmi testsuite)

- Rollbacking to 4.16.1.3 (with default bdb backend) fixes it.
- Rollbacking to 4.16.1.3 with sqlite as default backend shows the same errors.

So it's the switch from the bdb to the sqlite backend that is the root cause.
RPM4 can be downloaded from:
https://metacpan.org/release/RPM4

Just:
1. unpack it
3. run "perl Makefile.PL"
4. run "make"
5. run "make test"

You can duplicate the offending bits by running:
`perl -Iblib/lib/ -Iblib/arch/ t/05transaction.t`

p2.diff.txt is a patch for forcing the BDB backend (which will only works with 4.16.1.3 obviously)
p1.diff.txt is the resulting diff in the test output.
We gain warning about "using deprecated bdb database backend" but all tests now pass.

dbg.diff.txt is a patch against the testsuite in order to display more info.
dbg.txt is the output of the t/05transaction.t with that patch.
It shows that the pkg is in the transaction.
But when the backend is sqlite, the package hasn't been installed: it doesn't show up in rpmdb!
(see the debug lines beginning with ">> "

One could argue that the manner of closing the db is an issue:
See https://metacpan.org/source/TVIGNAUD/RPM4-0.44/t/05transaction.t#L95
But I think this uncover a can of potential affected users in the wild.


[dbg.txt](https://github.com/rpm-software-management/rpm/files/6587024/dbg.txt)
[dbg.diff.txt](https://github.com/rpm-software-management/rpm/files/6587027/dbg.diff.txt)
[p2.diff.txt](https://github.com/rpm-software-management/rpm/files/6587032/p2.diff.txt)
[p1.diff.txt](https://github.com/rpm-software-management/rpm/files/6587033/p1.diff.txt)



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1693
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210602/c6282f3f/attachment-0001.html>


More information about the Rpm-maint mailing list