Skip to content

coccinelle: 1.3.1 -> 1.3.3 - #554724

Closed
r-ryantm wants to merge 1 commit into
NixOS:masterfrom
r-ryantm:auto-update/coccinelle
Closed

r-ryantm wants to merge 1 commit into
NixOS:masterfrom
r-ryantm:auto-update/coccinelle

Conversation

@r-ryantm

Copy link
Copy Markdown
Contributor

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/coccinelle/versions.

meta.description for coccinelle is: Program to apply semantic patches to C code

meta.homepage for coccinelle is: https://coccinelle.gitlabpages.inria.fr/website/

Updates performed
  • Version update
To inspect upstream changes
Impact

Checks done


  • built on NixOS
  • The tests defined in passthru.tests, if any, passed
  • found 1.3.2 with grep in /nix/store/1lvaxjxz58a32jxzl579snr993a3q9dl-coccinelle-1.3.2
  • found 1.3.2 in filename of file in /nix/store/1lvaxjxz58a32jxzl579snr993a3q9dl-coccinelle-1.3.2

Rebuild report (if merged into master) (click to expand)
30 total rebuild path(s)

24 package rebuild(s)

First fifty rebuilds by attrpath

coccinelle
cvehound
linuxKernel.packages.linux_5_10.drbd
linuxKernel.packages.linux_5_15.drbd
linuxKernel.packages.linux_6_1.drbd
linuxKernel.packages.linux_6_12.drbd
linuxKernel.packages.linux_6_18.drbd
linuxKernel.packages.linux_6_6.drbd
linuxKernel.packages.linux_7_1.drbd
linuxKernel.packages.linux_7_2.drbd
linuxKernel.packages.linux_xanmod.drbd
linuxKernel.packages.linux_xanmod_latest.drbd
linuxKernel.packages.linux_xanmod_stable.drbd
linuxKernel.packages.linux_zen.drbd
linuxPackages.drbd
linuxPackages_latest.drbd
linuxPackages_xanmod.drbd
linuxPackages_xanmod_latest.drbd
linuxPackages_xanmod_stable.drbd
linuxPackages_zen.drbd
tests.makeHardcodeGsettingsPatch.basic
tests.makeHardcodeGsettingsPatch.existsFn
tests.makeHardcodeGsettingsPatch.patches
Instructions to test this update (click to expand)

Either download from the cache:

nix-store -r /nix/store/1lvaxjxz58a32jxzl579snr993a3q9dl-coccinelle-1.3.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nixpkgs-update-cache.nix-community.org/' \
  --option trusted-public-keys '
  nixpkgs-update-cache.nix-community.org-1:U8d6wiQecHUPJFSqHN9GSSmNkmdiFW7GW7WNAnHW0SM=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The nixpkgs-update cache is only trusted for this store-path realization.)
For the cached download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.

Or, build yourself:

nix-build -A coccinelle https://github.com/r-ryantm/nixpkgs/archive/b161cabe24d991c3d2cdecba10b2b24d42616619.tar.gz

Or:

nix build github:r-ryantm/nixpkgs/b161cabe24d991c3d2cdecba10b2b24d42616619#coccinelle

After you've downloaded or built it, look at the files and if there are any, run the binaries:

ls -la /nix/store/1lvaxjxz58a32jxzl579snr993a3q9dl-coccinelle-1.3.2
ls -la /nix/store/1lvaxjxz58a32jxzl579snr993a3q9dl-coccinelle-1.3.2/bin


Pre-merge build results

We have automatically built all packages that will get rebuilt due to
this change.

This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review --extra-nixpkgs-config '{ allowBroken = false; }'
Commit: b161cabe24d991c3d2cdecba10b2b24d42616619


x86_64-linux

✅ 14 packages built:
  • coccinelle
  • linuxKernel.packages.linux_5_10.drbd
  • cvehound
  • linuxKernel.packages.linux_5_15.drbd
  • linuxKernel.packages.linux_6_1.drbd
  • linuxKernel.packages.linux_6_12.drbd
  • linuxKernel.packages.linux_6_6.drbd
  • linuxKernel.packages.linux_7_1.drbd
  • linuxKernel.packages.linux_7_2.drbd
  • linuxKernel.packages.linux_xanmod_latest.drbd (linuxKernel.packages.linux_xanmod_stable.drbd)
  • tests.makeHardcodeGsettingsPatch.basic
  • tests.makeHardcodeGsettingsPatch.existsFn
  • tests.makeHardcodeGsettingsPatch.patches
  • linuxKernel.packages.linux_zen.drbd

