From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 21 06:40:16 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBC9C16A4DF for ; Fri, 21 Jul 2006 06:40:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD11C43D49 for ; Fri, 21 Jul 2006 06:40:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6L6eFOx095187 for ; Fri, 21 Jul 2006 06:40:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6L6eF0U095186; Fri, 21 Jul 2006 06:40:15 GMT (envelope-from gnats) Resent-Date: Fri, 21 Jul 2006 06:40:15 GMT Resent-Message-Id: <200607210640.k6L6eF0U095186@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stanislav Sedov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E25F16A4DF for ; Fri, 21 Jul 2006 06:34:55 +0000 (UTC) (envelope-from ssedov@mbsd.msk.ru) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47CDC43D4C for ; Fri, 21 Jul 2006 06:34:50 +0000 (GMT) (envelope-from ssedov@mbsd.msk.ru) Received: from [213.87.72.70] (helo=fonon.realnet) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1G3oij-0005Ep-Mc for FreeBSD-gnats-submit@freebsd.org; Fri, 21 Jul 2006 10:42:49 +0400 Received: by fonon.realnet (Postfix, from userid 1001) id 95FB112679; Fri, 21 Jul 2006 10:34:01 +0400 (MSD) Message-Id: <20060721063401.95FB112679@fonon.realnet> Date: Fri, 21 Jul 2006 10:34:01 +0400 (MSD) From: Stanislav Sedov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/100652: [MAINTAINER] cad/jspice3: add OPTIONS, fix exit status X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2006 06:40:16 -0000 >Number: 100652 >Category: ports >Synopsis: [MAINTAINER] cad/jspice3: add OPTIONS, fix exit status >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Jul 21 06:40:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Stanislav Sedov >Release: FreeBSD 7.0-CURRENT i386 >Organization: MBSD labs, Inc. >Environment: System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Sun Jun 18 20:51:36 MSD 2006 >Description: - Add options to allow user to select whether to depend on X or not - Fix return status of build shell script to make 'make' happy Added file(s): - files/patch-src+bin+help.c - files/patch-src+lib+plot+x11.c Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- jspice3-2.5_3.patch begins here --- diff -ruN --exclude=CVS /usr/ports/cad/jspice3/Makefile /var/tmp/jspice3/Makefile --- /usr/ports/cad/jspice3/Makefile Fri Jul 21 09:02:06 2006 +++ /var/tmp/jspice3/Makefile Fri Jul 21 10:29:12 2006 @@ -7,7 +7,7 @@ PORTNAME= jspice3 PORTVERSION= 2.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= cad MASTER_SITES= http://www.wrcad.com/ftp/pub/ \ ftp://ftp.srware.com/pub/ @@ -17,12 +17,24 @@ CONFLICTS= spice-[0-9]* +OPTIONS= X "Use X window system" no + +.include + +.if defined(WITH_X) USE_XLIB= yes +.endif pre-configure: @${REINPLACE_CMD} -e 's+/usr/local+${PREFIX}+g ; \ s+-O -g+${CFLAGS}+g;' \ ${WRKSRC}/conf/unixconf/mkheader.0 +.if defined(WITH_X) + @${REINPLACE_CMD} -e 's+#%%WITH_X%%++g' \ + ${WRKSRC}/conf/unixconf/mkheader.0 +.else + @${ECHO} "#undef HAVE_X11" >> ${WRKSRC}/src/include/spice.h +.endif do-build: @(cd ${WRKSRC};${SETENV} ${MAKE_ENV} ${SH} build) @@ -37,4 +49,4 @@ ${RM} -R ${PREFIX}/lib/jspice3/examples .endif -.include +.include diff -ruN --exclude=CVS /usr/ports/cad/jspice3/files/patch-build /var/tmp/jspice3/files/patch-build --- /usr/ports/cad/jspice3/files/patch-build Fri Jul 21 09:02:06 2006 +++ /var/tmp/jspice3/files/patch-build Fri Jul 21 10:28:50 2006 @@ -1,11 +1,26 @@ ---- build.orig Fri Jul 14 23:07:15 2006 -+++ build Fri Jul 14 23:07:32 2006 +--- build.orig Tue May 1 09:37:12 2001 ++++ build Fri Jul 21 06:27:29 2006 @@ -22,7 +22,7 @@ echo '#######################################################################'> conf/mkheader.in echo '####### Makefile generated by build script ############################'>> conf/mkheader.in echo VERSION = $version>> conf/mkheader.in - echo DATE = `/bin/date`>> conf/mkheader.in -+ echo DATE = `/bin/env LANG=C /bin/date`>> conf/mkheader.in ++ echo DATE = `/usr/bin/env LANG=C /bin/date`>> conf/mkheader.in echo '#######################################################################'>> conf/mkheader.in cat conf/unixconf/mkheader.0 >> conf/mkheader.in else +@@ -92,8 +92,14 @@ + fi + echo Creating makefiles in the subdirectories... + $makeprog make ++ if [ $? -ne 0 ]; then ++ exit $? ++ fi + echo ...done + $makeprog all 2> ../../errs ++ if [ $? -ne 0 ]; then ++ exit $? ++ fi + echo done + echo Check the errs file for any problems. + echo To finish the installation, cd to src/bin, become root, and type diff -ruN --exclude=CVS /usr/ports/cad/jspice3/files/patch-conf+unixconf+mkheader.0 /var/tmp/jspice3/files/patch-conf+unixconf+mkheader.0 --- /usr/ports/cad/jspice3/files/patch-conf+unixconf+mkheader.0 Fri Jul 21 09:02:06 2006 +++ /var/tmp/jspice3/files/patch-conf+unixconf+mkheader.0 Fri Jul 21 10:28:50 2006 @@ -1,5 +1,5 @@ ---- conf/unixconf/mkheader.0.orig Tue Feb 28 16:30:32 2006 -+++ conf/unixconf/mkheader.0 Tue Feb 28 16:36:32 2006 +--- conf/unixconf/mkheader.0.orig Tue Jan 15 19:15:36 2002 ++++ conf/unixconf/mkheader.0 Fri Jul 21 06:11:55 2006 @@ -18,7 +18,7 @@ BUG_ADDR = stevew@srware.com @@ -9,3 +9,11 @@ # spice daemon log file SPICED_LOG = /tmp/spiced.log +@@ -43,6 +43,6 @@ + LDFLAGS = @LIBS@ + RANLIB = @RANLIB@ + INCX = @X_CFLAGS@ +-LIBX = @X_PRE_LIBS@ @X_LIBS@ -lXaw -lXt -lXext -lXmu -lX11 @X_EXTRA_LIBS@ ++#%%WITH_X%%LIBX = @X_PRE_LIBS@ @X_LIBS@ -lXaw -lXt -lXext -lXmu -lX11 @X_EXTRA_LIBS@ + INTERFACE_OPTS = -DWANT_MFB -DWANT_X11 + MFB = mfb diff -ruN --exclude=CVS /usr/ports/cad/jspice3/files/patch-src+bin+help.c /var/tmp/jspice3/files/patch-src+bin+help.c --- /usr/ports/cad/jspice3/files/patch-src+bin+help.c Thu Jan 1 03:00:00 1970 +++ /var/tmp/jspice3/files/patch-src+bin+help.c Fri Jul 21 10:28:50 2006 @@ -0,0 +1,27 @@ +--- src/bin/help.c.orig Fri Jul 21 06:16:08 2006 ++++ src/bin/help.c Fri Jul 21 06:18:15 2006 +@@ -14,6 +14,7 @@ + #include + #endif + ++static char *hcopydev; + #ifdef HAVE_X11 + + #include +@@ -22,7 +23,6 @@ + Display *Xdisplay; + static XtAppContext app_con; + static Widget toplevel; +-static char *hcopydev; + + static String fallback_resources[] = { + +@@ -188,7 +188,7 @@ + { + if (!strcmp(n, kw_hcopydev)) { + strcpy(r, hcopydev); +- return (True); ++ return (1); + } + return (false); + } diff -ruN --exclude=CVS /usr/ports/cad/jspice3/files/patch-src+lib+plot+x11.c /var/tmp/jspice3/files/patch-src+lib+plot+x11.c --- /usr/ports/cad/jspice3/files/patch-src+lib+plot+x11.c Thu Jan 1 03:00:00 1970 +++ /var/tmp/jspice3/files/patch-src+lib+plot+x11.c Fri Jul 21 10:28:50 2006 @@ -0,0 +1,20 @@ +--- src/lib/plot/x11.c.orig Thu Sep 2 21:43:35 2004 ++++ src/lib/plot/x11.c Fri Jul 21 06:06:00 2006 +@@ -2205,7 +2205,7 @@ + void + com_setrdb(wl) + +-wordlist *wl; ++void *wl; + { + /* be silent */ + } +@@ -2213,7 +2213,7 @@ + int + PopUpErrMessage(fp) + +-File *fp; ++void *fp; + { + return (0); + } --- jspice3-2.5_3.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: