pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics Patch Mesa's Makefile to use '-fno-strict-ali...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b4aa0e2d67f
branches:  trunk
changeset: 463386:0b4aa0e2d67f
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Sun Nov 09 02:23:18 2003 +0000

description:
Patch Mesa's Makefile to use '-fno-strict-aliasing' rather than '-fstrict-aliasing',
as the code contains unsafe use of aliased pointers.
As suggested by tls@ in PR pkg/23381, closing said PR.

diffstat:

 graphics/MesaLib/Makefile         |   3 ++-
 graphics/MesaLib/distinfo         |   3 ++-
 graphics/MesaLib/patches/patch-ad |  13 +++++++++++++
 graphics/glu/Makefile             |   3 ++-
 graphics/glu/distinfo             |   3 ++-
 graphics/glu/patches/patch-aa     |  13 +++++++++++++
 graphics/glut/Makefile            |   3 ++-
 graphics/glut/distinfo            |   3 ++-
 graphics/glut/patches/patch-ab    |  13 +++++++++++++
 9 files changed, 51 insertions(+), 6 deletions(-)

diffs (122 lines):

diff -r 4fedccd60530 -r 0b4aa0e2d67f graphics/MesaLib/Makefile
--- a/graphics/MesaLib/Makefile Sun Nov 09 00:57:12 2003 +0000
+++ b/graphics/MesaLib/Makefile Sun Nov 09 02:23:18 2003 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2003/09/29 21:30:28 jschauma Exp $
+# $NetBSD: Makefile,v 1.25 2003/11/09 02:23:18 jschauma Exp $
 
 PKGNAME=               MesaLib-${MESA_VERSION}
+PKGREVISION=           1
 WRKSRC=                        ${WRKDIR}/${DISTNAME:S/Lib//}
 MAINTAINER=            rh%NetBSD.org@localhost
 COMMENT=               Graphics library similar to SGI's OpenGL
diff -r 4fedccd60530 -r 0b4aa0e2d67f graphics/MesaLib/distinfo
--- a/graphics/MesaLib/distinfo Sun Nov 09 00:57:12 2003 +0000
+++ b/graphics/MesaLib/distinfo Sun Nov 09 02:23:18 2003 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.13 2003/09/29 21:30:28 jschauma Exp $
+$NetBSD: distinfo,v 1.14 2003/11/09 02:23:18 jschauma Exp $
 
 SHA1 (MesaLib-5.0.2.tar.bz2) = 948b9e1b11d1341a4230a081469f4636f702ebdc
 Size (MesaLib-5.0.2.tar.bz2) = 1704278 bytes
 SHA1 (patch-aa) = 7fa63dca0edfc41812b5432cbabd861ec52cec33
 SHA1 (patch-ac) = 30d3f08c2d9bbfe648a2ed2cbfade6c30a7413fe
+SHA1 (patch-ad) = 807b07b1505735f23dd4148c8c838df08af6333e
diff -r 4fedccd60530 -r 0b4aa0e2d67f graphics/MesaLib/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/MesaLib/patches/patch-ad Sun Nov 09 02:23:18 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2003/11/09 02:23:18 jschauma Exp $
+
+--- configure.orig     2003-11-08 19:10:36.000000000 -0500
++++ configure  2003-11-08 19:10:53.000000000 -0500
+@@ -7121,7 +7121,7 @@
+ if test "x$enable_optim" = xyes; then
+     if test "x$enable_debug" = xno && test "x$enable_prof" = xno; then
+     if test "x$GCC" = xyes; then
+-      CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing"
++      CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fno-strict-aliasing"
+       case "$host" in
+       i*86-*-*) CFLAGS="$CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
+       esac
diff -r 4fedccd60530 -r 0b4aa0e2d67f graphics/glu/Makefile
--- a/graphics/glu/Makefile     Sun Nov 09 00:57:12 2003 +0000
+++ b/graphics/glu/Makefile     Sun Nov 09 02:23:18 2003 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2003/09/18 16:25:11 jmmv Exp $
+# $NetBSD: Makefile,v 1.20 2003/11/09 02:23:18 jschauma Exp $
 
 PKGNAME=               ${DISTNAME:C/MesaLib/glu/}
