Closed pbrena closed 1 year ago
Hi,
Just to be clear, you would like me to remove ldconfig
from the Makefile?
Yes, it breaks some restricted environments such as Gentoo’s sandbox
This is fixed now. I've replaced it with a message to manually invoke ldconfig
.
Out of interest, did you have the same problem with lgpio as well? The Makefile uses ldconfig too.
Thanks a lot. I did not.... I used the one in github and not the one included in hx711 thou. maybe they have difefent makefiles? On Tuesday, 17 January 2023, 10:54:53 PM GMT-6, Daniel Robertson @.***> wrote:
This is fixed now. I've replaced it with a message to manually invoke ldconfig.
Out of interest, did you have the same problem with lgpio as well? The Makefile uses ldconfig too.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Hello,
I'm currently writing a Gentoo ebuild file (with a lot of help from maintainers) in order to install your Library using the Distribution's canonic methods.
While doing so I've been pointed out a couple of details in the Makefile subject to improvement that I submit to your consideration:
a) There's advice against the use of ldconfig as it causes problems in restricted environments. See for example this reported issue
b) Currently compilation do not support parallelism (make -jN for values of N greater than 1) which is a common practice in the distribution as it is often intensive in compilation tasks. It causes a so called "racing conflict”: using the flag -lhx711 compiling some sources before it is actually available.
Regards Pablo