Skip to contentSkip to conversation

cpufrequtils: Create proper symlinks to versioned library

PATCH In review Khem Raj 2 participants 3 messages Jun 5, 2015 – Jun 8, 2015

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 cpufrequtils: Create proper symlinks to versioned library

Currently it produces duplicated .so files for .so.0 and .so.0.0.0 this is also noticed by opkg upgrade

Configuring libxcb-randr0.
/sbin/ldconfig: /usr/lib/libcpufreq.so.0 is not a symbolic link

Additionally helps in some code size savings

---
 meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb +4 -1
index e3b4de1..88fcc02 100644
@@ -14,7 +14,7 @@ SRC_URI = "git://github.com/emagii/cpufrequtils.git \
            file://0001-dont-unset-cflags.patch \
 "
 
-CFLAGS_append_libc-uclibc = " ${@['-DNLS', '-UNLS']['${USE_NLS}' == 'no']} "
+EXTRA_OEMAKE_append = " ${@['', 'NLS=false']['${USE_NLS}' == 'no']} "
 
 PR = "r5"
 
@@ -30,5 +30,8 @@ do_compile() {
 
 do_install() {
     oe_runmake -e install DESTDIR=${D}
+    rm -f ${D}${libdir}/libcpufreq.so.0 ${D}${libdir}/libcpufreq.so
+    ln -s libcpufreq.so.0.0.0 ${D}${libdir}/libcpufreq.so.0
+    ln -s libcpufreq.so.0.0.0 ${D}${libdir}/libcpufreq.so
 }
 
Signature · 1 line
2.1.4
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Khem Raj schreef op 05-06-15 om 03:44:

Quoted 20 lines

Currently it produces duplicated .so files for .so.0 and .so.0.0.0 this is also noticed by opkg upgrade

Configuring libxcb-randr0. /sbin/ldconfig: /usr/lib/libcpufreq.so.0 is not a symbolic link

Additionally helps in some code size savings

meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)

(quoted diff) +0 -0

b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb index e3b4de1..88fcc02 100644 --- a/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb +++ b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb @@ -14,7 +14,7 @@ SRC_URI = "git://github.com/emagii/cpufrequtils.git \
file://0001-dont-unset-cflags.patch \ "

Quoted 3 lines

-CFLAGS_append_libc-uclibc = " ${@['-DNLS', '-UNLS']['${USE_NLS}' == 'no']} " +EXTRA_OEMAKE_append = " ${@['', 'NLS=false']['${USE_NLS}' == 'no']} "

That's not mentioned in the commit message

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFVdU9iMkyGM64RGpERAhnwAJ4v/Ds0cnWWGkmkG4XHDS8PTalfZQCfe8FM M3MbPGfQb3mnso7vaHNpGN4=
=K71s
-----END PGP SIGNATURE-----

author
#2 lore raw
Quoted 5 lines · Koen Kooi
Quoted 3 lines

-CFLAGS_append_libc-uclibc = " ${@['-DNLS', '-UNLS']['${USE_NLS}' == 'no']} " +EXTRA_OEMAKE_append = " ${@['', 'NLS=false']['${USE_NLS}' == 'no']} "

That's not mentioned in the commit message

ugh, I did forget, it makes it compile on musl as well and utilizes provided provisions
from makefiles itself instead of injecting the flags. May be an a commit ammend before applying for Martin :)