build: Resurrect non-bootstrap build.

* configure (parse-opts): Support mixing VAR=VALUE --prefix=PREFIX.
* guix.scm (mes): Remove setting PREFIX in make-flags.
* install.sh: Cater for Guix's setting read-only of scripts/diff.scm.
This commit is contained in:
Jan Nieuwenhuizen 2018-06-12 07:05:33 +02:00
parent c086f67cec
commit b6b93f9f19
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
4 changed files with 5 additions and 5 deletions

View File

@ -23,8 +23,10 @@ if [ -n "$BUILD_DEBUG" ]; then
fi
export GUILE
export GUILE_AUTO_COMPILE
GUILE=${GUILE-$(command -v guile)}
GUILE_TOOLS=${GUILE_TOOLS-$(command -v guile-tools)}
GUILE_AUTO_COMPILE=0
set -e

2
configure vendored
View File

@ -191,7 +191,7 @@ exec ${GUILE-guile} -L . --no-auto-compile -e '(configure)' -s "$0" ${1+"$@"}
(with-courage)
;;ignore
(enable-fast-install))))
(getopt-long args option-spec #:stop-at-first-non-option #t)))
(getopt-long args option-spec)))
(define* (print-help #:optional (port (current-output-port)))
(format port "\

View File

@ -159,9 +159,7 @@ hex2 linker.")
'())
("perl" ,perl))) ;build-aux/gitlog-to-changelog
(arguments
`(#:make-flags (list
(string-append "PREFIX=" (assoc-ref %outputs "out")))
#:phases
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'make-git-source-writable
(lambda* (#:key outputs #:allow-other-keys)

View File

@ -52,7 +52,7 @@ sed \
-e "s,@VERSION@,$VERSION,g" \
module/mes/boot-0.scm > $MODULEDIR/mes/boot-0.scm
cp scripts/diff.scm $PREFIX/bin/diff.scm
sed \
-e "s,^#! /bin/sh,#! $SHELL," \
scripts/diff.scm > $PREFIX/bin/diff.scm
chmod -w+x $PREFIX/bin/diff.scm