From thierry@pompo.net  Thu May  9 08:02:23 2002
Return-Path: <thierry@pompo.net>
Received: from postfix2-2.free.fr (postfix2-2.free.fr [213.228.0.140])
	by hub.freebsd.org (Postfix) with ESMTP
	id AC7EF37B403; Thu,  9 May 2002 08:02:22 -0700 (PDT)
Received: from graf.pompo.net (lyon-2-a7-62-147-23-105.dial.proxad.net [62.147.23.105])
	by postfix2-2.free.fr (Postfix) with ESMTP
	id 5D2215FDD6; Thu,  9 May 2002 17:02:19 +0200 (CEST)
Received: by graf.pompo.net (Postfix, from userid 1001)
	id 130B8750E; Thu,  9 May 2002 17:01:38 +0200 (CEST)
Message-Id: <20020509150138.130B8750E@graf.pompo.net>
Date: Thu,  9 May 2002 17:01:38 +0200 (CEST)
From: Thierry Thomas <thierry@pompo.net>
Reply-To: Thierry Thomas <thierry@pompo.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: vanilla@FreeBSD.org
Subject: graphics/gimp1: problems with gettext.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37887
>Category:       ports
>Synopsis:       graphics/gimp1: problems with gettext.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 09 08:10:01 PDT 2002
>Closed-Date:    Thu Sep 19 12:23:50 PDT 2002
>Last-Modified:  Thu Sep 19 12:23:50 PDT 2002
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: Sat May 4 07:26:38 CEST 2002 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386


	
>Description:
	On a -STABLE machine, with a current ports tree, no gnome, I get these
	errors when trying to build The Gimp:


about_dialog.o: In function `about_dialog_create':
about_dialog.o(.text+0x5e): undefined reference to `gettext'
about_dialog.o(.text+0x46a): undefined reference to `gettext'
about_dialog.o(.text+0x4cb): undefined reference to `gettext'
about_dialog.o(.text+0x7c6): undefined reference to `gettext'
airbrush.o: In function `airbrush_options_new':
airbrush.o(.text+0x222): undefined reference to `gettext'
airbrush.o(.text+0x336): more undefined references to `gettext' follow
main.o: In function `main':
main.o(.text+0x60): undefined reference to `bindtextdomain'
main.o(.text+0x70): undefined reference to `textdomain'
main.o(.text+0x85): undefined reference to `bindtextdomain'
main.o(.text+0x53f): undefined reference to `gettext'
main.o(.text+0x574): undefined reference to `gettext'
main.o(.text+0x5a5): undefined reference to `gettext'
main.o(.text+0x5be): undefined reference to `gettext'
main.o(.text+0x5d7): undefined reference to `gettext'
main.o(.text+0x5f0): more undefined references to `gettext' follow
menus.o: In function `menu_translate':
menus.o(.text+0x20ec): undefined reference to `dgettext'
menus.o(.text+0x217a): undefined reference to `dgettext'
menus.o(.text+0x2251): undefined reference to `gettext'
menus.o(.text+0x22ce): undefined reference to `gettext'
module_db.o: In function `module_db_browser_new':
module_db.o(.text+0x1e3): undefined reference to `gettext'
module_db.o(.text+0x20b): undefined reference to `gettext'
module_db.o(.text+0x44b): undefined reference to `gettext'
module_db.o(.text+0xa50): more undefined references to `gettext' follow
plug_in.o: In function `plug_in_make_menu':
plug_in.o(.text+0x309c): undefined reference to `bindtextdomain'
plug_in.o(.text+0x316e): undefined reference to `bindtextdomain'
plug_in.o(.text+0x31d3): undefined reference to `dgettext'
posterize.o: In function `tools_new_posterize':
posterize.o(.text+0x38): undefined reference to `gettext'
posterize.o: In function `posterize_initialize':
posterize.o(.text+0x10a): undefined reference to `gettext'
posterize.o: In function `posterize_dialog_new':
posterize.o(.text+0x24f): undefined reference to `gettext'
[...]

>How-To-Repeat:
	cd /usr/ports/graphics/gimp1
	make

>Fix:

	Apply the following patch:


diff -urN /usr/ports/graphics/gimp1.orig/Makefile /usr/ports/graphics/gimp1/Makefile
--- /usr/ports/graphics/gimp1.orig/Makefile	Sat Apr 13 11:05:53 2002
+++ /usr/ports/graphics/gimp1/Makefile	Thu May  9 13:55:33 2002
@@ -22,7 +22,9 @@
 		jpeg.9:${PORTSDIR}/graphics/jpeg \
 		mpeg.1:${PORTSDIR}/graphics/mpeg-lib \
 		png.5:${PORTSDIR}/graphics/png \
-		tiff.4:${PORTSDIR}/graphics/tiff
+		tiff.4:${PORTSDIR}/graphics/tiff \
+		intl.2:${PORTSDIR}/devel/gettext \
+		iconv.3:${PORTSDIR}/converters/libiconv
 
 #SHLIBVER?=	${PORTVERSION:S/1.2.//g}
 SHLIBVER?=	2
