Unverified Commit 359fd5c1 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

netsurf.libdom: fix build on GCC 14 (#393229)

parents 0689405f a5a72504
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchurl,
  fetchpatch,
  expat,
  pkg-config,
  buildsystem,
@@ -19,6 +20,16 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-0F5FrxZUcBTCsKOuzzZw+hPUGfUFs/X8esihSR/DDzw=";
  };

  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/libdom.git/patch/?id=2687282d56dfef19e26e9639a5c0cd81de957e22";
      hash = "sha256-1uAdLM9foplCVu8IQlMMlXh6OWHs5eUgsKp+0ZqM9yM=";
    })
  ];

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
@@ -34,6 +45,8 @@ stdenv.mkDerivation (finalAttrs: {
    "NSSHARED=${buildsystem}/share/netsurf-buildsystem"
  ];

  enableParallelBuilding = true;

  meta = {
    homepage = "https://www.netsurf-browser.org/projects/libdom/";
    description = "Document Object Model library for netsurf browser";