Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Oct 2005 03:50:22 GMT
From:      User1001 <supraexpress@globaleyes.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking editing-type button
Message-ID:  <200510080350.j983oMvl074599@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/86318; it has been noted by GNATS.

From: User1001 <supraexpress@globaleyes.net>
To: bug-followup@FreeBSD.org,  supraexpress@globaleyes.net
Cc:  
Subject: Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking
 editing-type button
Date: Fri, 07 Oct 2005 22:49:18 -0500

 It might be that xfig-3.2.4 has a memory leak as it gobs up memory as it 
   gobs up CPU. I don't have the means to tell.
 
 xfig-3.2.5-alpha5 (and transfig-3.2.5-alpha5), however, DOES work with 
 minimal compilation changes.
 
 Sources:
 
 http://xfig.org/art4.html/
 ftp://www-epb.lbl.gov/xfig/alpha/
 
 
 Raw changes for xfig-3.2.5-alpha5:
 1) Imakefile
 *** Imakefile.orig      Mon Apr 26 15:24:41 2004
 --- Imakefile   Fri Oct  7 22:26:10 2005
 ***************
 *** 71,77 ****
    XCOMM Redefine the following if your PNG library, zlib library and/or 
 include file
    XCOMM are in different places
 
 ! PNGLIBDIR = $(USRLIBDIR)
    PNGINC = -I/usr/local/include
    ZLIBDIR = $(USRLIBDIR)
 
 --- 71,77 ----
    XCOMM Redefine the following if your PNG library, zlib library and/or 
 include file
    XCOMM are in different places
 
 ! PNGLIBDIR = /usr/local/lib
    PNGINC = -I/usr/local/include
    ZLIBDIR = $(USRLIBDIR)
 
 ***************
 *** 116,122 ****
 
    #ifdef USEXPM
    XPMLIBDIR = $(USRLIBDIR)
 ! XPMINC = -I/usr/include/X11
    #endif
 
    XCOMM Uncomment the following definiton if you want to use the small 
 icons
 --- 116,122 ----
 
    #ifdef USEXPM
    XPMLIBDIR = $(USRLIBDIR)
 ! XPMINC = -I/usr/X11R6/include/X11
    #endif
 
    XCOMM Uncomment the following definiton if you want to use the small 
 icons
 
 2) renaming sample files
 Rename -[a-z].fig.gz files in 
 ./Libraries/Electronic/Schematic/More/simple_device-inch/ and 
 ./Libraries/Electronic/Schematic/More/simple_device-metric, to have no 
 leading dash or INSTALL will take filename as a paramter, and will fail.
 
 Then xmkmf -a, make, make install. Note: installation target may need to 
 be adjusted.
 
 
 Raw changes to transfig-3.2.5-alpha:
 
 1) fig2dev/Imakefile
 
 *** Imakefile.orig      Mon Jan  5 12:40:42 2004
 --- Imakefile   Fri Oct  7 22:16:25 2005
 ***************
 *** 74,82 ****
    XCOMM file are in different places
 
    #ifdef USEPNG
 ! PNGLIBDIR = $(USRLIBDIR)
    ZLIBDIR = $(USRLIBDIR)
 ! PNGINC = -I/usr/include/X11
    #endif
 
    XCOMM ****************
 --- 74,82 ----
    XCOMM file are in different places
 
    #ifdef USEPNG
 ! PNGLIBDIR = /usr/local/lib
    ZLIBDIR = $(USRLIBDIR)
 ! PNGINC = -I/usr/local/include/libpng
    #endif
 
    XCOMM ****************
 ***************
 *** 92,98 ****
 
    #ifdef USEXPM
    XPMLIBDIR = $(USRLIBDIR)
 ! XPMINC = -I/usr/include/X11
    #endif
 
    XCOMM ****************
 --- 92,98 ----
 
    #ifdef USEXPM
    XPMLIBDIR = $(USRLIBDIR)
 ! XPMINC = -I/usr/X11R6/include/X11
    #endif
 
    XCOMM ****************
 
 2) fig2dev/fig2dev.h
 
 *** fig2dev.h.orig      Fri Oct  7 22:09:02 2005
 --- fig2dev.h   Fri Oct  7 22:09:43 2005
 ***************
 *** 214,220 ****
    #endif /* PATH_MAX */
 
    #if ( !defined(__NetBSD__) && !defined(__DARWIN__))
 ! extern int            sys_nerr, errno;
    #endif
 
    #if ( !(defined(BSD) && (BSD >= 199306)) && !defined(__NetBSD__) && \
 --- 214,221 ----
    #endif /* PATH_MAX */
 
    #if ( !defined(__NetBSD__) && !defined(__DARWIN__))
 ! extern const int      sys_nerr;
 ! extern int            errno;
    #endif
 
    #if ( !(defined(BSD) && (BSD >= 199306)) && !defined(__NetBSD__) && \
 
 Then xmkmf -a, make, make install. Installation target may need to be 
 changed.
 
 
 BOTH applications work as far as I can tell (open figure, enter text, 
 edit object, export figure as LaTeX pictures, or eps).
 
 Conclusion: remove transfig-3.2.4_2 and xfig-3.2.4_2 ports and create 
 new ports for transfig-3.2.5-alpha5 and xfig-3.2.5-alpha5 (which is not 
 my forte).



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