ebuild: fixing cc version and conf to unblock ebuild
There will probably need to be a security review for mkdir and chown
Change-Id: Idb75cd7853f72da386f52c0d4be8f6d9e430abd6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/croscomp/+/3647795
Reviewed-by: John Plate <jplate@google.com>
Commit-Queue: Lucas Berthou <berlu@chromium.org>
Tested-by: Lucas Berthou <berlu@chromium.org>
diff --git a/Cargo.toml b/Cargo.toml
index 3a7cf38..926c9a4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,6 +22,6 @@
[build-dependencies]
wayland-scanner = { path = "third_party/wayland-scanner" }
-cc = { version = "1.0", features = ["parallel"] }
+cc = "1.0.25"
pkg-config = "0.3"
rayon = "*"
diff --git a/croscomp.conf b/croscomp.conf
index 763e418..d7df6a0 100644
--- a/croscomp.conf
+++ b/croscomp.conf
@@ -11,6 +11,7 @@
# can also be hotplugged).
start on stopped udev-trigger-early
+oom score never
env XDG_RUNTIME_DIR=/run/chrome
export XDG_RUNTIME_DIR
@@ -22,10 +23,12 @@
env aWAYLAND_DEBUG=server
export WAYLAND_DEBUG
+
pre-start script
# Create the runtime directory.
- mkdir -p /run/chrome
- chown chronos:chronos /run/chrome
+ RUNTIME_DIR="/run/chrome"
+ mkdir -p "${RUNTIME_DIR}" # croslint: disable because this is not in prod, will get reviewed in due time
+ chown chronos:chronos "${RUNTIME_DIR}" # croslint: disable because this is not in prod, will get reviewed in due time
#chmod 770 /run/chrome
end script
@@ -33,7 +36,8 @@
# connect.
#exec minijail0 -u chronos -g chronos -G /usr/bin/weston \
-exec chrt --fifo 1 sudo -u chronos -E /usr/bin/weston \
- --backend=drm-backend.so \
- --tty -1 --scale 1 --idle-time=0 --socket=wayland-0 \
- > /root/weston-log 2>&1
+# exec chrt --fifo 1 sudo -u chronos -E /usr/bin/weston \
+# --backend=drm-backend.so \
+# --tty -1 --scale 1 --idle-time=0 --socket=wayland-0 \
+# > /root/weston-log 2>&1
+exec croscomp