joe immediately segfaults with `jmacs 1 2' Patch from upstream via pkgsrc ("Fix segfault from -orphan"). Fix: Patch attached with submission follows:
Responsible Changed From-To: freebsd-bugs->freebsd-ports-bugs Ports PR.
Responsible Changed From-To: freebsd-ports-bugs->sylvio Over to maintainer (via the GNATS Auto Assign Tool)
Responsible Changed From-To: sylvio->marino I'll overtake it
Author: marino Date: Wed Feb 26 14:52:04 2014 New Revision: 346208 URL: http://svnweb.freebsd.org/changeset/ports/346208 QAT: https://qat.redports.org/buildarchive/r346208/ Log: editors/joe: Fix jmacs mode segfault (fix from pkgsrc) Fix segfault per PR (pkgsrc fix verified). Relocate license to please portlint, reset maintainer. PR: ports/182373 Submitted by: Sergey Kandaurov Approved by: maintainer timeout (5 months) Added: head/editors/joe/files/patch-main.c (contents, props changed) Modified: head/editors/joe/Makefile Modified: head/editors/joe/Makefile ============================================================================== --- head/editors/joe/Makefile Wed Feb 26 14:20:05 2014 (r346207) +++ head/editors/joe/Makefile Wed Feb 26 14:52:04 2014 (r346208) @@ -3,14 +3,16 @@ PORTNAME= joe PORTVERSION= 3.7 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES?= editors MASTER_SITES= SF/joe-editor/JOE%20sources/joe-${PORTVERSION} -MAINTAINER= sylvio@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Joe's Own Editor +LICENSE= GPLv1 + BUILD_DEPENDS= aspell:${PORTSDIR}/textproc/aspell RUN_DEPENDS= aspell:${PORTSDIR}/textproc/aspell @@ -18,7 +20,6 @@ OPTIONS_DEFINE= DOCS CONFLICTS= joe-2.* -LICENSE= GPLv1 USES= gmake iconv ncurses GNU_CONFIGURE= yes CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${ICONV_LIB}" Added: head/editors/joe/files/patch-main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/joe/files/patch-main.c Wed Feb 26 14:52:04 2014 (r346208) @@ -0,0 +1,18 @@ +$NetBSD: patch-main.c,v 1.1 2011/04/01 13:12:24 wiz Exp $ + +Fix for crash with a segv if called as jmacs with more then +one file as an argument on the command line from upstream. + +http://joe-editor.cvs.sourceforge.net/viewvc/joe-editor/joe-current/main/main.c?r1=1.5&r2=1.6 + +--- main.c.orig 2008-10-27 03:01:11.000000000 +0000 ++++ main.c +@@ -431,7 +431,7 @@ int main(int argc, char **real_argv, cha + b->orphan = 1; + b->oldcur = pdup(b->bof, USTR "main"); + pline(b->oldcur, get_file_pos(b->name)); +- p_goto_bol(bw->cursor); ++ p_goto_bol(b->oldcur); + line = b->oldcur->line - (maint->h - 1) / 2; + if (line < 0) + line = 0; _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!