[eclipse-poky] [PATCH] setup.sh: install feature version which meets minimum version required
Tim Orling
timothy.t.orling at linux.intel.com
Wed Jan 24 20:43:17 PST 2018
This fails when running scripts/setup.sh with:
Please wait. Installing CDT.SDK.FEATURE.GROUP [FAILED 1]Can NOT find candidates of org.eclipse.cdt.sdk.feature.group version(9.4.0, ) at http://downloads.yoctoproject.org/eclipse/oxygen/!
Without this patch (e.g. current “master” or “oxygen-master"), scripts/setup.sh does successfully download that feature. I will investigate the difference.
> On Jan 24, 2018, at 8:42 PM, Tim Orling <timothy.t.orling at linux.intel.com> wrote:
>
> From: Chin Huat Ang <chin.huat.ang at intel.com>
>
> When only minimum version is specified, install feature with version closest
> to the minimum specified.
>
> Signed-off-by: Chin Huat Ang <chin.huat.ang at intel.com>
> Signed-off-by: Tim Orling <timothy.t.orling at linux.intel.com>
> ---
> scripts/setup.sh | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/setup.sh b/scripts/setup.sh
> index 4b160ea16c4..024596bfb1e 100755
> --- a/scripts/setup.sh
> +++ b/scripts/setup.sh
> @@ -228,8 +228,12 @@ update_feature_remote()
> done
> else
> #only has minimum version requirement
> - local max_remote_ver="`get_version $1 $2 'max'`"
> - [ "$max_remote_ver" \> "$3" ] || [ "$max_remote_ver" = "$3" ] && installIU=$max_remote_ver
> + for i in $all_versions; do
> + if [ "$i" \> "$3" ] || [ "$i" = "$3" ]; then
> + installIU=$i
> + break
> + fi
> + done
> fi
>
> [ "x$installIU" = "x" ] && err_exit 1 "Can NOT find candidates of $2 version($3, $4) at $1!"
> --
> 2.13.6
>
More information about the eclipse-yocto
mailing list