<div>Thanks Alan, I had to comment out both Patch 2 and 5 sections </div>
<div> </div>
<div>#%patch2 -p1 -b .radtest<br>#%patch5 -p1 -b .radeapclient-ipv6</div>
<div> </div>
<div> </div>
<div>to get past the patch error messages but I get another error below:</div>
<div> </div>
<div> </div>
<blockquote style="MARGIN-RIGHT:0px" dir="ltr">
<div><font face="courier new,monospace">+ cp README /home/divtest/rpmbuild/BUILDROOT/freeradius-2.2.0-1.el6.x86_64//usr/share/doc/freeradius-2.2.0</font></div>
<div>cp: cannot stat `README': No such file or directory</div>
<div>error: Bad exit status from /var/tmp/rpm-tmp.wG9x7h (%install)</div>
<div><font face="courier new,monospace">RPM build errors:</font></div><font face="courier new,monospace">
<div>    Bad exit status from /var/tmp/rpm-tmp.wG9x7h (%install)</div></font></blockquote>
<div><font face="arial,helvetica,sans-serif">Here are the contents of the temp file:</font></div>
<div> </div>
<div>  cat /var/tmp/rpm-tmp.wG9x7h<br>#!/bin/sh</div>
<div>  RPM_SOURCE_DIR="/home/test/rpmbuild/SOURCES"<br>  RPM_BUILD_DIR="/home/test/rpmbuild/BUILD"<br>  RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic"<br>

  RPM_ARCH="x86_64"<br>  RPM_OS="linux"<br>  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS<br>  RPM_DOC_DIR="/usr/share/doc"<br>  export RPM_DOC_DIR<br>  RPM_PACKAGE_NAME="freeradius"<br>

  RPM_PACKAGE_VERSION="2.2.0"<br>  RPM_PACKAGE_RELEASE="1.el6"<br>  export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE<br>  LANG=C<br>  export LANG<br>  unset CDPATH DISPLAY ||:<br>  RPM_BUILD_ROOT="/home/test/rpmbuild/BUILDROOT/freeradius-2.2.0-1.el6.x86_64"<br>

  export RPM_BUILD_ROOT<br>  <br>  PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"<br>  export PKG_CONFIG_PATH<br>  <br>  set -x<br>  umask 022<br>  cd "/home/test/rpmbuild/BUILD"<br>    [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"<br>

    mkdir -p `dirname "$RPM_BUILD_ROOT"`<br>    mkdir "$RPM_BUILD_ROOT"</div>
<div>cd 'freeradius-server-2.2.0'<br>LANG=C<br>export LANG<br>unset DISPLAY</div>
<div>mkdir -p $RPM_BUILD_ROOT//var/lib/radiusd<br># fix for bad libtool bug - can not rebuild dependent libs and bins<br>#FIXME export LD_LIBRARY_PATH=$RPM_BUILD_ROOT//usr/lib64<br>make install R=$RPM_BUILD_ROOT<br># modify default configuration<br>

RADDB=$RPM_BUILD_ROOT/etc/raddb<br>perl -i -pe 's/^#user =.*$/user = radiusd/'   $RADDB/radiusd.conf<br>perl -i -pe 's/^#group =.*$/group = radiusd/' $RADDB/radiusd.conf<br># logs<br>mkdir -p $RPM_BUILD_ROOT/var/log/radius/radacct<br>

touch $RPM_BUILD_ROOT/var/log/radius/{radutmp,radius.log}</div>
<div>install -D -m 755 /home/test/rpmbuild/SOURCES/freeradius-radiusd-init $RPM_BUILD_ROOT//etc/rc.d/init.d/radiusd<br>install -D -m 644 /home/test/rpmbuild/SOURCES/freeradius-logrotate $RPM_BUILD_ROOT//etc/logrotate.d/radiusd<br>

install -D -m 644 /home/test/rpmbuild/SOURCES/freeradius-pam-conf $RPM_BUILD_ROOT//etc/pam.d/radiusd</div>
<div>mkdir -p /home/test/rpmbuild/BUILDROOT/freeradius-2.2.0-1.el6.x86_64/var/run/<br>install -d -m 0710 /home/test/rpmbuild/BUILDROOT/freeradius-2.2.0-1.el6.x86_64/var/run/radiusd/</div>
<div># remove unneeded stuff<br>rm -rf doc/00-OLD<br>rm -f $RPM_BUILD_ROOT/usr/sbin/rc.radiusd<br>rm -rf $RPM_BUILD_ROOT//usr/lib64/freeradius/*.a<br>rm -rf $RPM_BUILD_ROOT//usr/lib64/freeradius/*.la<br>rm -rf $RPM_BUILD_ROOT//etc/raddb/sql/mssql<br>

rm -rf $RPM_BUILD_ROOT//etc/raddb/sql/oracle<br>rm -rf $RPM_BUILD_ROOT//usr/share/dialup_admin/sql/oracle<br>rm -rf $RPM_BUILD_ROOT//usr/share/dialup_admin/lib/sql/oracle<br>rm -rf $RPM_BUILD_ROOT//usr/share/dialup_admin/lib/sql/drivers/oracle</div>


<div># remove header files, we don't ship a devel package and the<br># headers have multilib conflicts<br>rm -rf $RPM_BUILD_ROOT//usr/include</div>
<div># remove unsupported config files<br>rm -f $RPM_BUILD_ROOT//etc/raddb/experimental.conf</div>
<div># install doc files omitted by standard install<br>for f in COPYRIGHT CREDITS INSTALL README; do<br>    cp $f $RPM_BUILD_ROOT//usr/share/doc/freeradius-2.2.0<br>done<br>cp LICENSE $RPM_BUILD_ROOT//usr/share/doc/freeradius-2.2.0/LICENSE.gpl<br>

cp src/lib/LICENSE $RPM_BUILD_ROOT//usr/share/doc/freeradius-2.2.0/LICENSE.lgpl<br>cp src/LICENSE.openssl $RPM_BUILD_ROOT//usr/share/doc/freeradius-2.2.0/LICENSE.openssl</div>
<div># add Red Hat specific documentation<br>cat >> $RPM_BUILD_ROOT//usr/share/doc/freeradius-2.2.0/REDHAT << EOF</div>
<div>Red Hat, RHEL, Fedora, and CentOS specific information can be found on the<br>FreeRADIUS Wiki in the Red Hat FAQ.</div>
<div><a href="http://wiki.freeradius.org/guide/Red_Hat_FAQ">http://wiki.freeradius.org/guide/Red_Hat_FAQ</a></div>
<div>Please reference that document.</div>
<div>EOF</div>
<div><br># Make sure our user/group is present prior to any package or subpackage installation</div>
<div>    <br>   /usr/lib/rpm/find-debuginfo.sh --strict-build-id  "/home/test/rpmbuild/BUILD/freeradius-server-2.2.0"</div>
<div>    /usr/lib/rpm/check-buildroot<br>    <br>    /usr/lib/rpm/redhat/brp-compress <br>     <br>    /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip <br>    /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump <br>

    /usr/lib/rpm/brp-python-bytecompile <br>    /usr/lib/rpm/redhat/brp-python-hardlink <br>    /usr/lib/rpm/redhat/brp-java-repack-jars</div>
<div> </div>
<div class="gmail_quote">On Mon, May 6, 2013 at 1:09 PM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com" target="_blank">aland@deployingradius.com</a>></span> wrote: 
<div> </div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Divyesh Raithatha wrote: 
<div>> Hello all, has anyone had success in building an RPM from the v2.x.x</div>
<div>> branch from <a href="http://git.freeradius.org/" target="_blank">http://git.freeradius.org</a>?</div>
<div>></div>
<div>  That should work....</div>
<div> </div>
<div>> I am following the information from</div>
<div>> <a href="http://wiki.freeradius.org/guide/Red-Hat-FAQ" target="_blank">http://wiki.freeradius.org/guide/Red-Hat-FAQ</a></div>
<div>></div>
<div>> On a CentOS 6.4 x64 system I was able to build an RPM from 2.2.0 source</div>
<div>> successfully but I want to get all of the recent patches from the v2.x.x</div>
<div>> branch.</div>
<div> </div>
<div>  Go to redhat/freeradius.spec, and delete the following line:</div>
<div> </div>
<div>Patch2: freeradius-radtest.patch</div>
<div> </div>
<div> </div>
<div>  That should cause it to build.</div>
<div><span class="HOEnZb"><font color="#888888"> </font></span></div><span class="HOEnZb"><font color="#888888">
<div>  Alan DeKok.</div>
<div>-</div>
<div>List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a></div>
<div></div></font></span> </blockquote></div>
<div> </div>