Skip to content

ocamlPackages.ocaml_pcre: drop - #583709

Merged
vbgl merged 1 commit into
NixOS:masterfrom
Skyb0rg007:ocaml-pcre-drop
Nov 9, 2026
Merged

vbgl merged 1 commit into
NixOS:masterfrom
Skyb0rg007:ocaml-pcre-drop

Conversation

@Skyb0rg007

@Skyb0rg007 Skyb0rg007 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

This PR removes the ocaml_pcre package from nixpkgs.

This PR is marked as draft as it depends on #583645, #583715, #582934, #584615, #584617, #584635, and #585404.

This PR is ready for review

Things done

@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. 6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. labels Nov 5, 2026
@Skyb0rg007
Skyb0rg007 force-pushed the ocaml-pcre-drop branch 2 times, most recently from 4bc71e6 to b43ec7c Compare November 5, 2026 18:30
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 2.status: merge conflict This PR has merge conflicts with the target branch and removed 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. labels Nov 5, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. and removed 2.status: merge conflict This PR has merge conflicts with the target branch 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels Nov 7, 2026
@Skyb0rg007
Skyb0rg007 force-pushed the ocaml-pcre-drop branch 2 times, most recently from 56283ae to 4b8de70 Compare November 9, 2026 11:56
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Nov 9, 2026
@Skyb0rg007
Skyb0rg007 marked this pull request as ready for review November 9, 2026 13:41
@nixpkgs-ci
nixpkgs-ci Bot requested a review from ulrikstrid November 9, 2026 13:46
@nixpkgs-ci nixpkgs-ci Bot removed 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Nov 9, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Nov 9, 2026
@vbgl
vbgl added this pull request to the merge queue Nov 9, 2026
Merged via the queue into NixOS:master with commit 112ae63 Nov 9, 2026
30 checks passed
@Skyb0rg007
Skyb0rg007 deleted the ocaml-pcre-drop branch November 9, 2026 15:35
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

6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants