-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFE: support isolation between %prep/%build/%install/%check #3050
Comments
I don't think this is going to work. E.g. autotoolz-based systems (something in the autotools, automake, libconf stack) do final preparation steps in the install target. I think this is inelegant, but not really "wrong". Old meson versions had a buglet in the i18n module where the po file would be generated not during build but during installation. But more widely, tools write installation logs into the build directory. Meson does, I think various Python tools do (pip?), etc. Anything that gives an "uninstall" command needs to put the information somewhere.
People were asking about this a lot in #3010. My motivation for this: build hygiene and reproducibility. The
And same with install: I have seen various sources generate stuff needed for tests in check targets, not build. In summary, I think that in practice all phases must be given write access to the build directory. |
Yup. Note "ideally" in there - this is stuff to explore with, and indeed for packaging hygiene reasons rather than any "security" thing. Hmm, seems I omitted a paragraph from the description I wrote in my head, I'll update that a bit... |
Ideally, the build scriptlet playgrounds would be isolated from each other:
%build -a
and%install -a
overwrite build/installation instructions from%buildsystem_*_*
#3024.Except maybe for %check, all of these need to be overridable because different buildsystems work in different ways, and there are imperfections like bugs in the software we package.
The text was updated successfully, but these errors were encountered: