Building 2.1.12 on Debian Squeeze: Clean Error

Matthew Newton mcn4 at
Sun Apr 22 20:54:11 CEST 2012

On Sun, Apr 22, 2012 at 10:39:42AM +0200, Alan DeKok wrote:
> Eric Geier wrote:
> > I enter "fakeroot dpkg-buildpackage -b -uc" and get the following clean
> > error:
>   You edited the source and broke it.

Most likely, in this case. I can't reproduce that from the clean git

>   It works fine using the standard source.

Unfortunately not, on squeeze, although this may depend on your
current umask.

The fix is in 282c2dfb3d64, or just use v2.1.x. Unfortunately that does
introduce another bug - you need to install the freeradius-mysql package or
pull dhcp_sqlippool out of the config, due to it pulling in a mysql file at
line 18, added in aeee8bb6b840f12c. I haven't worked out a clean solution for
that one - I guess dhcp_sqlippool should be in the freeradius-mysql package
instead, as it currently depends on mysql, but that doesn't seem right.

diff --git a/debian/rules b/debian/rules
index 398bbd1..36a103a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -153,7 +153,7 @@ install-arch: build-arch-stamp
        dh_installdirs -s
        test -d $(freeradius_dir)/usr/lib/freeradius || mkdir -p $(freeradius_dir)/usr/lib/freeradius
-       ln -s $(freeradius_dir)/usr/lib/freeradius/
+       ln -fs $(freeradius_dir)/usr/lib/freeradius/
        $(MAKE) install R=$(freeradius_dir)
        # rename radius binary to play nicely with others
@@ -183,7 +183,7 @@ binary-common:
        dh_installchangelogs doc/ChangeLog
-       chmod -x debian/freeradius/usr/share/doc/freeradius/examples/
+       chmod a-x debian/freeradius/usr/share/doc/freeradius/examples/
        dh_installpam --name=radiusd 
        dh_installinit --noscripts



Matthew Newton, Ph.D. <mcn4 at>

Systems Architect (UNIX and Networks), Network Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at>

More information about the Freeradius-Users mailing list