liblangtag: pull upstream fixes for gcc-13

Without the change build fails on `staging-next` against `gcc-13` as:

    lt-tag.c:36:1: note: include '<stdlib.h>' or provide a declaration of 'free'
       35 | #include "lt-tag-private.h"
      +++ |+#include <stdlib.h>
This commit is contained in:
Sergei Trofimovich 2024-01-01 09:59:59 +00:00
parent e61ae81f8f
commit 3f6141677d

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, autoreconfHook, gtk-doc, gettext
{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, gtk-doc, gettext
, pkg-config, glib, libxml2, gobject-introspection, gnome-common, unzip
}:
@ -23,6 +23,20 @@ stdenv.mkDerivation rec {
sha256 = "0y9x5gra6jri4sk16f0dp69p06almnsl48rs85605f035kf539qm";
};
patches = [
# Pull upstream fix for gcc-13 build compatibility
(fetchpatch {
name = "gcc-13-p1.patch";
url = "https://bitbucket.org/tagoh/liblangtag/commits/0b6e9f4616a34146e7443c4e9a7197153645e40b/raw";
hash = "sha256-69wJDVwDCP5OPHKoRn9WZNrvfCvmlX3SwtRmcpJHn2o=";
})
(fetchpatch {
name = "gcc-13-p1.patch";
url = "https://bitbucket.org/tagoh/liblangtag/commits/1497c4477d0fa0b7df1886951b953dd3cea54427/raw";
hash = "sha256-k0Uaeg6YLxVze4fgf0kiyuiZJ5wh2Jq3h7cFPQPtwyo=";
})
];
postPatch = ''
gtkdocize
cp "${core_zip}" data/core.zip