Bug#880686: clisp: FTBFS with glibc-2.26; patch attached
Adam Conrad
adconrad at debian.org
Fri Nov 3 19:44:50 UTC 2017
Package: clisp
Version: 1:2.49.20170913-3
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu bionic ubuntu-patch
In Ubuntu, the attached patch was applied to achieve the following:
* glibc-2.26.patch: Stop wrapping cfree, which isn't present in glibc-2.26
This should be fairly self-explanatory. clisp fails to build against
glibc-2.26 headers because the cfree() prototype has been removed:
https://launchpad.net/ubuntu/+source/clisp/1:2.49.20170913-3
This patch resolves that, so it can build once more:
https://launchpad.net/ubuntu/+source/clisp/1:2.49.20170913-3ubuntu1
... Adam
-- System Information:
Debian Release: buster/sid
APT prefers bionic
APT policy: (500, 'bionic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.13.0-16-lowlatency (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-------------- next part --------------
diff -Nru clisp-2.49.20170913/debian/patches/glibc-2.26.patch clisp-2.49.20170913/debian/patches/glibc-2.26.patch
--- clisp-2.49.20170913/debian/patches/glibc-2.26.patch 1969-12-31 17:00:00.000000000 -0700
+++ clisp-2.49.20170913/debian/patches/glibc-2.26.patch 2017-11-03 13:10:57.000000000 -0600
@@ -0,0 +1,14 @@
+Description: cfree is not present in glibc-2.26, stop wrapping it
+Author: Adam Conrad <adconrad at ubuntu.com>
+Last-Update: 2017-11-03
+
+--- clisp-2.49.20170913.orig/modules/bindings/glibc/linux.lisp
++++ clisp-2.49.20170913/modules/bindings/glibc/linux.lisp
+@@ -649,7 +649,6 @@
+ (def-call-out calloc (:arguments (nmemb size_t) (size size_t))
+ (:return-type c-pointer))
+ (def-call-out free (:arguments (ptr c-pointer)) (:return-type nil))
+-(def-call-out cfree (:arguments (ptr c-pointer)) (:return-type nil))
+ (def-call-out valloc (:arguments (size size_t)) (:return-type c-pointer))
+
+ (def-call-out abort (:arguments) (:return-type nil))
diff -Nru clisp-2.49.20170913/debian/patches/series clisp-2.49.20170913/debian/patches/series
--- clisp-2.49.20170913/debian/patches/series 2017-10-21 01:35:41.000000000 -0600
+++ clisp-2.49.20170913/debian/patches/series 2017-11-03 13:10:15.000000000 -0600
@@ -11,3 +11,4 @@
fix-unpack_sstring_alloca_help_.patch
stream-flags-alignment.patch
bump-fasl-loader-version.patch
+glibc-2.26.patch
More information about the pkg-common-lisp-devel
mailing list