From a2c4cd1ed00e8b48c971f038ea6b99ae55d1fa33 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sun, 17 Jun 2007 06:27:45 +0000 Subject: This port contains an incorrect configure test that tries to test for the pthread_create() function by doing the following | char pthread_create (); | int | main () | { | pthread_create (); | ; | return 0; | } This is completely bogus (pthread_create() requires arguments), so this causes undefined behaviour. One such undefined behaviour seen in practise is an infinite loop. Disable the port until someone cares to fix this. Also shuffle the rxvt PATCH_DEPENDS (!) later, to give a chance for the WITHOUT_X11 to be set. This also looks pretty bogus, rxvt in fact does not appear to be needed for patching. --- editors/bed/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'editors/bed') diff --git a/editors/bed/Makefile b/editors/bed/Makefile index 1fa2235745a1..b3fae83492b1 100644 --- a/editors/bed/Makefile +++ b/editors/bed/Makefile @@ -17,6 +17,8 @@ COMMENT= Variable dataformat binary editor BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash +IGNORE= has a broken test for pthread_create() (wrong prototype and calling conventions) causing an infinite loop. + USE_GCC= 3.4 USE_GMAKE= yes GNU_CONFIGURE= yes @@ -29,10 +31,6 @@ MANCOMPRESSED= yes .include -.if !defined(WITHOUT_X11) -PATCH_DEPENDS+= rxvt:${PORTSDIR}/x11/rxvt -.endif - # Check for menubar support in "x11/rxvt". In case of failure, disable X11 if # BATCH or PACKAGE_BUILDING, and IGNORE otherwise. .if !defined(WITHOUT_X11) @@ -48,6 +46,10 @@ IGNORE= needs "x11/rxvt" to be compiled with the WITH_MENUBAR option to enable . endif .endif +.if !defined(WITHOUT_X11) +PATCH_DEPENDS+= rxvt:${PORTSDIR}/x11/rxvt +.endif + .if !defined(WITHOUT_X11) RUN_DEPENDS+= rxvt:${PORTSDIR}/x11/rxvt PLIST_SUB+= X11="" -- cgit v1.2.3