Skip to content

Commit 0028abe

Browse files
committedNov 30, 2016
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
1 parent 18a3225 commit 0028abe

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed
 

‎pkgs/development/libraries/libffcall/default.nix

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
{ stdenv, fetchcvs }:
1+
{ stdenv, fetchurl }:
22

33
stdenv.mkDerivation rec {
44
name = "libffcall-${version}";
5-
version = "2009-05-27";
6-
src = fetchcvs {
7-
cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall";
8-
module = "ffcall";
9-
date = version;
10-
sha256 = "097pv94495njppl9iy2yk47z5wdwvf7swsl88nmwrac51jibbg4i";
5+
version = "1.10";
6+
7+
src = fetchurl {
8+
urls = [
9+
# Europe
10+
"http://www.haible.de/bruno/gnu/ffcall-${version}.tar.gz"
11+
# USA
12+
"ftp://ftp.santafe.edu/pub/gnu/ffcall-${version}.tar.gz"
13+
];
14+
sha256 = "0gcqljx4f8wrq59y13zzigwzaxdrz3jf9cbzcd8h0b2br27mn6vg";
1115
};
1216

13-
configurePhase = ''
14-
for i in ./configure */configure; do
15-
cwd="$PWD"
16-
cd "$(dirname "$i")";
17-
( test -f Makefile && make distclean ) || true
18-
./configure --prefix=$out
19-
cd "$cwd"
20-
done
21-
'';
17+
NIX_CFLAGS_COMPILE = "-Wa,--noexecstack";
18+
19+
configureFlags = [
20+
"--enable-shared"
21+
"--disable-static"
22+
];
2223

2324
meta = {
2425
description = "Foreign function call library";
26+
homepage = http://www.haible.de/bruno/packages-ffcall.html;
2527
license = stdenv.lib.licenses.gpl2;
2628
platforms = stdenv.lib.platforms.unix;
2729
};

0 commit comments

Comments
 (0)
Please sign in to comment.