mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "evermind.crazyfury" <evermind.crazyfury@googlemail.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] toolchain glibc symlink regression. Some symlinks are no longer installed
Date: Fri, 19 Aug 2016 01:19:01 +0200	[thread overview]
Message-ID: <730fddf6-482e-bc79-e132-97899e0516bf@gmail.com> (raw)

Hello

I had problems with symlinks that are present within the toolcain but 
not present in the created rootfs,
As result the rootfs was not bootable due to the missing symlinks.

eg calling
ptxdist targetinstall glibc

will no longer create/copy necessary symlinks.

for example root/lib/libm.so.6 was missing in the created rootfs

after reverting below patch the symlinks are created again.

Kind Regards,

Frieder


 From ef20fc7f4ee74ccfb376319d91cae27bcf55a17a Mon Sep 17 00:00:00 2001
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Sun, 5 Jun 2016 19:24:34 +0200
Subject: [PATCH] ptxd_install_toolchain_lib: use ptxd_install_file 
instead of
  ptxd_install_shared

ptxd_install_toolchain_lib creates ptxd_install_link for all necessary
links, so using ptxd_install_shared just creates them a second time.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
  scripts/install_copy_toolchain.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/install_copy_toolchain.sh 
b/scripts/install_copy_toolchain.sh
index 5de2827..2e2616e 100755
--- a/scripts/install_copy_toolchain.sh
+++ b/scripts/install_copy_toolchain.sh
@@ -170,7 +170,7 @@ ptxd_install_toolchain_lib() {

                 perm="$(stat -c %a "${lib_path}")"

-               echo "ptxd_install_shared \"${lib_path}\" \"${prefix}\" 
0 0 \"${perm}\" \"${strip}\"" >> "${STATEDIR}/${packet}.cmds"
+               echo "ptxd_install_file \"${lib_path}\" 
\"${prefix}/${lib}\" 0 0 \"${perm}\" \"${strip}\"" >> 
"${STATEDIR}/${packet}.cmds"
             fi
         else
             echo "error: found ${lib_path}, but neither file nor link" 2>&1
-- 
2.9.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2016-08-18 23:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-18 23:19 evermind.crazyfury [this message]
2016-08-19  6:50 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=730fddf6-482e-bc79-e132-97899e0516bf@gmail.com \
    --to=evermind.crazyfury@googlemail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox