User avatar
kyrios
Posts: 1858
Joined: Thu Sep 22, 2016 4:20 pm

Makefile : ldconfig

Thu Mar 23, 2017 9:59 pm

Hello,

I am trying to build a package that executes the command ldconfig but it fails with the following error:

Code: Select all

ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
How could I fix this?

sunnyflunk
Development Team
Posts: 2874
Joined: Sun Mar 13, 2016 11:35 pm

Re: Makefile : ldconfig

Thu Mar 23, 2017 11:37 pm

kyrios wrote:
Thu Mar 23, 2017 9:59 pm
Hello,

I am trying to build a package that executes the command ldconfig but it fails with the following error:

Code: Select all

ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
How could I fix this?
You don't have permissions for root access (An essential part of reliable building). You'd need to patch it out most likely

User avatar
kyrios
Posts: 1858
Joined: Thu Sep 22, 2016 4:20 pm

Re: Makefile : ldconfig

Sat Mar 25, 2017 4:19 pm

How should I patch this?
I mean I could easily comment or remove the line so the command will not be executed but I guess this is not what should be done, is it?

sunnyflunk
Development Team
Posts: 2874
Joined: Sun Mar 13, 2016 11:35 pm

Re: Makefile : ldconfig

Sun Mar 26, 2017 2:19 am

kyrios wrote:
Sat Mar 25, 2017 4:19 pm
How should I patch this?
I mean I could easily comment or remove the line so the command will not be executed but I guess this is not what should be done, is it?
Well it shouldn't be run in a packaging build (perhaps makes sense if downloading git and installing locally). Commenting may work, it's hard to tell without the source and packaging it.

Return to “Engagement”