~ salmonella-environment-setup (master) 2f348886c4022d2ee6d3d11592382556b0ee7402
commit 2f348886c4022d2ee6d3d11592382556b0ee7402
Author: Mario Domenech Goulart <mario@parenteses.org>
AuthorDate: Sat Dec 23 15:17:43 2017 +0100
Commit: Mario Domenech Goulart <mario@parenteses.org>
CommitDate: Sun Dec 24 12:48:12 2017 +0100
salmonella-linux-x86: adjust configs for the chicken-5 -> master move
For CHICKEN-5, use eggs from the chicken-5-eggs repo.
Some cleanup and reorganization:
- Don't add chicken-related stuff to PATH: salmonella-run-publish
should know where to get things from.
- Remove non-argvector-related code, as everything we use now is
argvector-based.
- Add chicken-4-common.scm with common stuff for CHICKEN-4 only
- Add chicken-5-common.scm with common stuff for CHICKEN-5 only
diff --git a/salmonella-linux-x86/master-clang.conf b/salmonella-linux-x86/chicken-4-clang.conf
similarity index 65%
rename from salmonella-linux-x86/master-clang.conf
rename to salmonella-linux-x86/chicken-4-clang.conf
index 66d8974..258ce12 100644
--- a/salmonella-linux-x86/master-clang.conf
+++ b/salmonella-linux-x86/chicken-4-clang.conf
@@ -1,4 +1,5 @@
(load-relative "./common.scm")
+(load-relative "./chicken-4-common.scm")
(c-compiler "clang")
(c++-compiler "clang++")
diff --git a/salmonella-linux-x86/chicken-4-common.scm b/salmonella-linux-x86/chicken-4-common.scm
new file mode 100644
index 0000000..ae16e65
--- /dev/null
+++ b/salmonella-linux-x86/chicken-4-common.scm
@@ -0,0 +1,11 @@
+(use salmonella-run-publish-params)
+
+(chicken-core-branch "chicken-4")
+
+(chicken-bootstrap-prefix
+ (make-pathname (list (get-environment-variable "HOME") "local")
+ "chicken"))
+
+(skip-eggs
+ (append '(pledge spatial-trees)
+ (skip-eggs)))
diff --git a/salmonella-linux-x86/master-debugbuild.conf b/salmonella-linux-x86/chicken-4-debugbuild.conf
similarity index 74%
rename from salmonella-linux-x86/master-debugbuild.conf
rename to salmonella-linux-x86/chicken-4-debugbuild.conf
index 2a3d981..36e85ad 100644
--- a/salmonella-linux-x86/master-debugbuild.conf
+++ b/salmonella-linux-x86/chicken-4-debugbuild.conf
@@ -1,4 +1,5 @@
(load-relative "./common.scm")
+(load-relative "./chicken-4-common.scm")
(branch-publish-transformer
(lambda (branch)
diff --git a/salmonella-linux-x86/chicken-4.conf b/salmonella-linux-x86/chicken-4.conf
new file mode 100644
index 0000000..38c4aa7
--- /dev/null
+++ b/salmonella-linux-x86/chicken-4.conf
@@ -0,0 +1,2 @@
+(load-relative "./common.scm")
+(load-relative "./chicken-4-common.scm")
diff --git a/salmonella-linux-x86/chicken-5-common.scm b/salmonella-linux-x86/chicken-5-common.scm
new file mode 100644
index 0000000..ddd1237
--- /dev/null
+++ b/salmonella-linux-x86/chicken-5-common.scm
@@ -0,0 +1,49 @@
+(chicken-release 5)
+
+(chicken-bootstrap-prefix
+ (make-pathname (list (get-environment-variable "HOME") "local")
+ "chicken-5"))
+
+(salmonella-path
+ (make-pathname (list (get-environment-variable "HOME")
+ "local" "chicken-5" "bin")
+ "salmonella"))
+
+
+;; Use the chicken-5-eggs repo
+
+(define chicken-5-eggs-directory
+ (make-pathname (list (get-environment-variable "HOME") "src")
+ "chicken-5-eggs"))
+
+(list-eggs
+ (lambda ()
+ (map (lambda (egg)
+ (string->symbol
+ (pathname-strip-directory (pathname-directory egg))))
+ (find-files chicken-5-eggs-directory
+ test: (irregex ".*\\.egg$")))))
+
+(before-make-bootstrap-hook
+ (lambda (sources-dir)
+ (let ((here (current-directory)))
+ (cond ((directory-exists? chicken-5-eggs-directory)
+ (change-directory chicken-5-eggs-directory)
+ (system* "git checkout -f")
+ (system* "git clean -dxf")
+ (system* "git checkout master")
+ (system* "git pull --rebase"))
+ (else
+ (change-directory (pathname-directory chicken-5-eggs-directory))
+ (system* "git clone git://code.call-cc.org/chicken-5-eggs")))
+ (change-directory here))))
+
+(after-make-check-hook
+ (lambda (installation-prefix)
+ (with-output-to-file
+ (make-pathname (list installation-prefix "share" "chicken")
+ "setup.defaults")
+ (lambda ()
+ (pp `(location ,chicken-5-eggs-directory)))
+ append:)
+ (system* "rm -rf /home/chicken/.chicken-install.cache")))
diff --git a/salmonella-linux-x86/chicken-5.conf b/salmonella-linux-x86/chicken-5.conf
index 92858ef..df5aed1 100644
--- a/salmonella-linux-x86/chicken-5.conf
+++ b/salmonella-linux-x86/chicken-5.conf
@@ -1,5 +1,4 @@
(load-relative "./common.scm")
+(load-relative "./chicken-5-common.scm")
-(chicken-core-branch "chicken-5")
-
-(chicken-release 5)
+(chicken-core-branch "master")
diff --git a/salmonella-linux-x86/common.scm b/salmonella-linux-x86/common.scm
index 81fc3f5..0eb7f35 100644
--- a/salmonella-linux-x86/common.scm
+++ b/salmonella-linux-x86/common.scm
@@ -1,7 +1,5 @@
(use salmonella-run-publish-params posix files)
-(chicken-core-branch "chicken-4")
-
(keep-repo? #t)
(compress-report? #f)
@@ -12,8 +10,4 @@
"salmonella")
"reports"))
-(skip-eggs
- (append '(pledge spatial-trees)
- (skip-eggs)))
-
(feeds-server "salmonella-linux-x86.call-cc.org")
diff --git a/salmonella-linux-x86/master.conf b/salmonella-linux-x86/master.conf
deleted file mode 100644
index e2a1460..0000000
--- a/salmonella-linux-x86/master.conf
+++ /dev/null
@@ -1 +0,0 @@
-(load-relative "./common.scm")
diff --git a/salmonella-linux-x86/run-salmonella.sh b/salmonella-linux-x86/run-salmonella.sh
index 598cbbb..3b9bd1f 100755
--- a/salmonella-linux-x86/run-salmonella.sh
+++ b/salmonella-linux-x86/run-salmonella.sh
@@ -19,7 +19,7 @@ done
### Actually run salmonella
###
-export PATH=$HOME/local/chicken/bin:/usr/local/bin:$PATH
+export PATH=$PATH:/usr/local/bin/
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/
export BVSPIS_PATH=/usr/local/bvspis
export LC_ALL=C
@@ -27,36 +27,19 @@ export LANG=C
rm -rf salmonella-run-publish
-#
-# argvector chickens
-#
-export PATH=$HOME/local/chicken-argvector/bin:$PATH
-
debugbuild=
-for branch in master-debugbuild chicken-5; do
+for conf in chicken-5 chicken-4-debugbuild prerelease; do
# The inline egg writes some stuff to the home dir
rm -rf ~/.chicken-inline
- rm -rf salmonella-$branch
- if [ "$branch" = "master-debugbuild" ]; then
- debugbuild=1
+ rm -rf salmonella-$conf
+ if echo "$conf" | grep -q debugbuild; then
+ debugbuild=1
else
- debugbuild=
+ debugbuild=
fi
- DEBUGBUILD=$debugbuild salmonella-run-publish ~/src/chicken-infrastructure/salmonella/salmonella-linux-x86/${branch}.conf
- mv salmonella-run-publish salmonella-$branch
-done
-
-#
-# no-argvector chickens
-#
-export PATH=$HOME/local/chicken/bin:$PATH
-
-for branch in prerelease; do
- # The inline egg writes some stuff to the home dir
- rm -rf ~/.chicken-inline
-
- rm -rf salmonella-$branch
- salmonella-run-publish ~/src/chicken-infrastructure/salmonella/salmonella-linux-x86/${branch}.conf
- mv salmonella-run-publish salmonella-$branch
+ DEBUGBUILD=$debugbuild \
+ ~/local/chicken/bin/salmonella-run-publish \
+ ~/src/chicken-infrastructure/salmonella/salmonella-linux-x86/${conf}.conf
+ mv salmonella-run-publish salmonella-$conf
done
diff --git a/salmonella-linux-x86/stability.conf b/salmonella-linux-x86/stability.conf
deleted file mode 100644
index 015d95c..0000000
--- a/salmonella-linux-x86/stability.conf
+++ /dev/null
@@ -1,8 +0,0 @@
-;; -*- scheme -*-
-(load-relative "./common.scm")
-
-(chicken-core-branch "stability/4.9.0")
-
-(branch-publish-transformer
- (lambda (branch)
- "stability-4.9.0.x"))
Trap