Maintainer pings

cc @thoughtpolice for testing.

Tip

As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

@nixpkgs-ci
nixpkgs-ci Bot requested a review from thoughtpolice August 20, 2026 15:35
@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. 2.status: merge conflict This PR has merge conflicts with the target branch labels Aug 20, 2026
@r-ryantm
r-ryantm force-pushed the auto-update/coccinelle branch from b161cab to ecc8241 Compare September 9, 2026 21:13
@r-ryantm r-ryantm changed the title coccinelle: 1.3.1 -> 1.3.2 coccinelle: 1.3.1 -> 1.3.3 Sep 9, 2026
@r-ryantm

r-ryantm commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/coccinelle/versions.

meta.description for coccinelle is: Program to apply semantic patches to C code

meta.homepage for coccinelle is: https://coccinelle.gitlabpages.inria.fr/website/

Updates performed
  • Version update
To inspect upstream changes
Impact

Checks done


  • built on NixOS
  • The tests defined in passthru.tests, if any, passed
  • found 1.3.3 with grep in /nix/store/k416daann0jvn90rcgvc2xkqk2n2yvlc-coccinelle-1.3.3
  • found 1.3.3 in filename of file in /nix/store/k416daann0jvn90rcgvc2xkqk2n2yvlc-coccinelle-1.3.3

Rebuild report (if merged into master) (click to expand)
29 total rebuild path(s)

23 package rebuild(s)

First fifty rebuilds by attrpath

coccinelle
cvehound
linuxKernel.packages.linux_5_10.drbd
linuxKernel.packages.linux_5_15.drbd
linuxKernel.packages.linux_6_1.drbd
linuxKernel.packages.linux_6_12.drbd
linuxKernel.packages.linux_6_18.drbd
linuxKernel.packages.linux_6_6.drbd
linuxKernel.packages.linux_7_2.drbd
linuxKernel.packages.linux_xanmod.drbd
linuxKernel.packages.linux_xanmod_latest.drbd
linuxKernel.packages.linux_xanmod_stable.drbd
linuxKernel.packages.linux_zen.drbd
linuxPackages.drbd
linuxPackages_latest.drbd
linuxPackages_xanmod.drbd
linuxPackages_xanmod_latest.drbd
linuxPackages_xanmod_stable.drbd
linuxPackages_zen.drbd
tests.makeHardcodeGsettingsPatch.basic
tests.makeHardcodeGsettingsPatch.existsFn
tests.makeHardcodeGsettingsPatch.patches
Instructions to test this update (click to expand)

Either download from the cache:

nix-store -r /nix/store/k416daann0jvn90rcgvc2xkqk2n2yvlc-coccinelle-1.3.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nixpkgs-update-cache.nix-community.org/' \
  --option trusted-public-keys '
  nixpkgs-update-cache.nix-community.org-1:U8d6wiQecHUPJFSqHN9GSSmNkmdiFW7GW7WNAnHW0SM=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The nixpkgs-update cache is only trusted for this store-path realization.)
For the cached download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.

Or, build yourself:

nix-build -A coccinelle https://github.com/r-ryantm/nixpkgs/archive/ecc824103dd336fb585f90581b37977ee5fa4b40.tar.gz

Or:

nix build github:r-ryantm/nixpkgs/ecc824103dd336fb585f90581b37977ee5fa4b40#coccinelle

After you've downloaded or built it, look at the files and if there are any, run the binaries:

ls -la /nix/store/k416daann0jvn90rcgvc2xkqk2n2yvlc-coccinelle-1.3.3
ls -la /nix/store/k416daann0jvn90rcgvc2xkqk2n2yvlc-coccinelle-1.3.3/bin


Pre-merge build results

We have automatically built all packages that will get rebuilt due to
this change.

This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review --extra-nixpkgs-config '{ allowBroken = false; }'
Commit: ecc824103dd336fb585f90581b37977ee5fa4b40


x86_64-linux

