Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Mar 2020 11:34:10 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r529797 - in head/devel/stfl: . files
Message-ID:  <202003291134.02TBYAI8070309@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sun Mar 29 11:34:10 2020
New Revision: 529797
URL: https://svnweb.freebsd.org/changeset/ports/529797

Log:
  devel/stfl: Fix display corruption bug
  
  This is needed by newsboat to fix
  https://github.com/newsboat/newsboat/issues/506
  
  While here also strip the library.
  
  PR:		245001
  Approved by:	arved (maintainer)

Added:
  head/devel/stfl/files/
  head/devel/stfl/files/patch-base.c   (contents, props changed)
Modified:
  head/devel/stfl/Makefile

Modified: head/devel/stfl/Makefile
==============================================================================
--- head/devel/stfl/Makefile	Sun Mar 29 11:18:30 2020	(r529796)
+++ head/devel/stfl/Makefile	Sun Mar 29 11:34:10 2020	(r529797)
@@ -3,6 +3,7 @@
 
 PORTNAME=	stfl
 PORTVERSION=	0.24
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://www.clifford.at/stfl/
 
@@ -38,5 +39,6 @@ pre-build:
 
 post-install:
 	${LN} -s libstfl.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libstfl.so.0
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libstfl.so.${PORTVERSION}
 
 .include <bsd.port.mk>

Added: head/devel/stfl/files/patch-base.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/stfl/files/patch-base.c	Sun Mar 29 11:34:10 2020	(r529797)
@@ -0,0 +1,19 @@
+https://github.com/newsboat/newsboat/issues/506
+
+--- base.c.orig	2015-01-05 10:50:54 UTC
++++ base.c
+@@ -750,9 +750,11 @@ unsigned int stfl_print_richtext(struct stfl_widget *w
+ 				wmemcpy(stylename, p1 + 1, p2 - p1 - 1);
+ 				stylename[p2 - p1 - 1] = L'\0';
+ 				if (wcscmp(stylename,L"")==0) {
+-					mvwaddnwstr(win, y, x, L"<", 1);
+-					retval += 1;
+-					++x;
++					if (end_col - x > 0) {
++						mvwaddnwstr(win, y, x, L"<", 1);
++						retval += 1;
++						++x;
++					}
+ 				} else if (wcscmp(stylename, L"/")==0) {
+ 					stfl_style(win, style_normal);
+ 				} else {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003291134.02TBYAI8070309>