Hi,
I'm making a qmail RPM. All goes well, except that the users and groups are not being created. And they must be before running "make setup check". I've tried all locations in the spec file, but nothing :(
Following my signature is the relevant part of the spec file.
Any help would be appreciated.
Warm Regards
Mário Gamito wrote:
Hi,
I'm making a qmail RPM. All goes well, except that the users and groups are not being created. And they must be before running "make setup check".
Eh? Any part of anyone's build process that requires changing the host system (except for installing stuff needed to build) is broken.
Probably, you shouldn't be running "make setup check" unless you're actually installing from source. If you're making the rpm, the onus is on you to ensure that the target system would pass "make setup check" by writing a script that makes the necessary changes at install time.
You don't add users at build time, those won't be in the target system when you install.
If you cannot build as a normal user, you're doing something wrong. I remember arguing this point with Bill Nottingham years ago, when the kernel wouldn't build unless by root.
I've tried all locations in the spec file, but nothing :(
Following my signature is the relevant part of the spec file.
Any help would be appreciated.
Warm Regards
Hi,
as you probably don't want to build a package as root, you cannot add system-users in the build-stage because of missing privileges. The only way around this is just not doing it and writing a patch for qmail's build system.
Regards, Andreas
Am Donnerstag, den 15.03.2007, 21:37 +0000 schrieb Mário Gamito:
Hi,
I'm making a qmail RPM. All goes well, except that the users and groups are not being created. And they must be before running "make setup check". I've tried all locations in the spec file, but nothing :(
Following my signature is the relevant part of the spec file.
Any help would be appreciated.
Warm Regards