✅ 13 packages built:
  • coccinelle
  • linuxKernel.packages.linux_5_10.drbd
  • cvehound
  • linuxKernel.packages.linux_5_15.drbd
  • linuxKernel.packages.linux_6_1.drbd
  • linuxKernel.packages.linux_6_12.drbd
  • linuxKernel.packages.linux_6_6.drbd
  • linuxKernel.packages.linux_7_2.drbd
  • linuxKernel.packages.linux_xanmod_latest.drbd (linuxKernel.packages.linux_xanmod_stable.drbd)
  • tests.makeHardcodeGsettingsPatch.basic
  • tests.makeHardcodeGsettingsPatch.existsFn
  • tests.makeHardcodeGsettingsPatch.patches
  • linuxKernel.packages.linux_zen.drbd

Maintainer pings

cc @thoughtpolice for testing.

Tip

As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

@nixpkgs-ci nixpkgs-ci Bot added 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels Sep 9, 2026
@yzhou216

Copy link
Copy Markdown
Contributor

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (c11ea10)

Command: nixpkgs-review pr 554724
Commit: ecc824103dd336fb585f90581b37977ee5fa4b40 (subsequent changes)
Merge: 50c50fb94d91a31bce7a0882b24ed0502980dae1

Logs: https://github.com/yzhou216/nixpkgs-review-gha/actions/runs/39922855221/attempts/1

Download packages from cache:
  • x86_64-linux
    nix-store -r \
      --option binary-caches 'https://cache.nixos.org/ https://yzhou216.cachix.org' \
      --option trusted-public-keys '
        cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
        yzhou216.cachix.org-1:O7nGwQnLGGBGE8zYFMipVzPVN956FcV57y9SqwEP+O8=
      ' \
      /nix/store/jnycm62is8c1bc0vrgqfcr3h5ipz5l83-drbd-9.3.3 \
      /nix/store/r0jyb5xaipbkw18j85lp8x5r1rh07wrp-drbd-9.3.3 \
      /nix/store/yd6d549nf4r3jw9fy27rqa45nyrw17wj-coccinelle-1.3.3 \
      /nix/store/z4b7p3d7pmwy6bnrgphv63wkwgac04zw-makeHardcodeGsettingsPatch-tests-exists-fn \
      /nix/store/h4n7zyhwmqimbm56x63m5gmw2ry9m829-drbd-9.3.3 \
      /nix/store/w7dydyvl4hxvrdk7ckffz76w6r63z3gl-drbd-9.3.3 \
      /nix/store/76pj1pwk3f3z3mw6l8spi51y0i3hsf7h-drbd-9.3.3 \
      /nix/store/hdkp3ihhrwxzmdm2ix8ga00yjyn79h8y-drbd-9.3.3 \
      /nix/store/5n11fh6wq5ydbipn3ka6w670cfagb3sp-cvehound-1.2.1 \
      /nix/store/diq20m9bqdn6y8zcy5l7w02b255v51w0-cvehound-1.2.1-dist \
      /nix/store/bh6xjqbqx48sidp9sd8bka9q919k7g17-makeHardcodeGsettingsPatch-tests-basic \
      /nix/store/7k26q9c4vb2si6r9flpgsq48j0qiv6r1-drbd-9.3.3 \
      /nix/store/52f5mkki5ir68a7mvmmx7wa511m9smrm-makeHardcodeGsettingsPatch-tests-patches
  • aarch64-linux
    nix-store -r \
      --option binary-caches 'https://cache.nixos.org/ https://yzhou216.cachix.org' \
      --option trusted-public-keys '
        cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
        yzhou216.cachix.org-1:O7nGwQnLGGBGE8zYFMipVzPVN956FcV57y9SqwEP+O8=
      ' \
      /nix/store/d88b6wb9xn71pkz0dz8z5r9sgkkn7r8a-makeHardcodeGsettingsPatch-tests-exists-fn \
      /nix/store/j71y7x446i1wax765fh82hbyw713n5jd-makeHardcodeGsettingsPatch-tests-basic \
      /nix/store/vy5kg1sl3rwzv8djhj5va5idkzir6aws-cvehound-1.2.1 \
      /nix/store/nwp3rkn4l3l7n33m8x4qjadd0qp3j7b5-drbd-9.3.3 \
      /nix/store/jmgv3wrhafvr1ipdzbkz602gkqviq8bl-coccinelle-1.3.3 \
      /nix/store/i7pyjksikzbbim4x3p40x43vix3cczvm-drbd-9.3.3 \
      /nix/store/ricw3k03z28fff1m7rbpr5xmp99v6z6c-drbd-9.3.3 \
      /nix/store/jbrg3l3p39iy1b9s8y1pygh5lwg5zib9-cvehound-1.2.1-dist \
      /nix/store/vysga2xx4h2xn8nxv5shc27dcg3l4dr2-drbd-9.3.3 \
      /nix/store/wmlsp4djmqdgj643kxjx4qkycs0k2f3b-makeHardcodeGsettingsPatch-tests-patches \
      /nix/store/gh89b5rsmqfgkvmxr3ls4dddjdczsvjx-drbd-9.3.3
  • aarch64-darwin
    nix-store -r \
      --option binary-caches 'https://cache.nixos.org/ https://yzhou216.cachix.org' \
      --option trusted-public-keys '
        cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
        yzhou216.cachix.org-1:O7nGwQnLGGBGE8zYFMipVzPVN956FcV57y9SqwEP+O8=
      ' \
      /nix/store/kwjaakp4wqglr61cxz1brx6nj09af1g7-makeHardcodeGsettingsPatch-tests-patches \
      /nix/store/bgascqp02r5yw2ww5yfwlyz8cbvvl86h-cvehound-1.2.1 \
      /nix/store/nnx9fs0xqnjcyfpfhlv7v6gsqnqwn828-makeHardcodeGsettingsPatch-tests-exists-fn \
      /nix/store/crx5al9g9yfmak1if1pd1czkjlhy88m0-makeHardcodeGsettingsPatch-tests-basic \
      /nix/store/pzl70zmi6ymnksq67g93bq98fng6mnl5-cvehound-1.2.1-dist \
      /nix/store/mjlbmhiq6zzi6f7f38j2x0inppsw01dj-coccinelle-1.3.3

x86_64-linux

⏩ 2 packages present in ofBorgs evaluation, but not found in the checkout:
  • linuxKernel.packages.linux_5_10.drbd
  • linuxKernel.packages.linux_5_15.drbd
✅ 12 packages built:
  • coccinelle
  • cvehound
  • linuxKernel.packages.linux_6_6.drbd
  • linuxKernel.packages.linux_6_12.drbd
  • linuxKernel.packages.linux_7_2.drbd
  • linuxPackages_xanmod_latest.drbd (linuxKernel.packages.linux_xanmod_latest.drbd, linuxPackages_xanmod_stable.drbd)
  • linuxKernel.packages.linux_6_1.drbd
  • linuxPackages_zen.drbd (linuxKernel.packages.linux_zen.drbd)
  • linuxPackages_latest.drbd
  • tests.makeHardcodeGsettingsPatch.basic
  • tests.makeHardcodeGsettingsPatch.patches
  • tests.makeHardcodeGsettingsPatch.existsFn

aarch64-linux

⏩ 2 packages present in ofBorgs evaluation, but not found in the checkout:
  • linuxKernel.packages.linux_5_10.drbd
  • linuxKernel.packages.linux_5_15.drbd
✅ 10 packages built:
  • coccinelle
  • cvehound
  • linuxKernel.packages.linux_6_6.drbd
  • linuxKernel.packages.linux_6_12.drbd
  • linuxPackages_latest.drbd
  • linuxKernel.packages.linux_6_1.drbd
  • linuxKernel.packages.linux_7_2.drbd
  • tests.makeHardcodeGsettingsPatch.basic
  • tests.makeHardcodeGsettingsPatch.existsFn
  • tests.makeHardcodeGsettingsPatch.patches

aarch64-darwin (sandbox = true)

✅ 5 packages built:
  • coccinelle
  • cvehound
  • tests.makeHardcodeGsettingsPatch.basic
  • tests.makeHardcodeGsettingsPatch.existsFn
  • tests.makeHardcodeGsettingsPatch.patches

@yzhou216 yzhou216 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved automatically following the successful run of nixpkgs-review.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Oct 23, 2026
@happy-dude

Copy link
Copy Markdown
Contributor

Hey, thanks for the bump! cc @thoughtpolice

Since #578893, ocaml_pcre is broken = true; # stuck on legacy pcre, so coccinelle doesn't evaluate on master:

error: Refusing to evaluate package 'ocaml4.14.4-pcre-8.0.5' … because it has problems:
       - broken: This package is broken.

