Build fails due to /lib/ -> /lib/local substitution #1585

milidam opened this Issue Apr 19, 2016 · 2 comments


None yet

2 participants

milidam commented Apr 19, 2016 edited


Issue type

  • Defect - Unexpected behaviour (obvious or verified by project member).

Defect description

I have a project where I let freeradius to be build by jenkins.
My JENKINS_HOME is /var/lib/jenkins.
Due to this line, apparently, all instances of lib in the paths are replaced by lib/local; so, in my case, all absolute paths are rewritten into /var/lib/local/jenkins/..., what breaks the build.

Output of make showing issue ocurring

make[2]: *** No rule to make target `/var/lib/local/jenkins/[...]/freeradius-server-3.0.11/build/lib/local/', needed by `/var/lib/jenkins/[...]/freeradius-server-3.0.11/build/lib/local/'.  Stop.

Any idea how I could circumvent this?
Do I need to patch, or should the proper config do the trick?

Thanks in advance.


Change the line to:

        $${TGT}_LOCAL_PRLIBS := $$(subst $${BUILD_DIR}/lib/,$${BUILD_DIR}/lib/${LOCAL},$${$${TGT}_PRLIBS})

and it should work. If so, I'll commit a fix.

@alandekok alandekok closed this in 8f3084f Apr 19, 2016
milidam commented Apr 20, 2016

Hi Alan,
Thanks for the quick response !
I can confirm that the change you proposed fixes my problem.

@arr2036 arr2036 added a commit that referenced this issue Apr 20, 2016
@alandekok @arr2036 alandekok + arr2036 Replace BUILD_DIR/lib/, not global /lib/. Fixes #1585 ca2e7d7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment