From owner-svn-ports-head@freebsd.org Fri Jul 12 09:09:57 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 254B415EA7B3; Fri, 12 Jul 2019 09:09:57 +0000 (UTC) (envelope-from pkubaj@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AD50D8BF81; Fri, 12 Jul 2019 09:09:56 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 835CAC39A; Fri, 12 Jul 2019 09:09:56 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x6C99uO3040965; Fri, 12 Jul 2019 09:09:56 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x6C99u8a040963; Fri, 12 Jul 2019 09:09:56 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201907120909.x6C99u8a040963@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Fri, 12 Jul 2019 09:09:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r506445 - in head/lang/ocaml: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/lang/ocaml: . files X-SVN-Commit-Revision: 506445 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: AD50D8BF81 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.956,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2019 09:09:57 -0000 Author: pkubaj Date: Fri Jul 12 09:09:55 2019 New Revision: 506445 URL: https://svnweb.freebsd.org/changeset/ports/506445 Log: lang/ocaml: fix on powerpc64 powerpc64 needs to be put to configure script to be recognized. PR: 238788 Approved by: michipili@gmail.com (maintainer timeout), tcberner (mat) Differential Revision: https://reviews.freebsd.org/D20891 Modified: head/lang/ocaml/Makefile head/lang/ocaml/files/patch-configure Modified: head/lang/ocaml/Makefile ============================================================================== --- head/lang/ocaml/Makefile Fri Jul 12 09:04:35 2019 (r506444) +++ head/lang/ocaml/Makefile Fri Jul 12 09:09:55 2019 (r506445) @@ -20,12 +20,11 @@ LICENSE_PERMS_QPL10= dist-mirror dist-sell pkg-mirror BROKEN_aarch64= Does not build: sh: as: not found BROKEN_armv7= Does not build: hasgot.c: undefined reference to `tgetent' -BROKEN_powerpc64= Does not build: error: too few arguments to function gethostbyname_r BROKEN_sparc64= No rule to make target 'none.o', needed by 'libasmrun.a' BROKEN_mips64= No ASM support BROKEN_mips= No ASM support -USES= cpe gmake tar:xz +USES= cpe compiler:c11 gmake tar:xz USE_LDCONFIG= yes CPE_VENDOR= inria HAS_CONFIGURE= yes Modified: head/lang/ocaml/files/patch-configure ============================================================================== --- head/lang/ocaml/files/patch-configure Fri Jul 12 09:04:35 2019 (r506444) +++ head/lang/ocaml/files/patch-configure Fri Jul 12 09:09:55 2019 (r506445) @@ -25,15 +25,17 @@ esac fi -@@ -921,6 +923,7 @@ case "$target" in +@@ -921,6 +923,9 @@ case "$target" in powerpc*-*-linux*) arch=power; if $arch64; then model=ppc64; else model=ppc; fi system=elf;; -+ powerpc-*-freebsd*) arch=power; model=ppc; system=bsd_elf;; ++ powerpc*-*-freebsd*) arch=power; ++ if $arch64; then model=ppc64; else model=ppc; fi ++ system=bsd_elf;; powerpc-*-netbsd*) arch=power; model=ppc; system=elf;; powerpc-*-openbsd*) arch=power; model=ppc; system=bsd_elf;; s390x*-*-linux*) arch=s390x; model=z10; system=elf;; -@@ -946,6 +949,7 @@ case "$target" in +@@ -946,6 +951,7 @@ case "$target" in x86_64-*-darwin*) arch=amd64; system=macosx;; x86_64-*-mingw*) arch=amd64; system=mingw;; aarch64-*-linux*) arch=arm64; system=linux;; @@ -41,7 +43,7 @@ x86_64-*-cygwin*) arch=amd64; system=cygwin;; esac -@@ -1051,10 +1055,12 @@ case "$arch,$system" in +@@ -1051,10 +1057,12 @@ case "$arch,$system" in case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;; amd64,linux) profiling='true';; amd64,openbsd) profiling='true';; @@ -54,7 +56,7 @@ arm,linux*) profiling='true';; power,elf) profiling='true';; power,bsd*) profiling='true';; -@@ -2029,7 +2035,7 @@ MKLIB=${TOOLPREF}ar rc \$(1) \$(2); ${TOOLPREF}ranlib +@@ -2029,7 +2037,7 @@ MKLIB=${TOOLPREF}ar rc \$(1) \$(2); ${TOOLPREF}ranlib #ml Printf.sprintf "${TOOLPREF}ar rc %s %s %s; ${TOOLPREF}ranlib %s" #ml out opts files out;; EOF