Date: Thu, 3 Dec 2020 18:15:17 +0100 From: Piotr Kubaj <pkubaj@anongoth.pl> To: Mark Linimon <linimon@freebsd.org> 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: <X8kdJZ0ZA0sOMMFt@KGPE-D16> In-Reply-To: <202012031647.0B3GlAUU096227@repo.freebsd.org> References: <202012031647.0B3GlAUU096227@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?X8kdJZ0ZA0sOMMFt>