head 1.3; access; symbols pkgsrc-2021Q1:1.2.0.44 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.42 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.40 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.36 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.16 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.38 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.34 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.32 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.30 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.28 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.26 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.24 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.22 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.20 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.18 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.14 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.12 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.10 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.8 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.6 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.4 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.2 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.1.0.12 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.10 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.8 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.6 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.4 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.2 pkgsrc-2014Q2-base:1.1; locks; strict; comment @# @; 1.3 date 2021.04.02.11.56.15; author nia; state dead; branches; next 1.2; commitid vW3eTMQ4818FeINC; 1.2 date 2015.11.03.13.59.10; author jperkin; state Exp; branches; next 1.1; commitid xgO4EYPTDeXRtEHy; 1.1 date 2014.05.31.13.06.25; author ryoon; state Exp; branches; next ; commitid hE3nXFhwB5nKWGCx; desc @@ 1.3 log @remove gcc48/gcc49. use of these packages was disabled in the pkgsrc infrastructure in january because they were causing problems on platforms with older compilers that can build gcc6 just fine: glibc + FORTIFY + gcc48,gcc49,gcc5 = build failures. gcc48 and newer require a c++98 compiler, same as all gcc versions up to 11, so are not useful for bootstrapping. gcc5 has additional Ada bits, someone needs to determine if they're useful before it can go. @ text @$NetBSD: patch-fixincludes_inclhack.def,v 1.2 2015/11/03 13:59:10 jperkin Exp $ Fix for El Capitan / Xcode 7 from https://trac.macports.org/ticket/48471 --- fixincludes/inclhack.def.orig 2014-12-13 17:47:30.000000000 +0000 +++ fixincludes/inclhack.def @@@@ -1141,6 +1141,79 @@@@ fix = { test_text = "#define _Noreturn [[noreturn]]"; }; +/* + * Add definitions of non-standard (clang) macros. + */ +fix = { + hackname = clang_macro___has_builtin; + select = "__has_builtin"; + bypass = "#[ \t]*define[ \t]+__has_builtin"; + c_fix = wrap; + c_fix_arg = "#ifndef __has_builtin\n" + " #define __has_builtin(x) 0\n" + "#endif\n"; + test_text = "#if __has_builtin(__builtin_trap)\n" + " __builtin_trap();\n" + "#else\n" + " abort();\n" + "#endif\n"; +}; +fix = { + hackname = clang_macro___has_feature; + select = "__has_feature"; + bypass = "#[ \t]*define[ \t]+__has_feature"; + c_fix = wrap; + c_fix_arg = "#ifndef __has_feature\n" + " #define __has_feature(x) 0\n" + "#endif\n"; + test_text = "#if __has_feature(cxx_rvalue_references)\n" + " // This code will only be compiled with the -std=c++11 and -std=gnu++11\n" + " // options, because rvalue references are only standardized in C++11.\n" + "#endif\n"; +}; +fix = { + hackname = clang_macro___has_cpp_attribute; + select = "__has_cpp_attribute"; + bypass = "#[ \t]*define[ \t]+__has_cpp_attribute"; + c_fix = wrap; + c_fix_arg = "#ifndef __has_cpp_attribute\n" + " #define __has_cpp_attribute(x) 0\n" + "#endif\n"; + test_text = "#if __has_cpp_attribute(clang::fallthrough)\n" + " #define FALLTHROUGH [[clang::fallthrough]]\n" + "#else\n" + " #define FALLTHROUGH\n" + "#endif\n"; +}; +fix = { + hackname = clang_macro___has_attribute; + select = "__has_attribute"; + bypass = "#[ \t]*define[ \t]+__has_attribute"; + c_fix = wrap; + c_fix_arg = "#ifndef __has_attribute\n" + " #define __has_attribute(x) 0\n" + "#endif\n"; + test_text = "#if __has_attribute(always_inline)\n" + " #define ALWAYS_INLINE __attribute__((always_inline))\n" + "#else\n" + " #define ALWAYS_INLINE\n" + "#endif\n"; +}; +fix = { + hackname = clang_macro___has_declspec_attribute; + select = "__has_declspec_attribute"; + bypass = "#[ \t]*define[ \t]+__has_declspec_attribute"; + c_fix = wrap; + c_fix_arg = "#ifndef __has_declspec_attribute\n" + " #define __has_declspec_attribute(x) 0\n" + "#endif\n"; + test_text = "#if __has_declspec_attribute(dllexport)\n" + " #define DLLEXPORT __declspec(dllexport)\n" + "#else\n" + " #define DLLEXPORT\n" + "#endif\n"; +}; + /* * Fix various macros used to define ioctl numbers. * The traditional syntax was: @@@@ -3226,9 +3299,9 @@@@ fix = { mach = "*-*-solaris2.*"; files = complex.h; sed = "/#if[ \t]*!defined(__cplusplus)/c\\\n" - "#ifdef\t__cplusplus\\\nextern \"C\" {\\\n#endif"; + "#ifdef\t__cplusplus\\\nextern \"C\" {\\\n#endif\\\n"; sed = "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n" - "#ifdef\t__cplusplus\\\n}\\\n#endif"; + "#ifdef\t__cplusplus\\\n}\\\n#endif\\\n"; test_text = "#if !defined(__cplusplus)\n" "#endif /* !defined(__cplusplus) */"; }; @ 1.2 log @Various fixes to get this working on El Capitan / Xcode 7: * Pull in patch from MacPorts to handle 10.11 SDK header issue with fixincludes. * Backport upstream bugfix for GCC bug 66523, fixing an issue with Xcode 7. * Pull in --with-build-config=bootstrap-debug change from FreeBSD ports to fix bootstrap compare issue seen with clang / Xcode 7. @ text @d1 1 a1 1 $NetBSD: patch-fixincludes_inclhack.def,v 1.1 2014/05/31 13:06:25 ryoon Exp $ @ 1.1 log @Update to 4.8.3 * Convert gcc48 to simple meta-pkg * Potentially fix non-NetBSD packaging * Fix gcc48-libs/gcc48-cc++ build under OpenBSD/amd64 5.5 * Enable graphite option, from wip/gcc48snapshot via Xiyue Deng * Tweak nls option Changelog: GCC 4.8.3 This is the [35]list of problem reports (PRs) from GCC's bug tracking system that are known to be fixed in the 4.8.3 release. This list might not be complete (that is, it is possible that some PRs that have been fixed are not listed here). Support for the new powerpc64le-linux platform has been added. It defaults to generating code that conforms to the ELFV2 @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 1 --- fixincludes/inclhack.def.orig 2013-05-31 11:43:36.000000000 +0000 d7 81 a87 1 @@@@ -3213,9 +3213,9 @@@@ fix = { @