diff -urN /usr/ports/graphics/gimp1.orig/files/patch-app_Makefile.in /usr/ports/graphics/gimp1/files/patch-app_Makefile.in
--- /usr/ports/graphics/gimp1.orig/files/patch-app_Makefile.in	Thu Jan  1 01:00:00 1970
+++ /usr/ports/graphics/gimp1/files/patch-app_Makefile.in	Thu May  9 15:53:12 2002
@@ -0,0 +1,10 @@
+--- app/Makefile.in.orig	Mon Feb 11 22:46:17 2002
++++ app/Makefile.in	Thu May  9 15:52:22 2002
+@@ -120,6 +120,7 @@
+ INSTOBJEXT = @INSTOBJEXT@
+ INTLBISON = @INTLBISON@
+ INTLDEPS = @INTLDEPS@
++INTLLIBS = @INTLLIBS@
+ INTLOBJS = @INTLOBJS@
+ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
+ IN_GIMP = @IN_GIMP@
diff -urN /usr/ports/graphics/gimp1.orig/files/patch-configure /usr/ports/graphics/gimp1/files/patch-configure
--- /usr/ports/graphics/gimp1.orig/files/patch-configure	Sat Aug 18 08:03:21 2001
+++ /usr/ports/graphics/gimp1/files/patch-configure	Thu May  9 14:14:23 2002
@@ -1,6 +1,6 @@
---- configure.orig	Fri Jul 27 02:13:35 2001
-+++ configure	Wed Aug 15 21:59:29 2001
-@@ -574,7 +574,7 @@
+--- configure.orig	Sun Feb 10 07:21:30 2002
++++ configure	Thu May  9 14:12:57 2002
+@@ -746,7 +746,7 @@
  GIMP_VERSION=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION.$GIMP_MICRO_VERSION
  
  LT_RELEASE=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
@@ -8,8 +8,53 @@
 +LT_CURRENT=2
  LT_REVISION=$GIMP_INTERFACE_AGE
  LT_AGE=`expr $GIMP_BINARY_AGE - $GIMP_INTERFACE_AGE`
+ LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
+@@ -7103,7 +7103,7 @@
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+-LIBS="-lintl  $LIBS"
++LIBS="-lintl.2  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 7109 "configure"
+ #include "confdefs.h"
+@@ -7143,7 +7143,7 @@
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+-LIBS="-lintl  $LIBS"
++LIBS="-lintl.2  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 7149 "configure"
+ #include "confdefs.h"
+@@ -7187,7 +7187,7 @@
+ 	  fi
  
-@@ -7116,8 +7116,8 @@
+           if test "$gt_cv_func_dgettext_libintl" = "yes"; then
+-	    LIBS="$LIBS -lintl";
++	    LIBS="$LIBS -lintl.2";
+           fi
+ 
+ 	  if test "$gt_cv_func_dgettext_libc" = "yes" \
+@@ -7968,7 +7968,7 @@
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   gt_save_LIBS="$LIBS"
+-		LIBS="$LIBS -lintl $LIBICONV"
++		LIBS="$LIBS -lintl.2 $LIBICONV"
+ 		cat > conftest.$ac_ext <<EOF
+ #line 7974 "configure"
+ #include "confdefs.h"
+@@ -8004,7 +8004,7 @@
+ 
+ 
+ 	     if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
+-	       	       	       	       INTLLIBS="-lintl $LIBICONV"
++	       	       	       	       INTLLIBS="-lintl.2 $LIBICONV"
+ 	     fi
+ 
+ 	     gt_save_LIBS="$LIBS"
+@@ -11957,8 +11957,8 @@
  
  fi
  
@@ -20,7 +65,7 @@
  gimpsysconfdir=$sysconfdir/$PACKAGE/$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
  
  localedir='${prefix}/${DATADIRNAME}/locale'
-@@ -8234,11 +8234,6 @@
+@@ -13133,11 +13133,6 @@
    *) # Relative path.
      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
      top_srcdir="$ac_dots$ac_given_srcdir" ;;


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->vanilla 
Responsible-Changed-By: ijliao 
Responsible-Changed-When: Thu May 9 09:21:51 PDT 2002 
Responsible-Changed-Why:  
over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37887 
Responsible-Changed-From-To: vanilla->gnome 
Responsible-Changed-By: vanilla 
Responsible-Changed-When: Thu Sep 19 10:32:54 PDT 2002 
Responsible-Changed-Why:  
Assign to gnome@ 
I am not maintainer long time ago. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37887 

From: Joe Marcus Clarke <marcus@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, thierry@pompo.net
Cc:  
Subject: Re: ports/37887: graphics/gimp1: problems with gettext.
Date: 19 Sep 2002 13:45:56 -0400

 Is this still a problem?  I can't reproduce this under 4.7-RC.
 
 Joe
 -- 
 Joe Marcus Clarke
 FreeBSD GNOME Team	::	marcus@FreeBSD.org
 http://www.FreeBSD.org/gnome
 

From: Thierry Thomas <thierry@pompo.net>
To: Joe Marcus Clarke <marcus@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/37887: graphics/gimp1: problems with gettext.
Date: Thu, 19 Sep 2002 21:11:50 +0200

 Le 19/09/2002  19:45:56 +0200, Joe Marcus Clarke <marcus@FreeBSD.org> crivait:
 > Is this still a problem?  I can't reproduce this under 4.7-RC.
 
 No, it has been fixed:
 
 pkg_info -I -x gimp
 gimp-1.2.3_2,1      the GNU Image Manipulation Program
 
 You can close this PR.
 
 Regards,
 -- 
 Th. Thomas.
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Thu Sep 19 12:23:32 PDT 2002 
State-Changed-Why:  
Submitter reports this has been fixed. 

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