Skip to content

Commit

Permalink
see-3.1.1424 (rebuild with gcc-12.4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Jan 10, 2025
1 parent 8f65d48 commit e145177
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 100 deletions.
43 changes: 24 additions & 19 deletions see/README
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,34 @@ see
A full JavaScript interpreter and runtime library in C.

Runtime requirements:
bash-4.3.42-4
cygwin-2.2.1-1
libgc-devel-7.2d-2
libgc1-7.2d-2
libltdl7-2.4.6-2
libpcre-devel-8.37-2
libpcre1-8.37-2
libsee-devel-3.1.1424-1bl3
libsee1-3.1.1424-1bl3
bash-5.2.21-1
cygwin-3.5.4-1
libgc-devel-8.2.8-1
libgc1-8.2.8-1
libltdl7-2.5.3-1
libpcre-devel-8.45-1
libpcre1-8.45-1
libsee-devel-3.1.1424-1bl4
libsee1-3.1.1424-1bl4
pkg-config-2.3.0-1

Build requirements:
(besides corresponding -devel packages)
autoconf-13-1
automake-9-1
binutils-2.25-2
cygport-0.20.2-1
gcc-core-4.9.3-1
gcc-g++-4.9.3-1
libtool-2.4.6-2
make-4.1-1
autoconf-15-2
automake-20240607-1
binutils-2.43.1-1
cygport-0.36.9-1
gcc-core-12.4.0-3
libgc-devel-8.2.8-1
libpcre-devel-8.45-1
libtool-2.5.3-1
make-4.4.1-2

Canonical website:
http://www.adaptive-enterprises.com.au/~d/software/see/
https://www.adaptive-enterprises.com.au/~d/software/see/

Canonical download:
http://www.adaptive-enterprises.com.au/~d/software/see/see-3.1.1424.tar.gz
https://www.adaptive-enterprises.com.au/~d/software/see/see-3.1.1424.tar.gz

-------------------------------------------

Expand Down Expand Up @@ -93,6 +95,9 @@ Files included in the binary package:

Port Notes:

----- version 3.1.1424-1bl4 -----
Rebuild with gcc-12.4.0

----- version 3.1.1424-1bl3 -----
Rebuild on x86_64

Expand Down
78 changes: 0 additions & 78 deletions see/see-3.1.1424-1bl3.src.patch

This file was deleted.

13 changes: 10 additions & 3 deletions see/see-3.1.1424-1bl3.cygport → see/see-3.1.1424-1bl4.cygport
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
HOMEPAGE="http://www.adaptive-enterprises.com.au/~d/software/${PN}/"
SRC_URI="http://www.adaptive-enterprises.com.au/~d/software/${PN}/${P}.tar.gz"
HOMEPAGE="https://www.adaptive-enterprises.com.au/~d/software/${PN}/"
SRC_URI="https://www.adaptive-enterprises.com.au/~d/software/${PN}/${P}.tar.gz"

CATEGORY="Interpreters"
SUMMARY="Simple ECMAScript Engine"
DESCRIPTION="A full JavaScript interpreter and runtime library in C."

LICENSE="BSD-3-Clause"
LICENSE_SPDX="SPDX-License-Identifier: BSD-3-Clause"
LICENSE_URI="COPYING"

BUILD_REQUIRES="libgc-devel libpcre-devel"

CYGCONF_ARGS="
--enable-native-dtoa=yes
--with-readline=yes
Expand All @@ -14,6 +20,7 @@ CYGCONF_ARGS="
HTMLDOCS="
doc/*.html
"

DIFF_EXCLUDES="
libltdl
"
Expand All @@ -29,7 +36,7 @@ see_CONTENTS="
usr/share
"
libsee1_CONTENTS="
usr/bin/*.dll
usr/bin/cyg*-1.dll
"
libsee_devel_CONTENTS="
usr/bin/lib${PN}-config
Expand Down
94 changes: 94 additions & 0 deletions see/see-3.1.1424-1bl4.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
--- origsrc/see-3.1.1424/configure.ac 2009-04-27 06:05:18.000000000 +0900
+++ src/see-3.1.1424/configure.ac 2025-01-10 17:00:40.795575700 +0900
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.

AC_INIT([see],
- [3.1.]esyscmd((svnversion .||echo 0)|tr : _|tr -d \\012),
+ [3.1.1424],
[[email protected]])
AC_PREREQ(2.52)
AM_INIT_AUTOMAKE
@@ -30,11 +30,9 @@ AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_SED

-AC_LIBLTDL_CONVENIENCE([libltdl])
-AC_LIBTOOL_DLOPEN
AC_PROG_LIBTOOL
+LTDL_INIT([installable])
dnl AC_LIB_LTDL
-AC_CONFIG_SUBDIRS([libltdl])
AC_SUBST([LIBLTDL])
AC_SUBST([LTDLINCL])
AC_SUBST([LIBSEE_LIBS])
@@ -213,8 +211,8 @@ SEE_ARG_ENABLE(longjmperror,[yes],
[Define if you want SEE to catch longjmp corruption])
])

-SEE_ARG_ENABLE(native-dtoa,[auto],
- [dtoa from libc],
+SEE_ARG_ENABLE(native-dtoa,[no],
+ [dtoa from libc],,
[enable_native_dtoa=yes
AC_CHECK_FUNCS([strtod dtoa freedtoa],,[enable_native_dtoa=no])
])
@@ -571,7 +569,7 @@ fi

AC_CACHE_CHECK([platform class], [ac_cv_see_platform], [
case "$build_os" in
- cygwin*|mingw*|pw32) ac_cv_see_platform=win32;;
+ mingw*|pw32) ac_cv_see_platform=win32;;
*) ac_cv_see_platform=posix;;
esac])
AM_CONDITIONAL(PLATFORM_POSIX, test x"$ac_cv_see_platform" = x"posix")
--- origsrc/see-3.1.1424/libsee/Makefile.am 2009-04-27 06:04:58.000000000 +0900
+++ src/see-3.1.1424/libsee/Makefile.am 2025-01-10 16:31:43.925543800 +0900
@@ -59,8 +59,8 @@ if PLATFORM_POSIX
libsee_la_SOURCES += platform_posix.c
endif

-libsee_la_LIBADD= @LIBOBJS@
-libsee_la_LDFLAGS= -version-info $(libsee_version_info)
+libsee_la_LIBADD= @LIBOBJS@ $(LIBSEE_LIBS)
+libsee_la_LDFLAGS= -no-undefined -version-info $(libsee_version_info)

EXTRA_DIST= string.pl string.defs
PERL= @PERL@
--- origsrc/see-3.1.1424/libsee/regex_pcre.c 2009-04-27 06:04:58.000000000 +0900
+++ src/see-3.1.1424/libsee/regex_pcre.c 2025-01-10 16:45:14.301696400 +0900
@@ -57,7 +57,7 @@
#include "dprint.h"

#ifndef NDEBUG
-int SEE_regex_debug;
+extern int SEE_regex_debug;
#endif

struct regex_pcre {
--- origsrc/see-3.1.1424/shell/Makefile.am 2009-04-27 06:04:58.000000000 +0900
+++ src/see-3.1.1424/shell/Makefile.am 2025-01-10 16:31:43.925543800 +0900
@@ -24,7 +24,8 @@ see_shell_static_LDFLAGS= -static

pkglib_LTLIBRARIES= libFile.la
libFile_la_SOURCES= mod_File.c
-libFile_la_LDFLAGS= -module
+libFile_la_LDFLAGS= -module -no-undefined -avoid-version
+libFile_la_LIBADD = $(top_builddir)/libsee/libsee.la

#-- the following DEFS line tries to avoid the -I../include/see
DEFS = @DEFS@ -I. -I$(srcdir)
--- origsrc/see-3.1.1424/shell/module.c 2009-04-27 06:04:58.000000000 +0900
+++ src/see-3.1.1424/shell/module.c 2025-01-10 16:31:43.925543800 +0900
@@ -45,7 +45,11 @@ load_module(name)
if (!handle && strchr(name, '/') == 0 &&
strlen(name) + 3 < FILENAME_MAX)
{
+#if defined(__CYGWIN__)
+ memcpy(libname, "cyg", 3);
+#else
memcpy(libname, "lib", 3);
+#endif
strcpy(libname + 3, name);
handle = lt_dlopenext(libname);
}

0 comments on commit e145177

Please sign in to comment.