lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

clisp: 2.49 -> 2.50pre2023-01-12

+63 -167
-12
pkgs/development/interpreters/clisp/bits_ipctypes_to_sys_ipc.patch
··· 1 - diff -ru a/modules/bindings/glibc/linux.lisp b/modules/bindings/glibc/linux.lisp 2 - --- a/modules/bindings/glibc/linux.lisp 2008-10-10 16:15:49.000000000 +0300 3 - +++ b/modules/bindings/glibc/linux.lisp 2012-12-04 01:01:35.000000000 +0200 4 - @@ -86,7 +86,7 @@ 5 - 6 - (def-c-type __key_t) ; int 7 - 8 - -(c-lines "#include <bits/ipctypes.h>~%") 9 - +(c-lines "#include <sys/ipc.h>~%") 10 - (def-c-type __ipc_pid_t) ; ushort 11 - 12 - ; --------------------------- <sys/types.h> -----------------------------------
+49 -33
pkgs/development/interpreters/clisp/default.nix
··· 3 3 # - base (default): contains readline and i18n, regexp and syscalls modules 4 4 # by default 5 5 # - full: contains base plus modules in withModules 6 - { lib, stdenv, fetchurl, libsigsegv, gettext, ncurses, readline, libX11 7 - , libXau, libXt, pcre, zlib, libXpm, xorgproto, libXext 6 + { lib 7 + , stdenv 8 + , fetchFromGitLab 9 + , autoconf269 10 + , automake 11 + , libtool 12 + , libsigsegv 13 + , gettext 14 + , ncurses 15 + , pcre 16 + , zlib 17 + , readline 8 18 , libffi 9 19 , libffcall 20 + , libX11 21 + , libXau 22 + , libXt 23 + , libXpm 24 + , libXext 25 + , xorgproto 10 26 , coreutils 11 27 # build options 12 28 , threadSupport ? stdenv.hostPlatform.isx86 ··· 16 32 "pcre" 17 33 "rawsock" 18 34 ] 19 - ++ lib.optionals stdenv.isLinux [ "bindings/glibc" "zlib" "wildcard" ] 35 + ++ lib.optionals stdenv.isLinux [ "bindings/glibc" "zlib" ] 20 36 ++ lib.optional x11Support "clx/new-clx" 21 37 }: 22 38 23 39 assert x11Support -> (libX11 != null && libXau != null && libXt != null 24 40 && libXpm != null && xorgproto != null && libXext != null); 25 41 26 - stdenv.mkDerivation rec { 27 - version = "2.49"; 42 + let 43 + ffcallAvailable = stdenv.isLinux && (libffcall != null); 44 + in 45 + 46 + stdenv.mkDerivation { 47 + version = "2.50pre20230112"; 28 48 pname = "clisp"; 29 49 30 - src = fetchurl { 31 - url = "mirror://gnu/clisp/release/${version}/clisp-${version}.tar.bz2"; 32 - sha256 = "8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890"; 50 + src = fetchFromGitLab { 51 + owner = "gnu-clisp"; 52 + repo = "clisp"; 53 + rev = "bf72805c4dace982a6d3399ff4e7f7d5e77ab99a"; 54 + hash = "sha256-sQoN2FUg9BPaCgvCF91lFsU/zLja1NrgWsEIr2cPiqo="; 33 55 }; 34 56 35 - inherit libsigsegv gettext coreutils; 36 - 37 - ffcallAvailable = stdenv.isLinux && (libffcall != null); 38 - 57 + strictDeps = true; 58 + nativeBuildInputs = lib.optionals stdenv.isDarwin [ autoconf269 automake libtool ]; 39 59 buildInputs = [libsigsegv] 40 60 ++ lib.optional (gettext != null) gettext 41 61 ++ lib.optional (ncurses != null) ncurses ··· 49 69 ]; 50 70 51 71 patches = [ 52 - ./bits_ipctypes_to_sys_ipc.patch # from Gentoo 53 - # The cfree alias no longer exists since glibc 2.26 54 - ./remove-cfree-binding.patch 72 + ./gnulib_aarch64.patch 55 73 ]; 56 74 57 75 # First, replace port 9090 (rather low, can be used) 58 76 # with 64237 (much higher, IANA private area, not 59 77 # anything rememberable). 60 - # Also remove reference to a type that disappeared from recent glibc 61 - # (seems the correct thing to do, found no reference to any solution) 62 78 postPatch = '' 63 79 sed -e 's@9090@64237@g' -i tests/socket.tst 64 80 sed -i 's@/bin/pwd@${coreutils}&@' src/clisp-link.in 65 81 find . -type f | xargs sed -e 's/-lICE/-lXau &/' -i 82 + ''; 66 83 67 - substituteInPlace modules/bindings/glibc/linux.lisp --replace "(def-c-type __swblk_t)" "" 68 - ''; 84 + preConfigure = lib.optionalString stdenv.isDarwin ('' 85 + cd src 86 + autoreconf -f -i -I m4 -I glm4 87 + cd - 88 + '' + lib.concatMapStrings (x: '' 89 + cd modules/${x} 90 + autoreconf -f -i -I ../../src -I ../../src/m4 -I ../../src/glm4 91 + cd - 92 + '') withModules); 69 93 70 94 configureFlags = [ "builddir" ] 71 95 ++ lib.optional (!dllSupport) "--without-dynamic-modules" ··· 74 98 ++ lib.optional (ffcallAvailable && (libffi != null)) "--with-dynamic-ffi" 75 99 ++ lib.optional ffcallAvailable "--with-ffcall" 76 100 ++ lib.optional (!ffcallAvailable) "--without-ffcall" 77 - ++ builtins.map (x: "--with-module=" + x) withModules 101 + ++ builtins.map (x: " --with-module=" + x) withModules 78 102 ++ lib.optional threadSupport "--with-threads=POSIX_THREADS"; 79 103 80 104 preBuild = '' 81 105 sed -e '/avcall.h/a\#include "config.h"' -i src/foreign.d 106 + sed -i -re '/ cfree /d' -i modules/bindings/glibc/linux.lisp 82 107 cd builddir 83 108 ''; 84 109 85 - # Fails to build in parallel due to missing gnulib header dependency used in charstrg.d: 86 - # ../src/charstrg.d:319:10: fatal error: uniwidth.h: No such file or directory 87 - enableParallelBuilding = false; 88 - 89 110 postInstall = 90 111 lib.optionalString (withModules != []) 91 112 (''./clisp-link add "$out"/lib/clisp*/base "$(dirname "$out"/lib/clisp*/base)"/full'' 92 113 + lib.concatMapStrings (x: " " + x) withModules); 93 114 94 - env.NIX_CFLAGS_COMPILE = "-O0 ${lib.optionalString (!stdenv.is64bit) "-falign-functions=4"}"; 95 - 96 - # TODO : make mod-check fails 97 - doCheck = false; 115 + env.NIX_CFLAGS_COMPILE = "-O0 -falign-functions=${if stdenv.is64bit then "8" else "4"}"; 98 116 99 117 meta = { 100 118 description = "ANSI Common Lisp Implementation"; 101 - homepage = "http://clisp.cons.org"; 119 + homepage = "http://clisp.org"; 102 120 maintainers = lib.teams.lisp.members; 103 - platforms = lib.platforms.unix; 104 - # problems on Darwin: https://github.com/NixOS/nixpkgs/issues/20062 105 - broken = stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isAarch64; 106 - license = lib.licenses.gpl2; 121 + license = lib.licenses.gpl2Plus; 122 + platforms = with lib.platforms; linux ++ darwin; 107 123 }; 108 124 }
+13
pkgs/development/interpreters/clisp/gnulib_aarch64.patch
··· 1 + diff --git a/src/gllib/vma-iter.c b/src/gllib/vma-iter.c 2 + index 6045f21d7..d50a3a398 100644 3 + --- a/src/gllib/vma-iter.c 4 + +++ b/src/gllib/vma-iter.c 5 + @@ -1327,7 +1327,7 @@ vma_iterate (vma_iterate_callback_fn callback, void *data) 6 + In 64-bit processes, we could use vm_region_64 or mach_vm_region. 7 + I choose vm_region_64 because it uses the same types as vm_region, 8 + resulting in less conditional code. */ 9 + -# if defined __ppc64__ || defined __x86_64__ 10 + +# if defined __aarch64__ || defined __ppc64__ || defined __x86_64__ 11 + struct vm_region_basic_info_64 info; 12 + mach_msg_type_number_t info_count = VM_REGION_BASIC_INFO_COUNT_64; 13 +
-98
pkgs/development/interpreters/clisp/hg.nix
··· 1 - # there are the following linking sets: 2 - # - boot (not installed): without modules, only used when building clisp 3 - # - base (default): contains readline and i18n, regexp and syscalls modules 4 - # by default 5 - # - full: contains base plus modules in withModules 6 - { lib, stdenv, fetchhg, libsigsegv, gettext, ncurses, readline, libX11 7 - , libXau, libXt, pcre, zlib, libXpm, xorgproto, libXext 8 - , libffi, libffcall, automake 9 - , coreutils 10 - # build options 11 - , threadSupport ? stdenv.hostPlatform.isx86 12 - , x11Support ? stdenv.hostPlatform.isx86 13 - , dllSupport ? true 14 - , withModules ? [ 15 - "pcre" 16 - "rawsock" 17 - ] 18 - ++ lib.optionals stdenv.isLinux [ "bindings/glibc" "zlib" ] 19 - ++ lib.optional x11Support "clx/new-clx" 20 - }: 21 - 22 - assert x11Support -> (libX11 != null && libXau != null && libXt != null 23 - && libXpm != null && xorgproto != null && libXext != null); 24 - 25 - stdenv.mkDerivation rec { 26 - version = "2.50pre20171114"; 27 - pname = "clisp"; 28 - 29 - src = fetchhg { 30 - url = "http://hg.code.sf.net/p/clisp/clisp"; 31 - rev = "36df6dc59b8f"; 32 - sha256 = "1pidiv1m55lvc4ln8vx0ylnnhlj95y6hrfdq96nrj14f4v8fkvmr"; 33 - }; 34 - 35 - inherit libsigsegv gettext coreutils; 36 - 37 - ffcallAvailable = stdenv.isLinux && (libffcall != null); 38 - 39 - nativeBuildInputs = [ automake ]; # sometimes fails otherwise 40 - buildInputs = [libsigsegv] 41 - ++ lib.optional (gettext != null) gettext 42 - ++ lib.optional (ncurses != null) ncurses 43 - ++ lib.optional (pcre != null) pcre 44 - ++ lib.optional (zlib != null) zlib 45 - ++ lib.optional (readline != null) readline 46 - ++ lib.optional (ffcallAvailable && (libffi != null)) libffi 47 - ++ lib.optional ffcallAvailable libffcall 48 - ++ lib.optionals x11Support [ 49 - libX11 libXau libXt libXpm xorgproto libXext 50 - ]; 51 - 52 - # First, replace port 9090 (rather low, can be used) 53 - # with 64237 (much higher, IANA private area, not 54 - # anything rememberable). 55 - # Also remove reference to a type that disappeared from recent glibc 56 - # (seems the correct thing to do, found no reference to any solution) 57 - postPatch = '' 58 - sed -e 's@9090@64237@g' -i tests/socket.tst 59 - sed -i 's@/bin/pwd@${coreutils}&@' src/clisp-link.in 60 - find . -type f | xargs sed -e 's/-lICE/-lXau &/' -i 61 - 62 - substituteInPlace modules/bindings/glibc/linux.lisp --replace "(def-c-type __swblk_t)" "" 63 - ''; 64 - 65 - configureFlags = [ "builddir" ] 66 - ++ lib.optional (!dllSupport) "--without-dynamic-modules" 67 - ++ lib.optional (readline != null) "--with-readline" 68 - # --with-dynamic-ffi can only exist with --with-ffcall - foreign.d does not compile otherwise 69 - ++ lib.optional (ffcallAvailable && (libffi != null)) "--with-dynamic-ffi" 70 - ++ lib.optional ffcallAvailable "--with-ffcall" 71 - ++ lib.optional (!ffcallAvailable) "--without-ffcall" 72 - ++ builtins.map (x: " --with-module=" + x) withModules 73 - ++ lib.optional threadSupport "--with-threads=POSIX_THREADS"; 74 - 75 - preBuild = '' 76 - sed -e '/avcall.h/a\#include "config.h"' -i src/foreign.d 77 - sed -i -re '/ cfree /d' -i modules/bindings/glibc/linux.lisp 78 - cd builddir 79 - ''; 80 - 81 - postInstall = 82 - lib.optionalString (withModules != []) 83 - (''./clisp-link add "$out"/lib/clisp*/base "$(dirname "$out"/lib/clisp*/base)"/full'' 84 - + lib.concatMapStrings (x: " " + x) withModules); 85 - 86 - env.NIX_CFLAGS_COMPILE = "-O0 ${lib.optionalString (!stdenv.is64bit) "-falign-functions=4"}"; 87 - 88 - # TODO : make mod-check fails 89 - doCheck = false; 90 - 91 - meta = { 92 - description = "ANSI Common Lisp Implementation"; 93 - homepage = "http://clisp.cons.org"; 94 - maintainers = lib.teams.lisp.members; 95 - # problems on Darwin: https://github.com/NixOS/nixpkgs/issues/20062 96 - platforms = lib.platforms.linux; 97 - }; 98 - }
-12
pkgs/development/interpreters/clisp/remove-cfree-binding.patch
··· 1 - diff --git a/modules/bindings/glibc/linux.lisp b/modules/bindings/glibc/linux.lisp 2 - index c40b4f8..1c8edca 100644 3 - --- a/modules/bindings/glibc/linux.lisp 4 - +++ b/modules/bindings/glibc/linux.lisp 5 - @@ -648,7 +648,6 @@ 6 - (def-call-out calloc (:arguments (nmemb size_t) (size size_t)) 7 - (:return-type c-pointer)) 8 - (def-call-out free (:arguments (ptr c-pointer)) (:return-type nil)) 9 - -(def-call-out cfree (:arguments (ptr c-pointer)) (:return-type nil)) 10 - (def-call-out valloc (:arguments (size size_t)) (:return-type c-pointer)) 11 - 12 - (def-call-out abort (:arguments) (:return-type nil))
+1 -12
pkgs/top-level/all-packages.nix
··· 26167 26167 26168 26168 # CLISP 26169 26169 clisp = wrapLisp { 26170 - pkg = callPackage ../development/interpreters/clisp { 26171 - # On newer readline8 fails as: 26172 - # #<FOREIGN-VARIABLE "rl_readline_state" #x...> 26173 - # does not have the required size or alignment 26174 - readline = readline63; 26175 - }; 26176 - faslExt = "fas"; 26177 - flags = ["-E" "UTF-8"]; 26178 - }; 26179 - 26180 - clisp-tip = wrapLisp { 26181 - pkg = callPackage ../development/interpreters/clisp/hg.nix { }; 26170 + pkg = callPackage ../development/interpreters/clisp { }; 26182 26171 faslExt = "fas"; 26183 26172 flags = ["-E" "UTF-8"]; 26184 26173 };