From c185999d75b6e8dd271d62994e3a5880600859d9 Mon Sep 17 00:00:00 2001 From: Anthony ROUSSEL Date: Tue, 29 Oct 2024 21:13:32 +0100 Subject: [PATCH] ocsinventory-agent: 2.10.1 -> 2.10.3 https://github.com/OCSInventory-NG/UnixAgent/compare/v2.10.1-MAC...v2.10.3-MAC --- pkgs/by-name/oc/ocsinventory-agent/package.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/oc/ocsinventory-agent/package.nix b/pkgs/by-name/oc/ocsinventory-agent/package.nix index d3f77414e049d0..de3ce420fbec86 100644 --- a/pkgs/by-name/oc/ocsinventory-agent/package.nix +++ b/pkgs/by-name/oc/ocsinventory-agent/package.nix @@ -22,21 +22,30 @@ }: perlPackages.buildPerlPackage rec { - version = "2.10.1"; pname = "ocsinventory-agent"; + version = "2.10.3"; src = fetchFromGitHub { owner = "OCSInventory-NG"; repo = "UnixAgent"; rev = "refs/tags/v${version}-MAC"; - hash = "sha256-aFzBrUsVttUhpYGEYd/yYuXmE90PGCiBmBsVjtHcHLg="; + hash = "sha256-r2oqs2gxFda0xn3B9Pmtpg7+E7PQpV2yOztP6GVnqyE="; }; + postPatch = '' + # Fix Getopt-Long warnings introduced with v2.55 + # This version adds a breaking change which enforce case sensitive single-letter options by default. + # See https://github.com/sciurius/perl-Getopt-Long/commit/5b5647b709fec087d2b7a31f7a613441d989d480 + substituteInPlace lib/Ocsinventory/Agent/Config.pm \ + --replace-fail "use Getopt::Long;" "use Getopt::Long qw(:config no_ignore_case);" + ''; + nativeBuildInputs = [ makeWrapper ] ++ lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang; buildInputs = with perlPackages; [ perl DataUUID + GetoptLong IOCompress IOSocketSSL LWP @@ -82,7 +91,7 @@ perlPackages.buildPerlPackage rec { package = ocsinventory-agent; command = "ocsinventory-agent --version"; # upstream has not updated version in lib/Ocsinventory/Agent/Config.pm - version = "2.10.0"; + version = "2.10.2"; }; }; updateScript = nix-update-script { };