# pwck user 'adm': directory '/var/adm' does not exist user 'uucp': directory '/var/spool/uucp' does not exist user 'gopher': directory '/var/gopher' does not exist user 'avahi-autoipd': directory '/var/lib/avahi-autoipd' does not exist user 'oprofile': directory '/home/oprofile' does not exist user 'saslauth': directory '/var/empty/saslauth' does not exist user 'mailnull': directory '/var/spool/mqueue' does not exist user 'smmsp': directory '/var/spool/mqueue' does not exist user 'pulse': directory '/var/run/pulse' does not exist pwck: no changes no $HOME for oprofile user: "user 'oprofile': directory '/home/oprofile' does not exist"
In general, system packages should stay out of the /home space.
I see the problem line in oprofile.spec: useradd -r -g oprofile -d /home/oprofile -r -u 16 -s /sbin/nologin \ -c "Special user account to be used by OProfile" oprofile What would be the preferred directory to use? Looking at: https://fedoraproject.org/wiki/PackagingDrafts/UserCreation So that should be: useradd -r -g oprofile -d %homedir -r -u 16 -s /sbin/nologin \ -c "Special user account to be used by OProfile" oprofile Shouldn't there be an entry in the following oprofile? https://fedoraproject.org/wiki/PackageUserRegistry
Created attachment 485578 [details] Avoid using /home/oprofile as home for user oprofile So something like the attached patch to correct the problem?
I'm not seeing where %homedir is defined. Am I missing something?
Created attachment 485587 [details] Remove the %homedir in the patch The %homedir was from the code snippet on . When testing things out I realize that it %homedir wasn't a predefined macro. This patch corrects that. The other question I had was the 'test "$1" != 0 || " in the %postun. Are those required?
Yes, they're needed - otherwise it will fire when you're upgrading the package and the old version gets removed. New patch looks good.
https://fedoraproject.org/wiki/Packaging:UsersAndGroups has more info.
Patch now in the oprofile.spec and rebuilt in oprofile-0.9.6-18, so this should no longer be an issue.
oprofile-0.9.6-20.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/oprofile-0.9.6-20.fc13
oprofile-0.9.6-20.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/oprofile-0.9.6-20.fc14
oprofile-0.9.6-20.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/oprofile-0.9.6-20.fc15
oprofile-0.9.6-20.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
oprofile-0.9.6-20.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
oprofile-0.9.6-20.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.