| Summary: | bm fails to unpack some srpm ( old/missing signature keys ) | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Aurelian R <arusanu> |
| Component: | RPM Packages | Assignee: | All Packagers <pkg-bugs> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | geiger.david68210 |
| Version: | 9 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | bm-3.4-1.mga9.src.rpm, bm-3.4-4.mga10.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: |
bm patch to force unpacking
spec file for bm diff bm.spec for Cauldron only |
||
|
Description
Aurelian R
2024-02-10 17:26:36 CET
Created attachment 14364 [details] spec file for bm bm spec file updated to pyproject and that includes patches from here plus from bug #31850 - attachment #14363 [details] Please provide diff for .spec so maintainer(s) can see the changes and review them. Created attachment 14368 [details]
diff bm.spec for Cauldron only
sorry, should have known better ...
Thank you Aurelian for your action on this. For those of use to whom 'bm' means nothing: BuildManager - rpm package building helper Assigning globally. Jani, DavidG & Joseph were the most recent committers of bm. Note comment 1 about bug 31850 also. Assignee:
bugsquad =>
pkg-bugs commit 23ce51cf774a24cafd46a9a5896e54f45c42de35
Author: daviddavid <geiger.david68210@...>
Date: Mon Feb 12 19:07:53 2024 +0100
Add "--force-unpack" command to force unpacking (mga#32829)
- Thanks to Aurelian R
---
Commit Link:
https://gitweb.mageia.org/software/build-system/bm/commit/?id=23ce51cf774a24cafd46a9a5896e54f45c42de35
Great, thanks David for your hard work! bm-3.5 is available for test on Cauldron! CC:
(none) =>
geiger.david68210 Cool, tested bm-3.5 and it works!
Test:
$ bm --version
bm 3.5
$ bm -u ~/Downloads/replay-sorcery-0.6.0-2.7.src.rpm
creating package list
warning: /home/ubuild/Downloads/replay-sorcery-0.6.0-2.7.src.rpm: Header V3 RSA/SHA512 Signature, key ID 29b700a4: NOKEY
Traceback (most recent call last):
File "/usr/bin/bm", line 205, in <module>
main()
File "/usr/bin/bm", line 195, in main
status = builder.run()
^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/BuildManager/build.py", line 43, in run
pkg = Package(filename, self.opts.build_log, self.opts.forceunpack)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/BuildManager/package.py", line 36, in __init__
self._package = globals()["_package_"+ext](file, log, flag)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/BuildManager/package.py", line 62, in __init__
self._init()
File "/usr/lib/python3.12/site-packages/BuildManager/package.py", line 156, in _init
h = ts.hdrFromFdno(file.fileno())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/site-packages/rpm/transaction.py", line 191, in hdrFromFdno
raise rpm.error("public key not available")
_rpm.error: public key not available
$ bm -u --force-unpack ~/Downloads/replay-sorcery-0.6.0-2.7.src.rpm
creating package list
processing package replay-sorcery-0.6.0-2.7
unpacking
succeeded!
$ ls -l
total 4
drwxr-xr-x 8 ubuild ubuild 4096 Feb 12 23:09 replay-sorcery-0.6.0-2.7-topdir/
Thanks.
|