+PKGREVISION=           1
 WRKSRC=                        ${WRKDIR}/${DISTNAME:C/Lib//}
 MAINTAINER=            rh%NetBSD.org@localhost
 COMMENT=               GLU polygon tesselation facility for Mesa
diff -r 4fedccd60530 -r 0b4aa0e2d67f graphics/glu/distinfo
--- a/graphics/glu/distinfo     Sun Nov 09 00:57:12 2003 +0000
+++ b/graphics/glu/distinfo     Sun Nov 09 02:23:18 2003 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.12 2003/09/29 21:30:28 jschauma Exp $
+$NetBSD: distinfo,v 1.13 2003/11/09 02:23:18 jschauma Exp $
 
 SHA1 (MesaLib-5.0.2.tar.bz2) = 948b9e1b11d1341a4230a081469f4636f702ebdc
 Size (MesaLib-5.0.2.tar.bz2) = 1704278 bytes
+SHA1 (patch-aa) = 807b07b1505735f23dd4148c8c838df08af6333e
diff -r 4fedccd60530 -r 0b4aa0e2d67f graphics/glu/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/glu/patches/patch-aa     Sun Nov 09 02:23:18 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.10 2003/11/09 02:23:18 jschauma Exp $
+
+--- configure.orig     2003-11-08 19:10:36.000000000 -0500
++++ configure  2003-11-08 19:10:53.000000000 -0500
+@@ -7121,7 +7121,7 @@
+ if test "x$enable_optim" = xyes; then
+     if test "x$enable_debug" = xno && test "x$enable_prof" = xno; then
+     if test "x$GCC" = xyes; then
+-      CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing"
++      CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fno-strict-aliasing"
+       case "$host" in
+       i*86-*-*) CFLAGS="$CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
+       esac
diff -r 4fedccd60530 -r 0b4aa0e2d67f graphics/glut/Makefile
--- a/graphics/glut/Makefile    Sun Nov 09 00:57:12 2003 +0000
+++ b/graphics/glut/Makefile    Sun Nov 09 02:23:18 2003 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2003/09/18 16:25:12 jmmv Exp $
+# $NetBSD: Makefile,v 1.21 2003/11/09 02:23:18 jschauma Exp $
 
 PKGNAME=               ${DISTNAME:S/MesaLib/glut/}
+PKGREVISION=           1
 DISTFILES=             ${DISTNAME}${EXTRACT_SUFX}
 DISTFILES+=            ${DISTNAME:S/MesaLib/MesaDemos/}${EXTRACT_SUFX}
 WRKSRC=                        ${WRKDIR}/${DISTNAME:S/Lib//}
diff -r 4fedccd60530 -r 0b4aa0e2d67f graphics/glut/distinfo
--- a/graphics/glut/distinfo    Sun Nov 09 00:57:12 2003 +0000
+++ b/graphics/glut/distinfo    Sun Nov 09 02:23:18 2003 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.15 2003/09/29 21:30:28 jschauma Exp $
+$NetBSD: distinfo,v 1.16 2003/11/09 02:23:18 jschauma Exp $
 
 SHA1 (MesaLib-5.0.2.tar.bz2) = 948b9e1b11d1341a4230a081469f4636f702ebdc
 Size (MesaLib-5.0.2.tar.bz2) = 1704278 bytes
 SHA1 (MesaDemos-5.0.2.tar.bz2) = 012d635c3e39dfa391b1183425f0630b1f428985
 Size (MesaDemos-5.0.2.tar.bz2) = 896368 bytes
 SHA1 (patch-aa) = d7a7dab7da7068c814a28b996bb3af6c24b48801
+SHA1 (patch-ab) = 807b07b1505735f23dd4148c8c838df08af6333e
diff -r 4fedccd60530 -r 0b4aa0e2d67f graphics/glut/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/glut/patches/patch-ab    Sun Nov 09 02:23:18 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2003/11/09 02:23:18 jschauma Exp $
+
+--- configure.orig     2003-11-08 19:10:36.000000000 -0500
++++ configure  2003-11-08 19:10:53.000000000 -0500
+@@ -7121,7 +7121,7 @@
+ if test "x$enable_optim" = xyes; then
+     if test "x$enable_debug" = xno && test "x$enable_prof" = xno; then
+     if test "x$GCC" = xyes; then
+-      CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing"
++      CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fno-strict-aliasing"
+       case "$host" in
+       i*86-*-*) CFLAGS="$CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
+       esac



Home | Main Index | Thread Index | Old Index