Thanks everyone. Finally got the RPM build to work by doing the following: Version: 2.2.0" in the top of the freeradius.spec file to 2.2.1, and renaming source bz2 file to freeradius-server-2.2.1.tar.**bz2 Along with commenting out patches 2 and 5 #Patch2: freeradius-radtest.patch #Patch5: freeradius-radeapclient-ipv6.patch Changing the README line to README.rst # install doc files omitted by standard install for f in COPYRIGHT CREDITS INSTALL README.rst; do cp $f $RPM_BUILD_ROOT/%{docdir} diff freeradius.spec ~/freeradius-server-2.2.1/redhat/freeradius.spec 3c3 < Version: 2.2.0 ---
Version: 2.2.1 15c15 < Patch2: freeradius-radtest.patch
#Patch2: freeradius-radtest.patch 18c18 < Patch5: freeradius-radeapclient-ipv6.patch
#Patch5: freeradius-radeapclient-ipv6.patch 152c152 < %patch2 -p1 -b .radtest
#%patch2 -p1 -b .radtest 155c155 < %patch5 -p1 -b .radeapclient-ipv6
#%patch5 -p1 -b .radeapclient-ipv6 239c239 < for f in COPYRIGHT CREDITS INSTALL README; do
for f in COPYRIGHT CREDITS INSTALL README.rst; do By commenting out patch 2 and patch 5 what am I missing, if anything?
On Wed, May 8, 2013 at 8:20 AM, John Dennis <jdennis@redhat.com> wrote:
On 05/08/2013 03:19 AM, Fajar A. Nugraha wrote:
On Wed, May 8, 2013 at 1:50 PM, Raithatha, Divyesh <divyesh.raithatha@gmail.com> wrote:
Thanks, I got past the README but now I am getting the following file not found errors. They do exist, however, it looks like the build is looking for version 2.2.0 of the library files yet they are listed as 2.2.1.
error: File not found: /home/test/rpmbuild/BUILDROOT/** freeradius-2.2.0-1.el6.x86_64/**etc/raddb/certs/README.rst
That's kinda tricky. Look at %files section in the spec file.
The cleanest solution right now would probably be changing "Version: 2.2.0" in the top of the make file to 2.2.1, AND rename your source bz2 file to freeradius-server-2.2.1.tar.**bz2.
The version macro in the spec file, the version embedded in tar file name, and the contents of tar file all *MUST* match. You have to be precise with what version you're building.
I assumed that was obvious as opposed to being tricky ;-)
Another way would be changing the files section, from (e.g.)
%{_libdir}/freeradius/rlm_**acct_unique-%{version}.so
to
%{_libdir}/freeradius/rlm_**acct_unique-*.so
... or even try deleting all rlm_* lines and replace them with a one-liner
%{_libdir}/freeradius/rlm_*.**so*
-- John Dennis <jdennis@redhat.com>
Looking to carve out IT costs? www.redhat.com/carveoutcosts/ - List info/subscribe/unsubscribe? See http://www.freeradius.org/** list/users.html <http://www.freeradius.org/list/users.html>