lzip: fix mingw regression
Broken by the last lzip upgrade.
This commit is contained in:
parent
5d1b96ebf2
commit
366d67dfa4
2 changed files with 16 additions and 0 deletions
|
@ -17,6 +17,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patches = lib.optionals stdenv.hostPlatform.isMinGW [
|
patches = lib.optionals stdenv.hostPlatform.isMinGW [
|
||||||
./mingw-install-exe-file.patch
|
./mingw-install-exe-file.patch
|
||||||
|
# https://lists.nongnu.org/archive/html/lzip-bug/2024-02/msg00015.html
|
||||||
|
# patch provided by upstream, to be removed in the next release
|
||||||
|
./mingw-mkdir-one-argument.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
|
13
pkgs/tools/compression/lzip/mingw-mkdir-one-argument.patch
Normal file
13
pkgs/tools/compression/lzip/mingw-mkdir-one-argument.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
--- lzip-1.24/main.cc 2024-01-26 00:08:47.000000000 +0100
|
||||||
|
+++ lzip-1.24.1/src/main.cc 2024-02-06 16:04:00.000000000 +0100
|
||||||
|
@@ -42,8 +42,10 @@
|
||||||
|
#if defined __MSVCRT__ || defined __OS2__ || defined __DJGPP__
|
||||||
|
#include <io.h>
|
||||||
|
#if defined __MSVCRT__
|
||||||
|
+#include <direct.h>
|
||||||
|
#define fchmod(x,y) 0
|
||||||
|
#define fchown(x,y,z) 0
|
||||||
|
+#define mkdir(name,mode) _mkdir(name)
|
||||||
|
#define strtoull std::strtoul
|
||||||
|
#define SIGHUP SIGTERM
|
||||||
|
#define S_ISSOCK(x) 0
|
Loading…
Reference in a new issue