[Rpm-maint] [rpm-software-management/rpm] RFE: support isolation between %prep/%build/%install/%check (Issue #3050)

Panu Matilainen notifications at github.com
Fri Apr 19 06:36:26 UTC 2024


Ideally, the build scriptlets would be isolated from each other:
- %prep unpacks the source, and  %build takes place in a separate directory against a read-only source. Obviously not all software can be built outside the source tree, but this would be a nice addon to vpath builds (#2985)
- %install wipes buildroot on start, so %build cannot accidentally install stuff. But ideally %install should run with a read-only build directory - install should install, not build. This would've caught #3024. 
- %check should run with read-only buildroot to prevent tests from affecting packaged content. It probably does need writable build-dir because those tests do need to write someplace.


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

Message ID: <rpm-software-management/rpm/issues/3050 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240418/17f4aead/attachment-0001.html>


More information about the Rpm-maint mailing list