Skip to content

Commit 02e8a11

Browse files
committed
Fix postgresql musl: clear disallowedReferences for cross-compilation
postgresql/generic.nix sets disallowedReferences = [ stdenv'.cc ] which scans all outputs for references to the C compiler after build phases complete. For musl cross-compilation, .pc files or .la files may retain references to the cross-compiler toolchain path, causing the check to fail silently — all build phases complete successfully with no error in the log, but the build is recorded as failed. This explains why postgresql-musl builds consistently "succeed" (all phases including fixup and stripping complete) but are recorded as failures on every builder, even with 400+ GB free disk space.
1 parent f8ce434 commit 02e8a11

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@
162162
doCheck = false;
163163
outputChecks = {};
164164
separateDebugInfo = false;
165+
# generic.nix sets disallowedReferences = [ stdenv'.cc ] which
166+
# scans outputs for references to the C compiler AFTER all build
167+
# phases complete. For musl cross-compilation, .pc files or .la
168+
# files may retain references to the cross-compiler, causing a
169+
# silent post-fixup failure (all phases complete, no error in
170+
# build log, but build recorded as failed).
171+
disallowedReferences = [];
165172
});
166173
});
167174
};

0 commit comments

Comments
 (0)