netsurf.libsvgtiny: fix build on GCC 14 (#393543)

This commit is contained in:
Peder Bergebakken Sundt
2025-04-19 02:57:26 +02:00
committed by GitHub
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
fetchpatch,
gperf,
pkg-config,
buildsystem,
@@ -20,6 +21,16 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-w1cifwLoP7KnaxK5ARkaCCIp2x8Ac2Lo8xx1RRDCoBw=";
};
patches = [
# fixes libdom build on gcc 14 due to calloc-transposed-args warning
# remove on next release
(fetchpatch {
name = "fix-calloc-transposed-args.patch";
url = "https://source.netsurf-browser.org/libsvgtiny.git/patch/?id=9d14633496ae504557c95d124b97a71147635f04";
hash = "sha256-IRWWjyFXd+lWci/bKR9uPDKbP3ttK6zNB6Cy5bv4huc=";
})
];
nativeBuildInputs = [
gperf
pkg-config
@@ -38,6 +49,8 @@ stdenv.mkDerivation (finalAttrs: {
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
];
enableParallelBuilding = true;
meta = {
homepage = "https://www.netsurf-browser.org/projects/libsvgtiny/";
description = "NetSurf SVG decoder";