Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

build native qc-- version only (with ocamlopt). This removes the runtime dependency on ocaml.

svn path=/nixpkgs/trunk/; revision=4682

+25 -4
+13 -4
pkgs/development/compilers/qcmm/builder.sh
··· 6 6 7 7 buildPhase() { 8 8 mk timestamps 9 - mk $MKFLAGS all all.opt 9 + mk $MKFLAGS all.opt 10 10 } 11 11 12 12 installPhase() { 13 - mk $MKFLAGS install install.opt 14 - find $out -name \*.a -exec echo stripping {} \; \ 13 + mk $MKFLAGS install.opt 14 + 15 + for file in $out/bin/*.opt; do 16 + mv $file ${file%.opt} 17 + done 18 + 19 + find $out/man -type f -exec gzip -9 {} \; 20 + 21 + find $out -name \*.a -exec echo stripping {} \; \ 15 22 -exec strip -S {} \; || fail 16 - patchELF $out 23 + 24 + patchELF $out 17 25 } 18 26 19 27 buildPhase=buildPhase 20 28 installPhase=installPhase 29 + checkPhase="mk $MKFLAGS test.opt" 21 30 22 31 genericBuild
+12
pkgs/development/compilers/qcmm/qcmm.patch
··· 107 107 108 108 release.tex:D: release.nw 109 109 noweave -delay $prereq > $target 110 + diff -ur qc--20060131.orig/mkfile qc--20060131/mkfile 111 + --- qc--20060131.orig/mkfile 2005-07-01 22:29:52.000000000 +0200 112 + +++ qc--20060131/mkfile 2006-02-02 19:15:53.000000000 +0100 113 + @@ -97,7 +97,7 @@ 114 + cd test2 && NPROC=1 mk $MKFLAGS all 115 + 116 + test.opt:V: all.opt 117 + - cd test2 && NPROC=1 mk QC=../bin/qc--.opt $MKFLAGS all 118 + + cd test2 && NPROC=1 mk $MKFLAGS QC=../bin/qc--.opt all 119 + 120 + coverage: test2/ocamlprof.dump 121 + rm -f $target