NixOS / NixOS/nixpkgs

samba4Full: is not full (missing clustering support)

Open
#533,147 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0.kind: bug
Dominant language
Nix
Stars
26.2k
Forks
20.1k
PR merge metrics
PR metrics pending

Description

Nixpkgs version
  • Stable (26.05)
Describe the bug

The samba4Full package is compiled without the --with-cluster-support flag.

https://github.com/NixOS/nixpkgs/blob/bd0ff2d3eac24699c3664d5966b9ef36f388e2ca/pkgs/servers/samba/4.x.nix

https://github.com/NixOS/nixpkgs/blob/f3cbc10697c089fc4ab3668aadf20daa3953a8b1/pkgs/top-level/all-packages.nix#L7711-L7720

There is no override/option(?) for clustering yet.

Steps to reproduce
Expected behaviour

I'd expect samba4Full to be built with all features.

Screenshots

No response

Relevant log output

Additional context

https://discourse.nixos.org/t/how-can-i-get-samba-ctdb/78249

I tried overriding the package to compile with clustering support myself but it failed due to FHS paths. This attempt is documented in the Discourse help request but I believe that this should actually be fixed on the package level.

Weakly related to #532714

System metadata

Irrelevant in this context

Notify maintainers

@aneeshusa


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
Is this issue important to you?

Add a 👍 reaction to issues you find important.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with pkgs/servers/samba/4.x.nix and the samba4Full definition in pkgs/top-level/all-packages.nix. Compare the package configuration with Samba's --with-cluster-support requirements and reproduce using services.samba.package = pkgs.samba4Full, then run smbd -b. Done means samba4Full exposes cluster support without the FHS-path failure described in the issue.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.