From root@helo.liwing.de  Mon Oct  6 10:43:01 2003
Return-Path: <root@helo.liwing.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 4234D16A4BF; Mon,  6 Oct 2003 10:42:59 -0700 (PDT)
Received: from helo.liwing.de (helo.liwing.de [213.70.188.163])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id C941D43F93; Mon,  6 Oct 2003 10:42:55 -0700 (PDT)
	(envelope-from root@helo.liwing.de)
Received: from helo.liwing.de (localhost.liwing.de [127.0.0.1])
	by helo.liwing.de (8.12.9p2/8.12.9) with ESMTP id h96HgsUn037770;
	Mon, 6 Oct 2003 17:42:54 GMT
	(envelope-from root@helo.liwing.de)
Received: (from root@localhost)
	by helo.liwing.de (8.12.9p2/8.12.9/Submit) id h96Hgsde037769;
	Mon, 6 Oct 2003 17:42:54 GMT
	(envelope-from root)
Message-Id: <200310061742.h96Hgsde037769@helo.liwing.de>
Date: Mon, 6 Oct 2003 17:42:54 GMT
From: Jens Rehsack <rehsack@liwing.de>
Reply-To: Jens Rehsack <rehsack@liwing.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Jens Rehsack <rehsack@liwing.de>, gnome@freebsd.org
Subject: [PATCH] x11-toolkits/scintilla misses gthread library
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57657
>Category:       ports
>Synopsis:       [PATCH] x11-toolkits/scintilla misses gthread library
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 06 10:50:20 PDT 2003
>Closed-Date:    Tue Oct 07 13:06:55 PDT 2003
>Last-Modified:  Thu Jul 01 05:43:31 GMT 2004
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
	Thanks to Joe Markus Clarke this patch adds the missed gthread library to
	the build of the scintilla-libs. This is required for editors like
	moleskine.
	Of course, this is a workaround. Better would, adding the required library
	to the pkg-config information.
>How-To-Repeat:
	
>Fix:
	

--- patch-add-libgthread begins here ---
Index: x11-toolkits/scintilla/files/patch-aa
===================================================================
diff -u x11-toolkits/scintilla/files/patch-aa.orig x11-toolkits/scintilla/files/patch-aa
--- x11-toolkits/scintilla/files/patch-aa.orig	Mon Oct  6 17:21:45 2003
+++ x11-toolkits/scintilla/files/patch-aa	Mon Oct  6 17:25:37 2003
@@ -1,5 +1,5 @@
---- makefile.orig	Sun Sep 21 11:19:30 2003
-+++ makefile	Sun Sep 28 11:48:04 2003
+--- makefile.orig	Sun Sep 21 02:19:30 2003
++++ makefile	Mon Oct  6 17:25:24 2003
 @@ -8,8 +8,8 @@
  # To force GTK+ 1 build, define GTK1 on the make command line.
  
@@ -21,7 +21,7 @@
  
  vpath %.h ../src ../include
  vpath %.cxx ../src
-@@ -33,9 +34,9 @@
+@@ -33,29 +34,33 @@
  endif
  
  ifdef DEBUG
@@ -33,16 +33,24 @@
  endif
  
  # If explicit setting of GTK1 or GTK2 then use that else look for
-@@ -44,7 +45,7 @@
+ # pkg-config which is an OK indication that GTK2 is available
+ ifdef GTK2
  CONFIGFLAGS=pkg-config --cflags gtk+-2.0
++LIBS=-lgthread2.0
  else
  ifdef GTK1
 -CONFIGFLAGS=gtk-config --cflags
 +CONFIGFLAGS=pkg-config --cflags gtk+
++LIBS=-lgthread12
  else
  ifneq (,$(findstring /,$(shell whereis -b pkg-config)))
  CONFIGFLAGS=pkg-config --cflags gtk+-2.0
-@@ -55,7 +56,7 @@
++LIBS=-lgthread2.0
+ else
+ CONFIGFLAGS=gtk-config --cflags
++LIBS=-lgthread12
+ endif
+ endif
  endif
  
  .cxx.o:
@@ -51,7 +59,7 @@
  
  #++Autogenerated -- run src/LexGen.py to regenerate
  #**LEXOBJS=\\\n\(\*.o \)
-@@ -69,7 +70,7 @@
+@@ -69,7 +74,7 @@
  
  # The LEXOBJS have to be treated specially as the functions in them are not called from external code
  
@@ -60,16 +68,16 @@
  
  clean:
  	rm -f *.o $(COMPLIB)
-@@ -81,8 +82,10 @@
+@@ -81,8 +86,10 @@
  	ScintillaBase.o ContractionState.o Editor.o ExternalLexer.o PropSet.o PlatGTK.o \
  	KeyMap.o LineMarker.o ScintillaGTK.o CellBuffer.o ViewStyle.o \
  	RESearch.o Style.o Indicator.o AutoComplete.o UniConversion.o XPM.o
 -	$(AR) rc $@ $^
 -	$(RANLIB) $@
-+	$(AR) `$(CONFIGFLAGS:cflags=libs)` -o $@ $^
++	$(AR) `$(CONFIGFLAGS:cflags=libs)` ${LIBS} -o $@ $^
 +
 + $(LEXRLIB): $(LEXOBJS)
-+	$(AR) `$(CONFIGFLAGS:cflags=libs)` -o $@ $^
++	$(AR) `$(CONFIGFLAGS:cflags=libs)` ${LIBS} -o $@ $^
  
  # Automatically generate header dependencies with "make deps"
  include deps.mak
--- patch-add-libgthread ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Tue Oct 7 13:06:44 PDT 2003 
State-Changed-Why:  
Opened in error. 

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