Skip to content

Commit 138fb6e

Browse files
authored
Merge pull request #482 from k-okada/apply_dfsg_patch
apply patches in dfsg
2 parents c9b15e5 + aadb145 commit 138fb6e

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

.travis.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ if [ "$QEMU" != "" ]; then
8282
export GIT_SSL_NO_VERIFY=1
8383
git clone http://salsa.debian.org/science-team/euslisp /tmp/euslisp-dfsg
8484
for file in $(cat /tmp/euslisp-dfsg/debian/patches/series); do
85+
# skip patches already applied by https://github.com/euslisp/EusLisp/pull/482
86+
[[ $file =~ use-rtld-global-loadelf.patch|fix-arm-ldflags.patch|fix-library-not-linked-against-libc.patch|fix-manpage-has-bad-whatis-entry-on-man-pages.patch ]] && continue;
8587
# skip patch already applied by https://github.com/euslisp/EusLisp/pull/441
8688
if [[ $file =~ fix-for-reprotest.patch ]]; then
8789
filterdiff -p1 -x 'lisp/image/jpeg/makefile' -x 'lisp/comp/comp.l' < /tmp/euslisp-dfsg/debian/patches/$file > /tmp/euslisp-dfsg/debian/patches/$file-fix

doc/man/eus.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.TH eus 1 "Apr/20/1989"
22
.SH NAME
3-
eus eusx euscomp eusxview eusview \- EusLisp
3+
eus \- EusLisp
44
.SH SYNOPSIS
55
.nf
66
eus [start-up-files]

lisp/Makefile.Linux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ CFLAGS:= $(CFLAGS) $(CPPFLAGS) $(WFLAGS) -D$(MACHINE) -DLinux -D_REENTRANT -DVER
7474

7575
# machine specific CFLAGS
7676
ifneq ($(shell gcc -dumpmachine | egrep "^(arm|aarch)"),)
77-
ADD_LDFLAGS=-Wl,-z,execstack
77+
ADD_LDFLAGS+=-Wl,-z,execstack
7878
CFLAGS+=-DARM -fPIC
7979
ARCH=LinuxARM
8080
endif

lisp/Makefile.Linux64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ CC=gcc
6767
# On Solaris, XLIB and EUSLIB are combined together into lib/libeusx.so.
6868

6969
# Linux
70-
RAWLIB=-ldl -lm -lpthread
70+
RAWLIB=-ldl -lm -lpthread -lc
7171
XLIB= -L/usr/X11R6/lib -lX11
7272

7373
# specify directories where euslisp's libraries are located.

lisp/Makefile.LinuxARM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ LD=gcc
9292
# On Solaris, XLIB and EUSLIB are combined together into lib/libeusx.so.
9393

9494
# Linux
95-
RAWLIB=-ldl -lm -lpthread
95+
RAWLIB=-ldl -lm -lpthread -lc
9696
XLIB= -L/usr/X11R6/lib -lX11
9797

9898
# specify directories where euslisp's libraries are located.

lisp/c/loadelf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pointer initnames;
160160
void *dlhandle;
161161
char namebuf[256];
162162

163-
dlhandle=dlopen(0,RTLD_LAZY);
163+
dlhandle=dlopen(0,RTLD_LAZY|RTLD_GLOBAL);
164164
if (dlhandle==NULL) {
165165
fprintf(stderr, "cannot dlopen self\n"); exit(2);}
166166
module_count=0;
@@ -386,7 +386,7 @@ pointer *argv;
386386
else entry=(char *)get_string(argv[1]);}
387387
else entry=NULL;
388388

389-
dlhandle=(eusinteger_t)dlopen(binfn, RTLD_LAZY);/* ???? */
389+
dlhandle=(eusinteger_t)dlopen(binfn, RTLD_LAZY|RTLD_GLOBAL);/* ???? */
390390
if (dlhandle == 0) {
391391
fprintf(stderr,"BINLOAD cannot dlopen: %s\n", dlerror());
392392
return(NIL);}

0 commit comments

Comments
 (0)