Re: Building rpms in mock
Sam Varshavchik <[email protected]>
| Newsgroups | gmane.mail.imap.courier.general |
|---|---|
| Message-ID | <[email protected]> |
Zenon Panoussis writes: > >> This is not really a bug, Courier always required en_US.UTF-8 locale for >> "make check". They just stripped out all the locales from the default >> buildroot. > > I mean a bug in the EL8 and EL9 distros and their derivatives, > not in courier. At some point last year dnf started throwing > similar errors every time you run it. They split the glibc > langpacks in one rpm per locale and what you get from a stock > installation is not always what some software of that very same > stock installation needs. Well, sure, but this happens all the time. A base OS install will have much more stuff than the default mock image. Building an rpm on a base OS install works fine, but a mock buildroot fails because the default mock build image has a bunch of stuff missing. And they're constantly striving to reduce the size of the default mock buildroot. This makes the package responsible for declaring their dependencies, even if they're included in the base OS image. > But speaking of rpms, there's something else I was pondering > yesterday. If courier doesn't find the courier user/group at > build time, it will later have to run as user daemon. So in > order to build it to run as user courier, you need to first > create the user in the buildroot (hence --no-clean in my build > command). Wouldn't this be a good candidate for a build argument, > e.g. '--with-usergroup courier' or numerical '--with-uidgid 900'? There are already configure options. The userid and the groupid are set when building the courier-authlib package, by using its –with-mailuser and –with-mailgroup options; although I haven't tested what happens if the specified user and group does not exist when building courier-authlib. The courier package will pick up the configure options from courier-authlib. _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRupkKLJP96aW75pIOKYPgoojZS4gUCZW/GQgAKCRCKYPgoojZS 4tguAP4uPvHtFW7x5JXn7t9MEEvFB1iSX+9sNTh2Rby2ybPLdwEAq0Ube8Mr3QHl LAPZ4vqzU5zqlWvEJo3wj+mv4go8HQA= =gIy0 -----END PGP SIGNATURE-----