Errors when building binary RPM on OL9
Linus Hicks
linus.hicks at highstreetit.com
Thu Jun 29 20:18:50 UTC 2023
I have downloaded the 3.2.3 tar file from the freeradius site and trying to build the binary RPM on an Oracle Linux 9 system.
I copied the redhat/freeradius.spec file into the SPECS directory but needed to make a couple of changes to get it this far.
1. I got a file not found error on SOURCES/freeradius-tmpfiles-conf. That file is in the redhat/ directory but I couldn't figure out how to change where it is looking for it so just put a copy where it is looking.
2. I have installed postgresql-15 from binary RPM on their site and the paths to the /lib and /include directories don't match the paths searched in the build, now resolved.
3. Now I'm getting:
RPM build errors:
line 51: It's not recommended to have unversioned Obsoletes: Obsoletes: freeradius-devel
line 52: It's not recommended to have unversioned Obsoletes: Obsoletes: freeradius-libs
Macro expanded in comment on line 602: %{_mandir}/man5/rlm_idn.5.gz}
File listed twice: /etc/raddb/certs/bootstrap
File listed twice: /etc/raddb/mods-config/sql/main/mysql/extras
File listed twice: /etc/raddb/mods-config/sql/main/mysql/extras/wimax
File listed twice: /etc/raddb/mods-config/sql/main/mysql/extras/wimax/queries.conf
File listed twice: /etc/raddb/mods-config/sql/main/mysql/extras/wimax/schema.sql
File listed twice: /etc/raddb/mods-config/sql/main/postgresql/extras
File listed twice: /etc/raddb/mods-config/sql/main/postgresql/extras/cisco_h323_db_schema.sql
File listed twice: /etc/raddb/mods-config/sql/main/postgresql/extras/voip-postpaid.conf
Installed (but unpackaged) file(s) found:
/etc/raddb/mods-config/python/example.py
/etc/raddb/mods-config/python/radiusd.py
/usr/lib/debug/usr/lib64/freeradius/rlm_python.so-3.2.3-1.el9.x86_64.debug
/usr/lib64/freeradius/rlm_python.so
It did not create the RPM and I believe the last set of files listed as "Installed (but unpackaged)" need to be resolved.
I know there's a way to ignore the error and continue, but that could leave me with a broken RPM.
Any help is appreciated.
C. Linus Hicks
Please access the attached hyperlink for Highstreet’s electronic communications disclaimer: http://www.highstreetit.com/Email_Disclaimer.htm
More information about the Freeradius-Users
mailing list