pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/cmake cmake: Apply different fix for Darwin/aarc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/43c913417604
branches:  trunk
changeset: 375583:43c913417604
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Mar 16 18:36:47 2022 +0000

description:
cmake: Apply different fix for Darwin/aarch64.

The previous patch was breaking cmake when running outside of the pkgsrc
environment.  Should fix NetBSD/pkgsrc#103.  Bump PKGREVISION.

diffstat:

 devel/cmake/Makefile                                  |  10 +++++++++-
 devel/cmake/distinfo                                  |   3 +--
 devel/cmake/patches/patch-Source_cmLocalGenerator.cxx |  15 ---------------
 3 files changed, 10 insertions(+), 18 deletions(-)

diffs (63 lines):

diff -r 78a8ae28ccc6 -r 43c913417604 devel/cmake/Makefile
--- a/devel/cmake/Makefile      Wed Mar 16 16:02:58 2022 +0000
+++ b/devel/cmake/Makefile      Wed Mar 16 18:36:47 2022 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.190 2022/01/25 21:18:08 adam Exp $
+# $NetBSD: Makefile,v 1.191 2022/03/16 18:36:47 jperkin Exp $
 
 .include "Makefile.common"
 
+PKGREVISION=   1
 COMMENT=       Cross platform make
 
 USE_TOOLS+=            gmake
@@ -25,6 +26,13 @@
 LDFLAGS.Darwin+=       -framework CoreServices # for LSOpenCFURLRef()
 LDFLAGS.SunOS+=                -lsocket -lnsl
 
+.include "../../mk/bsd.prefs.mk"
+
+# Enforce arm64 to support building inside x86_64 chroots.
+.if !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
+CONFIGURE_ENV+=                CMAKE_OSX_ARCHITECTURES=arm64
+.endif
+
 PLIST_SUBST+=          CMAKE_API=${CMAKE_API}
 
 REPLACE_SH=            Modules/Compiler/XL-Fortran/cpp
diff -r 78a8ae28ccc6 -r 43c913417604 devel/cmake/distinfo
--- a/devel/cmake/distinfo      Wed Mar 16 16:02:58 2022 +0000
+++ b/devel/cmake/distinfo      Wed Mar 16 18:36:47 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.192 2022/03/07 19:59:44 adam Exp $
+$NetBSD: distinfo,v 1.193 2022/03/16 18:36:47 jperkin Exp $
 
 BLAKE2s (cmake-3.22.3.tar.gz) = eafa5d81e2a1ab1cb7aee21fec3a4706330cb44ef0cbc9633be9fabad67ab536
 SHA512 (cmake-3.22.3.tar.gz) = a35003468153b99770ac6bbdeaa611a231a1104560da36aca0f393b8b71dbb44d854378504d2ec6b4af615f78efe18d91453fe15a1b7ec58129aa0289a5a1507
@@ -18,7 +18,6 @@
 SHA1 (patch-Source_Checks_Curses_CheckCurses.c) = c86cae48f7b39fb735eba4788d4e9d595b2ccf3b
 SHA1 (patch-Source_Checks_cm__cxx17__check.cpp) = d5e2708df6fcda078b1b5ea59264c663d2633ced
 SHA1 (patch-Source_QtDialog_CMakeLists.txt) = 0858da256bba174694a165d5f910eedb3faa06d5
-SHA1 (patch-Source_cmLocalGenerator.cxx) = 7b41e5837c2dcff54114541920c45258632275b0
 SHA1 (patch-Source_cmMachO.h) = 9d9065625e5f4df08e5a4ecf62b8582e3858f0bc
 SHA1 (patch-Utilities_KWIML_CMakeLists.txt) = e4bdf9fc58757e87bf7e3e3e195839eededbc796
 SHA1 (patch-bootstrap) = e34f5b888790e766338086b8c3680be79b71ef18
diff -r 78a8ae28ccc6 -r 43c913417604 devel/cmake/patches/patch-Source_cmLocalGenerator.cxx
--- a/devel/cmake/patches/patch-Source_cmLocalGenerator.cxx     Wed Mar 16 16:02:58 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-Source_cmLocalGenerator.cxx,v 1.1 2021/07/15 21:10:53 jperkin Exp $
-
-Disable additional -arch flags on macOS.
-
---- Source/cmLocalGenerator.cxx.orig   2021-06-21 15:23:19.000000000 +0000
-+++ Source/cmLocalGenerator.cxx
-@@ -97,7 +97,7 @@ cmLocalGenerator::cmLocalGenerator(cmGlo
- 
-   this->AliasTargets = makefile->GetAliasTargets();
- 
--  this->EmitUniversalBinaryFlags = true;
-+  this->EmitUniversalBinaryFlags = false;
-   this->BackwardsCompatibility = 0;
-   this->BackwardsCompatibilityFinal = false;
- 



Home | Main Index | Thread Index | Old Index