Skip to content

Commit

Permalink
allow build with root user (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeepali authored Jul 31, 2023
1 parent 82cfac1 commit b25b6fd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ source:
- patches/0011-Fixed-compilation-error.patch
- patches/0012-Changed-min-bazel-version-to-5.3.patch
- patches/0013-Added-patch-for-rules_python-on-ppc64le.patch #[ppc64le]
- patches/0014-allow-builds-with-root-user.patch

build:
number: 2
number: 3

# Need these up here for conda-smithy to handle them properly.
requirements:
Expand Down
24 changes: 24 additions & 0 deletions recipe/patches/0014-allow-builds-with-root-user.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From de6dd93b9f9d5051da551c321dc4ee734964acad Mon Sep 17 00:00:00 2001
From: Deepali Chourasia <deepch23@in.ibm.com>
Date: Fri, 28 Jul 2023 03:59:26 -0500
Subject: [PATCH] allow builds with root user

---
WORKSPACE | 1 +
1 file changed, 1 insertion(+)

diff --git a/WORKSPACE b/WORKSPACE
index eb6aeba907..e9aac6ba14 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -44,6 +44,7 @@ python_register_toolchains(
name = "python3_9",
python_version = "3.9",
register_toolchains = False,
+ ignore_root_user_error = True,
)

load("@python3_9//:defs.bzl", bk_python = "interpreter")
--
2.23.0

0 comments on commit b25b6fd

Please sign in to comment.