pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Fix build with libc++ by making the template wrapper d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4371012d79ef
branches:  trunk
changeset: 414653:4371012d79ef
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Mar 30 19:46:01 2020 +0000

description:
Fix build with libc++ by making the template wrapper do what it is
supposed to do. Don't mess with math.h internals. Honor ressource limit
changes during build.

diffstat:

 mail/thunderbird/Makefile                                                  |   4 +-
 mail/thunderbird/distinfo                                                  |   3 +-
 mail/thunderbird/patches/patch-config_gcc-stl-wrapper.template.h           |  29 ++++++++++
 mail/thunderbird52/Makefile                                                |   4 +-
 mail/thunderbird52/distinfo                                                |   4 +-
 mail/thunderbird52/patches/patch-mozilla_config_gcc-stl-wrapper.template.h |  29 ++++++++++
 mail/thunderbird52/patches/patch-mozilla_xpcom_typelib_xpt_xpt__arena.h    |  13 ++++
 mail/thunderbird60/Makefile                                                |   4 +-
 mail/thunderbird60/distinfo                                                |   3 +-
 mail/thunderbird60/patches/patch-config_gcc-stl-wrapper.template.h         |  29 ++++++++++
 www/cliqz/mozilla-common.mk                                                |   4 +-
 www/firefox/mozilla-common.mk                                              |   6 +-
 www/firefox/patches/patch-config_gcc-stl-wrapper.template.h                |  29 ++++++++++
 www/firefox52/distinfo                                                     |   4 +-
 www/firefox52/patches/patch-config_gcc-stl-wrapper.template.h              |  29 ++++++++++
 www/firefox52/patches/patch-xpcom_typelib_xpt_xpt__arena.h                 |  13 ++++
 www/firefox60/distinfo                                                     |   3 +-
 www/firefox60/mozilla-common.mk                                            |   4 +-
 www/firefox60/patches/patch-config_gcc-stl-wrapper.template.h              |  29 ++++++++++
 www/firefox68/distinfo                                                     |   3 +-
 www/firefox68/mozilla-common.mk                                            |   6 +-
 www/firefox68/patches/patch-config_gcc-stl-wrapper.template.h              |  29 ++++++++++
 22 files changed, 256 insertions(+), 25 deletions(-)

diffs (truncated from 521 to 300 lines):

diff -r b94a586790f4 -r 4371012d79ef mail/thunderbird/Makefile
--- a/mail/thunderbird/Makefile Mon Mar 30 19:39:32 2020 +0000
+++ b/mail/thunderbird/Makefile Mon Mar 30 19:46:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.242 2020/03/15 13:28:51 ryoon Exp $
+# $NetBSD: Makefile,v 1.243 2020/03/30 19:46:01 joerg Exp $
 
 DISTNAME=      thunderbird-${TB_VER}.source
 PKGNAME=       thunderbird-${TB_VER}
@@ -63,7 +63,7 @@
 
 do-build:
 # XXX for some reason it doesn't work unless -j is explicitly specified
-       cd ${WRKSRC}/${OBJDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}
+       ${_ULIMIT_CMD} cd ${WRKSRC}/${OBJDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}
 
 MOZILLA=       ${PKGBASE}
 MOZILLA_NAME=  ${PKGBASE}
diff -r b94a586790f4 -r 4371012d79ef mail/thunderbird/distinfo
--- a/mail/thunderbird/distinfo Mon Mar 30 19:39:32 2020 +0000
+++ b/mail/thunderbird/distinfo Mon Mar 30 19:46:01 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.223 2020/03/15 13:28:51 ryoon Exp $
+$NetBSD: distinfo,v 1.224 2020/03/30 19:46:01 joerg Exp $
 
 SHA1 (thunderbird-68.6.0.source.tar.xz) = a84c078e4f100fe7d8bd6703e4db6654d6dcd896
 RMD160 (thunderbird-68.6.0.source.tar.xz) = 5d1176f0068c8ade239e3043f505dabc7354661b
@@ -8,6 +8,7 @@
 SHA1 (patch-build_moz.configure_old.configure) = edd810f8d607697898ae315453719fe6c8c09bcc
 SHA1 (patch-comm_mail_installer_package-manifest.in) = 14e8977f690e579a8caf73326248323615e04803
 SHA1 (patch-comm_mail_installer_removed-files.in) = f360ccac70a7afaee65e4617c015535084eee035
+SHA1 (patch-config_gcc-stl-wrapper.template.h) = aa9664c1ba850e7c45b654dcf5d7d591d4994a86
 SHA1 (patch-dom_base_nsAttrName.h) = 57a1a15cde53a1c8e22b1b38efdd40b9c0f1f91b
 SHA1 (patch-dom_media_CubebUtils.cpp) = 2b6e750a2336434edd9642e1a78f4b6b7df1354a
 SHA1 (patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp) = 795b510b525019f49169d1a594cd3e455e706500
diff -r b94a586790f4 -r 4371012d79ef mail/thunderbird/patches/patch-config_gcc-stl-wrapper.template.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/patches/patch-config_gcc-stl-wrapper.template.h  Mon Mar 30 19:46:01 2020 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-config_gcc-stl-wrapper.template.h,v 1.1 2020/03/30 19:46:01 joerg Exp $
+
+--- config/gcc-stl-wrapper.template.h.orig     2020-03-10 21:02:17.000000000 +0000
++++ config/gcc-stl-wrapper.template.h
+@@ -28,14 +28,14 @@
+ #endif
+ 
+ // Don't include mozalloc for cstdlib. See bug 1245076.
+-#ifndef moz_dont_include_mozalloc_for_cstdlib
+-#  define moz_dont_include_mozalloc_for_cstdlib
++#ifndef moz_dont_include_mozalloc_for_${HEADER}
++#  define moz_dont_include_mozalloc_for_${HEADER}
+ #endif
+ 
+ // Include mozalloc after the STL header and all other headers it includes
+ // have been preprocessed.
+ #if !defined(MOZ_INCLUDE_MOZALLOC_H) && \
+-    !defined(moz_dont_include_mozalloc_for_${HEADER})
++    !defined(moz_dont_include_mozalloc_for_cstdlib)
+ #  define MOZ_INCLUDE_MOZALLOC_H
+ #  define MOZ_INCLUDE_MOZALLOC_H_FROM_${HEADER}
+ #endif
+@@ -64,4 +64,6 @@
+ #  include "mozilla/throw_gcc.h"
+ #endif
+ 
++#undef moz_dont_include_mzalloc_for_${HEADER}
++
+ #endif  // if mozilla_${HEADER}_h
diff -r b94a586790f4 -r 4371012d79ef mail/thunderbird52/Makefile
--- a/mail/thunderbird52/Makefile       Mon Mar 30 19:39:32 2020 +0000
+++ b/mail/thunderbird52/Makefile       Mon Mar 30 19:46:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2020/03/10 22:10:28 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2020/03/30 19:46:01 joerg Exp $
 
 DISTNAME=      thunderbird-${TB_VER}.source
 PKGNAME=       thunderbird${TB_VER:C/\..*$//}-${TB_VER}
@@ -63,7 +63,7 @@
 
 do-build:
 # XXX for some reason it doesn't work unless -j is explicitly specified
-       cd ${WRKSRC}/${OBJDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}
+       ${RUN} ${_ULIMIT_CMD} cd ${WRKSRC}/${OBJDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}
 
 MOZILLA=       ${PKGBASE}
 MOZILLA_NAME=  ${PKGBASE}
diff -r b94a586790f4 -r 4371012d79ef mail/thunderbird52/distinfo
--- a/mail/thunderbird52/distinfo       Mon Mar 30 19:39:32 2020 +0000
+++ b/mail/thunderbird52/distinfo       Mon Mar 30 19:46:01 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2020/02/08 22:20:26 kamil Exp $
+$NetBSD: distinfo,v 1.3 2020/03/30 19:46:01 joerg Exp $
 
 SHA1 (thunderbird-52.9.1.source.tar.xz) = 9970d78084fe979f568ea00bf06b8e81a738e630
 RMD160 (thunderbird-52.9.1.source.tar.xz) = b3169a0154fa85648a98ba0d74f264abd224b323
@@ -24,6 +24,7 @@
 SHA1 (patch-mozilla_config_Makefile.in) = ef7b31712e3be7620dfaf548d4138c6b425eb2ca
 SHA1 (patch-mozilla_config_baseconfig.mk) = 92891a656cb83de0f5ff7f88d10579cdde0e1359
 SHA1 (patch-mozilla_config_external_moz.build) = bf05e5da3781087c4e588e0bdccaee05b9d02b24
+SHA1 (patch-mozilla_config_gcc-stl-wrapper.template.h) = be32e0e51992278915ffd7c205f9846ca353c89a
 SHA1 (patch-mozilla_config_stl__wrappers_ios) = f84d793f65bc7c7d1ffc7b542f846b394cf6de50
 SHA1 (patch-mozilla_config_stl__wrappers_ostream) = b36e7e199e355a0950e0db51c45fb34ce5ea2cc4
 SHA1 (patch-mozilla_config_system-headers) = 4665d754c8e498b3a34f877836287c7723ce930f
@@ -120,3 +121,4 @@
 SHA1 (patch-mozilla_xpcom_reflect_xptcall_md_unix_xptcstubs__asm__mips.S) = edbf6721ac8d74dc314f4c70fc5c74ebb6f44076
 SHA1 (patch-mozilla_xpcom_reflect_xptcall_md_unix_xptcstubs__asm__sparc64__netbsd.s) = a04a46c13752d4c92bbba8b96d85cb430f3a4ac6
 SHA1 (patch-mozilla_xpcom_reflect_xptcall_md_unix_xptcstubs__netbsd__m68k.cpp) = bb0d322a00c42e6ce1a5a931fecdcaf1b58109bc
+SHA1 (patch-mozilla_xpcom_typelib_xpt_xpt__arena.h) = 186cc580476fa80836d8ebd1e27de6c30377e89f
diff -r b94a586790f4 -r 4371012d79ef mail/thunderbird52/patches/patch-mozilla_config_gcc-stl-wrapper.template.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird52/patches/patch-mozilla_config_gcc-stl-wrapper.template.h        Mon Mar 30 19:46:01 2020 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-mozilla_config_gcc-stl-wrapper.template.h,v 1.1 2020/03/30 19:46:01 joerg Exp $
+
+--- mozilla/config/gcc-stl-wrapper.template.h.orig     2018-07-09 19:54:33.000000000 +0000
++++ mozilla/config/gcc-stl-wrapper.template.h
+@@ -28,14 +28,14 @@
+ #endif
+ 
+ // Don't include mozalloc for cstdlib. See bug 1245076.
+-#ifndef moz_dont_include_mozalloc_for_cstdlib
+-#  define moz_dont_include_mozalloc_for_cstdlib
++#ifndef moz_dont_include_mozalloc_for_${HEADER}
++#  define moz_dont_include_mozalloc_for_${HEADER}
+ #endif
+ 
+ // Include mozalloc after the STL header and all other headers it includes
+ // have been preprocessed.
+ #if !defined(MOZ_INCLUDE_MOZALLOC_H) && \
+-    !defined(moz_dont_include_mozalloc_for_${HEADER})
++    !defined(moz_dont_include_mozalloc_for_cstdlib)
+ #  define MOZ_INCLUDE_MOZALLOC_H
+ #  define MOZ_INCLUDE_MOZALLOC_H_FROM_${HEADER}
+ #endif
+@@ -66,4 +66,6 @@
+ #  include "mozilla/throw_gcc.h"
+ #endif
+ 
++#undef moz_dont_include_mzalloc_for_${HEADER}
++
+ #endif  // if mozilla_${HEADER}_h
diff -r b94a586790f4 -r 4371012d79ef mail/thunderbird52/patches/patch-mozilla_xpcom_typelib_xpt_xpt__arena.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird52/patches/patch-mozilla_xpcom_typelib_xpt_xpt__arena.h   Mon Mar 30 19:46:01 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-mozilla_xpcom_typelib_xpt_xpt__arena.h,v 1.1 2020/03/30 19:46:01 joerg Exp $
+
+--- mozilla/xpcom/typelib/xpt/xpt_arena.h.orig 2018-07-09 19:54:58.000000000 +0000
++++ mozilla/xpcom/typelib/xpt/xpt_arena.h
+@@ -10,7 +10,7 @@
+ #ifndef __xpt_arena_h__
+ #define __xpt_arena_h__
+ 
+-#include <stdlib.h>
++#include <cstdlib>
+ #include "mozilla/Attributes.h"
+ #include "mozilla/MemoryReporting.h"
+ #include <stdint.h>
diff -r b94a586790f4 -r 4371012d79ef mail/thunderbird60/Makefile
--- a/mail/thunderbird60/Makefile       Mon Mar 30 19:39:32 2020 +0000
+++ b/mail/thunderbird60/Makefile       Mon Mar 30 19:46:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2020/03/08 16:50:25 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2020/03/30 19:46:01 joerg Exp $
 
 DISTNAME=      thunderbird-${TB_VER}.source
 PKGNAME=       thunderbird60-${TB_VER}
@@ -76,7 +76,7 @@
 
 do-build:
 # XXX for some reason it doesn't work unless -j is explicitly specified
-       cd ${WRKSRC}/${OBJDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}
+       ${RUN}${_ULIMIT_CMD} cd ${WRKSRC}/${OBJDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}
 
 MOZILLA=       ${PKGBASE}
 MOZILLA_NAME=  ${PKGBASE}
diff -r b94a586790f4 -r 4371012d79ef mail/thunderbird60/distinfo
--- a/mail/thunderbird60/distinfo       Mon Mar 30 19:39:32 2020 +0000
+++ b/mail/thunderbird60/distinfo       Mon Mar 30 19:46:01 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2020/02/08 22:30:17 kamil Exp $
+$NetBSD: distinfo,v 1.5 2020/03/30 19:46:01 joerg Exp $
 
 SHA1 (thunderbird-60.9.1.source.tar.xz) = ce6b4e411e8f5da3e217122e9bf61553ce76b1a7
 RMD160 (thunderbird-60.9.1.source.tar.xz) = 9e771f2540e34d222cfb85f3ae9e108364881209
@@ -14,6 +14,7 @@
 SHA1 (patch-comm_mail_components_shell_nsMailGNOMEIntegration.cpp) = e0ed20894e1343fc06816e78193a0cee39aeb4b7
 SHA1 (patch-comm_mail_installer_package-manifest.in) = 14e8977f690e579a8caf73326248323615e04803
 SHA1 (patch-comm_mail_installer_removed-files.in) = bda8a8d12075fa5bf87d552035812f5cf485a393
+SHA1 (patch-config_gcc-stl-wrapper.template.h) = 78ad8c2fcf16d834d071554eb6682591902a96a6
 SHA1 (patch-dom_media_CubebUtils.cpp) = 76fc35167e603f96450f4bc17cd0d76157a22dd3
 SHA1 (patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp) = 23c0f9d4677c1a87ebeb12a9a822fd7a15f51215
 SHA1 (patch-gfx_gl_GLContextProviderGLX.cpp) = 4b85e9bf5a199b450c56790d5f14e6bdc7867c33
diff -r b94a586790f4 -r 4371012d79ef mail/thunderbird60/patches/patch-config_gcc-stl-wrapper.template.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird60/patches/patch-config_gcc-stl-wrapper.template.h        Mon Mar 30 19:46:01 2020 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-config_gcc-stl-wrapper.template.h,v 1.1 2020/03/30 19:46:01 joerg Exp $
+
+--- config/gcc-stl-wrapper.template.h.orig     2019-10-31 12:34:19.000000000 +0000
++++ config/gcc-stl-wrapper.template.h
+@@ -28,14 +28,14 @@
+ #endif
+ 
+ // Don't include mozalloc for cstdlib. See bug 1245076.
+-#ifndef moz_dont_include_mozalloc_for_cstdlib
+-#  define moz_dont_include_mozalloc_for_cstdlib
++#ifndef moz_dont_include_mozalloc_for_${HEADER}
++#  define moz_dont_include_mozalloc_for_${HEADER}
+ #endif
+ 
+ // Include mozalloc after the STL header and all other headers it includes
+ // have been preprocessed.
+ #if !defined(MOZ_INCLUDE_MOZALLOC_H) && \
+-    !defined(moz_dont_include_mozalloc_for_${HEADER})
++    !defined(moz_dont_include_mozalloc_for_cstdlib)
+ #  define MOZ_INCLUDE_MOZALLOC_H
+ #  define MOZ_INCLUDE_MOZALLOC_H_FROM_${HEADER}
+ #endif
+@@ -64,4 +64,6 @@
+ #  include "mozilla/throw_gcc.h"
+ #endif
+ 
++#undef moz_dont_include_mzalloc_for_${HEADER}
++
+ #endif  // if mozilla_${HEADER}_h
diff -r b94a586790f4 -r 4371012d79ef www/cliqz/mozilla-common.mk
--- a/www/cliqz/mozilla-common.mk       Mon Mar 30 19:39:32 2020 +0000
+++ b/www/cliqz/mozilla-common.mk       Mon Mar 30 19:46:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.7 2020/02/23 00:10:40 fox Exp $
+# $NetBSD: mozilla-common.mk,v 1.8 2020/03/30 19:46:02 joerg Exp $
 #
 # Common Makefile fragment for mozilla packages based on gecko 2.0.
 # derived from www/firefox
@@ -23,8 +23,6 @@
 CXXFLAGS+=     -mstackrealign
 .endif
 
-CXXFLAGS+=     -D__HAVE_INLINE___ISINF
-
 CHECK_PORTABILITY_SKIP+=       build-tools/scripts/l10n/release_repacks.sh
 CHECK_PORTABILITY_SKIP+=       mozilla-release/intl/icu/source/configure
 CHECK_PORTABILITY_SKIP+=       mozilla-release/modules/pdfium/update.sh
diff -r b94a586790f4 -r 4371012d79ef www/firefox/mozilla-common.mk
--- a/www/firefox/mozilla-common.mk     Mon Mar 30 19:39:32 2020 +0000
+++ b/www/firefox/mozilla-common.mk     Mon Mar 30 19:46:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.157 2020/03/18 01:27:14 gutteridge Exp $
+# $NetBSD: mozilla-common.mk,v 1.158 2020/03/30 19:46:02 joerg Exp $
 #
 # common Makefile fragment for mozilla packages based on gecko 2.0.
 #
@@ -21,7 +21,7 @@
 CONFIGURE_ARGS+=       --prefix=${PREFIX}
 USE_TOOLS+=            pkg-config perl gmake autoconf213 unzip zip
 USE_LANGUAGES+=                c99 gnu++14
-UNLIMIT_RESOURCES+=    datasize
+UNLIMIT_RESOURCES+=    datasize virtualsize
 
 TOOL_DEPENDS+=         cbindgen>=0.13.0:../../devel/cbindgen
 .if ${MACHINE_ARCH} == "sparc64"
@@ -58,8 +58,6 @@
 CXXFLAGS+=             -mstackrealign
 .endif
 
-CXXFLAGS+=             -D__HAVE_INLINE___ISINF
-
 CHECK_PORTABILITY_SKIP+=       ${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh
 CHECK_PORTABILITY_SKIP+=       ${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh
 CHECK_PORTABILITY_SKIP+=       ${MOZILLA_DIR}js/src/tests/update-test262.sh
diff -r b94a586790f4 -r 4371012d79ef www/firefox/patches/patch-config_gcc-stl-wrapper.template.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox/patches/patch-config_gcc-stl-wrapper.template.h       Mon Mar 30 19:46:01 2020 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-config_gcc-stl-wrapper.template.h,v 1.1 2020/03/30 19:46:02 joerg Exp $
+
+--- config/gcc-stl-wrapper.template.h.orig     2020-03-09 13:09:13.000000000 +0000
++++ config/gcc-stl-wrapper.template.h
+@@ -28,14 +28,14 @@
+ #endif
+ 
+ // Don't include mozalloc for cstdlib. See bug 1245076.
+-#ifndef moz_dont_include_mozalloc_for_cstdlib
+-#  define moz_dont_include_mozalloc_for_cstdlib
++#ifndef moz_dont_include_mozalloc_for_${HEADER}
++#  define moz_dont_include_mozalloc_for_${HEADER}
+ #endif
+ 
+ // Include mozalloc after the STL header and all other headers it includes
+ // have been preprocessed.
+ #if !defined(MOZ_INCLUDE_MOZALLOC_H) && \
+-    !defined(moz_dont_include_mozalloc_for_${HEADER})
++    !defined(moz_dont_include_mozalloc_for_cstdlib)
+ #  define MOZ_INCLUDE_MOZALLOC_H
+ #  define MOZ_INCLUDE_MOZALLOC_H_FROM_${HEADER}
+ #endif
+@@ -64,4 +64,6 @@
+ #  include "mozilla/throw_gcc.h"
+ #endif



Home | Main Index | Thread Index | Old Index