From nork@FreeBSD.org  Wed Jul  9 08:13:25 2003
Return-Path: <nork@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D7EBF37B401
	for <FreeBSD-gnats-submit@FreeBSD.org>; Wed,  9 Jul 2003 08:13:25 -0700 (PDT)
Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 21DD743FBD
	for <FreeBSD-gnats-submit@FreeBSD.org>; Wed,  9 Jul 2003 08:13:25 -0700 (PDT)
	(envelope-from nork@FreeBSD.org)
Received: from nd250009.gab.xdsl.ne.jp (nadesico.ninth-nine.com [192.168.36.3]) by sakura.ninth-nine.com (8.12.9/8.12.9/NinthNine) with SMTP id h69FDOBL043195 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Jul 2003 00:13:24 +0900 (JST) (envelope-from noMessage-Id: <200307091513.h69FDOBL043195@sakura.ninth-nine.com>
Date: Thu, 10 Jul 2003 00:13:24 +0900 (JST)
From: Norikatsu Shigemura <nork@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: x11/libpanel implicitly depends on libgnugetopt

>Number:         54267
>Category:       ports
>Synopsis:       x11/libpanel implicitly depends on libgnugetopt
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 09 08:20:17 PDT 2003
>Closed-Date:    Fri Jul 11 22:57:49 PDT 2003
>Last-Modified:  Fri Jul 11 22:57:49 PDT 2003
>Originator:     Norikatsu Shigemura
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
Ensure Technology Ltd. (http://www.ensure-tech.co.jp)
>Environment:
System: FreeBSD nadesico.ninth-nine.com 5.1-CURRENT FreeBSD 5.1-CURRENT #16: Tue Jul 1 01:42:04 JST 2003 nork@nadesico.ninth-nine.com:/usr/obj/usr/src/sys/NADESICO i386
>Description:
	x11/libpannel required libgnugetopt.
>How-To-Repeat:
	grep getopt appletsConf.sh.in.
>Fix:
--- diff begins here ---
diff -urN libpanel.orig/Makefile libpanel/Makefile
--- libpanel.orig/Makefile	Tue Apr  8 17:02:24 2003
+++ libpanel/Makefile	Thu Jul 10 00:01:07 2003
@@ -19,7 +19,8 @@
 GNOME_DESKTOP_VERSION=1
 USE_GNOME=	gnomelibs
 INSTALLS_SHLIB=	yes
-MAKE_ENV=	X11BASE="${X11BASE}" LOCALBASE="${LOCALBASE}"
+USE_GETOPT_LONG=yes
+MAKE_ENV=	X11BASE="${X11BASE}" LOCALBASE="${LOCALBASE}" LDFLAGS="${LDFLAGS}"
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/libpanel_applet.so.5 ${PREFIX}/lib
diff -urN libpanel.orig/files/patch-Makefile libpanel/files/patch-Makefile
--- libpanel.orig/files/patch-Makefile	Thu Jan  1 09:00:00 1970
+++ libpanel/files/patch-Makefile	Thu Jul 10 00:03:18 2003
@@ -0,0 +1,12 @@
+--- Makefile.orig	Wed Jul 10 21:34:30 2002
++++ Makefile	Thu Jul 10 00:01:56 2003
+@@ -30,7 +30,8 @@
+ 	touch my_gnome_panel_idl
+ 
+ appletsConf.sh: appletsConf.sh.in
+-	sed 's|%%LOCALBASE%%|${LOCALBASE}|g ; s|%%X11BASE%%|${X11BASE}|g' \
++	sed -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; s|%%X11BASE%%|${X11BASE}|g' \
++		-e 's|%%GNUGETOPT%%|${LDFLAGS}|g' \
+ 		< appletsConf.sh.in > appletsConf.sh
+ 
+ .include <bsd.lib.mk>
diff -urN libpanel.orig/files/patch-appletsConf.sh.in libpanel/files/patch-appletsConf.sh.in
--- libpanel.orig/files/patch-appletsConf.sh.in	Thu Jan  1 09:00:00 1970
+++ libpanel/files/patch-appletsConf.sh.in	Thu Jul 10 00:02:41 2003
@@ -0,0 +1,10 @@
+--- appletsConf.sh.in.orig	Wed Jul 10 19:28:23 2002
++++ appletsConf.sh.in	Thu Jul 10 00:02:08 2003
+@@ -2,6 +2,6 @@
+ # Configuration file for creating GNOME panel applets
+ #
+ APPLETS_LIBDIR="-Wl,-E -L%%X11BASE%%/lib -L%%LOCALBASE%%/lib"
+-APPLETS_LIBS="-lpanel_applet -Wl,-E -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lwrap -lXpm -ljpeg -lgnomeui -lart_lgpl -lgdk_imlib -ltiff -lungif -lpng -lz -lSM -lICE -lgtk12 -lgdk12 -lgmodule12 -lXext -lX11 -lgnome -lgnomesupport -lintl -lesd -lgnugetopt -laudiofile -lm -lglib12"
++APPLETS_LIBS="-lpanel_applet -Wl,-E -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lwrap -lXpm -ljpeg -lgnomeui -lart_lgpl -lgdk_imlib -ltiff -lungif -lpng -lz -lSM -lICE -lgtk12 -lgdk12 -lgmodule12 -lXext -lX11 -lgnome -lgnomesupport -lintl -lesd %%GNUGETOPT%% -laudiofile -lm -lglib12"
+ APPLETS_INCLUDEDIR="-I%%X11BASE%%/include/gnome-1.0 -I%%X11BASE%%/include -DNEED_GNOMESUPPORT_H -I%%X11BASE%%/lib/gnome-libs/include -I%%LOCALBASE%%/include/glib12 -I%%LOCALBASE%%/include/orbit-1.0 -I%%LOCALBASE%%/include -I%%X11BASE%%/include/gtk12 -I%%X11BASE%%/include/libcapplet1 -I%%X11BASE%%/include/gnome-1.0 -I%%X11BASE%%/include -DNEED_GNOMESUPPORT_H -I%%X11BASE%%/lib/gnome-libs/include -I%%LOCALBASE%%/include/glib12 -I%%LOCALBASE%%/include/orbit-1.0 -I%%LOCALBASE%%/include -I%%X11BASE%%/include/gtk12"
+ MODULE_VERSION="applets-1.4.1"
--- diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: nork 
Responsible-Changed-When: Wed Jul 9 08:23:36 PDT 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54267 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Fri Jul 11 22:57:39 PDT 2003 
State-Changed-Why:  
Committed, thanks! 

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