mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
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:
parent
e61ae81f8f
commit
3f6141677d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user