svn commit: r399540 - in head/audio/openal-soft: . files

Danilo Egea Gondolfo danilo at FreeBSD.org
Sat Oct 17 16:32:54 UTC 2015


Author: danilo
Date: Sat Oct 17 16:32:52 2015
New Revision: 399540
URL: https://svnweb.freebsd.org/changeset/ports/399540

Log:
  - Add a workaround for a problem caused by clang
  
  For some reason clang is breaking the code when openal-soft is built with
  optimizations. If the file alBuffer.c is built with -O1 the problem don't
  happens. See https://github.com/kcat/openal-soft/issues/18
  The problem seems to happen just on CURRENT due the clang version.
  
  PR:		199488, 203818
  Tested by:	ohartman at zedat.fu-berlin.de
  Approved by:	mva
  MFH:		2015Q4

Added:
  head/audio/openal-soft/files/patch-OpenAL32_alBuffer.c   (contents, props changed)
Modified:
  head/audio/openal-soft/Makefile

Modified: head/audio/openal-soft/Makefile
==============================================================================
--- head/audio/openal-soft/Makefile	Sat Oct 17 14:41:30 2015	(r399539)
+++ head/audio/openal-soft/Makefile	Sat Oct 17 16:32:52 2015	(r399540)
@@ -2,7 +2,7 @@
 
 PORTNAME=	openal-soft
 PORTVERSION=	1.16.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	audio
 MASTER_SITES=	http://kcat.strangesoft.net/openal-releases/
 

Added: head/audio/openal-soft/files/patch-OpenAL32_alBuffer.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/openal-soft/files/patch-OpenAL32_alBuffer.c	Sat Oct 17 16:32:52 2015	(r399540)
@@ -0,0 +1,11 @@
+--- OpenAL32/alBuffer.c.orig	2015-09-21 20:22:13 UTC
++++ OpenAL32/alBuffer.c
+@@ -1179,7 +1179,7 @@ static ALboolean DecomposeFormat(ALenum 
+         { AL_7POINT1_16_SOFT,  FmtX71, FmtShort },
+         { AL_7POINT1_32F_SOFT, FmtX71, FmtFloat },
+     };
+-    ALuint i;
++    volatile ALuint i;
+ 
+     for(i = 0;i < COUNTOF(list);i++)
+     {


More information about the svn-ports-head mailing list