From 7a2caa7e3b2e065ac2cf4f6db25a0b0bc8797753 Mon Sep 17 00:00:00 2001 From: Hyungju Lee Date: Mon, 27 Aug 2018 18:54:23 +0900 Subject: [PATCH] [Tizen] Remove `tizen-release` package dependency for GBS build `tizen-release` package holds variables that need to be defined at the unified build. Therefore, it is about to move to unified while corecle stays at the base. So, the local os-release file is introduced. This patch is partial which comes with coreclr.spec See review.tizen.org to fully understand the intention --- build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 3467387..0ad1523 100755 --- a/build.sh +++ b/build.sh @@ -59,8 +59,13 @@ initHostDistroRid() { if [ "$__HostOS" == "Linux" ]; then if [ ! -e /etc/os-release ]; then - echo "WARNING: Can not determine runtime id for current distro." - __HostDistroRid="" + if [ ! -e os-release ]; then + echo "WARNING: Can not determine runtime id for current distro." + __HostDistroRid="" + else + source os-release + __HostDistroRid="$ID.$VERSION_ID-$__HostArch" + fi else source /etc/os-release __HostDistroRid="$ID.$VERSION_ID-$__HostArch" -- 2.7.4