blob: c7e4c15c15caa46c3d7f7cc975310a4ddb809789 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
From 7a2caa7e3b2e065ac2cf4f6db25a0b0bc8797753 Mon Sep 17 00:00:00 2001
From: Hyungju Lee <leee.lee@samsung.com>
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
|