From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 8 15:40:23 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0651716A4CE for ; Tue, 8 Jun 2004 15:40:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE80B43D54 for ; Tue, 8 Jun 2004 15:40:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i58FeMPu028583 for ; Tue, 8 Jun 2004 15:40:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i58FeM5W028582; Tue, 8 Jun 2004 15:40:22 GMT (envelope-from gnats) Resent-Date: Tue, 8 Jun 2004 15:40:22 GMT Resent-Message-Id: <200406081540.i58FeM5W028582@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Volker Stolz Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBEAA16A4CE; Tue, 8 Jun 2004 15:36:17 +0000 (GMT) Received: from atlas.informatik.rwth-aachen.de (atlas.informatik.RWTH-Aachen.DE [137.226.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E254343D4C; Tue, 8 Jun 2004 15:36:16 +0000 (GMT) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from menelaos.informatik.rwth-aachen.de (menelaos.informatik.RWTH-Aachen.DE [137.226.194.73]) 8.11.1-0.5-michaelw-20030918) with ESMTP id i58FaF431074; Tue, 8 Jun 2004 17:36:15 +0200 Received: (from stolz@localhost)i58FaFPC037980; Tue, 8 Jun 2004 17:36:15 +0200 (CEST) (envelope-from stolz) Message-Id: <200406081536.i58FaFPC037980@menelaos.informatik.rwth-aachen.de> Date: Tue, 8 Jun 2004 17:36:15 +0200 (CEST) From: Volker Stolz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: gnome@FreeBSD.org Subject: ports/67716: [patch] x11/xscreensaver-gnome breaks in the presence of libutils X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Volker Stolz List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 15:40:23 -0000 >Number: 67716 >Category: ports >Synopsis: [patch] x11/xscreensaver-gnome breaks in the presence of libutils >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 08 15:40:21 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Volker Stolz >Release: FreeBSD 4.9-STABLE i386 >Organization: Lehrstuhl für Informatik II >Environment: System: FreeBSD menelaos.informatik.rwth-aachen.de 4.9-STABLE FreeBSD 4.9-STABLE #15: Thu Mar 25 15:34:34 CET 2004 root@menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386 >Description: The port snaps up a wrong util.h if libutil.h is installed: gmake[1]: Entering directory `/usr/ports/x11/xscreensaver-gnome/work/xscreensaver-4.16/hacks' cc -Wall -Wstrict-prototypes -Wnested-externs -std=c89 -U__STRICT_ANSI__ -c -I. -I. -I./../utils -I.. -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/X11R6/include/libglade-2.0 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/include -DSTANDALONE -DHAVE_CONFIG_H -O -pipe -g -I/usr/local/include -I/usr/X11R6/include phosphor.c In file included from phosphor.c:34: /usr/local/include/util.h:95: syntax error before `/' gmake[1]: *** [phosphor.o] Error 1 gmake[1]: Leaving directory `/usr/ports/x11/xscreensaver-gnome/work/xscreensaver-4.16/hacks' gmake: *** [all] Error 5 *** Error code 2 Stop in /usr/ports/x11/xscreensaver-gnome. xscreensaver-gnome@menelaos [17:10:37]> pkg_info -W /usr/local/include/util.h /usr/local/include/util.h was installed by package libutils-1.0.3_1 >How-To-Repeat: - Install libutils - Try to build xscreensaver >Fix: HAVE_UTIL_H is tested via configure. I think this should read libutil.h, because that's where forkpty comes from. Note that the following patch works with both with and without libutils installed. This bug should be reported upstream, since ./configure ist testing the wrong things (and will mean that things are a bit out-of-sync in our port: - with libutils, it will use the correct header-file - without libutils, the libutil.h will be #ifdef'ed out, but still dtrt) If nobody objects, I'll commit this and do the reporting. Index: Makefile =================================================================== RCS file: /usr/freebsdcvs/cvs-ports/ports/x11/xscreensaver-gnome/Makefile,v retrieving revision 1.32 diff -u -r1.32 Makefile --- Makefile 27 May 2004 02:39:04 -0000 1.32 +++ Makefile 8 Jun 2004 15:25:34 -0000 @@ -93,5 +93,7 @@ ${WRKSRC}/hacks/glx/klein.c @${REINPLACE_CMD} -E -e 's|^[[:space:]]*GL_LIBS="${PTHREAD_LIBS}"|#|g' \ ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|||' \ + ${WRKSRC}/hacks/phosphor.c ${WRKSRC}/hacks/apple2-main.c .include >Release-Note: >Audit-Trail: >Unformatted: