Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388537 - net-dns/djbdns-1.05-r23 fails due to non-existing nofiles group
Summary: net-dns/djbdns-1.05-r23 fails due to non-existing nofiles group
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Dane Smith (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 11:32 UTC by Jaco Kroon
Modified: 2012-03-02 22:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2011-10-26 11:32:45 UTC
I suspect the output from emerge states it best.

 * djbdns-1.05.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                                                     [ ok ]
 * Adding user 'dnscache' to your system ...
 *  - Userid: 102
 *  - Shell: /sbin/nologin
 *  - Home: /dev/null
 * You must add group nofiles to the system first
 * ERROR: net-dns/djbdns-1.05-r23 failed (setup phase):
 *   nofiles is not a valid GID
 * 
 * Call stack:
 *                ebuild.sh, line  56:  Called pkg_setup
 *   djbdns-1.05-r23.ebuild, line 124:  Called enewuser 'dnscache' '-1' '-1' '-1' 'nofiles'
 *            eutils.eclass, line 697:  Called die
 * The specific snippet of code:
 *                              die "${g} is not a valid GID"

A simple workaround:

groupadd -r nofiles

Reproducible: Always
Comment 1 Michael Orlitzky gentoo-dev 2011-10-26 14:56:33 UTC
The 'nofiles' group used to be supplied by baselayout, but I'm guessing that ended with baselayout-2. This seems to be what other packages are doing.

$ cat djbdns-1.05-r23.patch 
--- /usr/portage/net-dns/djbdns/djbdns-1.05-r23.ebuild	2011-01-29 19:01:10.000000000 -0500
+++ djbdns-1.05-r23.ebuild	2011-10-26 10:53:59.085089316 -0400
@@ -120,7 +120,10 @@
 }
 
 pkg_setup() {
-	# The nofiles group is provided by baselayout
+	# The nofiles group is no longer provided by baselayout.
+	# Share it with qmail if possible.
+	enewgroup nofiles 200
+
 	enewuser dnscache -1 -1 -1 nofiles
 	enewuser dnslog -1 -1 -1 nofiles
 	enewuser tinydns -1 -1 -1 nofiles


$ cat djbdns-1.05-r24.patch 
--- /usr/portage/net-dns/djbdns/djbdns-1.05-r24.ebuild	2011-04-11 09:31:18.000000000 -0400
+++ djbdns-1.05-r24.ebuild	2011-10-26 10:54:06.273034126 -0400
@@ -122,7 +122,10 @@
 }
 
 pkg_preinst() {
-	# The nofiles group is provided by baselayout
+	# The nofiles group is no longer provided by baselayout.
+	# Share it with qmail if possible.
+	enewgroup nofiles 200
+
 	enewuser dnscache -1 -1 -1 nofiles
 	enewuser dnslog -1 -1 -1 nofiles
 	enewuser tinydns -1 -1 -1 nofiles
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-03-02 22:57:13 UTC
Thanks. Fixed in -r25