update to libslang-2.3.3

This commit is contained in:
sthen 2022-08-06 12:03:54 +00:00
parent 5675ed18ab
commit 93df1cf8e1
5 changed files with 8 additions and 46 deletions

View File

@ -1,9 +1,9 @@
COMMENT= stack-based interpreter for terminal applications
DISTNAME= slang-2.3.2
DISTNAME= slang-2.3.3
PKGNAME= lib${DISTNAME}
EXTRACT_SUFX= .tar.bz2
SHARED_LIBS= slang 16.1
SHARED_LIBS= slang 17.0
CATEGORIES= devel
MASTER_SITES= http://www.jedsoft.org/releases/slang/ \

View File

@ -1,2 +1,2 @@
SHA256 (slang-2.3.2.tar.bz2) = /J47D8T2fDwfbUPJDBalxC0Re44oRXxbRoMbi1064xo=
SIZE (slang-2.3.2.tar.bz2) = 1586720
SHA256 (slang-2.3.3.tar.bz2) = +RRQVK4TGXPGEgjqgkhtXdEOPFza0jt8SgYXdDyPWhg=
SIZE (slang-2.3.3.tar.bz2) = 1646311

View File

@ -1,7 +1,7 @@
Index: autoconf/aclocal.m4
--- autoconf/aclocal.m4.orig
+++ autoconf/aclocal.m4
@@ -600,13 +600,13 @@ fi
@@ -604,13 +604,13 @@ fi
dnl #Some defaults
ELFLIB="lib\$(THIS_LIB).so"
@ -18,31 +18,3 @@ Index: autoconf/aclocal.m4
INSTALL_MODULE="\$(INSTALL)"
SLANG_DLL_CFLAGS=""
M_LIB="-lm"
@@ -742,6 +742,27 @@ case "$host_os" in
ELF_DEP_LIBS="\$(DL_LIB)"
CC_SHARED_FLAGS="-shared -fPIC"
CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS)"
+ ;;
+ *openbsd* )
+ case `arch -s` in
+ sparc64)
+ PIC_FLAG="-fPIC"
+ ;;
+ *)
+ PIC_FLAG="-fpic"
+ ;;
+ esac
+ DYNAMIC_LINK_FLAGS=""
+ ELF_CC="$CC"
+ ELF_CFLAGS="$CFLAGS $PIC_FLAG"
+ ELF_LINK="$CC -shared $ELF_CFLAGS"
+ ELF_LINK_CMD="\$(ELF_LINK)"
+ ELF_DEP_LIBS=
+ CC_SHARED_FLAGS="-shared $PIC_FLAG"
+ CC_SHARED="$CC $CC_SHARED_FLAGS $CFLAGS"
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
+ DYNAMIC_LINK_FLAGS="-Wl,-E"
+ fi
;;
* )
echo "Note: ELF compiler for host_os=$host_os may be wrong"

View File

@ -1,13 +0,0 @@
backwards memcpy
--- src/slgetkey.c.orig Fri Jan 30 12:01:25 2015
+++ src/slgetkey.c Fri Jan 30 12:03:19 2015
@@ -45,7 +45,7 @@ unsigned int SLang_getkey (void)
SLang_Input_Buffer_Len--;
imax = SLang_Input_Buffer_Len;
- SLMEMCPY ((char *) SLang_Input_Buffer,
+ memmove ((char *) SLang_Input_Buffer,
(char *) (SLang_Input_Buffer + 1), imax);
}
else if (SLANG_GETKEY_ERROR == (ch = _pSLsys_getkey ())) return ch;

View File

@ -120,6 +120,7 @@ share/slsh/help/slsmg.hlp
share/slsh/help/sockfuns.hlp
share/slsh/help/statsfuns.hlp
share/slsh/help/structfuns.hlp
share/slsh/help/timestamp.hlp
share/slsh/histogram.sl
share/slsh/iconv.sl
share/slsh/json.sl
@ -146,6 +147,7 @@ share/slsh/rline/vikeys.sl
share/slsh/scripts/
share/slsh/scripts/jpegsize
share/slsh/scripts/lsrpm
share/slsh/scripts/slcov
share/slsh/scripts/sldb
share/slsh/scripts/slprof
share/slsh/scripts/slstkchk
@ -168,5 +170,6 @@ share/slsh/stkcheck.sl
share/slsh/structfuns.sl
share/slsh/sysconf.sl
share/slsh/termios.sl
share/slsh/timestamp.sl
share/slsh/varray.sl
share/slsh/zlib.sl