mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] toolchain glibc symlink regression. Some symlinks are no longer installed
@ 2016-08-18 23:19 evermind.crazyfury
  2016-08-19  6:50 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: evermind.crazyfury @ 2016-08-18 23:19 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-19  6:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-18 23:19 [ptxdist] toolchain glibc symlink regression. Some symlinks are no longer installed evermind.crazyfury
2016-08-19  6:50 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox