When trying to build freeradius-2.1.12, it fails because of missing group "radiusd". After renaming the (by the ebuild) created group "radius" the next attempt fails because of the missing user "radiusd". After renaming the user "radius" to "radiusd" the build succeeds. Reproducible: Always Steps to Reproduce: 1.On a system with no radius[d] users and group try to emerge freeradius-2.1.12 2. 3. Actual Results: When trying to build freeradius-2.1.12, it fails because of missing group "radiusd". After renaming the (by the ebuild) created group "radius" the next attempt fails because of the missing user "radiusd". After renaming the user "radius" to "radiusd" the build succeeds. Expected Results: The merge should succeed.
Created attachment 299053 [details, diff] freeradius-2.1.12.ebuild.diff Possible fix
(In reply to comment #1) > Created attachment 299053 [details, diff] [details, diff] > freeradius-2.1.12.ebuild.diff > > Possible fix That works but can be improved: * the sed command has no effect and can be removed * the chown also has to be changed See attached diff.
Created attachment 299061 [details, diff] Modified diff * the sed command has no effect and can be removed * the chown also has to be changed
(In reply to comment #3) > Created attachment 299061 [details, diff] [details, diff] > Modified diff > > * the sed command has no effect and can be removed > * the chown also has to be changed I can confirm that this patch resolves problem for me, and that I also agree that we don't need that sed, because it does nothing.
+ 14 Jun 2012; Lars Wendler <polynomial-c@gentoo.org> -freeradius-2.0.5.ebuild, + -freeradius-2.1.1.ebuild, -freeradius-2.1.3-r1.ebuild, + -freeradius-2.1.6.ebuild, -freeradius-2.1.7.ebuild, + -freeradius-2.1.10.ebuild, freeradius-2.1.11.ebuild, + freeradius-2.1.12.ebuild: + non-maintainer commit: Fixed bug #397609. Removed old versions. +
Created attachment 315641 [details] Failure because of incomplete fix Now it fails because src_install uses diropts ... -g radius Please amend: - diropts -m0750 -o root -g radius + diropts -m0750 -o root -g radiusd - diropts -m0750 -o radius -g radius + diropts -m0750 -o radius -g radiusd
Sorry for the bugspam, also s/-o radius/-o radiusd/ in the second line of course
I had the same failure on 2.1.11, I will now try 2.1.12 to see if I get the same problem.
Updating my last post 2.1.12 installs and 2.1.11 did not with the same errors.
*** Bug 422863 has been marked as a duplicate of this bug. ***
*** Bug 424687 has been marked as a duplicate of this bug. ***
(In reply to comment #11) > *** Bug 424687 has been marked as a duplicate of this bug. *** Guys, I'm unhappy. First, the "solution" originally proposed by Lars broke freeradius. It created the user "radiusd", then tried to chown the directories to user "radius". That does not sound sane. The fix was committed to the latest stable version, without naming it differently (-r1 or whatever), creating a regression: it used to compile on my clean install of 2012-01-01, now it does not compile on my clean install of 2012-07-01. The original (Jan-01) version created the user "radiusd" and later on used the user "radiusd". That looks the sane way of doing things... --- More than 2 weeks have passed, with the tree containing the latest stable version broken. This bug is flagged "RESOLVED FIXED", when the "result" is a noncompiling latest stable. Two bug reports have been filed about the regression, both now flagged as a duplicate by Jeroen, so they look like "RESOLVED". Which they are not: the latest stable of freeradius does not compile on a clean install. And the *very*same*version* used to. Guys, please: - reopen this bug, if those marked as duplicate are really duplicates of this, and then clean up 2.1.11 ASAP (as that's the latest stable and it does not compile now). - if we conclude this bug is "FIXED", then those two regression bugs are not a duplicate, but a result of this bug's "solution", so mark them as appropriate. --- From the current freeradius-2.1.11.ebuild: pkg_setup() { ... enewgroup radiusd enewuser radiusd -1 -1 /var/log/radius radiusd ... src_install() { ... diropts -m0750 -o root -g radius diropts -m0750 -o radius -g radius
*** Bug 425420 has been marked as a duplicate of this bug. ***
+*freeradius-2.1.11-r1 (09 Jul 2012) + + 09 Jul 2012; Lars Wendler <polynomial-c@gentoo.org> + -freeradius-2.1.11.ebuild, +freeradius-2.1.11-r1.ebuild: + non-maintainer commit: Fix user/group bug for stable radius as well (bug + #397609). Revision bump committed straight to stable. +