Ping
I know eglibc isn't the main libc but having a working sysupgrade make sense

Le 18/02/2013 00:57, Etienne Champetier a écrit :
> Hi
>
> With eglibc, "ldd busybox" give us
>     libcrypt.so.1 => /lib/libcrypt.so.1 (0x774be000)
>     libm.so.6 => /lib/libm.so.6 (0x773e4000)
>     libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x773c0000)
>     libc.so.6 => /lib/libc.so.6 (0x77276000)
>     /lib/ld.so.1 (0x774fe000)
>
> Thus /lib/ld.so.1 is not printed by the libs fonction and isn't copied to the 
> 'new' root before pivot root
> libs() { ldd $* | awk '{print $3}'; }
> https://dev.openwrt.org/browser/trunk/package/base-files/files/lib/upgrade/common.sh
>
> With uclibc the last line of "ldd busybox" is
>     ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x77ada000)
>
> Don't know for musl!
>
> This patch replace https://dev.openwrt.org/changeset/19167, as glibc is gone
> The other way around is to rework libs()
>
> Please apply the fix (mine or another) on trunk and AA
> Might fix https://dev.openwrt.org/ticket/12273
>
> Signed-off-by: Etienne CHAMPETIER <[email protected]>
>
>
> Index: package/base-files/Makefile
> ===================================================================
> --- package/base-files/Makefile    (révision 35634)
> +++ package/base-files/Makefile    (copie de travail)
> @@ -11,7 +11,7 @@
>  include $(INCLUDE_DIR)/version.mk
>  
>  PKG_NAME:=base-files
> -PKG_RELEASE:=133
> +PKG_RELEASE:=134
>  
>  PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
>  PKG_BUILD_DEPENDS:=opkg/host
> Index: package/base-files/files/lib/upgrade/common.sh
> ===================================================================
> --- package/base-files/files/lib/upgrade/common.sh    (révision 35634)
> +++ package/base-files/files/lib/upgrade/common.sh    (copie de travail)
> @@ -21,8 +21,8 @@
>      files=$1
>      [ -x "$src" ] && files="$src $(libs $src)"
>      install_file $files
> -    [ -e /lib/ld-linux.so.3 ] && {
> -        install_file /lib/ld-linux.so.3
> +    [ -e /lib/ld.so.1 ] && {
> +        install_file /lib/ld.so.1
>      }
>      shift
>      for link in "$@"; do {
>
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to