pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/algol68g lang/algol68g: fix the patch for the dlo...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1ae3025a2389
branches: trunk
changeset: 389485:1ae3025a2389
user: rhialto <rhialto%pkgsrc.org@localhost>
date: Sun Dec 04 18:30:38 2022 +0000
description:
lang/algol68g: fix the patch for the dlopen problem.
diffstat:
lang/algol68g/Makefile | 3 ++-
lang/algol68g/distinfo | 4 ++--
lang/algol68g/patches/patch-src_a68g_a68g.c | 24 ++++++++++++------------
3 files changed, 16 insertions(+), 15 deletions(-)
diffs (61 lines):
diff -r 9f994b6c5448 -r 1ae3025a2389 lang/algol68g/Makefile
--- a/lang/algol68g/Makefile Sun Dec 04 18:08:33 2022 +0000
+++ b/lang/algol68g/Makefile Sun Dec 04 18:30:38 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2022/12/04 17:11:13 rhialto Exp $
+# $NetBSD: Makefile,v 1.22 2022/12/04 18:30:38 rhialto Exp $
DISTNAME= algol68g-3.1.0
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://jmvdveer.home.xs4all.nl/
diff -r 9f994b6c5448 -r 1ae3025a2389 lang/algol68g/distinfo
--- a/lang/algol68g/distinfo Sun Dec 04 18:08:33 2022 +0000
+++ b/lang/algol68g/distinfo Sun Dec 04 18:30:38 2022 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.13 2022/12/04 17:11:13 rhialto Exp $
+$NetBSD: distinfo,v 1.14 2022/12/04 18:30:38 rhialto Exp $
BLAKE2s (algol68g-3.1.0.tar.gz) = 43b0ff30bc2f4e453ea7e0f12215381d585e200abe7def717cef12da55f6b539
SHA512 (algol68g-3.1.0.tar.gz) = 92370031432eb42c8de4486696827ed6b0716f4cd918cb722263c16cec03cbf6e07873b7d6a56ca6e52b762a45d9be1848eba62755dd5cacafdc3aac7abf4f2e
Size (algol68g-3.1.0.tar.gz) = 630652 bytes
-SHA1 (patch-src_a68g_a68g.c) = 3ce7296f05afbd78500ec562968e533d34d18007
+SHA1 (patch-src_a68g_a68g.c) = 3dcee4e2343dc6305b000933bea685820d7cacdc
SHA1 (patch-src_a68g_options.c) = 35d53f40b5874f0169a49641e73cbcc71dd143a0
diff -r 9f994b6c5448 -r 1ae3025a2389 lang/algol68g/patches/patch-src_a68g_a68g.c
--- a/lang/algol68g/patches/patch-src_a68g_a68g.c Sun Dec 04 18:08:33 2022 +0000
+++ b/lang/algol68g/patches/patch-src_a68g_a68g.c Sun Dec 04 18:30:38 2022 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-src_a68g_a68g.c,v 1.2 2022/12/04 17:11:13 rhialto Exp $
+$NetBSD: patch-src_a68g_a68g.c,v 1.3 2022/12/04 18:30:39 rhialto Exp $
-* Add -rpath=. to the linker command line, so that --compile works.
- Otherwise, you get errors like
+* Use an explicit directory name to store (and later dlopen) the .so file,
+ so that --compile works. Otherwise, you get errors like
test-set$ a68g --compile 20-quicksort.a68
[20-quicksort.a68]
@@ -11,12 +11,12 @@
--- src/a68g/a68g.c.orig 2022-11-06 16:02:39.000000000 +0000
+++ src/a68g/a68g.c
-@@ -437,7 +437,7 @@ void compiler_interpreter (void)
- #endif
- ASSERT (snprintf (cmd, SNPRINTF_SIZE, "%s -I%s %s -c -o \"%s\" \"%s\"", C_COMPILER, INCLUDEDIR, options, FILE_BINARY_NAME (&A68_JOB), FILE_OBJECT_NAME (&A68_JOB)) >= 0);
- ABEND (system (cmd) != 0, ERROR_ACTION, cmd);
-- ASSERT (snprintf (cmd, SNPRINTF_SIZE, "ld -export-dynamic -shared -o \"%s\" \"%s\"", FILE_LIBRARY_NAME (&A68_JOB), FILE_BINARY_NAME (&A68_JOB)) >= 0);
-+ ASSERT (snprintf (cmd, SNPRINTF_SIZE, "ld -rpath=. -export-dynamic -shared -o \"%s\" \"%s\"", FILE_LIBRARY_NAME (&A68_JOB), FILE_BINARY_NAME (&A68_JOB)) >= 0);
- ABEND (system (cmd) != 0, ERROR_ACTION, cmd);
- a68_rm (FILE_BINARY_NAME (&A68_JOB));
- }
+@@ -480,7 +480,7 @@ void compiler_interpreter (void)
+ struct stat srcstat, objstat;
+ int ret;
+ announce_phase ("dynamic linker");
+- ASSERT (snprintf (libname, SNPRINTF_SIZE, "%s", FILE_LIBRARY_NAME (&A68_JOB)) >= 0);
++ ASSERT (snprintf (libname, SNPRINTF_SIZE, "./%s", FILE_LIBRARY_NAME (&A68_JOB)) >= 0);
+ // Check whether we are doing something rash.
+ ret = stat (FILE_SOURCE_NAME (&A68_JOB), &srcstat);
+ ABEND (ret != 0, ERROR_ACTION, FILE_SOURCE_NAME (&A68_JOB));
Home |
Main Index |
Thread Index |
Old Index