Skip to content

coccinelle: 1.3.1 -> 1.3.3 - #582934

Merged
vbgl merged 1 commit into
NixOS:masterfrom
jemand771:coccinelle-update-fix
Nov 9, 2026
Merged

vbgl merged 1 commit into
NixOS:masterfrom
jemand771:coccinelle-update-fix

Conversation

@jemand771

@jemand771 jemand771 commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

supersedes #554724

diff: coccinelle/coccinelle@1.3.1...1.3.2

Things done

Co-authored-by: Stanley Chan <[email protected]>
@nixpkgs-ci
nixpkgs-ci Bot requested a review from thoughtpolice November 4, 2026 00:45
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. labels Nov 4, 2026
@jemand771

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 582934
Commit: 50cd1de7e72a07d020b3a41f2d0d1f9a67077f21


x86_64-linux

❌ 2 packages failed to build:
  • linuxPackages_xanmod.drbd (linuxKernel.packages.linux_xanmod.drbd)
  • linuxPackages.drbd (linuxKernel.packages.linux_6_18.drbd)
✅ 12 packages built:
  • coccinelle
  • linuxPackages_xanmod_stable.drbd (linuxKernel.packages.linux_xanmod_latest.drbd, linuxPackages_xanmod_latest.drbd)
  • cvehound
  • linuxKernel.packages.linux_6_1.drbd
  • linuxPackages_zen.drbd (linuxKernel.packages.linux_zen.drbd)
  • linuxKernel.packages.linux_6_6.drbd
  • linuxPackages_latest.drbd (linuxKernel.packages.linux_7_3.drbd)
  • linuxKernel.packages.linux_7_2.drbd
  • linuxKernel.packages.linux_6_12.drbd
  • tests.makeHardcodeGsettingsPatch.existsFn
  • tests.makeHardcodeGsettingsPatch.basic
  • tests.makeHardcodeGsettingsPatch.patches

