Hi,

Here is an update for xcowsay to 1.5.1, this fixes various issues
related to (non) compositing display [0], and add flag detection
for C99.

Port-wise, i've removed the explicit CFLAGS (it picks C99 flags with
CC=gcc), and added a patch, that i've upstreamed, so configuration
files are read properly on powerpc and arm (thanks to bcallah@ for
improving the correctness of that fix) 

This has been tested successfully on macppc and amd64.

Comments/feedback are welcome, 

Charlène.


[0] https://github.com/nickg/xcowsay/blob/master/ChangeLog
[1] https://github.com/nickg/xcowsay/pull/7


Index: Makefile
===================================================================
RCS file: /cvs/ports/games/xcowsay/Makefile,v
retrieving revision 1.16
diff -u -p -u -p -r1.16 Makefile
--- Makefile    3 Mar 2020 16:06:12 -0000       1.16
+++ Makefile    11 Oct 2020 09:12:40 -0000
@@ -1,9 +1,8 @@
 # $OpenBSD: Makefile,v 1.16 2020/03/03 16:06:12 kmos Exp $
 
 COMMENT =              displays a cute cow and message on your desktop
-DISTNAME =             xcowsay-1.5
+DISTNAME =             xcowsay-1.5.1
 CATEGORIES =           games
-REVISION =             0
 
 HOMEPAGE =             https://www.doof.me.uk/xcowsay/
 
@@ -18,6 +17,5 @@ MASTER_SITES =                http://www.nickg.me.uk/f
 CONFIGURE_STYLE =      gnu
 
 LIB_DEPENDS =          x11/gtk+3
-CFLAGS +=              -std=c99
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/xcowsay/distinfo,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 distinfo
--- distinfo    27 Feb 2020 11:45:42 -0000      1.4
+++ distinfo    11 Oct 2020 09:12:40 -0000
@@ -1,2 +1,2 @@
-SHA256 (xcowsay-1.5.tar.gz) = PqRaRTE15NTreb1YfCms1O4Ixf0+1AmbEU+FLwxQyl8=
-SIZE (xcowsay-1.5.tar.gz) = 285463
+SHA256 (xcowsay-1.5.1.tar.gz) = wypsfAp634wbaAI+fxzmr3J5AmvQzChVi/wp/BPxiA0=
+SIZE (xcowsay-1.5.1.tar.gz) = 287843
Index: patches/patch-src_config_file_c
===================================================================
RCS file: patches/patch-src_config_file_c
diff -N patches/patch-src_config_file_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_config_file_c     11 Oct 2020 09:12:40 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Allow to properly read the configuration files on archs where char is unsigned
+(arm, ppc) as EOF is usually -1.
+See https://github.com/nickg/xcowsay/commit/666ad99
+
+Index: src/config_file.c
+--- src/config_file.c.orig
++++ src/config_file.c
+@@ -78,7 +78,7 @@ static token_t next_token(FILE *f, strbuf_t* sbuf, int
+    bool skip_to_eol = false;
+    bool in_quotes = false;
+    for (;;) {
+-      char next = fgetc(f);
++      int next = fgetc(f);
+       if (EOF == next)
+          return (has_chars(sbuf) && !skip_to_eol) ? tTOKEN : tEOF;
+       else if ('\n' == next) {

Reply via email to