Wind River Support Network

HomeDefectsLIN8-3980
Fixed

LIN8-3980 : make import-package command has same problem as LIN8-3240

Created: Jun 19, 2016    Updated: Dec 3, 2018
Resolved Date: Jun 20, 2016
Found In Version: 8.0.0.5
Fix Version: 8.0.0.7
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Build & Config

Description

When there are multiple versions of jre under maintenance/wrInstaller/x86-linux2/jre, make import-package failed with following message:

Build Started in Project 'platform_intel-x86-64': 2016-06-16 10:52:11 
Generation of makefiles started. 
Generation of makefiles finished (Elapsed Time: 00:00). 
Platform: Wind River Linux Platform 8.0 
Command: make import-package 
Working Directory: /home/nss-sup/workspace/platform_intel-x86-64 
/home/nss-sup/WRLinux8/wrlinux-8/scripts/importPackage.sh: line 130: /home/nss-sup/WRLinux8/maintenance/wrInstaller/x86-linux2/jre/1.8.0_65: Is a directory 
Doubleclick here to scan Project 'platform_intel-x86-64' for errors. 
Build Finished with JOBS=4 in Project 'platform_intel-x86-64': 2016-06-16 10:52:12 (Elapsed Time: 00:01) 

I checked importPackage.sh, and found that there is a same problem as LIN8-3240.  I modified importPackage.sh as follows, then the problem was resolved.

--- wrlinux-8/scripts/importPackage.sh.orig     2016-06-20 13:49:10.446119406 +0900
+++ wrlinux-8/scripts/importPackage.sh  2016-06-20 13:50:10.858120489 +0900
@@ -70,7 +70,7 @@
 
 # find JRE 1.* in "<installir>/maintenance/..."
 if [ -z "$jre_dir" ] ; then
-       jre_dir=`ls -d $windriver_dir/maintenance/wrInstaller/$tool_arch/jre/1.*  2>/dev/null | sort -r | awk '{print $1}'`
+       jre_dir=`ls -d $windriver_dir/maintenance/wrInstaller/$tool_arch/jre/1.* | tail -1 2>/dev/null | sort -r | awk '{print $1}'`
        if [ -n "$jre_dir" ] ; then
                jre_dir=$jre_dir/bin/java
        fi

It seems that project-configure.sh also has a same problem.

Other Downloads


Live chat
Online