hpe-ltfs: fix build

main
Jos van Bakel 3 years ago
parent f089c5c76d
commit 4079374c60
No known key found for this signature in database
GPG Key ID: 37589FBAE4DA2BC3
  1. 9
      pkgs/tools/backup/hpe-ltfs/default.nix
  2. 14
      pkgs/tools/backup/hpe-ltfs/remove-sysctl.patch

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, fuse, icu, pkg-config, libxml2, libuuid }:
{ lib, stdenv, fetchFromGitHub, fuse, icu66, pkg-config, libxml2, libuuid }:
stdenv.mkDerivation rec {
version = "3.4.2_Z7550-02501";
@ -13,10 +13,15 @@ stdenv.mkDerivation rec {
sourceRoot = "source/ltfs";
# include sys/sysctl.h is deprecated in glibc. The sysctl calls are only used
# for Apple to determine the kernel version. Because this build only targets
# Linux is it safe to remove.
patches = [ ./remove-sysctl.patch ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
fuse icu libxml2 libuuid
fuse icu66 libxml2 libuuid
];
meta = with lib; {

@ -0,0 +1,14 @@
diff --git a/src/libltfs/arch/arch_info.c b/src/libltfs/arch/arch_info.c
index 179428f..114acf0 100644
--- a/src/libltfs/arch/arch_info.c
+++ b/src/libltfs/arch/arch_info.c
@@ -47,9 +47,6 @@
*/
#include "libltfs/ltfs.h"
-#ifndef mingw_PLATFORM
-#include <sys/sysctl.h>
-#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
Loading…
Cancel
Save