db{48,53,60,62}: get gentoo patch for gcc15 and Wno-error=incompatible-pointer-types (#466885)

This commit is contained in:
Fabián Heredia Montiel
2025-12-01 20:33:18 +00:00
committed by GitHub
5 changed files with 17 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
{
lib,
stdenv,
fetchpatch,
fetchurl,
autoreconfHook,
...
+1
View File
@@ -1,6 +1,7 @@
{
lib,
stdenv,
fetchpatch,
fetchurl,
autoreconfHook,
...
+1
View File
@@ -1,6 +1,7 @@
{
lib,
stdenv,
fetchpatch,
fetchurl,
autoreconfHook,
...
+1
View File
@@ -1,6 +1,7 @@
{
lib,
stdenv,
fetchpatch,
fetchurl,
autoreconfHook,
...
+13 -1
View File
@@ -1,6 +1,7 @@
{
lib,
stdenv,
fetchpatch,
fetchurl,
autoreconfHook,
cxxSupport ? true,
@@ -29,7 +30,14 @@ stdenv.mkDerivation (
# configure checks to work incorrectly with clang 16.
nativeBuildInputs = [ autoreconfHook ];
patches = extraPatches;
patches = [
(fetchpatch {
name = "gcc15.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-libs/db/files/db-4.8.30-tls-configure.patch?id=1ae36006c79ef705252f5f7009e79f6add7dc353";
hash = "sha256-OzQL+kgXtcvhvyleDLuH1abhY4Shb/9IXx4ZkeFbHOA=";
})
]
++ extraPatches;
outputs = [
"bin"
@@ -75,6 +83,10 @@ stdenv.mkDerivation (
popd
'';
NIX_CFLAGS_COMPILE = [
"-Wno-error=incompatible-pointer-types"
];
configureFlags = [
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
(if compat185 then "--enable-compat185" else "--disable-compat185")