From owner-svn-ports-all@FreeBSD.ORG Thu Feb 27 09:02:57 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E4B5F7F2; Thu, 27 Feb 2014 09:02:57 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C3B831CF2; Thu, 27 Feb 2014 09:02:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1R92v2k041908; Thu, 27 Feb 2014 09:02:57 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1R92vbC041901; Thu, 27 Feb 2014 09:02:57 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201402270902.s1R92vbC041901@svn.freebsd.org> From: Martin Wilke Date: Thu, 27 Feb 2014 09:02:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r346276 - in head/devel/newt: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 09:02:58 -0000 Author: miwi Date: Thu Feb 27 09:02:56 2014 New Revision: 346276 URL: http://svnweb.freebsd.org/changeset/ports/346276 QAT: https://qat.redports.org/buildarchive/r346276/ Log: -- Update to version 0.52.17 PR: 187053 Added: head/devel/newt/files/patch-whiptcl.c (contents, props changed) Modified: head/devel/newt/Makefile head/devel/newt/distinfo head/devel/newt/pkg-plist Modified: head/devel/newt/Makefile ============================================================================== --- head/devel/newt/Makefile Thu Feb 27 09:01:59 2014 (r346275) +++ head/devel/newt/Makefile Thu Feb 27 09:02:56 2014 (r346276) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= newt -PORTVERSION= 0.52.16 +PORTVERSION= 0.52.17 CATEGORIES= devel MASTER_SITES= https://fedorahosted.org/releases/n/e/newt/ @@ -11,11 +11,9 @@ COMMENT= Not Eriks Windowing Toolkit: co LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2 \ libpopt.so:${PORTSDIR}/devel/popt -OPTIONS_DEFINE= TCL NLS - -USES+= gmake +USES= gmake GNU_CONFIGURE= yes -MAKE_ENV= PCFLAGS="${CFLAGS}" TCLVERSION="tcl${TCL_VER}" +MAKE_ENV= PCFLAGS="${CFLAGS}" USE_LDCONFIG= yes MAKE_JOBS_UNSAFE= yes @@ -25,34 +23,27 @@ LDFLAGS+= -L${LOCALBASE}/lib -lcurses PLIST_SUB= SOVERSION="${SOVERSION}" \ VERSION="${PORTVERSION}" +SUB_FILES= pkgIndex.tcl SUB_LIST= VERSION="${PORTVERSION}" -SOVERSION= ${PORTVERSION:R:E} +OPTIONS_DEFINE= NLS TCL +OPTIONS_SUB= yes -.include +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls +TCL_USES= tcl +TCL_CONFIGURE_ENV= ac_cv_c_tclconfig=${TCL_LIBDIR:Q} +TCL_CONFIGURE_WITH= tcl +TCL_CPPFLAGS= -I${TCL_INCLUDEDIR:Q} -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.endif +SOVERSION= ${PORTVERSION:R:E} -.if ${PORT_OPTIONS:MTCL} -USES+= tcl -MAKE_ENV+= TCL_LIBDIR=${TCL_LIBDIR:Q} -CPPFLAGS+= -I${TCL_INCLUDEDIR:Q} -SUB_FILES+= pkgIndex.tcl -PLIST_SUB+= TCLOPT="" TCL_LIBDIR=${TCL_LIBDIR:S,${PREFIX}/,,} -.else -CONFIGURE_ARGS+=--without-tcl -PLIST_SUB+= TCLOPT="@comment " -.endif +.include post-patch: @${REINPLACE_CMD} -e \ - '/^SONAME/s|=.*|=${SOVERSION}|' ${WRKSRC}/configure + '/^SONAME/s|=.*|=${SOVERSION}| ; \ + s|-DUSE_INTERP_RESULT||' ${WRKSRC}/configure @${REINPLACE_CMD} -e \ 's|@CPP@|@CC@ -E| ; \ s|-I/usr/include/slang|| ; \ @@ -61,19 +52,19 @@ post-patch: /make -C/s|^|#| ; \ /whiptcl.$$(SOEXT)/s|install|${TRUE}|' ${WRKSRC}/Makefile.in -post-build: apply-slist - post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/whiptail .if ${PORT_OPTIONS:MNLS} - @(cd ${WRKSRC}/po && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ + @(cd ${WRKSRC}/po && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ ${MAKEFILE} ${MAKE_ARGS} datadir=${STAGEDIR}${PREFIX}/share \ ${INSTALL_TARGET}) .endif .if ${PORT_OPTIONS:MTCL} @${MKDIR} ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION} - (cd ${WRKSRC} && ${INSTALL_DATA} whiptcl.so ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}) - (cd ${WRKDIR} && ${INSTALL_DATA} pkgIndex.tcl ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}) + (cd ${WRKSRC} && ${INSTALL_LIB} whiptcl.so \ + ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}) + (cd ${WRKDIR} && ${INSTALL_DATA} pkgIndex.tcl \ + ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}) .endif .include Modified: head/devel/newt/distinfo ============================================================================== --- head/devel/newt/distinfo Thu Feb 27 09:01:59 2014 (r346275) +++ head/devel/newt/distinfo Thu Feb 27 09:02:56 2014 (r346276) @@ -1,2 +1,2 @@ -SHA256 (newt-0.52.16.tar.gz) = 1b9574bc9c8fb7b25cd26e5c3f2840e8c17fde5dd09c759604925919b3589cd3 -SIZE (newt-0.52.16.tar.gz) = 183487 +SHA256 (newt-0.52.17.tar.gz) = 69837973ef2ee2fa644426f1c3e48d2b18785ebcd382ef7fd01eb2e67d2d632b +SIZE (newt-0.52.17.tar.gz) = 178920 Added: head/devel/newt/files/patch-whiptcl.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/newt/files/patch-whiptcl.c Thu Feb 27 09:02:56 2014 (r346276) @@ -0,0 +1,106 @@ +--- whiptcl.c.orig ++++ whiptcl.c +@@ -137,45 +137,45 @@ + + if (arg < -1) { + /* this could buffer oveflow, bug we're not setuid so I don't care */ +- interp->result = malloc(200); +- interp->freeProc = TCL_DYNAMIC; +- sprintf(interp->result, "%s: %s\n", ++ char *tmp = malloc(200); ++ sprintf(tmp, "%s: %s\n", + poptBadOption(optCon, POPT_BADOPTION_NOALIAS), + poptStrerror(arg)); ++ Tcl_SetResult(interp, tmp, TCL_DYNAMIC); + + return TCL_ERROR; + } + + if (mode == MODE_NONE) { +- interp->result = "no dialog mode was specified"; ++ Tcl_SetResult(interp, "no dialog mode was specified", TCL_STATIC); + return TCL_ERROR; + } else if (rc) { +- interp->result = "multiple modes were specified"; ++ Tcl_SetResult(interp, "multiple modes were specified", TCL_STATIC); + return TCL_ERROR; + } + + if (!(text = poptGetArg(optCon))) { +- interp->result = "missing text parameter"; ++ Tcl_SetResult(interp, "missing text parameter", TCL_STATIC); + return TCL_ERROR; + } + + if (!(nextArg = poptGetArg(optCon))) { +- interp->result = "height missing"; ++ Tcl_SetResult(interp, "height missing", TCL_STATIC); + return TCL_ERROR; + } + height = strtoul(nextArg, &end, 10); + if (*end) { +- interp->result = "height is not a number"; ++ Tcl_SetResult(interp, "height is not a number", TCL_STATIC); + return TCL_ERROR; + } + + if (!(nextArg = poptGetArg(optCon))) { +- interp->result = "width missing"; ++ Tcl_SetResult(interp, "width missing", TCL_STATIC); + return TCL_ERROR; + } + width = strtoul(nextArg, &end, 10); + if (*end) { +- interp->result = "width is not a number"; ++ Tcl_SetResult(interp, "width is not a number", TCL_STATIC); + return TCL_ERROR; + } + +@@ -196,33 +196,30 @@ + case MODE_YESNO: + rc = messageBox(text, height, width, MSGBOX_YESNO, flags); + if (rc == DLG_OKAY) +- interp->result = "yes"; ++ Tcl_SetResult(interp, "yes", TCL_STATIC); + else +- interp->result = "no"; ++ Tcl_SetResult(interp, "no", TCL_STATIC); + if (rc == DLG_ERROR) rc = 0; + break; + + case MODE_INPUTBOX: + rc = inputBox(text, height, width, optCon, flags, &result); + if (rc ==DLG_OKAY) { +- interp->result = result; +- interp->freeProc = TCL_DYNAMIC; ++ Tcl_SetResult(interp, strdup(result), TCL_DYNAMIC); + } + break; + + case MODE_MENU: + rc = listBox(text, height, width, optCon, flags, default_item, &result); + if (rc==DLG_OKAY) { +- interp->result = result; +- interp->freeProc = TCL_DYNAMIC; ++ Tcl_SetResult(interp, strdup(result), TCL_DYNAMIC); + } + break; + + case MODE_RADIOLIST: + rc = checkList(text, height, width, optCon, 1, flags, &selections); + if (rc==DLG_OKAY) { +- interp->result = selections[0]; +- interp->freeProc = TCL_DYNAMIC; ++ Tcl_SetResult(interp, strdup(selections[0]), TCL_DYNAMIC); + + free(selections); + } +@@ -247,7 +244,7 @@ + newtPopWindow(); + + if (rc == DLG_ERROR) { +- interp->result = "bad paramter for whiptcl dialog box"; ++ Tcl_SetResult(interp, "bad paramter for whiptcl dialog box", TCL_STATIC); + return TCL_ERROR; + } + Modified: head/devel/newt/pkg-plist ============================================================================== --- head/devel/newt/pkg-plist Thu Feb 27 09:01:59 2014 (r346275) +++ head/devel/newt/pkg-plist Thu Feb 27 09:02:56 2014 (r346276) @@ -4,10 +4,10 @@ lib/libnewt.a lib/libnewt.so lib/libnewt.so.%%SOVERSION%% lib/libnewt.so.%%VERSION%% -man/man1/whiptail.1.gz -%%TCLOPT%%lib/whip%%VERSION%%/pkgIndex.tcl -%%TCLOPT%%lib/whip%%VERSION%%/whiptcl.so +%%TCL%%lib/whip%%VERSION%%/pkgIndex.tcl +%%TCL%%lib/whip%%VERSION%%/whiptcl.so libdata/pkgconfig/libnewt.pc +man/man1/whiptail.1.gz %%NLS%%share/locale/ar/LC_MESSAGES/newt.mo %%NLS%%share/locale/as/LC_MESSAGES/newt.mo %%NLS%%share/locale/ast/LC_MESSAGES/newt.mo @@ -97,8 +97,6 @@ libdata/pkgconfig/libnewt.pc %%NLS%%@dirrmtry share/locale/mr %%NLS%%@dirrmtry share/locale/mg/LC_MESSAGES %%NLS%%@dirrmtry share/locale/mg -%%NLS%%@dirrmtry share/locale/lv/LC_MESSAGES -%%NLS%%@dirrmtry share/locale/lv %%NLS%%@dirrmtry share/locale/ku/LC_MESSAGES %%NLS%%@dirrmtry share/locale/ku %%NLS%%@dirrmtry share/locale/km/LC_MESSAGES @@ -115,4 +113,4 @@ libdata/pkgconfig/libnewt.pc %%NLS%%@dirrmtry share/locale/ast %%NLS%%@dirrmtry share/locale/as/LC_MESSAGES %%NLS%%@dirrmtry share/locale/as -%%TCLOPT%%@dirrm lib/whip%%VERSION%% +%%TCL%%@dirrm lib/whip%%VERSION%%