From tmclaugh@sdf.lonestar.org  Sun Jan  9 05:17:37 2005
Return-Path: <tmclaugh@sdf.lonestar.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B7F9616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Jan 2005 05:17:37 +0000 (GMT)
Received: from straycat.dhs.org (h0050da134090.ne.client2.attbi.com [24.60.174.16])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2FAA543D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Jan 2005 05:17:37 +0000 (GMT)
	(envelope-from tmclaugh@sdf.lonestar.org)
Received: from compass.straycat.dhs.org (compass.straycat.dhs.org [192.168.1.32])
	by straycat.dhs.org (8.13.0/8.13.0) with ESMTP id j095Hone004778
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 9 Jan 2005 00:17:50 -0500 (EST)
Message-Id: <1105247865.0@compass.straycat.dhs.org>
Date: Sun, 9 Jan 2005 00:17:45 -0500
From: "Tom McLaughlin" <tmclaugh@sdf.lonestar.org>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: comms/gfax: Fix compilation failures
X-Send-Pr-Version: gtk-send-pr 0.4.1 
X-GNATS-Notify:

>Number:         75975
>Category:       ports
>Synopsis:       comms/gfax: Fix compilation failures
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mezz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 09 05:20:18 GMT 2005
>Closed-Date:    Sun Jan 09 07:02:48 GMT 2005
>Last-Modified:  Sun Jan 09 07:02:48 GMT 2005
>Originator:     Tom McLaughlin
>Release:        FreeBSD 5.3-RELEASE-p2 i386
>Organization:
>Environment:


System: FreeBSD 5.3-RELEASE-p2 #0: Tue Jan  4 10:02:45 EST 2005
    root@compass.straycat.dhs.org:/usr/obj/usr/src/sys/COMPASS



>Description:


Attached patch fixes gfax compilation failures due to the move of
gtk-sharp to /usr/X11R6.  The program builds but crashes on start so I'm
leaving this as broken.  I've found the same breakage being reported by
non-FreeBSD users so I assume that recent versions of mono or
gtk-sharp have caused this problem.  Waiting for gfax author to follow up
on these latest problems.


>How-To-Repeat:


http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/a.5.2004121802/gfax-0.6.4_3.log


>Fix:


--- gfax_compile_fix.diff begins here ---
Index: files/patch-Makefile
===================================================================
RCS file: /ncvs/ports/comms/gfax/files/patch-Makefile,v
retrieving revision 1.1
diff -u -r1.1 patch-Makefile
--- files/patch-Makefile	17 Jul 2004 14:18:29 -0000	1.1
+++ files/patch-Makefile	9 Jan 2005 03:10:36 -0000
@@ -1,20 +1,22 @@
---- Makefile.orig	Wed Jun 30 15:27:25 2004
-+++ Makefile	Fri Jul  9 01:14:53 2004
-@@ -1,4 +1,4 @@
+--- Makefile.orig	Wed Jun 30 18:27:25 2004
++++ Makefile	Sat Jan  8 18:54:20 2005
+@@ -1,4 +1,3 @@
 -export MONO_PATH=/usr/lib/mono:/usr/lib/mono/gtk-sharp
-+export MONO_PATH=${LOCALBASE}/lib/mono:${LOCALBASE}/lib/mono/gtk-sharp
  
  MCS = mcs /define:DEBUG
  #MCS = mcs /define:DEBUGHYLAFAX
-@@ -11,7 +11,6 @@
+@@ -11,9 +10,7 @@
  		/resource:./pixmaps/gfax.png,gfax.png \
  		/resource:./pixmaps/send.png,send.png 
  
 -			
- REFERENCES = -r gnome-sharp -r gtk-sharp -r glib-sharp -r glade-sharp -r gdk-sharp \
- 			 -r gconf-sharp -r gconf-sharp-peditors.dll
+-REFERENCES = -r gnome-sharp -r gtk-sharp -r glib-sharp -r glade-sharp -r gdk-sharp \
+-			 -r gconf-sharp -r gconf-sharp-peditors.dll
++REFERENCES = $(shell pkg-config --libs gnome-sharp glade-sharp gconf-sharp)
  SOURCES = 	src/phonebook.cs \
-@@ -22,7 +21,7 @@
+ 			src/gui.cs \
+ 			src/main.cs \
+@@ -22,7 +19,7 @@
  			src/fax.cs \
  			src/hylafax.cs \
  			src/Settings.cs
@@ -23,7 +25,7 @@
  DATE=`date +%y-%m-%d`
  
  all: mono-gfax.exe
-@@ -31,37 +30,43 @@
+@@ -31,37 +28,43 @@
  	$(MCS) $(RESOURCES) -o $@ $(SOURCES) $(REFERENCES)
  
  schema:
--- gfax_compile_fix.diff ends here ---



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mezz 
Responsible-Changed-By: mezz 
Responsible-Changed-When: Sun Jan 9 06:48:07 GMT 2005 
Responsible-Changed-Why:  
I'll take this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75975 
State-Changed-From-To: open->closed 
State-Changed-By: mezz 
State-Changed-When: Sun Jan 9 07:02:30 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75975 
>Unformatted:
