Skip to contentSkip to conversation

put symlink into /usr in sysroot

DISCUSSION Marek Andrus 1 participant 2 messages Jun 11, 2014 – Jun 13, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

I have to make symbolic link /usr/lib64 to /usr/lib in target sysroot. I create it in install phase and it appears in output rpm package. Unfortunately it doesn't appear in sysroot. I've found that if I create links/files inside eg. /usr/lib the same way, they appear in sysroot. So probably the question should be like this: how to put anything into /usr or / in sysroot?

BR,
Marek Andrus

#1 lore raw

I've found the solution. I created a function (fun) and added it to the functions called during populate_sysroot:
SYSROOT_PREPROCESS_FUNCS += "fun"

The function fun does the work: ln -s lib ${SYSROOT_DESTDIR}usr/lib64

BR,
Marek

Quoted 6 lines · ext Marek Andrus

Hi,

I have to make symbolic link /usr/lib64 to /usr/lib in target sysroot. I create it in install phase and it appears in output rpm package. Unfortunately it doesn't appear in sysroot. I've found that if I create links/files inside eg. /usr/lib the same way, they appear in sysroot. So probably the question should be like this: how to put anything into /usr or / in sysroot?

BR,
Marek Andrus