[cpp-linbuild] 01/02: Respect BuildArch from the spec file
John W. O'Brien
john at saltant.com
Fri Sep 17 14:51:08 UTC 2021
This is an automated email from the git hooks/post-receive script.
obrienjw pushed a commit to branch main
in repository cpp-linbuild.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-linbuild.git;a=commit;h=5ddb570cb17a1e9669c4b6761b1be497ce4f89ba
commit 5ddb570cb17a1e9669c4b6761b1be497ce4f89ba
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Fri Sep 17 14:44:47 2021 +0000
Respect BuildArch from the spec file
---
common/build.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/common/build.sh b/common/build.sh
index 370676a..9da586f 100644
--- a/common/build.sh
+++ b/common/build.sh
@@ -6,7 +6,14 @@ if [ $# -ne 1 ]; then
fi
component=$1
-arch=$(rpm -E '%{_arch}')
+machine_arch=$(rpm -E '%{_arch}')
+spec_arch=$(awk '$1=="BuildArch:" {print $2}' ${component}.spec)
+
+if [ -n "$spec_arch" ]; then
+ arch=$spec_arch
+else
+ arch=$machine_arch
+fi
# Install dependencies
yum-config-manager --enable local
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list