pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/openexr Add patch to fix Solaris 10 build, fr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ecb8a6c60857
branches:  trunk
changeset: 621067:ecb8a6c60857
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Thu Jul 04 06:25:23 2013 +0000

description:
Add patch to fix Solaris 10 build, from Joern Clausen in PR 47867,
except that I rearranged the patch a bit and hopefully didn't mess
it up.

diffstat:

 graphics/openexr/distinfo                                 |   3 +-
 graphics/openexr/patches/patch-IlmImf_ImfSystemSpecific.h |  20 +++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 7e813c32fa9e -r ecb8a6c60857 graphics/openexr/distinfo
--- a/graphics/openexr/distinfo Thu Jul 04 05:40:14 2013 +0000
+++ b/graphics/openexr/distinfo Thu Jul 04 06:25:23 2013 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.19 2013/05/08 17:49:11 adam Exp $
+$NetBSD: distinfo,v 1.20 2013/07/04 06:25:23 dholland Exp $
 
 SHA1 (openexr-2.0.0.tar.gz) = 774ae69ac01bbe4443b6fa0a9b12e276d0af44f5
 RMD160 (openexr-2.0.0.tar.gz) = a8f69447bcff1d7c4881b33fdb12f61a702c2caf
 Size (openexr-2.0.0.tar.gz) = 12589533 bytes
+SHA1 (patch-IlmImf_ImfSystemSpecific.h) = f36d049085e42beabcf5f7af5354009391a1f9f2
 SHA1 (patch-aa) = e8a6349203327937923367995a6721a5159ac7cf
 SHA1 (patch-ab) = df9a5ceea5702c08265ea884813c965122241802
diff -r 7e813c32fa9e -r ecb8a6c60857 graphics/openexr/patches/patch-IlmImf_ImfSystemSpecific.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/openexr/patches/patch-IlmImf_ImfSystemSpecific.h Thu Jul 04 06:25:23 2013 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-IlmImf_ImfSystemSpecific.h,v 1.1 2013/07/04 06:25:23 dholland Exp $
+
+Work around lack of posix_memalign() on (some?) Solaris, from PR 47867.
+
+--- IlmImf/ImfSystemSpecific.h~        2013-04-09 17:08:02.000000000 +0000
++++ IlmImf/ImfSystemSpecific.h
+@@ -60,9 +60,13 @@ static bool GLOBAL_SYSTEM_LITTLE_ENDIAN 
+ 
+ static void* EXRAllocAligned(size_t size, size_t alignment)
+ {
++#ifdef __sun
++    return memalign(alignment, size);
++#else
+     void* ptr = 0;
+     posix_memalign(&ptr, alignment, size);
+     return ptr;
++#endif
+ }
+ 
+ 



Home | Main Index | Thread Index | Old Index