Repository navigation
coccinelle: 1.3.1 -> 1.3.3 - #554724
coccinelle: 1.3.1 -> 1.3.3#554724r-ryantm wants to merge 1 commit into
Conversation
b161cab to
ecc8241
Compare
|
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
To inspect upstream changesImpactChecks done
Rebuild report (if merged into master) (click to expand)Instructions to test this update (click to expand)Either download from the cache: (The nixpkgs-update cache is only trusted for this store-path realization.) Or, build yourself: Or: After you've downloaded or built it, look at the files and if there are any, run the binaries: Pre-merge build resultsWe have automatically built all packages that will get rebuilt due to This gives evidence on whether the upgrade will break dependent packages.
|
✅
|
yzhou216
left a comment
There was a problem hiding this comment.
Approved automatically following the successful run of nixpkgs-review.
|
Hey, thanks for the bump! cc @thoughtpolice Since #578893, This PR still uses buildInputs = with ocamlPackages; [
- ocaml_pcre
+ pcre2
parmap
pyml
stdcompat
];Built on nixpkgs-unstable Same score as 1.3.3 built with its bundled pcre2. I only tried x86_64-linux.
Drafted with oh-my-pi/18.12.3 (claude-opus-5-5); I reviewed the change and the test results myself. |
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]>
There was a problem hiding this comment.
whoops, misread @happy-dude's comment thinking this was already in place, but it isn't; so un-approve
followup: #582934
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]>
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
To inspect upstream changes
Impact
Checks done
passthru.tests, if any, passedRebuild report (if merged into master) (click to expand)
Instructions to test this update (click to expand)
Either download from the cache:
(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-userslist or you can usesudosince root is effectively trusted.Or, build yourself:
Or:
After you've downloaded or built it, look at the files and if there are any, run the binaries:
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-reviewresultGenerated using
nixpkgs-review.Command:
nixpkgs-review --extra-nixpkgs-config '{ allowBroken = false; }'Commit:
b161cabe24d991c3d2cdecba10b2b24d42616619x86_64-linux✅ 14 packages built:
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 mergeto automatically merge this update using thenixpkgs-merge-bot.