Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2001 02:14:28 +0800 (CST)
From:      leeym@cae.ce.ntu.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        plambert@plambert.net, billf@freebsd.org
Subject:   ports/26992: update port: net/mtr: disable GTK
Message-ID:  <200104301814.f3UIESD92406@utopia.leeym.com>

next in thread | raw e-mail | index | archive | help

>Number:         26992
>Category:       ports
>Synopsis:       update port: net/mtr: disable GTK
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 30 11:20:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 4.3-STABLE FreeBSD 4.3-STABLE #0: Sun Apr 29 05:39:46 CST 2001 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386


	
>Description:

disable run {aclocal,autoheader,config.status} twice.
make it smoothly to build mtr without GTK support.
CC'd to maintainer

>How-To-Repeat:
	
>Fix:

diff -ruN /usr/ports/net/mtr/Makefile mtr/Makefile
--- /usr/ports/net/mtr/Makefile	Thu Oct  5 14:47:39 2000
+++ mtr/Makefile	Tue May  1 02:00:16 2001
@@ -35,7 +35,8 @@
 USE_XLIB=	yes
 USE_GTK=	yes
 .else
-CONFIGURE_ARGS+=--with-gtk-prefix=/nopath
+CONFIGURE_ARGS+=--disable-gtktest
+EXTRA_PATCHES=	${FILESDIR}/disable-gtk-patch
 .endif
 
 do-install:
diff -ruN /usr/ports/net/mtr/files/disable-gtk-patch mtr/files/disable-gtk-patch
--- /usr/ports/net/mtr/files/disable-gtk-patch	Thu Jan  1 08:00:00 1970
+++ mtr/files/disable-gtk-patch	Tue May  1 01:58:01 2001
@@ -0,0 +1,45 @@
+--- configure.in.orig	Tue May  1 01:16:44 2001
++++ configure.in	Tue May  1 01:17:03 2001
+@@ -39,12 +39,6 @@
+ 
+ AC_CHECK_LIB(m, floor, , AC_MSG_ERROR(No math library found))
+ 
+-AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS"
+-		   LIBS="$LIBS $GTK_LIBS",
+-		   AC_MSG_WARN(Building without GTK+ display support)
+-		   AC_DEFINE(NO_GTK)
+-		   GTK_OBJ=)
+-
+ AC_CHECK_FUNC(socket, , 
+   AC_CHECK_LIB(socket, socket, , AC_MSG_ERROR(No socket library found)))
+ 
+--- Makefile.in.orig	Tue May  1 01:56:16 2001
++++ Makefile.in	Tue May  1 01:57:23 2001
+@@ -123,17 +123,6 @@
+ all: all-redirect
+ .SUFFIXES:
+ .SUFFIXES: .S .c .o .s
+-Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
+-	cd $(top_builddir) \
+-	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
+-
+-$(ACLOCAL_M4):  configure.in 
+-	cd $(srcdir) && $(ACLOCAL)
+-
+-config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+-	$(SHELL) ./config.status --recheck
+-$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
+-	cd $(srcdir) && $(AUTOCONF)
+ 
+ config.h: stamp-h
+ 	@if test ! -f $@; then \
+@@ -150,9 +139,6 @@
+ 		rm -f $(srcdir)/stamp-h.in; \
+ 		$(MAKE) $(srcdir)/stamp-h.in; \
+ 	else :; fi
+-$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
+-	cd $(top_srcdir) && $(AUTOHEADER)
+-	@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
+ 
+ mostlyclean-hdr:
+ 
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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