[Rpm-maint] [rpm-software-management/rpm] %prep working directory different when using --build-in-place in Fedora 40 vs Fedora Rawhide (Issue #3208)

Panu Matilainen notifications at github.com
Wed Aug 21 15:15:25 UTC 2024


It just occurred to me that another possibility could be defining build-in-place as to override the main %prep section, but allow appended sections to be executed as normal for other actions. This would probably help share a spec between a "normal" and in-place build. For example:

```
%prep
%autosetup

%prep -a
# nuke an accidental binary in dist tarball
rm -f bin/blob
```

With that scenario, an in-place build of the spec would skip the main %prep with %autosetup (by placing an empty script there) but still execute the -a section to do another action. This seems to allow for much more flexibility at some cost to ambiguity and options for abuse (like placing %setup in %prep -a section), but that could be declared an operator error I guess.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3208#issuecomment-2302337610
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3208/2302337610 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240821/03e13a80/attachment.html>


More information about the Rpm-maint mailing list