Commit Graph

1312 Commits

Author SHA1 Message Date
Maximilian Bosch
f191ad8240
postgresql: use systemdLibs (#337441) 2024-08-28 23:28:37 +02:00
github-actions[bot]
32f893fe9e
Merge staging-next into staging 2024-08-27 00:13:33 +00:00
Rebecca Turner
6602decb96
postgis: Do not hardcode test suite path (#336889)
postgis: Fix test suite

Fixes this failure:

```
Creating database 'postgis_reg-3.4'.
sh: line 1: /tmp/pgis_reg/regress_log: Permission denied
2024-08-23 19:26:18.810 UTC [3295760] FATAL:  database "postgis_reg-3.4" does not exist
psql: error: FATAL:  database "postgis_reg-3.4" does not exist
Loading unpackaged components from /tmp/nix-build-postgis-3.4.2.drv-0/postgis-3.4.2/regress/00-regress-install/nix/store/kg8g82wxhar9iadxrd3pra3af174khpb-postgis-3.4.2/share/postgresql/contrib/postgis
Loading PostGIS into 'postgis_reg-3.4'
sh: line 1: /tmp/pgis_reg/regress_log: Permission denied
 failed (Error encountered loading /tmp/nix-build-postgis-3.4.2.drv-0/postgis-3.4.2/regress/00-regress-install/nix/store/kg8g82wxhar9iadxrd3pra3af174khpb-postgis-3.4.2/share/postgresql/contrib/postgis/postgis.sql: /tmp/pgis_reg/regress_log)
make: *** [regress/runtest.mk:24: check-regress] Error 1
```
2024-08-26 11:39:19 -07:00
github-actions[bot]
ba8924e6a0
Merge staging-next into staging 2024-08-26 00:13:41 +00:00
Ivan Trubach
2f9c580c6f postgresql: use systemdLibs
Reduces the set of dependencies required to build PostgreSQL.
2024-08-26 01:48:49 +03:00
Wolfgang Walther
050689db30
treewide: fix pg_config / postgresql headers moved to dev output
This was supposed to happen in #294504, but the commit was accidentally
left out when splitting off some libpq-related changes. Originated in
#179962, by Sandro.

Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2024-08-24 15:44:10 +02:00
Bruno Bigras
c64122f97d postgresqlPackages.hypopg: 1.4.0 -> 1.4.1 2024-08-24 01:10:13 -04:00
Wolfgang Walther
73cb40366d
postgresql: refactor to simplify condition
glibc is not available on darwin anyway and isGnu is just shorter.
2024-08-23 21:37:49 +02:00
Wolfgang Walther
dfde86f738
postgresql: refactor removal of references in bitcode files
This prevents silently ignoring errors from "find".
2024-08-23 21:37:49 +02:00
Wolfgang Walther
94d432ce88
postgresql: remove references to llvm-dev on darwin as well
The !isDarwin condition seems to have been put in place only because of the
use of patchelf, which in turn seemed to be necessary because of nuke-refs.

Replacing the big nuke with the more granular remove-references-to allows
enabling this for darwin, too.
2024-08-23 21:37:49 +02:00
Wolfgang Walther
435f51c37f
postgresql: split dev output
This splits a dev output to make the default output not depend on any
build dependencies anymore. This also avoids removing references from
pgxs' Makefile this way, which should, at least theoretically, be good
to build extensions via pgxs, making sure they use the same tooling.

ecpg is the "embedded SQL C preprocessor", which is certainly a dev
tool.

Most important, for closure size anyway, is to move pg_config to the dev
output, since it retains paths to all the other outputs.

The only thing with references to the dev output remaining is then the
postgres binary itself. It contains all the output paths, because it
shows those in the pg_config system view. There is no other way than
to nuke those references to avoid circular dependencies between outputs
- and blowing up closure size again.
2024-08-23 21:37:49 +02:00
Wolfgang Walther
77977286d8
postgresql: move libecpq to lib output
This library is used by other packages, so should be in the lib output.

By removing unused sections, libecpg will not contain any references to other
outputs and thus does not increase the closure for the lib output anymore.
This will also help massively when splitting a dev output later.

As a side-effect, this also unbreaks pkgsMusl.postgresql_12_jit and
pkgsMusl.postgresql_13_jit. For, at least to me, unknown reasons, those build
fine now.
2024-08-23 21:37:49 +02:00
Wolfgang Walther
5547322a0c
postgresql: move dynamic modules to default output
Dynamic modules are technically libraries, but are not used by other packages.
Instead they are loaded by PostgreSQL itself, e.g. as extensions. Those just
increased the size of the lib output without benefit.

This removes the NIX_PGLIBDIR hack introduced in #17838 and instead makes sure
that pg_config always returns the correct PGLIBDIR. The test for postgis
introduced in the same PR is still passing with the change.
2024-08-23 21:37:43 +02:00
Peder Bergebakken Sundt
e471916645
treewide: passthru nixos test (#334491) 2024-08-18 00:29:43 +02:00
Kirill Radzikhovskyy
b023a8a2f1 postgresqlPackages.postgis: sha256 -> hash 2024-08-15 13:56:01 +10:00
Kirill Radzikhovskyy
d3c9639c75 postgresqlPackages.postgis: nixfmt-rfc-style 2024-08-15 13:55:26 +10:00
Kirill Radzikhovskyy
068c11900f postgresqlPackages.postgis: enable tests 2024-08-15 13:55:12 +10:00
Vladimír Čunát
b99f751acd
Merge #333461: postgres: security+bugfix updates
...into staging-next

https://www.postgresql.org/about/news/postgresql-164-158-1413-1316-1220-and-17-beta-3-released-2910/
2024-08-10 07:26:13 +02:00
Sandro Jäckel
632c9dd1c1
postgresql_16: 16.3 -> 16.4
https://www.postgresql.org/support/security/CVE-2024-7348/
Fixes CVE-2024-7348
2024-08-09 16:19:07 +02:00
Sandro Jäckel
47ed51b959
postgresql_15: 15.7 -> 15.8
https://www.postgresql.org/support/security/CVE-2024-7348/
Fixes CVE-2024-7348
2024-08-09 16:19:07 +02:00
Sandro Jäckel
592b5577ed
postgresql_14: 14.12 -> 14.13
https://www.postgresql.org/support/security/CVE-2024-7348/
Fixes CVE-2024-7348
2024-08-09 16:19:06 +02:00
Sandro Jäckel
e9fbb584ea
postgresql_13: 13.15 -> 13.16
https://www.postgresql.org/support/security/CVE-2024-7348/
Fixes CVE-2024-7348
2024-08-09 16:19:06 +02:00
Sandro Jäckel
84a9400564
postgresql_12: 12.19 -> 12.20
https://www.postgresql.org/support/security/CVE-2024-7348/
Fixes CVE-2024-7348
2024-08-09 16:19:06 +02:00
github-actions[bot]
5ca6720152
Merge master into staging-next 2024-08-06 18:01:00 +00:00
Matthew Bauer
2a13929e1f
postgresqlPackages.timescaledb_toolkit: fix on macos (#332353)
* postgresqlPackages.timescaledb_toolkit: fix on macos

It looks like the macOS linker doesn’t like that some of the symbols
are undefined in the extension. They will be provided by the postgres
binary, but macOS linker checks that all symbols are defined.
Apparently, Linux allows these symbols to be undefined.

The -undefined flag changes this behavior:

> Specifies how undefined symbols are to be treated. Options are:
> error, warning, suppress, or dynamic_lookup. The default is error.

So, setting to dynamic_lookup makes the most sense here, and makes
this package work on macOS. I tried to see if pgvecto-rs, which also
uses buildPgrxExtension, would build. Unfortunately, it gave other
errors.

More information on the bug here: https://github.com/supabase/nix-postgres/issues/10

* Remove stdenv
2024-08-06 10:17:48 -05:00
K900
4f29b5a16b Merge remote-tracking branch 'origin/staging-next' into staging 2024-07-31 08:57:17 +03:00
Kirill Radzikhovskyy
1e5b7660b2 postgresql: fix postgis
nixosTests.postgis is failing due to libxml2 update
2024-07-31 07:53:33 +10:00
Aleksana
56d654d41f
Merge pull request #324978 from ivan/unmaintain-two
prisma-engines, postgresqlPackages.pg_embedding: remove myself from maintainers
2024-07-29 19:36:25 +08:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Vladimír Čunát
3f0fd423e3
postgresql_*: upstream patches to support libxml2-2.13
/cc PR #326637
2024-07-21 08:43:52 +02:00
Aleksana
554ada78db
Merge pull request #314963 from sdier/timescaledb2
timescaledb_toolkit: Fix license metadata to TSL license.
2024-07-14 23:56:07 +08:00
aleksana
592e3845c4 treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
Ivan Kozik
8fbfdcec4a postgresqlPackages.pg_embedding: remove ivan from maintainers 2024-07-06 06:18:15 +00:00
Yt
c07812f979
Merge pull request #320302 from diogotcorreia/pgvecto-rs-fix-rust-1-78
postgresqlPackages.pgvecto-rs: fix build failure on rust 1.78
2024-06-23 00:32:44 +00:00
Sandro
e5aa50d733
Merge pull request #319256 from shivaraj-bh/system_stats 2024-06-20 12:11:16 +02:00
shivaraj-bh
da694466aa system_stats: init at 3.0 2024-06-19 21:18:44 +05:30
Maximilian Bosch
6d8d21411e
Merge pull request #317281 from wolfgangwalther/postgresql-eol-policy
postgresql: add readme with eol-policy
2024-06-18 15:54:37 +00:00
Leona Maroni
c4cb6eb3c9
Merge pull request #315851 from LeSuisse/v8-mark-vulnerable
v8: mark vulnerable, move dependents to `nodejs.libv8`
2024-06-17 10:15:09 +02:00
Diogo Correia
005c08d4f6
postgresqlPackages.pgvecto-rs: fix build failure on rust 1.78 2024-06-16 16:52:19 +01:00
Wolfgang Walther
0487937af3
postgresql: add readme with eol-policy
This was discussed and agreed on in [1].

[1]: https://github.com/NixOS/nixpkgs/pull/310580#discussion_r1597284693
2024-06-14 09:38:23 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Wolfgang Walther
f43616270a
postgresql: add wolfgangwalther as maintainer 2024-06-04 20:56:47 +02:00
Sigmanificient
d48a9bb622 treewide: remove unused fetchpatch arguments 2024-06-04 12:40:25 +02:00
Sigmanificient
8b473d1a27 treewide: remove unused fetch* (and other) arguments 2024-05-30 13:36:48 +02:00
Thomas Gerbet
773c17e752 postgresqlPackages.plv8: 3.1.10 -> 3.2.2
Changes:
https://github.com/plv8/plv8/blob/v3.2.2/Changes
2024-05-30 11:30:47 +02:00
Scott Dier
d5c9f4b273 timescaledb_toolkit: Fix license metadata to TSL license. 2024-05-27 00:46:47 +02:00
Jussi Kuokkanen
8064d28a4f pkgs/servers: remove licenses.gpl2 2024-05-23 11:49:42 +03:00
github-actions[bot]
350d12c2fb
Merge master into staging-next 2024-05-16 12:01:25 +00:00
jopejoe1
0fad153e47 postgresql16Packages.pg_libversion: 2.0.0 -> 2.0.1 2024-05-15 18:34:33 +02:00
jopejoe1
8dbfbe8e5f postgresql16Packages.pg_libversion: add update script 2024-05-15 18:11:02 +02:00