Good day Everyone,
Back Story:
We wanted to install the latest release of Freeradius from NetworkRadius and got a conflict. See post: http://lists.freeradius.org/pipermail/freeradius-users/2020-March/097718.htm... Their response was of course, figure it out and fix it yourself, which I have no problem with.
I personally never compiled a rpm file before but i think i have an idea of what needs to be adjusted on their specs file. Wanted to run my changes by you guys, if you could please kindly review....
https://github.com/davama/freeradius-server/commit/7fa0f49e25de874bb50345846... https://github.com/davama/freeradius-server/commit/dab208186d440196c297821f0...
Not too sure if "BuildRequires" uses the same syntax but "Requires" does, at least what it says here: https://rpm.org/user_doc/boolean_dependencies.html
Hope it's clear. Please let me know, if you need any info from me. Any input is much appreciated!
Thank you, Dave
On 3/26/20 4:18 PM, Dave Macias wrote:
See post: http://lists.freeradius.org/pipermail/freeradius-users/2020-March/097718.htm...
From the reference above:
Transaction check error:
- file /usr/lib/systemd/system/slapd.service from install of
openldap-ltb-2.4.49-1.el7.x86_64 conflicts with file from package symas-openldap-servers-2.4.49-1.el7.x86_64*
This message is pretty clear: You have conflicting packages openldap-ltb and symas-openldap-servers which both try to install file /usr/lib/systemd/system/slapd.service.
=> Remove either one of the conflicting packages or better start over your trials with a fresh OS install in a new VM.
Ciao, Michael.
Thank you for the reply. But i am using the symas pkg too. I believe thats why they (freeradius devs) suggested to provide a PR which updates their specs file so that it can use either openldap-ltb or symas-openldap.
Which i am trying to do on my git links i sent on my first post.
-Dave On Mar 26, 2020, 3:25 PM -0400, Michael Ströder michael@stroeder.com, wrote:
On 3/26/20 4:18 PM, Dave Macias wrote:
See post: http://lists.freeradius.org/pipermail/freeradius-users/2020-March/097718.htm...
From the reference above:
Transaction check error:
- file /usr/lib/systemd/system/slapd.service from install of
openldap-ltb-2.4.49-1.el7.x86_64 conflicts with file from package symas-openldap-servers-2.4.49-1.el7.x86_64*
This message is pretty clear: You have conflicting packages openldap-ltb and symas-openldap-servers which both try to install file /usr/lib/systemd/system/slapd.service.
=> Remove either one of the conflicting packages or better start over your trials with a fresh OS install in a new VM.
Ciao, Michael.
--On Thursday, March 26, 2020 12:18 PM -0400 Dave Macias davama@gmail.com wrote:
Not too sure if "BuildRequires" uses the same syntax but "Requires" does, at least what it says here: https://rpm.org/user_doc/boolean_dependencies.html
Try it and see? I can't find any concrete documentation one way or the other, although it seems BuildRequires generally follows what Requires does. You may need to ask the people who maintain RPM.
There are other issues in the spec file, however, like:
--with-libfreeradius-ldap-include-dir=/usr/local/openldap/include \ --with-libfreeradius-ldap-lib-dir=/usr/local/openldap/lib64 \
are specific to LTB, might want to do something like they did around line 447 to only do this if the LTB openldap is in use.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
openldap-technical@openldap.org