projects/guix·blob javascript-team · refs

39 lines · 1.0 KiB

1Reported as <https://github.com/sgimenez/laby/pull/68>
2
3diff --git a/build b/build
4index 992a9e3..0df74d9 100755
5--- a/build
6+++ b/build
7@@ -7,7 +7,6 @@ source build.conf || exit 1
8
9 export PREFIX=${PREFIX-/usr}
10 export DATADIR=${DATADIR-${PREFIX}/share}
11-export TMPDIR=${TMPDIR-/tmp}
12
13 export PROJECT_NAME=${PROJECT_NAME-unknown}
14 export PROJECT_VERSION=${PROJECT_VERSION-unknown}
15diff --git a/src/config.sh b/src/config.sh
16index 19d4160..9338aad 100644
17--- a/src/config.sh
18+++ b/src/config.sh
19@@ -29,5 +29,4 @@ let build_ocaml = "${OCAML_VERSION}"
20 let build_lablgtk = "${BUILD_LABLGTK}"
21 let build_lablgtk_sourceview = "${BUILD_LABLGTKSV}"
22 let _ = Res.sys_data_dir := "${DATADIR}"
23-let _ = Res.sys_tmp_dir := "${TMPDIR}"
24 EOF
25diff --git a/src/laby.ml b/src/laby.ml
26index b77f2b2..e17acb9 100644
27--- a/src/laby.ml
28+++ b/src/laby.ml
29@@ -48,6 +48,7 @@ let opts =
30
31 let _ =
32 Printexc.record_backtrace true;
33+ Res.sys_tmp_dir := Filename.get_temp_dir_name ();
34 Run.init
35 ~name:Config.project_name
36 ~conf:(conf, ["conf"])
37--
382.34.1
39