-
Notifications
You must be signed in to change notification settings - Fork 234
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
mock: avoid the %pre scriptlet if possible #1498
base: main
Are you sure you want to change the base?
mock: avoid the %pre scriptlet if possible #1498
Conversation
Wouldn't it be simpler to just vendor the script in the packaging so that it works everywhere? |
Nah, what a tiring dark packaging corner :-( I'm not sure. Not sure I understand what you are saying; |
696f3dd
to
3c6751d
Compare
Complements: rpm-software-management#1367 Relates: rpm-software-management#289 Closes: rpm-software-management#1498 Relates: fedora-copr/copr#2789
3c6751d
to
73c571d
Compare
@Conan-Kudo PTAL |
@Conan-Kudo does it make sense now? |
I think I did what you mentioned (not sure). This is tricky though, it would be nice to see a "reference" implementation. |
Complements: rpm-software-management#1367 Relates: rpm-software-management#289 Closes: rpm-software-management#1498 Relates: fedora-copr/copr#2789 Co-authored-by: Neal Gompa (ニール・ゴンパ) <[email protected]>
84b77f1
to
55bdb65
Compare
ptal |
The script for generating the %pre scriptlet is non-existing on new distributions (like Mageia now, but Fedora will drop that sooner or later, too). The build of Mock on Mageia previously relied on sysusers.generate-pre.sh, and failed.
The sysusers feature is an RPM built-in anyway (on modern systems), so there's no reason to duplicate the logic in %pre. Generate the %pre scriptlet only for older distributions.
Complements: #1367
Relates: #289
Relates: fedora-copr/copr#2789