ucx: pull upstream fix for binutils-2.39

`binutils-2.39` dropped `#define PTR void*` compaibility macro.

Without this change build fails as:

    debug/debug.c: In function 'load_file':
    debug/debug.c:275:53: error: 'PTR' undeclared (first use in this function)
      275 |     symcount = bfd_read_minisymbols(file->abfd, 0, (PTR)&file->syms, &size);
          |                                                     ^~~
This commit is contained in:
Sergei Trofimovich 2022-08-25 07:51:38 +01:00
parent b0f33ebf40
commit 590822ee4f

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, doxygen
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, doxygen
, numactl, rdma-core, libbfd, libiberty, perl, zlib, symlinkJoin
, enableCuda ? false
, cudatoolkit
@ -22,6 +22,16 @@ in stdenv.mkDerivation rec {
sha256 = "sha256-DWiOmqxBAAH8DE7H0teoKyp+m3wYEo652ac7ey43Erg=";
};
patches = [
# Pull upstream fix for binutils-2.39:
# https://github.com/openucx/ucx/pull/8450
(fetchpatch {
name = "binutils-2.39.patch";
url = "https://github.com/openucx/ucx/commit/6b6128efd416831cec3a1820f7d1c8e648b79448.patch";
sha256 = "sha256-ci00nZG8iOUEFXbmgr/5XkIfiw4eAAdG1wcEYjQSiT8=";
})
];
nativeBuildInputs = [ autoreconfHook doxygen ];
buildInputs = [