summaryrefslogtreecommitdiff
path: root/init-distro-rid.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-06-22Fix generation of RID on distros that do not set VERSION_ID (#25034)Leandro A. F. Pereira1-1/+7
Rolling-release distros do not set this variable, leading to invalid RIDs such as "gentoo.-x64", which causes build failures. Omit VERSION_ID (and the period preceding it) when unset, so it's consistent with host and PlatformAbstractions. Fixes #19769.
2019-06-03Fix armel tests build (#24678)Gleb Balykov1-0/+6
* Fix build-tests script for cross build and fix tests for armel * Handle case of -skipcrossgen for cross builds * Fix build error in case of cross builds when ROOTFS_DIR is not passed explicitly * Fix portable build parameter setup for armel tests build * Move force of non-portable build for armel from build.sh/build-test.sh to init-distro-rid.sh * Fix priority1 tests build for armel
2019-03-27Add call to setup-stress-dependencies.sh to build-test.sh. (#23435)Sergey Andreenko1-0/+0
2019-03-23Revert "Add call to setup-stress-dependencies.sh to build-test.sh. (#23354)" ↵Sergey Andreenko1-0/+0
(#23419) This reverts commit 22c4ff5c1d339119c12547ac2d1b35211162df49.
2019-03-22Add call to setup-stress-dependencies.sh to build-test.sh. (#23354)Sergey Andreenko1-0/+0
* Add call to setup-stress-dependencies.sh to build-test.sh. * Fix args. * hack __DistroRid * Do not use bash source. * Do not use bash source 2. * Fix init-distro-rid permissions. * Fix tabs. * return deleted source where it was needed
2019-02-21[Unix|*] Rework and share the logic for determining __DistroRid (#22628)Jarret Shook1-0/+176
* [Unix|*] Rework and share the logic for determining __DistroRid This will consolidate all of our different functions which determine the __DistroRid into one file. In addition, it will remove the unused __HostDistroRid file. Lastly, it corrects the rid choice when crossbuilding musl-arm64 as the cross-rootfs non-portable build will correctly be picked up. * Fix typo and use __BuildArch in place of __Arch * Correct non-portable build decision * Add error for missing redhat-release * Fix redhat comparison * Correct previous rhel or * Fix cross scenerio * Fix missed $ * Set __RuntimeId for runtest.proj * Correct naming convention of file * Address feedback and support -portablebuild=0 With this change: 1. build.sh and build-test.sh should build portable by default. 2. init-distro-rid.sh checks __PortableBuild=1. If so, then it must force rhel 6 and freebsd to __PortableBuild=0 and use the non-portable build - For __PortableBuild=0 init-distro-rid.sh sets the non-portable rid correctly to "${ID}.${VERSION_ID}-${buildArch}" * Correct arguments * Fix if to include then * A few more changes to correct linux-musl-arm64 * Add error for non-cross build and correctly pass ROOTFS_DIR * Correctly exit instead of echo * Correct isCrossBuild and use rootfsDir only * Add documentation * Address feedback * Rework rhel if