Skip to content

pcre2: fix gitea websearch crashing when searching for a plain string - #179444

Merged
SuperSandro2000 merged 1 commit into
NixOS:stagingfrom
SuperSandro2000:fix-gitea-commit-search
Jul 1, 2022
Merged

SuperSandro2000 merged 1 commit into
NixOS:stagingfrom
SuperSandro2000:fix-gitea-commit-search

Conversation

@SuperSandro2000

@SuperSandro2000 SuperSandro2000 commented Jun 28, 2022 •

Copy link
Copy Markdown
Member
Description of changes
Things done

Tested on my gitea server by going to commit history and writing a string (not regex) into search commits input field.

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

The nixos gitea module sets MemoryDenyWriteExecute=true which requires
pcre2 to be compiled with --enable-jit-sealloc otherwise it fails with
"-48".

See go-gitea/gitea#10840 and archlinux/svntogit-packages@920838a
@ofborg
ofborg Bot requested a review from ttuegel June 28, 2022 13:23
@ofborg ofborg Bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Jun 28, 2022
@SuperSandro2000
SuperSandro2000 merged commit c990bd6 into NixOS:staging Jul 1, 2022
@SuperSandro2000
SuperSandro2000 deleted the fix-gitea-commit-search branch July 1, 2022 19:06
@Mic92 Mic92 mentioned this pull request Jul 18, 2022
3 of 13 tasks
@Mic92

Mic92 commented Jul 18, 2022

Copy link
Copy Markdown
Member

Seems to have caused a regression in rspamd: #181908

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixpkgss-current-development-workflow-is-not-sustainable/18741/110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants