You are not logged in.
Here is a package build file I made for mit-scheme. This is my first PKGBUILD file, so let me know if I did anything wrong or that should be changed. Note the source line should be all one line with no carriage returns.
# $Id: PKGBUILD,v 1.0 2004/06/21 20:29:00 fbidwell Exp $
# Maintainer: fbidwell <fbidwell@mindspring.com>
pkgname=mit-scheme
pkgver=7.7.90
pkgrel=1
pkgdesc="MIT GNU Scheme Programming Language"
url="http://www.gnu.org/software/mit-scheme/index.html"
makedepends=('gcc')
depends=('xfree86' 'glibc' 'ncurses')
source=(ftp://ftp.gnu.org/gnu/mit-scheme/testing.pkg/$pkgver/$pkgname-$pkgver-uc
ode.tar.gz ftp://ftp.gnu.org/gnu/mit-scheme/testing.pkg/$pkgver/$pkgname-$pkgver
-ix86-gnu-linux.tar.gz mit-scheme.patch)
build() {
cd $startdir/src/$pkgname-$pkgver
patch -Np1 -i ../mit-scheme.patch
cd src/microcode
./configure --prefix=/usr
make || return 1
cd ../../..
pwd
cp -fp $pkgname-$pkgver/src/microcode/scheme bin/.
cp -fp $pkgname-$pkgver/src/microcode/bchscheme bin/.
mkdir -p $startdir/pkg/usr/{bin,lib/mit-scheme}
cp bin/* $startdir/pkg/usr/bin/.
cp -r lib/mit-scheme/* $startdir/pkg/usr/lib/mit-scheme/.
}
md5sums=('c068a2a8c841ded2d478ae1e6e868960' 'f109131a183f991793531ce62052a16b'
'63933e159094431825a54b218a66e9b0')
Here is the patch to make it compile
--- mit-scheme-7.7.90/src/microcode-orig/uxio.c 2004-06-23 01:13:58.000000000 -0
400
+++ mit-scheme-7.7.90/src/microcode/uxio.c 2004-06-23 01:13:15.000000000 -0
400
@@ -240,11 +240,7 @@
return ((scr < 0) ? 0 : scr);
}
-#ifdef _POSIX
#include <string.h>
-#else
-extern int EXFUN (strlen, (CONST char *));
-#endif
void
DEFUN (OS_channel_write_string, (channel, string),
Offline
Thanks for posting the build file! However, it seems that the patch didn't pass the checksum.
==> Making package: mit-scheme 7.7.90-1 (Fri Oct 7 03:04:56 PDT 2005)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Using local copy of mit-scheme-7.7.90-ucode.tar.gz
==> Using local copy of mit-scheme-7.7.90-ix86-gnu-linux.tar.gz
==> Found mit-scheme.patch in build dir
==> Validating source files with MD5sums
mit-scheme-7.7.90-ucode.tar.gz ... Passed
mit-scheme-7.7.90-ix86-gnu-linux.tar.gz ... Passed
mit-scheme.patch ... FAILED
==> ERROR: One or more files did not pass the validity check!
I copied the patch content verbatim from the parent post. I bypassed the checksum in PKGBUILD to get it to start compiling, but a proper solution would be appreiciated.
Also I get the following when compiling:
option.c: In function 'parse_path_string':
option.c:830: error: invalid lvalue in increment
option.c:830: warning: value computed is not used
option.c:852: error: invalid lvalue in increment
option.c:852: warning: value computed is not used
option.c:859: error: invalid lvalue in increment
option.c:859: warning: value computed is not used
make: *** [option.o] Error 1
I'm using gcc 4.0.2 .
By the way, I did remove the unnecessary carriage returns.
Thanks!
Will
Offline
I got it to work by downgrading to gcc 3.
Thanks!
Will
Offline