ITADN

Bottles fails to build on NixOS unstable due to OpenLDAP test failure

#1762Closedsircam-html 创建于 2026-05-22
bug
S
sircam-htmlcommented
## Summary ## Bug description Bottles fails to build on NixOS unstable (`nixos/trunk-combined`) since April 28, 2026 due to a dependency failure in `openldap-2.6.13`. The OpenLDAP test suite (`test017-syncreplication-refresh`) fails inside the NixOS build sandbox due to a timing issue — the test waits exactly 7 seconds for database synchronization which is insufficient in the sandboxed build environment. Since Bottles depends on OpenLDAP as a build-time dependency, every Bottles build fails as a consequence. The same version of Bottles builds successfully on the `nixos/release-25.11` channel where OpenLDAP has not been updated to `2.6.13`. ## To Reproduce 1. Switch NixOS channel to `nixos-unstable` 2. Add `bottles` to `home.nix` or `configuration.nix` 3. Run `home-manager switch` or `nixos-rebuild switch` 4. Build fails with OpenLDAP test error ## Expected behavior Bottles should build successfully on NixOS unstable as it does on NixOS 25.11 stable. ## Build failure log ``` test failed - provider and consumer databases differ >>>>> 00:03:08 Failed test017-syncreplication-refresh for mdb after 38 seconds (exit 1) make[2]: *** [Makefile:319: mdb-yes] Error 1 make[2]: Leaving directory '/build/openldap-2.6.13/tests' make[1]: *** [Makefile:286: test] Error 2 make[1]: Leaving directory '/build/openldap-2.6.13/tests' make: *** [Makefile:297: test] Error 2 error: Cannot build '/nix/store/r6kxpsfcvfkcnipf5qdsmszdp1hqrcrb-openldap-2.6.13.drv'. ``` ## Hydra Status Confirmed via `hydra-check`: **NixOS unstable (broken since 2026-04-28):** - ✖ Dependency failed — bottles-63.2 — 2026-05-22 - ⏹ (Cancelled) — bottles-63.2 — 2026-05-21 - ⏹ (Cancelled) — bottles-63.2 — 2026-05-16 - ✖ Dependency failed — bottles-63.2 — 2026-05-12 - ✖ Dependency failed — bottles-63.2 — 2026-05-06 - ✖ Dependency failed — bottles-63.2 — 2026-05-02 - ✖ Dependency failed — bottles-63.2 — 2026-04-28 - ✔ Last successful build — bottles-63.2 — 2026-04-24 **NixOS 25.11 stable (all green):** - ✔ bottles — 2026-05-14 - ✔ bottles — 2026-05-06 - ✔ bottles — 2026-04-26 Hydra job: https://hydra.nixos.org/job/nixos/unstable/nixpkgs.bottles.x86_64-linux ## Hydra Server - OS and version: NixOS 25.11.10684.8fd9daa3db09 (Xantusia) - Nix version: 2.34.7 - Affected package: `openldap-2.6.13` - Affected dependency chain: `openldap-2.6.13` → `bottles-63.2` ## Proposed Fix Disable the flaky OpenLDAP test in nixpkgs by adding `doCheck = false` to the openldap derivation: ```nix openldap = prev.openldap.overrideAttrs (old: { doCheck = false; }); ``` This is a known workaround that resolves the build failure immediately. ## Additional context - The test `test017-syncreplication-refresh` is timing-sensitive and fails specifically inside the NixOS build sandbox - OpenLDAP works correctly at runtime — only the test suite fails - Bottles does not use OpenLDAP functionally — it is only a build-time dependency - The issue has been present for over 3 weeks with no fix landing on unstable
关闭于 2026-05-29 0 条评论