Hi everyone,

I am totally new to editing ports and tried to update gprolog to version
1.5.0. I currently only have a single OpenBSD system for tests which
runs a 7.0-CURRENT snapshot on amd64, so I don't know if the port is
still broken on i386. I also don't know if the port still builds on sparc.

I have removed powerpc because upstream removed support for that
architecture.

I also removed the COMPILER line which (as far as I can tell) is not
needed anymore since clang is now supported as a compiler.

I have shortly tested both the repl (gprolog) as well as the compiler
(gplc) and did not found any defects.

Please feel free to point out any mistakes that I might have made; I am
interested in learning.

Thank you!

- Bastian

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/gprolog/Makefile,v
retrieving revision 1.29
diff -u -p -u -p -r1.29 Makefile
--- Makefile    13 Jun 2020 12:07:22 -0000      1.29
+++ Makefile    12 Feb 2022 12:02:29 -0000
@@ -1,14 +1,12 @@
 # $OpenBSD: Makefile,v 1.29 2020/06/13 12:07:22 cwen Exp $

 BROKEN-i386=           various errors from gplc during build (segv, "fatal 
error", etc at various different points)
-BROKEN-powerpc=                ld.so: pl2wam: relocation failed

-ONLY_FOR_ARCHS=                amd64 i386 powerpc sparc64
+ONLY_FOR_ARCHS=                amd64 i386 sparc64

 COMMENT=               Prolog compiler

-DISTNAME=              gprolog-1.4.5
-REVISION=              3
+DISTNAME=              gprolog-1.5.0

 CATEGORIES=            lang

@@ -23,7 +21,6 @@ MASTER_SITES=         http://www.gprolog.org/ \
                        http://www.gprolog.org/old_versions/ \
                        ${MASTER_SITE_GNU:=gprolog/}

-COMPILER =             base-gcc ports-gcc
 COMPILER_LANGS =       c
 CONFIGURE_STYLE=       gnu dest no-autoheader

Index: distinfo
===================================================================
RCS file: /cvs/ports/lang/gprolog/distinfo,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 distinfo
--- distinfo    12 Nov 2018 19:15:40 -0000      1.7
+++ distinfo    12 Feb 2022 12:02:29 -0000
@@ -1,2 +1,2 @@
-SHA256 (gprolog-1.4.5.tar.gz) = v9zwDgUeBii0+a+dZjjU/eateTQB5YpWGdHMYQVhjHw=
-SIZE (gprolog-1.4.5.tar.gz) = 3587361
+SHA256 (gprolog-1.5.0.tar.gz) = ZwZCtDwPqifr1olh77F+vnB2iPkbaAlWbd1gYTlRLAE=
+SIZE (gprolog-1.5.0.tar.gz) = 3813899
Index: patches/patch-Ma2Asm_powerpc_any_c
===================================================================
RCS file: patches/patch-Ma2Asm_powerpc_any_c
diff -N patches/patch-Ma2Asm_powerpc_any_c
--- patches/patch-Ma2Asm_powerpc_any_c  19 Aug 2018 23:45:00 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-$OpenBSD: patch-Ma2Asm_powerpc_any_c,v 1.1 2018/08/19 23:45:00 daniel Exp $
-
-Fix build on macppc
-
-Index: Ma2Asm/powerpc_any.c
---- Ma2Asm/powerpc_any.c.orig
-+++ Ma2Asm/powerpc_any.c
-@@ -1011,7 +1011,7 @@ Data_Start(char *initializer_fct)
-   if (initializer_fct == NULL)
-     return;
-
--#ifdef M_powerpc_linux
-+#if defined(M_powerpc_linux) || defined(M_powerpc_bsd)
-   Inst_Printf(".section", ".ctors,\"aw\",@progbits");
-   Inst_Printf(".align", "2");
-   Inst_Printf(".long", UN "%s", initializer_fct);
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/lang/gprolog/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 PLIST
--- pkg/PLIST   12 Nov 2018 19:15:40 -0000      1.5
+++ pkg/PLIST   12 Feb 2022 12:02:29 -0000
@@ -28,26 +28,27 @@ libdata/gprolog/lib/
 libdata/gprolog/lib/all_fd_bips.o
 libdata/gprolog/lib/all_pl_bips.o
 libdata/gprolog/lib/debugger.o
-libdata/gprolog/lib/libbips_fd.a
-libdata/gprolog/lib/libbips_pl.a
-libdata/gprolog/lib/libengine_fd.a
-libdata/gprolog/lib/libengine_pl.a
-libdata/gprolog/lib/liblinedit.a
+@static-lib libdata/gprolog/lib/libbips_fd.a
+@static-lib libdata/gprolog/lib/libbips_pl.a
+@static-lib libdata/gprolog/lib/libengine_fd.a
+@static-lib libdata/gprolog/lib/libengine_pl.a
+@static-lib libdata/gprolog/lib/liblinedit.a
 libdata/gprolog/lib/top_level.o
 libdata/gprolog/lib/top_level_main.o
 share/doc/gprolog/
 share/doc/gprolog/compil-scheme.eps
 share/doc/gprolog/compil-scheme.pdf
-share/doc/gprolog/contents_motif.gif
+share/doc/gprolog/compil-scheme.png
 share/doc/gprolog/debug-box.eps
 share/doc/gprolog/debug-box.pdf
+share/doc/gprolog/debug-box.png
 share/doc/gprolog/gprolog.chm
 share/doc/gprolog/gprolog.dvi
 share/doc/gprolog/gprolog.html
 share/doc/gprolog/gprolog.pdf
 share/doc/gprolog/gprolog.ps
 share/doc/gprolog/html/
-share/doc/gprolog/html/contents_motif.gif
+share/doc/gprolog/html/contents_motif.svg
 share/doc/gprolog/html/gprolog-idx.html
 share/doc/gprolog/html/gprolog.css
 share/doc/gprolog/html/gprolog001.html
@@ -124,10 +125,11 @@ share/doc/gprolog/html/gprolog071.html
 share/doc/gprolog/html/gprolog072.html
 share/doc/gprolog/html/gprolog073.html
 share/doc/gprolog/html/index.html
-share/doc/gprolog/html/next_motif.gif
-share/doc/gprolog/html/previous_motif.gif
+share/doc/gprolog/html/next_motif.svg
+share/doc/gprolog/html/previous_motif.svg
 share/doc/gprolog/logo.eps
 share/doc/gprolog/logo.pdf
+share/doc/gprolog/logo.png
 share/examples/gprolog/
 share/examples/gprolog/ExamplesC/
 share/examples/gprolog/ExamplesC/Makefile

Reply via email to