From nobody Wed Oct 06 21:07:24 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0CC8612D21A5; Wed, 6 Oct 2021 21:07:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HPn8Y1jpBz3FXM; Wed, 6 Oct 2021 21:07:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4BDFB26D4C; Wed, 6 Oct 2021 21:07:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 196L7OwA049902; Wed, 6 Oct 2021 21:07:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 196L7OTw049901; Wed, 6 Oct 2021 21:07:24 GMT (envelope-from git) Date: Wed, 6 Oct 2021 21:07:24 GMT Message-Id: <202110062107.196L7OTw049901@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: eccb97996d27 - main - lang/mono: port to powerpc64 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eccb97996d2799c09c1dff6ba6421a6301c83a45 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=eccb97996d2799c09c1dff6ba6421a6301c83a45 commit eccb97996d2799c09c1dff6ba6421a6301c83a45 Author: Piotr Kubaj AuthorDate: 2021-10-06 20:52:42 +0000 Commit: Piotr Kubaj CommitDate: 2021-10-06 20:52:42 +0000 lang/mono: port to powerpc64 --- lang/mono/Makefile | 4 ++-- lang/mono/files/patch-configure.ac | 21 +++++++++++++++++---- lang/mono/files/patch-mono_mini_mini-ppc.c | 20 ++++++++++++++++++++ 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/lang/mono/Makefile b/lang/mono/Makefile index 541b96c9dd10..4414273daadb 100644 --- a/lang/mono/Makefile +++ b/lang/mono/Makefile @@ -13,7 +13,7 @@ COMMENT= Open source implementation of .NET Development Framework LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc +ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc powerpc64 BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser \ bash:shells/bash \ @@ -65,7 +65,7 @@ OPTIONS_SLAVE= MONOLITE .include -.if ${ARCH} == powerpc +.if ${ARCH:Mpowerpc*} PLIST+= ${.CURDIR}/pkg-plist.powerpc .else CONFIGURE_ARGS+= --enable-btls diff --git a/lang/mono/files/patch-configure.ac b/lang/mono/files/patch-configure.ac index 280b4da2ddb1..acd3051f7d70 100644 --- a/lang/mono/files/patch-configure.ac +++ b/lang/mono/files/patch-configure.ac @@ -1,6 +1,6 @@ ---- configure.ac.orig 2018-04-18 10:51:42.000000000 +0300 -+++ configure.ac 2018-06-24 02:38:19.860780000 +0300 -@@ -3271,6 +3271,8 @@ +--- configure.ac.orig 2018-08-24 15:19:14 UTC ++++ configure.ac +@@ -3298,6 +3298,8 @@ case "$host" in BTLS_PLATFORM=i386 ;; openbsd*|freebsd*|kfreebsd-gnu*) @@ -9,7 +9,7 @@ ;; esac ;; -@@ -3295,6 +3297,8 @@ +@@ -3322,6 +3324,8 @@ case "$host" in boehm_supported=false ;; openbsd*|freebsd*|kfreebsd-gnu*) @@ -18,3 +18,16 @@ ;; mingw*) ;; +@@ -3355,11 +3359,10 @@ case "$host" in + INTL="intl" + ;; + macppc-*-openbsd* | powerpc*-*-linux* | powerpc-*-openbsd* | \ +- powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* | powerpc-*-freebsd* ) ++ powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* | powerpc*-*-freebsd* ) + if test "x$ac_cv_sizeof_void_p" = "x8"; then + TARGET=POWERPC64; + CPPFLAGS="$CPPFLAGS -D__mono_ppc__ -D__mono_ppc64__" +- CFLAGS="$CFLAGS -mminimal-toc" + else + TARGET=POWERPC; + CPPFLAGS="$CPPFLAGS -D__mono_ppc__" diff --git a/lang/mono/files/patch-mono_mini_mini-ppc.c b/lang/mono/files/patch-mono_mini_mini-ppc.c new file mode 100644 index 000000000000..bf021a40a395 --- /dev/null +++ b/lang/mono/files/patch-mono_mini_mini-ppc.c @@ -0,0 +1,20 @@ +--- mono/mini/mini-ppc.c.orig 2018-08-24 15:17:13 UTC ++++ mono/mini/mini-ppc.c +@@ -4650,7 +4650,7 @@ mono_arch_register_lowlevel_calls (void) + } + + #ifdef __mono_ppc64__ +-#ifdef _LITTLE_ENDIAN ++#if G_BYTE_ORDER == G_LITTLE_ENDIAN + #define patch_load_sequence(ip,val) do {\ + guint16 *__load = (guint16*)(ip); \ + g_assert (sizeof (val) == sizeof (gsize)); \ +@@ -4659,7 +4659,7 @@ mono_arch_register_lowlevel_calls (void) + __load [6] = (((guint64)(gsize)(val)) >> 16) & 0xffff; \ + __load [8] = ((guint64)(gsize)(val)) & 0xffff; \ + } while (0) +-#elif defined _BIG_ENDIAN ++#elif G_BYTE_ORDER == G_BIG_ENDIAN + #define patch_load_sequence(ip,val) do {\ + guint16 *__load = (guint16*)(ip); \ + g_assert (sizeof (val) == sizeof (gsize)); \