Repository navigation
pcre: drop - #578893
pcre: drop#578893
Conversation
2fe9f73 to
a4c7454
Compare
Signed-off-by: Sefa Eyeoglu <[email protected]>
f2b0d69 to
e618da0
Compare
|
cc @wolfgangwalther who said these haskell packages were non-blocking. Please help unblock this. |
Added TODO instead of marking as broken, as it may not even affect anything at all? Signed-off-by: Sefa Eyeoglu <[email protected]>
Signed-off-by: Sefa Eyeoglu <[email protected]>
The package is considered end of life and was last maintainted in 2015. We spent the 26.11 cycle working on removing our reliance on it and this is the final stretch.
|
Running diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml
index 3c0778f58658..32aa368f7780 100644
--- a/pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml
+++ b/pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml
@@ -4,50 +4,186 @@
# depend on a dependency marked as broken.
dont-distribute-packages:
+ - 2captcha
+ - 3d-graphics-examples
+ - 3dmodels
- 4Blocks
- a-piece-of-flake
- a50
+ - AAI
+ - aasam
+ - abacate
- abcBridge
+ - abcnotation
+ - abeson
(truncated thousands of lines to reduce noise)
- zwirn
+ - zwirn-core
+ - zxcvbn-dvorak
+ - zydiskell
+ - zyre2
diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix
index 7464813ddf49..b920c08a7727 100644
--- a/pkgs/development/haskell-modules/hackage-packages.nix
+++ b/pkgs/development/haskell-modules/hackage-packages.nix
@@ -81949,6 +81949,7 @@ self: {
];
description = "Perform refactorings specified by the refact library";
license = lib.meta.getLicenseFromSpdxId "BSD-3-Clause";
+ hydraPlatforms = lib.platforms.none;
mainProgram = "refactor";
}
) { };
@@ -236126,6 +236127,7 @@ self: {
];
description = "First class accessor labels implemented as lenses";
license = lib.licenses.bsd3;
+ hydraPlatforms = lib.platforms.none;
}
) { };
@@ -446811,7 +446813,7 @@ self: {
{
mkDerivation,
base,
- lua5_4,
+ lua,
tasty,
tasty-hunit,
}:
@@ -446824,7 +446826,7 @@ self: {
"-f-use-pkgconfig"
];
libraryHaskellDepends = [ base ];
- librarySystemDepends = [ lua5_4 ];
+ librarySystemDepends = [ lua ];
testHaskellDepends = [
base
tasty
@@ -446833,7 +446835,7 @@ self: {
description = "Lua, an embeddable scripting language";
license = lib.meta.getLicenseFromSpdxId "MIT";
}
- ) { inherit (pkgs) lua5_4; };
+ ) { lua = null; };
lua-arbitrary = callPackage (
{
|
|
Yeah, I think this PR has nothing to with the breakage. Our script is just broken on master. Another candidate is #554512 which at least also broke the script for lix. The workaround for now is to just run |
|
Just ran |
maralorn
left a comment
There was a problem hiding this comment.
Re the Haskell fix this should be fine now. It will mean a few failed hydra jobs, but that isn’t a blocker and will get cleaned up in due time.
|
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]>
|
The upgrade path for Haskell users of |
nixpkgs removed pcre in NixOS/nixpkgs#578893, so every wrapper fails to evaluate: error: 'pcre' has been removed because it is end of life and was not updated upstream since 2015 The wrapper check only uses pcregrep to list store paths, and pcre2grep takes the same pattern and flags. `${pcre2.bin}` instead of `lib.getExe'` because the nixpkgs.nix pin predates `lib.getExe'`. Link: NixOS/nixpkgs#578893 Assisted-by: claude-opus-5-5:high oh-my-pi/18.12.3 Signed-off-by: Stanley Chan <[email protected]>
Removed from `nixpkgs` in NixOS/nixpkgs#578893
Removed from `nixpkgs` in NixOS/nixpkgs#578893
Removed from `nixpkgs` in NixOS/nixpkgs#578893
nixpkgs removed pcre in NixOS/nixpkgs#578893, so every wrapper fails to evaluate: error: 'pcre' has been removed because it is end of life and was not updated upstream since 2015 The wrapper check only uses pcregrep to list store paths, and pcre2grep takes the same pattern and flags. `${pcre2.bin}` instead of `lib.getExe'` because the nixpkgs.nix pin predates `lib.getExe'`. Link: NixOS/nixpkgs#578893 Assisted-by: claude-opus-5-5:high oh-my-pi/18.12.3 Signed-off-by: Stanley Chan <[email protected]>
The package is considered end of life and was last maintainted in 2015.
We spent the 26.11 cycle working on removing our reliance on it and this
is the final stretch.
Closes: #356387
Blocked-By: #573955
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.