Wind River Support Network

HomeDefectsLIN5-18187
Fixed

LIN5-18187 : symlinks not preserved in intel-emgd

Created: Mar 2, 2014    Updated: Dec 19, 2017
Resolved Date: Aug 5, 2014
Previous ID: LIN4-31118
Found In Version: 5.0.1.11
Fix Version: 5.0.1.13
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

Looks like we failed to preserve symlinks for the emgd content in RCPL19


older inte-emgd layer.....
layer-intel-emgd-1.14/dist/intel-emgd/patches/intel-emgd-integration.patch:
+# Take care to preserve symlinks.
+install-libraries:
+    $(INSTALL) -d -m 755 $(DESTDIR)$(LIB_DIR); \
+    cp -dP usr/lib/libgstva* $(DESTDIR)$(LIB_DIR); \
+    cp -dP usr/lib/libmix* $(DESTDIR)$(LIB_DIR); \
+    cp -dP usr/lib/*.so* $(DESTDIR)$(LIB_DIR); \
+    rm $(DESTDIR)$(LIB_DIR)/libEMGDScopeServices.so; \
+    chmod 0755 $(DESTDIR)$(LIB_DIR)/libgstva*; \
+    chmod 0755 $(DESTDIR)$(LIB_DIR)/libmix*; \
+    chmod 0755 $(DESTDIR)$(LIB_DIR)/*.so; \
+    $(INSTALL) -d -m 755 $(DESTDIR)$(LIB_DIR)/gstreamer-0.10; \
+    $(INSTALL) -m 0755 usr/lib/gstreamer-0.10/* $(DESTDIR)$(LIB_DIR)/gstreamer-0.10; \


Now in RCPL-4.3-WRL.0019/wrll-intel-emgd/dist/intel-emgd/patches/intel-emgd-integration.patch:
+# Take care to preserve symlinks.
+install-libraries:
+    $(INSTALL) -d -m 755 $(DESTDIR)$(LIB_DIR); \
+    $(INSTALL) -m 0755 usr/lib/libgstva* $(DESTDIR)$(LIB_DIR); \
+    $(INSTALL) -m 0755 usr/lib/libmix* $(DESTDIR)$(LIB_DIR); \
+    $(INSTALL) -m 0755 usr/lib/*.so* $(DESTDIR)$(LIB_DIR); \
+    $(INSTALL) -d -m 755 $(DESTDIR)$(LIB_DIR)/gstreamer-0.10; \
+    $(INSTALL) -m 0755 usr/lib/gstreamer-0.10/* $(DESTDIR)$(LIB_DIR)/gstreamer-0.10; \

Before:
$ ls -l /usr/lib/libmixvid*
lrwxrwxrwx 1 root root     21 Sep 26 16:55 /usr/lib/libmixvideo.so.0 -> libmixvideo.so.0.10.9
-rwxr-xr-x 1 root root 194052 Sep 26 16:19 /usr/lib/libmixvideo.so.0.10.9

Now:
$ ls -l /usr/lib/libmixvid*
-rwxr-xr-x 1 root root 194048 Nov  1 02:14 /usr/lib/libmixvideo.so.0
-rwxr-xr-x 1 root root 194052 Nov  1 02:14 /usr/lib/libmixvideo.so.0.10.9

Steps to Reproduce

create an intel_atom
add the intel-emgd template
check the libmixvid* file /usr/lib on target and notice the duplicate file(s) rather than a symlink

Other Downloads


Live chat
Online