plan9port: modify the builder to use the INSTALL script.
plan9port ships with an INSTALL script. This commit modifies the builder to use the script instead of a custom build script. The commit also adds a patch to build fontsrv, which is otherwise omitted from the build.
This commit is contained in:
parent
61cc18c55f
commit
38e81b5640
@ -4,46 +4,14 @@ tar xvfz $src
|
||||
|
||||
cd plan9
|
||||
|
||||
export PLAN9=`pwd`
|
||||
export X11=/tmp
|
||||
for p in $patches; do
|
||||
echo "applying patch $p"
|
||||
patch -p1 < $p
|
||||
done
|
||||
|
||||
# Patch for the installation
|
||||
sed -i -e 's@`which echo`@echo@' lib/moveplan9.sh
|
||||
./INSTALL -b
|
||||
./INSTALL -r $out/plan9
|
||||
|
||||
OLDPATH=$PATH
|
||||
PATH=`pwd`/bin:$PATH
|
||||
|
||||
gcc lib/linux-isnptl.c -lpthread
|
||||
set +e
|
||||
if ./a.out > /dev/null
|
||||
then
|
||||
echo "SYSVERSION=2.6.x" >config
|
||||
else
|
||||
echo "SYSVERSION=2.4.x" >config
|
||||
fi
|
||||
rm -f ./a.out
|
||||
set -e
|
||||
|
||||
pushd src
|
||||
|
||||
# Build mk
|
||||
../dist/buildmk 2>&1 | sed 's/^[+] //'
|
||||
|
||||
# Build everything
|
||||
|
||||
mk clean
|
||||
mk libs-nuke
|
||||
mk all || exit 1
|
||||
mk install || exit 1
|
||||
|
||||
popd
|
||||
|
||||
# Installation
|
||||
export PLAN9=$out
|
||||
export PLAN9=$out/plan9
|
||||
mkdir -p $PLAN9
|
||||
GLOBIGNORE='src:.*'
|
||||
cp -R * $PLAN9
|
||||
GLOBIGNORE=
|
||||
|
||||
cd $PLAN9
|
||||
sh lib/moveplan9.sh `pwd`
|
||||
|
@ -2,7 +2,9 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "plan9port-20140228";
|
||||
|
||||
|
||||
patches = [ ./fontsrv.patch ];
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
|
14
pkgs/tools/system/plan9port/fontsrv.patch
Normal file
14
pkgs/tools/system/plan9port/fontsrv.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff -r dc0640f14d07 src/cmd/mkfile
|
||||
--- a/src/cmd/mkfile Tue Mar 25 23:23:10 2014 -0400
|
||||
+++ b/src/cmd/mkfile Mon Apr 14 22:36:05 2014 +0530
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
<$PLAN9/src/mkmany
|
||||
|
||||
-BUGGERED='CVS|faces|factotum|fontsrv|lp|ip|mailfs|upas|vncv|mnihongo|mpm|index|u9fs|secstore|smugfs|snarfer'
|
||||
-DIRS=lex `ls -l |sed -n 's/^d.* //p' |egrep -v "^($BUGGERED)$"|egrep -v '^lex$'` $FONTSRV
|
||||
+BUGGERED='CVS|faces|factotum|lp|ip|mailfs|upas|vncv|mnihongo|mpm|index|u9fs|secstore|smugfs|snarfer'
|
||||
+DIRS=lex `ls -l |sed -n 's/^d.* //p' |egrep -v "^($BUGGERED)$"|egrep -v '^lex$'`
|
||||
|
||||
<$PLAN9/src/mkdirs
|
||||
|
Loading…
Reference in New Issue
Block a user