pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc7 Restrict patch to specific circumstances on ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27c14a681235
branches:  trunk
changeset: 362367:27c14a681235
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri May 12 18:10:56 2017 +0000

description:
Restrict patch to specific circumstances on SunOS.

diffstat:

 lang/gcc7/distinfo                                         |   4 +-
 lang/gcc7/patches/patch-libstdc++-v3_libsupc++_new__opa.cc |  22 +++++++------
 2 files changed, 14 insertions(+), 12 deletions(-)

diffs (47 lines):

diff -r dc4c037addd1 -r 27c14a681235 lang/gcc7/distinfo
--- a/lang/gcc7/distinfo        Fri May 12 15:08:48 2017 +0000
+++ b/lang/gcc7/distinfo        Fri May 12 18:10:56 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2017/05/10 15:00:09 jperkin Exp $
+$NetBSD: distinfo,v 1.4 2017/05/12 18:10:56 jperkin Exp $
 
 SHA1 (gcc-7.1.0.tar.bz2) = 9f1e907f27eadefe7d5f7567c09e17805d9c8837
 RMD160 (gcc-7.1.0.tar.bz2) = a228dc45a09eda91b1a201d234f9013b3009b461
@@ -35,5 +35,5 @@
 SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__base.h) = 014d442c885b9c51d1a4af05205279c274a9559d
 SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__configure__char.cc) = 06bba6da02344f76c26eed765a7cb022c035994e
 SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__inline.h) = 626fc1f9c035ac5cef30a92d525af4e778835ebf
-SHA1 (patch-libstdc++-v3_libsupc++_new__opa.cc) = 4f5c5e1a2975d13b52736328dcdd6a8bcd3b3b73
+SHA1 (patch-libstdc++-v3_libsupc++_new__opa.cc) = c23679d5bd18ba82c578eb2909a8055bf37c34cd
 SHA1 (patch-libstdc++-v3_libsupc++_unwind-cxx.h) = 9784bfa4323f8498b36565d0fea28fce69ffdbb1
diff -r dc4c037addd1 -r 27c14a681235 lang/gcc7/patches/patch-libstdc++-v3_libsupc++_new__opa.cc
--- a/lang/gcc7/patches/patch-libstdc++-v3_libsupc++_new__opa.cc        Fri May 12 15:08:48 2017 +0000
+++ b/lang/gcc7/patches/patch-libstdc++-v3_libsupc++_new__opa.cc        Fri May 12 18:10:56 2017 +0000
@@ -1,15 +1,17 @@
-$NetBSD: patch-libstdc++-v3_libsupc++_new__opa.cc,v 1.1 2017/05/10 15:00:09 jperkin Exp $
+$NetBSD: patch-libstdc++-v3_libsupc++_new__opa.cc,v 1.2 2017/05/12 18:10:56 jperkin Exp $
 
-Ensure we can find std::aligned_alloc if using it.
+Ensure we can find SunOS std::aligned_alloc if using it.
 
 --- libstdc++-v3/libsupc++/new_opa.cc.orig     2017-01-26 14:30:45.000000000 +0000
 +++ libstdc++-v3/libsupc++/new_opa.cc
-@@ -82,6 +82,8 @@ aligned_alloc (std::size_t al, std::size
-   return aligned_ptr;
- }
- #endif
-+#else
+@@ -31,6 +31,10 @@
+ using std::new_handler;
+ using std::bad_alloc;
+ 
++#if defined(__sun) && _GLIBCXX_HAVE_ALIGNED_ALLOC
 +using std::aligned_alloc;
- #endif
- 
- _GLIBCXX_WEAK_DEFINITION void *
++#endif
++
+ #if !_GLIBCXX_HAVE_ALIGNED_ALLOC
+ #if _GLIBCXX_HAVE__ALIGNED_MALLOC
+ #define aligned_alloc(al,sz) _aligned_malloc(sz,al)



Home | Main Index | Thread Index | Old Index