libffcall: 2009-05-27 -> 1.10

Use the release tarball provided by the clisp maintainer.

Tested build by nix-build -A clisp -A clisp_2_44_1 -A gtk-server;
only clisp run-tested.

Of particular note is that the .so files no longer have executable
stacks.  This also avoids executable stack in clisp lisp.run

Before:

   $ readelf -lW $(nix-build -A clisp)/lib/clisp-2.49/base/lisp.run|grep GNU_STACK
   GNU_STACK      [...] RWE 0x10

After:

   $ readelf -lW $(nix-build -A clisp)/lib/clisp-2.49/base/lisp.run|grep GNU_STACK
   GNU_STACK      [...] RW 0x10
This commit is contained in:
Joachim Fasting 2016-11-30 06:00:52 +01:00
parent 18a3225dac
commit 0028abeb4e
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -1,27 +1,29 @@
{ stdenv, fetchcvs }:
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "libffcall-${version}";
version = "2009-05-27";
src = fetchcvs {
cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall";
module = "ffcall";
date = version;
sha256 = "097pv94495njppl9iy2yk47z5wdwvf7swsl88nmwrac51jibbg4i";
version = "1.10";
src = fetchurl {
urls = [
# Europe
"http://www.haible.de/bruno/gnu/ffcall-${version}.tar.gz"
# USA
"ftp://ftp.santafe.edu/pub/gnu/ffcall-${version}.tar.gz"
];
sha256 = "0gcqljx4f8wrq59y13zzigwzaxdrz3jf9cbzcd8h0b2br27mn6vg";
};
configurePhase = ''
for i in ./configure */configure; do
cwd="$PWD"
cd "$(dirname "$i")";
( test -f Makefile && make distclean ) || true
./configure --prefix=$out
cd "$cwd"
done
'';
NIX_CFLAGS_COMPILE = "-Wa,--noexecstack";
configureFlags = [
"--enable-shared"
"--disable-static"
];
meta = {
description = "Foreign function call library";
homepage = http://www.haible.de/bruno/packages-ffcall.html;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix;
};