[Rpm-maint] [rpm-software-management/rpm] How to disable %preuntrans & %sysusers creation while building an rpm (Discussion #3174)
Shreenidhi Shedi
notifications at github.com
Wed Jun 19 12:33:27 UTC 2024
I'm yet to root cause this issue because this started happening today and I have no idea how or why.
```
D: running %preuntrans scripts
D: ========== +++ systemd-255.2-5.ph5 x86_64-linux 0x2
D: install: systemd-255.2-5.ph5.x86_64 has 732 files
D: %sysusers(systemd-255.2-5.ph5.x86_64): scriptlet start
D: %sysusers(systemd-255.2-5.ph5.x86_64): execv(/bin/sh) pid 3927
+ /usr/lib/rpm/sysusers.sh --replace /usr/lib/sysusers.d/basic.conf -
/var/tmp/rpm-tmp.JhzjTt: line 2: /usr/lib/rpm/sysusers.sh: No such file or directory
D: %sysusers(systemd-255.2-5.ph5.x86_64): waitpid(3927) rc 3927 status 7f00
error: %sysusers(systemd-255.2-5.ph5.x86_64) scriptlet failed, exit status 127
package systemd-255.2-5.ph5.x86_64: script error in (unknown)
error: systemd-255.2-5.ph5.x86_64: install failed
D: ========== +++ systemd-255.2-4.ph5 x86_64-linux 0x2
```
I'm not adding anything like this in my systemd.spec but somehow while installing rpm is looking for sysusers.sh.
I have sysusers.sh packaged in my rpm.spec but what I don't understand is how it started showing up all of a sudden.
Link to my systemd spec
https://github.com/vmware/photon/blob/master/SPECS/systemd/systemd.spec
Link to sysusers.sh
https://github.com/vmware/photon/blob/master/SPECS/rpm/rpm.spec#L262
I'm using `rpm-4.19.1.1`
I commented out `__systemd_sysusers` from /lib/rpm/macros and then update goes smooth as expected.
But is there anyway to avoid embedding this info in rpm (systemd rpm in this case) during build time itself?
Please assist.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3174
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/3174 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240619/b8633bfb/attachment.html>
More information about the Rpm-maint
mailing list