libowfat: 0.32 -> 0.33

This commit is contained in:
Jörg Thalheim 2023-03-27 21:22:02 +02:00
parent 4bb072f0a8
commit fc69cf51a5

View file

@ -2,21 +2,13 @@
stdenv.mkDerivation rec {
pname = "libowfat";
version = "0.32";
version = "0.33";
src = fetchurl {
url = "https://www.fefe.de/libowfat/${pname}-${version}.tar.xz";
sha256 = "1hcqg7pvy093bxx8wk7i4gvbmgnxz2grxpyy7b4mphidjbcv7fgl";
sha256 = "sha256-MR7Is/S3K7RC4yP7ATqY+Vb6dFVH8ryUVih7INAnzX0=";
};
patches = [
(fetchurl {
name = "first_deferred.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/libowfat/files/libowfat-0.32-gcc10.patch?id=129f4ab9f8571c651937c46ba7bd4c82d6d052a2";
sha256 = "zxWb9qq5dkDucOsiPfGG1Gb4BZ6HmhBjgSe3tBnydP4=";
})
];
# Fix for glibc 2.34 from Gentoo
# https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=914a4aa87415dabfe77181a2365766417a5919a4
postPatch = ''
@ -26,6 +18,9 @@ stdenv.mkDerivation rec {
# remove unneeded definition of __deprecated__
sed '/^#define __deprecated__$/d' -i scan/scan_iso8601.c scan/scan_httpdate.c || die
'';
preBuild = ''
make headers
'';
makeFlags = [ "prefix=$(out)" ];
enableParallelBuilding = true;