ports/67716: [patch] x11/xscreensaver-gnome breaks in the presence of libutils

Volker Stolz vs at FreeBSD.org
Tue Jun 8 15:40:23 UTC 2004


>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 at 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 at 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|<util.h>|<libutil.h>|' \
+		${WRKSRC}/hacks/phosphor.c ${WRKSRC}/hacks/apple2-main.c
 
 .include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list