summary refs log tree commit diff
path: root/pkgs/os-specific/linux/rdma-core
diff options
context:
space:
mode:
authorJacek Galowicz <jacek@galowicz.de>2022-03-30 14:41:01 +0200
committerJacek Galowicz <jacek@galowicz.de>2022-03-30 22:32:13 +0200
commit20392d90caadfa8fd4ff7bcabd488934604b11f2 (patch)
tree4ced2c869cbf4e606c60a246ef94bf5b7ff3aa72 /pkgs/os-specific/linux/rdma-core
parent0af8d48266d0846549626d18b7f4c24a67123f3c (diff)
downloadnixpkgs-20392d90caadfa8fd4ff7bcabd488934604b11f2.tar
nixpkgs-20392d90caadfa8fd4ff7bcabd488934604b11f2.tar.gz
nixpkgs-20392d90caadfa8fd4ff7bcabd488934604b11f2.tar.bz2
nixpkgs-20392d90caadfa8fd4ff7bcabd488934604b11f2.tar.lz
nixpkgs-20392d90caadfa8fd4ff7bcabd488934604b11f2.tar.xz
nixpkgs-20392d90caadfa8fd4ff7bcabd488934604b11f2.tar.zst
nixpkgs-20392d90caadfa8fd4ff7bcabd488934604b11f2.zip
rdma-core: Fix pkg-config files
Diffstat (limited to 'pkgs/os-specific/linux/rdma-core')
-rw-r--r--pkgs/os-specific/linux/rdma-core/default.nix6
-rw-r--r--pkgs/os-specific/linux/rdma-core/pkg-config-template.patch14
2 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/rdma-core/default.nix b/pkgs/os-specific/linux/rdma-core/default.nix
index f7543291ded..60d917e8e62 100644
--- a/pkgs/os-specific/linux/rdma-core/default.nix
+++ b/pkgs/os-specific/linux/rdma-core/default.nix
@@ -23,6 +23,12 @@ stdenv.mkDerivation rec {
     "-DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib"
   ];
 
+  patches = [
+    # this has been fixed in master. As soon as it gets into a release, this
+    # patch won't apply anymore and can be removed.
+    ./pkg-config-template.patch
+  ];
+
   postPatch = ''
     substituteInPlace srp_daemon/srp_daemon.sh.in \
       --replace /bin/rm rm
diff --git a/pkgs/os-specific/linux/rdma-core/pkg-config-template.patch b/pkgs/os-specific/linux/rdma-core/pkg-config-template.patch
new file mode 100644
index 00000000000..22898bc7528
--- /dev/null
+++ b/pkgs/os-specific/linux/rdma-core/pkg-config-template.patch
@@ -0,0 +1,14 @@
+diff -ru source/buildlib/template.pc.in source-fixed/buildlib/template.pc.in
+--- source/buildlib/template.pc.in	1970-01-01 01:00:01.000000000 +0100
++++ source-fixed/buildlib/template.pc.in	2022-03-30 22:29:12.988625941 +0200
+@@ -1,7 +1,6 @@
+-prefix=@CMAKE_INSTALL_PREFIX@
+-exec_prefix=${prefix}
+-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
+-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
++exec_prefix=@CMAKE_INSTALL_PREFIX@
++libdir=@CMAKE_INSTALL_LIBDIR@
++includedir=@CMAKE_INSTALL_INCLUDEDIR@
+ 
+ Name: lib@PC_LIB_NAME@
+ Description: RDMA Core Userspace Library