Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 2020 14:21:44 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r554081 - in head/devel/binutils: . files
Message-ID:  <202011041421.0A4ELiTK021590@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim (src committer)
Date: Wed Nov  4 14:21:43 2020
New Revision: 554081
URL: https://svnweb.freebsd.org/changeset/ports/554081

Log:
  devel/binutils: Apply upstream patch to fix "undefined symbol:
  bswap_identity_64" and similar errors, when building devel/binutils in
  certain environments.
  
  This has been sitting in a bug for almost a year now without any action,
  which is why I am committing it now.
  
  MFH:		2020Q4
  PR:		250783

Added:
  head/devel/binutils/files/patch-libctf_swap.h   (contents, props changed)
Modified:
  head/devel/binutils/Makefile

Modified: head/devel/binutils/Makefile
==============================================================================
--- head/devel/binutils/Makefile	Wed Nov  4 14:13:23 2020	(r554080)
+++ head/devel/binutils/Makefile	Wed Nov  4 14:21:43 2020	(r554081)
@@ -3,7 +3,7 @@
 
 PORTNAME=	binutils
 PORTVERSION=	2.33.1
-PORTREVISION=	3
+PORTREVISION=	4
 PORTEPOCH?=	1
 CATEGORIES?=	devel
 MASTER_SITES=	SOURCEWARE/binutils/releases

Added: head/devel/binutils/files/patch-libctf_swap.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/binutils/files/patch-libctf_swap.h	Wed Nov  4 14:21:43 2020	(r554081)
@@ -0,0 +1,34 @@
+--- libctf/swap.h.orig	2019-09-09 13:19:45 UTC
++++ libctf/swap.h
+@@ -28,13 +28,13 @@
+ #else
+ 
+ /* Provide our own versions of the byteswap functions.  */
+-inline uint16_t
++static inline uint16_t
+ bswap_16 (uint16_t v)
+ {
+   return ((v >> 8) & 0xff) | ((v & 0xff) << 8);
+ }
+ 
+-inline uint32_t
++static inline uint32_t
+ bswap_32 (uint32_t v)
+ {
+   return (  ((v & 0xff000000) >> 24)
+@@ -43,13 +43,13 @@ bswap_32 (uint32_t v)
+ 	  | ((v & 0x000000ff) << 24));
+ }
+ 
+-inline uint64_t
++static inline uint64_t
+ bswap_identity_64 (uint64_t v)
+ {
+   return v;
+ }
+ 
+-inline uint64_t
++static inline uint64_t
+ bswap_64 (uint64_t v)
+ {
+   return (  ((v & 0xff00000000000000ULL) >> 56)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011041421.0A4ELiTK021590>