Skip to content

Commit

Permalink
Merge pull request #482 from k-okada/apply_dfsg_patch
Browse files Browse the repository at this point in the history
apply patches in dfsg
  • Loading branch information
k-okada committed Feb 5, 2022
2 parents c9b15e5 + aadb145 commit 138fb6e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .travis.sh
Expand Up @@ -82,6 +82,8 @@ if [ "$QEMU" != "" ]; then
export GIT_SSL_NO_VERIFY=1
git clone http://salsa.debian.org/science-team/euslisp /tmp/euslisp-dfsg
for file in $(cat /tmp/euslisp-dfsg/debian/patches/series); do
# skip patches already applied by https://github.com/euslisp/EusLisp/pull/482
[[ $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;
# skip patch already applied by https://github.com/euslisp/EusLisp/pull/441
if [[ $file =~ fix-for-reprotest.patch ]]; then
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
Expand Down
2 changes: 1 addition & 1 deletion doc/man/eus.1
@@ -1,6 +1,6 @@
.TH eus 1 "Apr/20/1989"
.SH NAME
eus eusx euscomp eusxview eusview \- EusLisp
eus \- EusLisp
.SH SYNOPSIS
.nf
eus [start-up-files]
Expand Down
2 changes: 1 addition & 1 deletion lisp/Makefile.Linux
Expand Up @@ -74,7 +74,7 @@ CFLAGS:= $(CFLAGS) $(CPPFLAGS) $(WFLAGS) -D$(MACHINE) -DLinux -D_REENTRANT -DVER

# machine specific CFLAGS
ifneq ($(shell gcc -dumpmachine | egrep "^(arm|aarch)"),)
ADD_LDFLAGS=-Wl,-z,execstack
ADD_LDFLAGS+=-Wl,-z,execstack
CFLAGS+=-DARM -fPIC
ARCH=LinuxARM
endif
Expand Down
2 changes: 1 addition & 1 deletion lisp/Makefile.Linux64
Expand Up @@ -67,7 +67,7 @@ CC=gcc
# On Solaris, XLIB and EUSLIB are combined together into lib/libeusx.so.

# Linux
RAWLIB=-ldl -lm -lpthread
RAWLIB=-ldl -lm -lpthread -lc
XLIB= -L/usr/X11R6/lib -lX11

# specify directories where euslisp's libraries are located.
Expand Down
2 changes: 1 addition & 1 deletion lisp/Makefile.LinuxARM
Expand Up @@ -92,7 +92,7 @@ LD=gcc
# On Solaris, XLIB and EUSLIB are combined together into lib/libeusx.so.

# Linux
RAWLIB=-ldl -lm -lpthread
RAWLIB=-ldl -lm -lpthread -lc
XLIB= -L/usr/X11R6/lib -lX11

# specify directories where euslisp's libraries are located.
Expand Down
4 changes: 2 additions & 2 deletions lisp/c/loadelf.c
Expand Up @@ -160,7 +160,7 @@ pointer initnames;
void *dlhandle;
char namebuf[256];

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

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

2 comments on commit 138fb6e

@k-okada
Copy link
Member Author

@k-okada k-okada commented on 138fb6e Feb 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing EusLisp documentation

Please check latest documents before merging

PDF version of English manual: manual.pdf
PDF version of Japanese jmanual: jmanual.pdf
HTML version of English manual: manual.html
HTML version of Japanese manual: jmanual.html
Sphinx (ReST) version of English manual: manual.rst

@k-okada
Copy link
Member Author

@k-okada k-okada commented on 138fb6e Feb 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing EusLisp documentation

Please check latest documents before merging

PDF version of English manual: manual.pdf
PDF version of Japanese jmanual: jmanual.pdf
HTML version of English manual: manual.html
HTML version of Japanese manual: jmanual.html
Sphinx (ReST) version of English manual: manual.rst

Please sign in to comment.