From owner-svn-ports-head@freebsd.org Thu Dec 3 17:15:27 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EB2A54AB1C5; Thu, 3 Dec 2020 17:15:27 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X448 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "anongoth.pl", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cn2Xb57KSz4W4D; Thu, 3 Dec 2020 17:15:27 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Received: from anongoth.pl (unknown [192.168.1.15]) (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) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id 14F41B285C; Thu, 3 Dec 2020 18:15:19 +0100 (CET) Date: Thu, 3 Dec 2020 18:15:17 +0100 From: Piotr Kubaj To: Mark Linimon Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r556912 - head/net/libilbc/files Message-ID: References: <202012031647.0B3GlAUU096227@repo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DpaH3HWBZvySeSz3" Content-Disposition: inline In-Reply-To: <202012031647.0B3GlAUU096227@repo.freebsd.org> X-Rspamd-Queue-Id: 4Cn2Xb57KSz4W4D X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 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: Thu, 03 Dec 2020 17:15:28 -0000 --DpaH3HWBZvySeSz3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable arch(7) says there's no __powerpc64le__ macro. There are: powerpc __powerpc__ powerpcspe __powerpc__, __SPE__ powerpc64 __powerpc__, __powerpc64__ powerpc64le __powerpc__, __powerpc64__ So users should check for __powerpc64__ (to check for 64-bit POWER) and che= ck value of __BYTE_ORDER__ (to check for actual endianness). arch(7) also says riscv64 is little-endian, but this patch marks it as big-= endian: riscv64 little signed riscv64sf little signed On 20-12-03 16:47:10, Mark Linimon wrote: > Author: linimon > Date: Thu Dec 3 16:47:09 2020 > New Revision: 556912 > URL: https://svnweb.freebsd.org/changeset/ports/556912 >=20 > Log: > Attempt to fix the build on both powerpc64le and riscv64. > =20 > This patch should be upstreamed. > =20 > Approved by: portmgr (tier-2 blanket) >=20 > Modified: > head/net/libilbc/files/patch-typedefs.h >=20 > Modified: head/net/libilbc/files/patch-typedefs.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/net/libilbc/files/patch-typedefs.h Thu Dec 3 16:39:33 2020 (r55= 6911) > +++ head/net/libilbc/files/patch-typedefs.h Thu Dec 3 16:47:09 2020 (r55= 6912) > @@ -1,10 +1,14 @@ > --- typedefs.h.orig 2014-12-14 19:34:22 UTC > +++ typedefs.h > -@@ -26,6 +26,12 @@ > - #elif defined(__aarch64__) > +@@ -23,9 +23,15 @@ > + #define WEBRTC_ARCH_X86_64 > #define WEBRTC_ARCH_64_BITS > #define WEBRTC_ARCH_LITTLE_ENDIAN > -+#elif defined(__powerpc64__) || defined(__sparc64__) > +-#elif defined(__aarch64__) > ++#elif defined(__aarch64__) || defined(__powerpc64le__) > + #define WEBRTC_ARCH_64_BITS > + #define WEBRTC_ARCH_LITTLE_ENDIAN > ++#elif defined(__powerpc64__) || defined(__riscv) || defined(__sparc64__) > +#define WEBRTC_ARCH_64_BITS > +#define WEBRTC_ARCH_BIG_ENDIAN > +#elif defined(__powerpc__) --DpaH3HWBZvySeSz3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAl/JHSUACgkQelmbhSCD nJ3SaQ//QnovOtVhBM8OUTvIvNF9Ihh1+IA+jOGde2wIg5u306hGX6cjyjFiQH0c XXgEcEx5lM6gYYMhiVBv/FYNirLFCQjE2mmHYPXLI78ppl7q8XtV5luvm/OmZdLj 246iNY3oAeMeBnsl7PvYrJ7kDub01OD54MlHFT2YOz+UfeFvlgV8yFWOp2A5Ub+d qXhWZLSPZorFfyCM8UU01oy1a2a3ph4gYnKWnIyrJFNdlNkN7+RIkyUdx4sOQZmn c0uPgd1BcU9oLQff33QG4kt6xVfg2JJRG8NHLJlDG/oWO0xR3jXEmtrYnYwMywUu AIvI/g5HhQguJZAw5/qrQ2VC+nUYRH6a2UfrguPBydzN2j3HoKYD06QbF5+lbNcK jZoMeVaH6tW7dsHdLBn7jcdWKwET9SNapJHOq/H2WZqgaIjLIaReXLnHFn9+NkmD ih+zA5U/LElcDFjDhscwLd5P8EQyW+nNtrTSJtyH7a/dXHL3WaDev9uMjZpctBWg rGSIXB7j+2sPtEDqLhgeGpQMp0fBffEbQBBTIFqdAXcXrf2uYkV1fvGxaUosd/wk 4TAPOUyFIuim+dpIbLCvMdQmFkQQAu+7ExjqYDEzSjlty9QE06Z9TWHd/vLMNPSV PWzrq4P5DfjjeoX67kWKRiRmikt9qCFhHDiP1ZIC6nl7sRJn1WE= =oCFG -----END PGP SIGNATURE----- --DpaH3HWBZvySeSz3--