| Summary: | bm -u not working | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Marc Krämer <mageia> |
| Component: | RPM Packages | Assignee: | Pascal Terjan <pterjan> |
| Status: | NEW --- | QA Contact: | |
| Severity: | minor | ||
| Priority: | Normal | CC: | arusanu, fri, geiger.david68210 |
| Version: | Cauldron | Keywords: | UPSTREAM |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | bm-3.3-1.mga9.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: |
patch to set bm's unpacking directory
updates patch to set current working directory |
||
|
Description
Marc Krämer
2023-04-29 10:59:33 CEST
As a workaround, it seems to work if a path is specified: bm -lu --unpack-dir=./ your_pkg.src.rpm CC:
(none) =>
arusanu It is disconcerting that the example Marc gives in comment 0 looks to work. BTAIM Can you give any other commands which you know do not work? Do you know whether they worked in the past, or have they always been no good? @Aurelian Thanks for that very helpful tip. It looks like the only changes this year (indeed, since 2015) were done by pterjan, so assigning this bug accordingly. CCing DavidG who is down as registered maintainer so you can follow this. Keywords:
(none) =>
FOR_ERRATA9 no, I don't know if it worked in the past, just looked it up in the man page, as I don't want it to build, just want to unpack the source(s). Sure, you can do this by hand, so there is an easy workaround, but I guess, it should be easy to fix in future. I usually use bm -pl which unpacks and runs %prep so applies patches. that is even better than just unpack. didn't see that one. This is a "known issue", 'man bm' says the following.
BUGS
-u doesn't seem to do anything.
Jani Välimaa
2023-04-30 06:40:40 CEST
Summary:
bm: some commands not working =>
bm -u not working Per comment 6 a known bug, even noted in man page Keywords:
FOR_ERRATA9 =>
UPSTREAM Created attachment 14352 [details]
patch to set bm's unpacking directory
It looks like the documentation is lacking a bit. In fact bm does unpack successfully, as it says, but the default directory is /var/tmp/${PKG_NAME}-topdir and that is nowhere specified and not quite intuitive.
As bm can build rpm packages at any location, one may expect that it also has the default unpacking directory to the current directory imho.
Attached is a patch that makes bm to be more clear about where it unpacks.
Regards,
Created attachment 14363 [details]
updates patch to set current working directory
Updated patch.
Attachment 14352 is obsolete:
0 =>
1 commit fde9fe10ef2bb4d201f81c28052dd82f36276cff
Author: daviddavid <geiger.david68210@...>
Date: Mon Feb 12 18:58:26 2024 +0100
Set current working directory for 'unpack (-u)' command (mga#31850)
- Thanks to Aurelian R
---
Commit Link:
https://gitweb.mageia.org/software/build-system/bm/commit/?id=fde9fe10ef2bb4d201f81c28052dd82f36276cff
bm-3.5 is available for test on Cauldron! |