[RFC PATCH] treewide: drop librt and libpthread packages

Felix Fietkau nbd at nbd.name
Fri Nov 19 01:06:53 PST 2021


On 2021-11-18 12:58, Jo-Philipp Wich wrote:
> Since OpenWrt's main libc library, musl, does not provide separate shared
> object files for libpthread and librt, the existing binary packages for
> them are empty placeholders which provide no runtime functionality and
> frequently cause confusion among users who attempt to build software
> linking -lrt or -lpthread on target.
> 
> To clean this situation up somewhat and to simplify binary package
> dependecies for all of the potential musl, glibc and uclibc cases, drop
> those packages and move libpthread.so as well as librt.so into the main
> libc package for those libc implementations that happen ship them as
> extra shared libraries.
> 
> Signed-off-by: Jo-Philipp Wich <jo at mein.io>
I think this is a good idea. How about adding PROVIDES:=librt libpthread 
to the libc package in order to avoid breaking non-core packages that 
still depend on those?

- Felix



More information about the openwrt-devel mailing list