This PR still uses ocaml_pcre, but 1.3.3 moved to pcre2 upstream (coccinelle/coccinelle@0af33438), so swapping the input is enough:

   buildInputs = with ocamlPackages; [
-    ocaml_pcre
+    pcre2
     parmap
     pyml
     stdcompat
   ];

Built on nixpkgs-unstable f05535a0efcb (x86_64-linux):

$ spatch --version | grep -i regular
Syntax of regular expressions: PCRE
$ ldd $(command -v spatch) | grep pcre
        libpcre2-8.so.0 => /nix/store/…-pcre2-10.49/lib/libpcre2-8.so.0
$ spatch --ctestall --batch_mode   # in a 1.3.3 checkout, ocamlopt on PATH
…
good = 763/763 + 21 known failures
All tests have passed, everything is fine :)

Same score as 1.3.3 built with its bundled pcre2. I only tried x86_64-linux.

ocaml_pcre still has other users (comby, mparser-pcre, inifiles, ocamlnet, janestreet 0.15–0.17), so dropping it is a separate change.

Drafted with oh-my-pi/18.12.3 (claude-opus-5-5); I reviewed the change and the test results myself.

happy-dude added a commit to happy-dude/dotfiles that referenced this pull request Oct 28, 2026
NixOS/nixpkgs#578893 removed pcre and marked ocaml_pcre broken. On
nixpkgs-unstable f05535a0efcb, neither profile evaluates any more, first
failing in nixGL's wrapper check:

    error: 'pcre' has been removed because it is end of life and was not
    updated upstream since 2015

nixGL's checkPhase runs `${pcre}/bin/pcregrep` only to list the store
paths a wrapper references. pcre2grep takes the same pattern and `-o0`,
so call nixGL.nix directly with a `pcre` whose `bin/pcregrep` runs
pcre2grep. The nixGL source stays as upstream ships it; nix-community/nixGL#227
proposes the same swap upstream.

nixpkgs' coccinelle 1.3.1 links ocaml_pcre, so it no longer evaluates
either. Coccinelle 1.3.3 moved to pcre2 upstream
(coccinelle/coccinelle@0af33438), so build that tag against
ocamlPackages.pcre2. NixOS/nixpkgs#554724 bumps to 1.3.3 but still uses
ocaml_pcre, so the override checks the locked coccinelle's inputs for
ocaml_pcre rather than comparing versions. It compares names, because
evaluating the broken package would throw. coccinelle moves out of the
`with pkgs;` list so the overridden one is visibly what is installed.

Each workaround switches itself off once its locked input carries the
fix: when nixGL.nix stops taking `pcre`, or nixpkgs' coccinelle stops
linking ocaml_pcre. Home Manager then warns that the workaround in
home.nix can be removed.

Tested on nixpkgs-unstable f05535a0efcb: both profiles evaluate and
build, nixGLIntel, nixVulkanIntel, and the nixGL-wrapped mesa-demos
build, and the pcregrep shim still rejects a wrapper that references a
missing store path. spatch reports version 1.3.3 with PCRE syntax,
links libpcre2-8, and applies a small semantic patch and a `=~` regex
rule. Coccinelle's own `--ctestall` run on this 1.3.3 + pcre2 build
earlier reported 763/763 plus 21 known failures, the same as 1.3.3 with
its bundled pcre2. With nixGL locked to the #227 branch, the shim turns
off and the nixGL warning appears. With a nixpkgs copy whose coccinelle
uses pcre2, the override turns off and its warning appears. A copy
bumped to 1.3.3 but still on ocaml_pcre keeps the override and warns
about nothing. Those two nixpkgs copies were checked by evaluation only.

Link: NixOS/nixpkgs#578893
Link: NixOS/nixpkgs#554724
Link: nix-community/nixGL#227
Assisted-by: claude-opus-5-5:high oh-my-pi
Signed-off-by: Stanley Chan <[email protected]>

@jemand771 jemand771 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, misread @happy-dude's comment thinking this was already in place, but it isn't; so un-approve

followup: #582934

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Nov 4, 2026
@jemand771 jemand771 mentioned this pull request Nov 4, 2026
4 of 13 tasks
@yzhou216

yzhou216 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

#582934

@yzhou216 yzhou216 closed this Nov 6, 2026
@r-ryantm
r-ryantm deleted the auto-update/coccinelle branch November 6, 2026 12:52
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. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants