49 Commits

Author SHA1 Message Date
Oliver Schmidt
832827f40a percona-server: provide separate client package
This adopts the packaging pattern already used by mariadb to build a
smaller package containing only the mysql client executables.

Downside: This makes overridability of e.g. version a bit worse, as we
are loosing the finalAttrs overridability machinery in `common`.
2026-08-10 09:15:53 +02:00
R. Ryantm
801318251c percona-server: 8.4.8-8 -> 8.4.10-10 2026-07-12 19:54:16 +00:00
Leona Maroni
3ed2bc9727 percona-server_8_0: drop as it's EOL soon
It reaches it's EOL before the NixOS 26.05 release, so drop as release
preperation.
2026-04-20 16:26:13 +02:00
R. Ryantm
14364eb9ad percona-server: 8.4.7-7 -> 8.4.8-8 2026-03-14 07:38:42 +00:00
Thomas Gerbet
a7b70888cc percona-server: 8.4.6-6 -> 8.4.7-7 (#474499) 2026-02-27 12:10:36 +00:00
R. Ryantm
a09eb06645 percona-server_8_0: 8.0.44-35 -> 8.0.45-36 2026-02-23 04:28:23 +00:00
Leona Maroni
d54a686bba treewide: Take over maintainership from the flyingcircus team
The flyingcircus team was dissolved as it's an external team.
We (osnyx and me) take over maintainersip as persons.
2026-01-12 15:48:18 +01:00
Wolfgang Walther
0a5456c067 teams/flyingcircus: drop 2026-01-10 21:57:59 +01:00
R. Ryantm
01baddda5c percona-server: 8.4.6-6 -> 8.4.7-7 2025-12-27 04:29:52 +00:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
R. Ryantm
b33a64073f percona-server_8_0: 8.0.43-34 -> 8.0.44-35 2025-11-29 02:58:05 +00:00
Thomas Gerbet
9be06f56c6 percona-server_8_0: 8.0.42-33 -> 8.0.43-34
Fixes CVE-2025-50078, CVE-2025-50082, CVE-2025-50083, CVE-2025-50085,
CVE-2025-50077, CVE-2025-50092, CVE-2025-50099, CVE-2025-50086,
CVE-2025-50093, CVE-2025-50094, CVE-2025-50079, CVE-2025-50084,
CVE-2025-50087, CVE-2025-50091, CVE-2025-50101, CVE-2025-50102,
CVE-2025-53023, CVE-2025-50097, CVE-2025-50080, CVE-2025-50096,
CVE-2025-50081, CVE-2025-50104, CVE-2025-50098 and CVE-2025-50100.

https://www.oracle.com/security-alerts/cpujul2025.html#AppendixMSQL

https://docs.percona.com/percona-distribution-for-mysql/8.0/release-notes-ps-v8.0.43.html
2025-10-21 23:40:04 +02:00
R. Ryantm
5b3070505f percona-server: 8.4.5-5 -> 8.4.6-6 2025-09-15 15:58:46 +00:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
R. Ryantm
412521436a percona-server: 8.4.4-4 -> 8.4.5-5 2025-06-03 11:21:43 +00:00
Vladimír Čunát
73e0a9827b percona-server_8_0: fix compiling on darwin (#401322) 2025-05-29 08:58:42 +02:00
R. Ryantm
2bb53e99dd percona-server_8_0: 8.0.41-32 -> 8.0.42-33 2025-05-20 22:04:31 +00:00
Josh Heinrichs
321d3dbbbd percona-server_8_0: fix compiling on darwin
Currently percona-server_8_0 fails to compile on Darwin for a few
reasons. First it hits an error due to adding multiple copies of
OpenSSL[1] which Homebrew has fixed and attempted to upstream[2][3].
After addressing that, it fails to compile due to the removal of
std::char_traits<uchar> in LLVM 19. This has already been patched in
mysql80[4], but I couldn't find a precedent for grabbing patches from
another package, so I opted to adapt the patch instead. The
Percona-specific changes are minimal and could be extracted into a
separate patch if that's desirable.

[1] https://perconadev.atlassian.net/jira/software/c/projects/PS/issues/PS-9641
[2] https://github.com/percona/percona-server/pull/5537
[3] https://github.com/Homebrew/homebrew-core/pull/204799
[4] https://github.com/NixOS/nixpkgs/pull/374591
2025-05-09 06:37:19 -06:00
K900
f96ac2dcd6 Merge remote-tracking branch 'origin/master' into staging-next 2025-04-26 09:07:48 +03:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Ihar Hrachyshka
dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00
Thomas Gerbet
a0c047fece percona-server: 8.4.3-3 -> 8.4.4-4
https://docs.percona.com/percona-server/8.4/release-notes/8.4.4-4.html

Fixes:
* CVE-2024-11053
* CVE-2025-21500
* CVE-2025-21501
* CVE-2025-21518
* CVE-2025-21497
* CVE-2025-21555
* CVE-2025-21559
* CVE-2025-21540
* CVE-2025-21490
* CVE-2025-21491
* CVE-2025-21503
* CVE-2025-21523
* CVE-2025-21531
* CVE-2025-21505
* CVE-2025-21529
* CVE-2025-21543
* CVE-2025-21519
* CVE-2025-21546
* CVE-2025-21520
* CVE-2025-21499
* CVE-2025-21493
2025-03-23 17:47:32 +01:00
R. Ryantm
2bf982eeb3 percona-server_8_0: 8.0.40-31 -> 8.0.41-32 2025-03-03 14:36:22 +00:00
Leona Maroni
762c790251 percona_server_8_4: fix broken symlink 2025-02-18 11:38:49 +01:00
Leona Maroni
7cd5f9d166 percona-server_8_0: fix broken symlink 2025-02-18 11:38:45 +01:00
Leona Maroni
d4b509d785 percona-server_8_{0,4}: fix build on aarch64-linux 2025-01-09 15:09:08 +01:00
R. Ryantm
35a4f7eee0 percona-server_8_0: 8.0.39-30 -> 8.0.40-31 2024-12-31 01:41:25 +00:00
Oliver Schmidt
78075270c4 percona-server_8_4: 8.4.2-2 -> 8.4.3-3
release notes:
https://docs.percona.com/percona-server/8.4/release-notes/8.4.3-3.html

Fixed CVEs, taken from 2d69ebbc4e:

Fixes:
* https://github.com/advisories/GHSA-m6rg-98pc-7rxm
* https://github.com/advisories/GHSA-97c4-2w4v-c7r8
* https://github.com/advisories/GHSA-m7rw-p49v-xvr4
* https://github.com/advisories/GHSA-cgw6-mmr2-9474
* https://github.com/advisories/GHSA-m2x9-pvwq-m49p
* https://github.com/advisories/GHSA-w76f-wfx3-5qjq
* https://github.com/advisories/GHSA-vqmm-339w-hc7c
* https://github.com/advisories/GHSA-2rhg-4865-8qfj
* https://github.com/advisories/GHSA-vggh-55p7-p625
* https://github.com/advisories/GHSA-j5r3-hxmp-cxpr
* https://github.com/advisories/GHSA-c72q-9j4p-2mp4
* https://github.com/advisories/GHSA-cj7p-fg4w-qrvh
* https://github.com/advisories/GHSA-fv75-hjwp-hmcm
* https://github.com/advisories/GHSA-xhf9-m56c-xh6w
* https://github.com/advisories/GHSA-c494-hg27-rg85
* https://github.com/advisories/GHSA-r97q-xhcv-9xx9
* https://github.com/advisories/GHSA-h3ph-4h6g-xqfq
* https://github.com/advisories/GHSA-mffh-p59m-fv66
* https://github.com/advisories/GHSA-vchj-ggm5-9rcm
* https://github.com/advisories/GHSA-jv2x-g26c-46cq
* https://github.com/advisories/GHSA-xcwx-vhj6-p7m7
* https://github.com/advisories/GHSA-6vrv-p2wx-g2fg
* https://github.com/advisories/GHSA-6pjm-6xcx-c94q
* https://github.com/advisories/GHSA-36gq-2499-pq9x
* https://github.com/advisories/GHSA-6477-mq9q-6867
2024-12-19 19:05:57 +01:00
Oliver Schmidt
65d0417b29 percona-server: add updateScript 2024-12-19 16:45:40 +01:00
Thomas Gerbet
954f9b947a percona-server_8_0: 8.0.37-29 -> 8.0.39-30
Changes:
https://docs.percona.com/percona-server/8.0/release-notes/8.0.39-30.html
https://docs.percona.com/percona-server/8.0/release-notes/8.0.38.html

Fixes:
* CVE-2024-21171
* CVE-2024-21177
* CVE-2024-21163
* CVE-2024-21173
* CVE-2024-21179
* CVE-2024-21127
* CVE-2024-21129
* CVE-2024-21125
* CVE-2024-21130
* CVE-2024-21162
* CVE-2024-21165
* CVE-2024-21142
* CVE-2024-21134
2024-11-28 12:31:21 +01:00
Thomas Gerbet
2fbd23ab9e percona-server: 8.4.0-1 -> 8.4.2-2
Changes:
https://docs.percona.com/percona-server/8.4/release-notes/8.4.2-2.html
https://docs.percona.com/percona-server/8.4/release-notes/8.4.1.html

Fixes
* CVE-2024-21171
* CVE-2024-21177
* CVE-2024-21163
* CVE-2024-21176
* CVE-2024-20996
* CVE-2024-21157
* CVE-2024-21179
* CVE-2024-21127
* CVE-2024-21129
* CVE-2024-21125
* CVE-2024-21130
* CVE-2024-21162
* CVE-2024-21142
* CVE-2024-21134
2024-11-28 12:26:33 +01:00
jopejoe1
6139a8102e percona-server_8_{0,4}: fix tests not being found 2024-10-19 13:54:49 +02:00
Oliver Schmidt
f02bd5b0fc percona: correct licensing information
Corrects the partially wrong change from #313931, all Oracle MySQL
derivates are actually GPLv2 only.
2024-10-13 23:04:25 +02:00
Oliver Schmidt
4b5141e018 percona: deprecate innovation/lts release flavours
Percona upstream has decided not to create releases or each MySQL
innovation upstream release, but just for LTS releases.
https://www.percona.com/blog/no-mysql-9-x-innovation-releases-from-percona/
2024-10-13 23:04:24 +02:00
Oliver Schmidt
8d14fa2886 percona: apply nixfmt 2024-10-13 18:15:49 +02:00
Oliver Schmidt
b04c93f6f4 percona-server_8_0: 8.0.36-28 -> 8.0.37-29
This is a new LTS release as well.
2024-10-13 18:15:48 +02:00
Oliver Schmidt
712028ec9a percona-server_8_4: init at 8.4.0-1
This is a new LTS release as well.
2024-10-13 18:15:48 +02:00
Oliver Schmidt
188b5df7cd percona-server, percona-xtrabackup: rework naming
When reworking the percona package naming towards the two release
streams "innovation" and "lts", I did not anticipate the case that two
releases are long-term supported in parallel, and that the latest
Innovation release is end-of-life and replaced by a more recent lts.

Hence, the first-level attribute names now reflect the package
major-minor versions again, augmented by attribute names pointing to
respective lts and innovation releases.
2024-10-13 17:52:05 +02:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Leona Maroni
7d01494bff Merge pull request #330085 from joshheinrichs-shopify/fix-percona-server-scripts
percona: fix references to utilities in scripts
2024-08-09 20:03:17 +02:00
Josh Heinrichs
a5dcd41e27 percona: fix references to utilities in scripts
I encountered errors when attempting to run Vitess which calls out to
mysqld_safe[1]. Several utilities are needed in order for it to run e.g.
grep, sed, env, ps, date, hostname, etc.

Additionally, if ps, kill, and grep aren't available to
scripts/CMakeLists.txt, mysqld_start can end up getting generated with
syntax errors as FIND_PROC will be substituted into the script template
as an empty string[2][3].

The presence of systemd in percona-server_innovation seems to prevent
mysqld_multi from being built on Linux so it gets patched conditionally.

This same patch could be applied to MySQL if desired.

[1]: https://github.com/vitessio/vitess/blob/v20.0.1/go/vt/mysqlctl/mysqld.go#L363-L369
[2]: 79c1086e82/scripts/CMakeLists.txt (L255)
[3]: 79c1086e82/scripts/mysqld_safe.sh (L869)
2024-07-31 09:23:12 -06:00
Randy Eckenrode
f9b7f4ec09 tree-wide: use top-level cctools 2024-07-17 22:36:19 -04:00
Jussi Kuokkanen
8064d28a4f pkgs/servers: remove licenses.gpl2 2024-05-23 11:49:42 +03:00
Oliver Schmidt
9164c33ab6 percona: apply required multi-version package structure
To work around the pkgs/by-name CI check, I applied the recommended structure
refactoring as documented in https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name#further-possible-refactorings
2024-05-08 00:40:07 +02:00
Oliver Schmidt
52506a2744 percona: adapt upstream release model
In accordance to the upstream release cycle, we now provide 2 flavours
of the percona mysql ecosystem. The default is the LTS variant,
additionally there is now the floating `percona-server_innovation`
always pointing to the most recent regular release.

- mentioned in release notes
- adapted all depending tests and tools (xtrabackup)
2024-05-08 00:40:06 +02:00
Oliver Schmidt
0999991e93 percona-server_8_3: init at 8.3.0-1
This release belongs to the "innovation" release track of Percona,
making it likely to diverge over time from the LTS release. Hence I just
created a separate packaging expression for this.
2024-05-07 19:56:32 +02:00
Thomas Gerbet
a2f96c785d percona-server_8_0: 8.0.35-27 -> 8.0.36-28
Expected to fix the same set of issues than MySQL 8.0.36 (#284127).

* CVE-2024-20961
* CVE-2024-20962
* CVE-2024-20973
* CVE-2024-20975
* CVE-2024-20977
* CVE-2024-20960
* CVE-2024-20963
* CVE-2024-20985
* CVE-2024-20969
* CVE-2024-20967
* CVE-2024-20964
* CVE-2024-20981
* CVE-2024-20966
* CVE-2024-20970
* CVE-2024-20971
* CVE-2024-20972
* CVE-2024-20974
* CVE-2024-20976
* CVE-2024-20978
* CVE-2024-20982
* CVE-2024-20965
2024-03-06 19:33:27 +01:00
Soner Sayakci
f709a7aafd percona-server_8_0: 8.0.34 -> 8.0.35 2024-02-05 18:33:05 +01:00
Tobias Stenzel
1261914a96 percona-server_8_0: init at 8.0.34 2023-10-04 20:58:50 +02:00