linuxPackages_xanmod.drbd
  522 |         err = socket->ops->connect(socket, (struct sockaddr_unsized *) &peer_addr,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            |
      |                                            struct sockaddr_unsized *
/build/drbd-9.3.3/drbd/drbd_transport_tcp.c:522:44: note: expected 'struct sockaddr *' but argument is of type 'struct sockaddr_unsized *'
make[4]: *** [/nix/store/67vrzvm90dmwk839gybwlyld064xaznh-linux-xanmod-6.18.60-dev/lib/modules/6.18.60-xanmod1/source/scripts/Makefile.build:287: drbd_transport_tcp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/build/drbd-9.3.3/drbd/drbd_transport_lb-tcp.c: In function 'dtl_try_connect':
/build/drbd-9.3.3/drbd/drbd_transport_lb-tcp.c:706:40: error: passing argument 2 of 'sock->ops->connect' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-16.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types�-Wincompatible-pointer-types8;;�]
  706 |         err = sock->ops->connect(sock, (struct sockaddr_unsized *) &peer_addr,
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                        |
      |                                        struct sockaddr_unsized *
/build/drbd-9.3.3/drbd/drbd_transport_lb-tcp.c:706:40: note: expected 'struct sockaddr *' but argument is of type 'struct sockaddr_unsized *'
make[4]: *** [/nix/store/67vrzvm90dmwk839gybwlyld064xaznh-linux-xanmod-6.18.60-dev/lib/modules/6.18.60-xanmod1/source/scripts/Makefile.build:287: drbd_transport_lb-tcp.o] Error 1
make[3]: *** [/nix/store/67vrzvm90dmwk839gybwlyld064xaznh-linux-xanmod-6.18.60-dev/lib/modules/6.18.60-xanmod1/source/Makefile:2055: .] Error 2
make[2]: *** [/nix/store/67vrzvm90dmwk839gybwlyld064xaznh-linux-xanmod-6.18.60-dev/lib/modules/6.18.60-xanmod1/source/Makefile:248: __sub-make] Error 2
make[1]: *** [Makefile:248: kbuild] Error 2
make[1]: Leaving directory '/build/drbd-9.3.3/drbd'
make: *** [Makefile:127: module] Error 2
linuxPackages.drbd
  706 |         err = sock->ops->connect(sock, (struct sockaddr_unsized *) &peer_addr,
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                        |
      |                                        struct sockaddr_unsized *
/build/drbd-9.3.3/drbd/drbd_transport_lb-tcp.c:706:40: note: expected 'struct sockaddr *' but argument is of type 'struct sockaddr_unsized *'
/build/drbd-9.3.3/drbd/drbd_transport_tcp.c: In function 'dtt_try_connect':
/build/drbd-9.3.3/drbd/drbd_transport_tcp.c:522:44: error: passing argument 2 of 'socket->ops->connect' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-16.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types�-Wincompatible-pointer-types8;;�]
  522 |         err = socket->ops->connect(socket, (struct sockaddr_unsized *) &peer_addr,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            |
      |                                            struct sockaddr_unsized *
/build/drbd-9.3.3/drbd/drbd_transport_tcp.c:522:44: note: expected 'struct sockaddr *' but argument is of type 'struct sockaddr_unsized *'
make[4]: *** [/nix/store/wxzm8naavxk8q0zpwvp9lqv2b4z93qsy-linux-6.18.60-dev/lib/modules/6.18.60/source/scripts/Makefile.build:287: drbd_transport_lb-tcp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [/nix/store/wxzm8naavxk8q0zpwvp9lqv2b4z93qsy-linux-6.18.60-dev/lib/modules/6.18.60/source/scripts/Makefile.build:287: drbd_transport_tcp.o] Error 1
make[3]: *** [/nix/store/wxzm8naavxk8q0zpwvp9lqv2b4z93qsy-linux-6.18.60-dev/lib/modules/6.18.60/source/Makefile:2050: .] Error 2
make[2]: *** [/nix/store/wxzm8naavxk8q0zpwvp9lqv2b4z93qsy-linux-6.18.60-dev/lib/modules/6.18.60/source/Makefile:248: __sub-make] Error 2
make[1]: *** [Makefile:248: kbuild] Error 2
make[1]: Leaving directory '/build/drbd-9.3.3/drbd'
make: *** [Makefile:127: module] Error 2

@jemand771

Copy link
Copy Markdown
Member Author

(drbd failure is a kernel thing on 6.18)

@Skyb0rg007 Skyb0rg007 mentioned this pull request Nov 5, 2026
2 of 3 tasks
kid added a commit to kid/home-ops that referenced this pull request Nov 7, 2026
nixpkgs `0bb2eed` (from #595) marks `ocamlPackages.ocaml_pcre` broken
(legacy pcre removal, NixOS/nixpkgs@fa900f9e30). `coccinelle` depends on
it, the `drbd` kernel module builds with `coccinelle`, and miroir loads
`drbd` on every k3s node, so `colmena apply` on k3s-prd-* fails at
evaluation.

- Roll `nixpkgs` back to `3ec6363` (2026-10-23), the pre-#595 pin. Hold
it until NixOS/nixpkgs#582934 (coccinelle 1.3.3 on pcre2) reaches
nixos-unstable.
- Add `checks.nixos-<host>`, building every `nixosConfigurations`
toplevel (`modules/flake/nixos-checks.nix`). Plain `nix flake check`
only checks a host is a derivation without instantiating it, which is
why #595 passed CI.
- Drop the `nix flake check` pre-push hook: it now builds every host
closure.

Verified locally: on `0bb2eed` the new check fails with the same
`ocaml4.14.4-pcre` error; on `3ec6363` all four host checks build.

Open question: CI's disk and its 5G `cache-nix-action` store cap may not
fit four full system closures.
@vbgl
vbgl added this pull request to the merge queue Nov 9, 2026
Merged via the queue into NixOS:master with commit 39f3033 Nov 9, 2026
31 checks passed
happy-dude added a commit to happy-dude/dotfiles that referenced this pull request Nov 9, 2026
The coccinelle override is meant to turn itself off once nixpkgs builds
coccinelle against pcre2. NixOS/nixpkgs#582934 does that: it bumps
coccinelle to 1.3.3 and swaps ocaml_pcre for ocamlPackages.pcre2, with
the same source hash as the override. It merged to master as
39f3033937d1, but neither nixpkgs-unstable nor nixos-unstable carries it
yet, so the override stays for now.

Its follow-up, NixOS/nixpkgs#583709, deletes ocamlPackages.ocaml_pcre.
The override's check reads `ocamlPackages.ocaml_pcre.name`, so once that
lands, both profiles would fail to evaluate instead of warning. On that
PR's head, a63af63d8142, the check fails with:

    error: attribute 'ocaml_pcre' missing

Match the buildInputs' pname instead: ocaml_pcre's is "pcre" and the
pcre2 binding's is "pcre2". The check then never names the removed
attribute and still avoids forcing the broken package. Point the comment
and warning at #582934, which superseded the closed NixOS/nixpkgs#554724.

Tested by evaluating both profiles against three nixpkgs revisions:

| nixpkgs                   | coccinelle input | override | warning |
| ------------------------- | ---------------- | -------- | ------- |
| locked 4fe25e12eb9f       | pcre             | on       | none    |
| master 39f3033937d1       | pcre2            | off      | shown   |
| #583709 head a63af63d8142 | pcre2            | off      | shown   |

On the locked revision, both activation derivations are the same as
before. At 39f3033937d1, applying the override to nixpkgs' coccinelle
gives the same derivation as nixpkgs' own, so the override is
redundant there, and the profiles install nixpkgs' coccinelle 1.3.3.
These were checked by evaluation only; coccinelle from the two newer
revisions was not built.

Link: NixOS/nixpkgs#582934
Link: NixOS/nixpkgs#583709
Assisted-by: claude-opus-5-5:xhigh oh-my-pi
Signed-off-by: Stanley Chan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants