Hello folks, I’ve been setting up a samba share on NixOS and quickly I found out that the share was not discoverable and learnt from the official wiki that I was supposed to use package = pkgs.samba4Full to enable mDNS and make it discoverable.
However that triggered a big recompilation that even included unrelated packages like ceph, which I thought made no sense. I’ve managed to reduce it to just enable mDNS which still triggers a recompilation, but without lots of other dependencies.
Is this expected? It looks to me there should be a simpler path to enabling mDNS on the samba share, even if it were to have a separate package that would also be on the binary cache.
I can test it again when I’m home, but this is my flake.lock .
Thanks, I didn’t know you could have a flake.nix/flake.lock in a subdirectory.
It’s not cached because Hydra (the nix build server) failed to build ceph (a dependency of samba4Full).
If you want to get updates on this issue you can follow this GitHub issue.
opened 11:33AM - 15 Jul 26 UTC
0.kind: build failure
### Nixpkgs version
- Unstable (26.11)
### Steps to reproduce
1. `nix build -… f . ceph`
### Can Hydra reproduce this build failure?
Yes, Hydra can reproduce this build failure.
### Link to Hydra build job
https://hydra.nixos.org/build/336717534
### Relevant log output
```console
In file included from /build/ceph-20.2.2.tar.gz-patched/src/s3select/include/encryption_internal.h:23,
from /build/ceph-20.2.2.tar.gz-patched/src/s3select/include/s3select_parquet_intrf.h:27,
from /build/ceph-20.2.2.tar.gz-patched/src/s3select/include/s3select_oper.h:17,
from /build/ceph-20.2.2.tar.gz-patched/src/s3select/include/s3select.h:14,
from /build/ceph-20.2.2.tar.gz-patched/src/rgw/rgw_s3select_private.h:39,
from /build/ceph-20.2.2.tar.gz-patched/src/rgw/rgw_s3select.cc:4:
/build/ceph-20.2.2.tar.gz-patched/src/s3select/include/encryption_internal_20.h:24:10: fatal error: arrow/util/span.h: No such file or directory
24 | #include "arrow/util/span.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/rgw/CMakeFiles/rgw_common.dir/build.make:1315: src/rgw/CMakeFiles/rgw_common.dir/rgw_s3select.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
```
### Additional context
This is likely due to the [*arrow-cpp* bump to 24.0.0](https://github.com/NixOS/nixpkgs/commit/c07b089cad35d800b889c8a65e98d939513ff209) merged as part of #535855. Note here that I cannot for the life of me figure out which PR this originally came from.
### System metadata
- system: `"x86_64-linux"`
- host os: `Linux 6.18.34, NixOS, 26.11 (Zokor), 26.11`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Lix, like Nix) 2.96.0-dev-abfe9d0
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/benaryorg/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/benaryorg/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/benaryorg/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/benaryorg/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/560cyf33wnq5n25d6mshicr3agzv1k9z-lix-2.96.0-dev-abfe9d0/share`
- nixpkgs: `/nix/store/8j04sq7s87lgvczpdk030d2qhrpd9yd9-source`
### Notify maintainers
@adevress @alexanderkjeldaas @johanot @krav @nh2 @benaryorg
---
**Note for maintainers:** Please tag this issue in your pull request description. (i.e. `Resolves #ISSUE`.)
### I assert that this issue is relevant for Nixpkgs
- [x] I assert that this is a bug and not a support request.
- [x] I assert that this is not a [duplicate of an existing issue](https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+label%3A%220.kind%3A+build+failure%22).
- [x] I assert that I have read the [NixOS Code of Conduct](https://github.com/NixOS/.github/blob/master/CODE_OF_CONDUCT.md) and agree to abide by it.
- [x] I assert that I have read the [automation/AI policy](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#automationai-policy) and that this issue report complies with it.
### Is this issue important to you?
Add a :+1: [reaction] to [issues you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc
2 Likes