From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 1 09:10:14 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 333E816A4CF for ; Mon, 1 Mar 2004 09:10:14 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C75F43D41 for ; Mon, 1 Mar 2004 09:10:14 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i21HADbv041876 for ; Mon, 1 Mar 2004 09:10:13 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i21HADfr041875; Mon, 1 Mar 2004 09:10:13 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 1 Mar 2004 09:10:13 -0800 (PST) Resent-Message-Id: <200403011710.i21HADfr041875@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, Igor Pokrovsky Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95E6516A4D1 for ; Mon, 1 Mar 2004 09:07:36 -0800 (PST) Received: from doom.homeunix.org (9-139.dialup.comset.net [213.172.9.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75E0643D58 for ; Mon, 1 Mar 2004 09:07:33 -0800 (PST) (envelope-from igor@doom.homeunix.org) Received: from doom.homeunix.org (localhost [127.0.0.1]) by doom.homeunix.org (8.12.11/8.12.11) with ESMTP id i21H7UKe090951 for ; Mon, 1 Mar 2004 20:07:31 +0300 (MSK) (envelope-from igor@doom.homeunix.org) Received: (from igor@localhost) by doom.homeunix.org (8.12.11/8.12.11/Submit) id i21GYMnJ090780; Mon, 1 Mar 2004 19:34:22 +0300 (MSK) (envelope-from igor) Message-Id: <200403011634.i21GYMnJ090780@doom.homeunix.org> Date: Mon, 1 Mar 2004 19:34:22 +0300 (MSK) From: Igor Pokrovsky To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/63602: Update port: graphics/glfw fix build on 5.x alpha X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Igor Pokrovsky List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2004 17:10:14 -0000 >Number: 63602 >Category: ports >Synopsis: Update port: graphics/glfw fix build on 5.x alpha >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Mar 01 09:10:13 PST 2004 >Closed-Date: >Last-Modified: >Originator: Igor Pokrovsky >Release: FreeBSD 4.9-STABLE i386 >Organization: >Environment: System: FreeBSD doom.homeunix.org 4.9-STABLE FreeBSD 4.9-STABLE #0: Thu Feb 26 21:34:55 MSK 2004 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386 >Description: Fix build on 5.x alpha (removed optimization opts) >How-To-Repeat: >Fix: --- glfw.diff begins here --- diff -ru /usr/ports/graphics/glfw/Makefile glfw/Makefile --- /usr/ports/graphics/glfw/Makefile Thu Feb 26 09:01:14 2004 +++ glfw/Makefile Mon Mar 1 19:27:16 2004 @@ -17,12 +17,6 @@ USE_GL= yes ALL_TARGET= x11 -.include - -.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102 -BROKEN= "Does not compile on alpha 5.x" -.endif - do-configure: @(cd ${WRKSRC} && \ ${SETENV} CC="${CC}" \ @@ -44,4 +38,4 @@ ${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${DOCSDIR} .endif -.include +.include diff -ru /usr/ports/graphics/glfw/files/patch-compile.sh glfw/files/patch-compile.sh --- /usr/ports/graphics/glfw/files/patch-compile.sh Sun Jan 25 13:39:43 2004 +++ glfw/files/patch-compile.sh Mon Mar 1 19:25:02 2004 @@ -1,5 +1,5 @@ --- compile.sh.orig Wed Jan 8 12:19:48 2003 -+++ compile.sh Sat Jan 24 18:39:15 2004 ++++ compile.sh Mon Mar 1 19:15:54 2004 @@ -69,10 +69,10 @@ ########################################################################## if [ "x$force_gcc" = xyes ]; then @@ -76,12 +76,6 @@ - cat conftest.c >&5 -fi -rm -f conftest* -- --echo " sysconf support: ""$has_sysconf" 1>&6 --if [ "x$has_sysconf" = xyes ]; then -- CFLAGS="$CFLAGS -D_GLFW_HAS_SYSCONF" --fi --echo " " 1>&6 +#if { (eval echo $config_script: \"$link\") 1>&5; (eval $link) 2>&5; }; then +# rm -rf conftest* +# has_sysconf=yes @@ -90,7 +84,12 @@ +# cat conftest.c >&5 +#fi +#rm -f conftest* -+ + +-echo " sysconf support: ""$has_sysconf" 1>&6 +-if [ "x$has_sysconf" = xyes ]; then +- CFLAGS="$CFLAGS -D_GLFW_HAS_SYSCONF" +-fi +-echo " " 1>&6 +#echo " sysconf support: ""$has_sysconf" 1>&6 +#if [ "x$has_sysconf" = xyes ]; then +# CFLAGS="$CFLAGS -D_GLFW_HAS_SYSCONF" @@ -99,19 +98,26 @@ ########################################################################## -@@ -337,7 +339,8 @@ +@@ -337,17 +339,18 @@ ########################################################################## # Post fixups ########################################################################## -if [ "x$CC" = xgcc ]; then +- CFLAGS_SPEED="-c -I. -I.. $CFLAGS -O3 -ffast-math -Wall" +- CFLAGS="-c -I. -I.. $CFLAGS -Os -Wall" +- CFLAGS_LINK="-O3 -ffast-math -Wall" +CFLAGS_NO_COMPILE="${CFLAGS}" +if [ "x$use_gcc" = xyes ]; then - CFLAGS_SPEED="-c -I. -I.. $CFLAGS -O3 -ffast-math -Wall" - CFLAGS="-c -I. -I.. $CFLAGS -Os -Wall" - CFLAGS_LINK="-O3 -ffast-math -Wall" -@@ -346,8 +349,8 @@ - CFLAGS="-c -I. -I.. $CFLAGS -O" - CFLAGS_LINK="-O" ++ CFLAGS_SPEED="-c -I. -I.. $CFLAGS -Wall" ++ CFLAGS="-c -I. -I.. $CFLAGS -Wall" ++ CFLAGS_LINK="-Wall" + else +- CFLAGS_SPEED="-c -I. -I.. $CFLAGS -O" +- CFLAGS="-c -I. -I.. $CFLAGS -O" +- CFLAGS_LINK="-O" ++ CFLAGS_SPEED="-c -I. -I.. $CFLAGS" ++ CFLAGS="-c -I. -I.. $CFLAGS" ++ CFLAGS_LINK="" fi -CFLAGS_LINK="-I../include $CFLAGS_LINK" -LFLAGS="$LFLAGS -L../lib/x11 -s -lglfw -lGLU $LIBS -lpthread -lm" --- glfw.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: