Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • O Openwrt
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • olimex
  • Openwrt
  • Repository
Switch branch/tag
  • openwrt
  • package
  • base-files
  • Makefile
Find file BlameHistoryPermalink
  • Florian Fainelli's avatar
    base-files: sysupgrade fail with eglibc · 3810cc0f
    Florian Fainelli authored Mar 22, 2013
    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: default avatarEtienne CHAMPETIER <etienne.champetier@free.fr>
    Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
    
    SVN-Revision: 36107
    3810cc0f

Replace Makefile

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.