Skip to content

Remove FR_LOCATE_DIR macro #4318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Remove FR_LOCATE_DIR macro #4318

wants to merge 2 commits into from

Conversation

floppym
Copy link

@floppym floppym commented Nov 21, 2021

Calling "locate" to find include and library paths makes no sense. The
locate database may contain paths comprised of files meant for entirely
different toolchains.

Fixes: #4317

@thesamesam
Copy link

thesamesam commented Nov 21, 2021

Note that locate may also find files which do not exist on the system (removed since the last DB update, usually done daily or weekly) or fail to find new files. It's really intended for users to find files rather than within build systems or automated processes which expect to find them in standard-ish locations.

We already have pkg-config which is being used + some additional logic in the build system within FreeRADIUS to go looking for libs and headers, so locate should not be needed at all. Again, this is the first time I've ever seen it used in a build system.

Calling "locate" to find include and library paths makes no sense. The
locate database may contain paths comprised of files meant for entirely
different toolchains.

Fixes: FreeRADIUS#4317
@stintel
Copy link

stintel commented Nov 23, 2021

Tested-by: Stijn Tintel <[email protected]>

jpereira added a commit to jpereira/freeradius-server that referenced this pull request Jan 19, 2022
jpereira added a commit to jpereira/freeradius-server that referenced this pull request Jan 19, 2022
jpereira added a commit to jpereira/freeradius-server that referenced this pull request Jan 19, 2022
Calling "locate" to find include and library paths makes no sense. The
locate database may contain paths comprised of files meant for entirely
different toolchains.
alandekok pushed a commit that referenced this pull request Jan 25, 2022
Calling "locate" to find include and library paths makes no sense. The
locate database may contain paths comprised of files meant for entirely
different toolchains.
alandekok pushed a commit that referenced this pull request Jan 25, 2022
Calling "locate" to find include and library paths makes no sense. The
locate database may contain paths comprised of files meant for entirely
different toolchains.
@alandekok
Copy link
Member

Fix has been pushed.

@alandekok alandekok closed this Jan 31, 2022
@floppym
Copy link
Author

floppym commented Jan 31, 2022

@alandekok The code still exists in the master branch. Is there some reason for that?

@alandekok
Copy link
Member

@floppym We haven't gotten to it yet.

Plus, the "master" branch has not been released as v4, and is not yet supported.

@floppym
Copy link
Author

floppym commented Jan 31, 2022

Thanks, just wanted to make sure it wasn't missed by mistake.

fdurand pushed a commit to fdurand/freeradius-server that referenced this pull request Mar 25, 2022
Calling "locate" to find include and library paths makes no sense. The
locate database may contain paths comprised of files meant for entirely
different toolchains.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[defect]: please do not use locate in configure
4 participants