Commit Graph

142 Commits

Author SHA256 Message Date
Reinhard Max
4f12378358 - bsc#1206796: Refine the distinction of where to use sysusers and
use bcond to have the expression only in one place.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=145
2023-01-09 11:03:44 +00:00
96a9f148fc - riscv64 does not have llvm support yet,
adapt the %postgresql_has_llvm macro accordingly.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=144
2022-09-26 11:50:52 +00:00
f2c92c6ae8 Accepting request 1005434 from home:Andreas_Schwab:Factory
- Update postgresql_has_llvm macro

OBS-URL: https://build.opensuse.org/request/show/1005434
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=143
2022-09-26 11:50:25 +00:00
Reinhard Max
eba7b2a0c4 Accepting request 1001272 from home:dirkmueller:Factory
- avoid bashisms in /bin/sh based startup script

OBS-URL: https://build.opensuse.org/request/show/1001272
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=142
2022-09-05 13:46:15 +00:00
Reinhard Max
dd6702b849 Accepting request 1001032 from home:darix:branches:server:database:postgresql
- Bump to postgresql 15

OBS-URL: https://build.opensuse.org/request/show/1001032
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=141
2022-09-05 13:45:19 +00:00
Martin Pluskal
38a6a04078 Accepting request 962913 from home:gmbr3:Active
- Change to systemd-sysusers

OBS-URL: https://build.opensuse.org/request/show/962913
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=140
2022-04-14 08:24:39 +00:00
Reinhard Max
51acab4aec - Fix the pg_server_requires macro on older rpm versions (SLE-12).
- Bump version to 14.
- Bump default to 14 on Factory and future SPs.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=139
2022-02-10 12:41:04 +00:00
Reinhard Max
360b82fe77 - Avoid a dependency on awk in postgresql-script.
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=138
2022-01-28 15:27:29 +00:00
Reinhard Max
301c4bf8b2 - Move the dependency of llvmjit-devel on clang and llvm to the
implementation packages where we can depend on the correct
  versions.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=137
2021-12-02 14:11:36 +00:00
3c846d2135 fix postgresql_has_llvm usage
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=136
2021-12-02 11:57:25 +00:00
e16ce208e1 - fix postgresql_has_llvm usage
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=135
2021-12-02 11:45:14 +00:00
Reinhard Max
5911be21b6 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=134 2021-11-30 16:03:22 +00:00
Reinhard Max
192bd742a5 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=133 2021-11-19 14:24:57 +00:00
Reinhard Max
d49957dbdc Accepting request 931559 from home:darix:branches:server:database:postgresql
- First round of changes to make it easier to build extensions for
  - add postgresql-llvmjit-devel subpackage:
    This package will pull in clang and llvm if the distro has a
    recent enough version, otherwise it will just pull
    postgresql-server-devel.
  - add postgresql macros to the postgresql-server-devel package
    those cover all the variables from pg_config and some macros
    to remove repitition from the spec files

OBS-URL: https://build.opensuse.org/request/show/931559
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=132
2021-11-19 14:10:54 +00:00
Reinhard Max
7c8701a962 - Bump version and default to 14.
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=131
2021-10-05 14:04:43 +00:00
Reinhard Max
ea1306cd9b - Re-enable build of the llvmjit subpackage on SLE, but it will
only be delivered on PackageHub for now (boo#1183118).

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=130
2021-05-18 13:45:07 +00:00
Reinhard Max
8eea7d87ce - Bump default version to 13 for SLE-15-SP3.
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=129
2021-01-25 09:05:34 +00:00
Reinhard Max
be9fc87212 - Bump major version to 13.
- Bump default version to 13 in OBS.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=128
2020-11-12 15:02:35 +00:00
Reinhard Max
cdaebb3659 - Bump major and default version to 13.
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=127
2020-09-25 08:00:00 +00:00
Reinhard Max
9c2b29dbb3 - We also transfer PostgreSQL 9.4.26 to the new package layout in
SLE12-SP2 and newer. Reflect this in the conflict with
  postgresql94.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=126
2020-08-14 05:48:42 +00:00
Reinhard Max
83e9b2b41d Compat definition for tmpfiles_create is not needed anymore
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=125
2020-07-06 07:01:48 +00:00
Reinhard Max
64e9ceca23 Accepting request 817275 from home:rmax:branches:server:database:postgresql
- Also conflict with PostgreSQL versions before 9.
- Add compat definition for the tmpfiles_create macro.
- Conflicting with older versions is not limited to SLE.

OBS-URL: https://build.opensuse.org/request/show/817275
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=124
2020-06-26 14:19:15 +00:00
Reinhard Max
ce56c37603 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=123 2020-06-17 14:22:21 +00:00
Reinhard Max
3797b05f5f OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=122 2020-06-17 13:56:28 +00:00
Reinhard Max
4e0ca66ec2 Accepting request 811567 from home:rmax:branches:server:database:postgresql
- Disable LLVM on SLE (bsc#1172274).
- Conflict with versions of the binary packages prior to the
  May 2020 update, because we changed the package layout at that
  point and need a clean cutover.

OBS-URL: https://build.opensuse.org/request/show/811567
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=121
2020-06-04 17:46:46 +00:00
Reinhard Max
b7322d4c9b - Fix a mistake in the creation of /var/lib/pgsql/.bash_profile
with the tmpfiles mechanism (bsc#1159335).

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=120
2019-12-17 10:48:51 +00:00
Reinhard Max
e646e1cba3 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=119 2019-11-14 12:38:52 +00:00
Reinhard Max
ba1957f1d2 Accepting request 741843 from home:darix:branches:server:database:postgresql
- bump to 12

OBS-URL: https://build.opensuse.org/request/show/741843
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=118
2019-10-22 13:34:32 +00:00
Reinhard Max
62d421e920 - Use the correct content for .bash_profile (boo#1153168).
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=117
2019-10-07 08:31:46 +00:00
Reinhard Max
bae088c398 - Stop shipping SUSEfirewall2 config files (bsc#1151591).
- Fix installation of bash_profile for SLE11 (pre systemd).

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=116
2019-09-23 14:29:26 +00:00
Reinhard Max
06cfbc3462 Accepting request 678171 from home:fbui:branches:server:database:postgresql
- Drop use of $FIRST_ARG in .spec
  The use of $FIRST_ARG was probably required because of the
  %service_* rpm macros were playing tricks with the shell positional
  parameters. This is bad practice and error prones so let's assume
  that no macros should do that anymore and hence it's safe to assume
  that positional parameters remains unchanged after any rpm macro
  call.

OBS-URL: https://build.opensuse.org/request/show/678171
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=115
2019-02-25 15:10:48 +00:00
Reinhard Max
affb1eeb43 the directory can only be used by users in the postgres group
(bsc#1123886).

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=114
2019-02-25 15:03:17 +00:00
Reinhard Max
45b893abc9 - Change the persmissions for /var/run/postgresql to 1775, so that
the directory can only be used by users in the postgres group.
  At the same time a patch will be added to the postgresqlXX
  packages that adds a fallback to /tmp if socket creation in
  /var/run/postgresql fails.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=113
2019-02-19 16:10:28 +00:00
Reinhard Max
f432e6cc8e Fix syntax error in postgresql-tmpfiles.conf
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=112
2019-02-07 16:19:23 +00:00
Reinhard Max
d7b06dcf6d complete the reversion
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=111
2019-01-31 15:26:11 +00:00
Reinhard Max
cc93967c99 Revert ownership change
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=110
2019-01-31 15:24:22 +00:00
Reinhard Max
c56829af43 - Move bash profile out of /var/lib to allow transactional updates
(bsc#1100397).
- Fix permissions and ownership of /var/run/postgresql .
- Use /run/postgresql instead of /var/run/postgresql in %ghost and
  postgresql-tmpfiles.conf to avoid rpmlint warnings and errors.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=109
2019-01-31 13:50:51 +00:00
Lars Vogdt
e02a7c1604 Accepting request 653071 from home:darix:branches:server:database:postgresql
- add /var/run/postgresql to the filelist. as %ghost for systemd
  systems and directly for non systemd systems

OBS-URL: https://build.opensuse.org/request/show/653071
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=108
2018-12-04 15:17:50 +00:00
afec6e157e - fix the unexpanded macro in the description of server-devel
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=107
2018-11-30 11:05:16 +00:00
Reinhard Max
cac213e51b - Also bump the default package to 11.
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=106
2018-11-15 14:35:10 +00:00
f8af2b0a17 Accepting request 647055 from home:darix:branches:server:database:postgresql
- add server-devel and llvmjit package file sections

OBS-URL: https://build.opensuse.org/request/show/647055
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=105
2018-11-07 17:01:11 +00:00
Reinhard Max
84c15fc166 - Add the new subpackages server-devel and llvmjit that were
introduced with postgresql11.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=104
2018-10-25 13:15:53 +00:00
Reinhard Max
22345bc5f8 Accepting request 644310 from home:darix:branches:server:database:postgresql
- bump to 11

OBS-URL: https://build.opensuse.org/request/show/644310
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=103
2018-10-24 13:56:43 +00:00
Reinhard Max
9be996bc70 - Put POSTGRES_LANG into LC_ALL instead of LANG to retain the
previous behaviour of that variable (boo#1077027).

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=102
2018-05-02 15:35:49 +00:00
38903b2e5f Accepting request 602555 from home:dimstar:Factory
- Require update-alternatives by postgresql: one of the main
  scripts in use is install-alternatives, which calls u-a.

OBS-URL: https://build.opensuse.org/request/show/602555
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=101
2018-05-02 14:02:08 +00:00
Reinhard Max
efaf1f2029 - postgresql-script: /etc/sysconfig/language is deprecated, use the
locale that was inherited from systemd instead for initializing
  a new database instance (boo#1074988).

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=100
2018-01-17 17:14:44 +00:00
Martin Pluskal
38997f090a Accepting request 556940 from home:darix:branches:server:database:postgresql
- add provides for all the pkgconfig() provides you also find in
  the postgresqlXY-devel packages. then we automatically will pull
  postgresql-devel which in turn will pull our default
  postgresqlXY-devel package. (boo#1071971)

OBS-URL: https://build.opensuse.org/request/show/556940
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=99
2017-12-14 11:49:04 +00:00
de0278567f Accepting request 554763 from home:bruno_friedmann:branches:server:database:postgresql
- Replace references to /var/adm/fillup-templates with new 
  %_fillupdir macro (boo#1069468)

OBS-URL: https://build.opensuse.org/request/show/554763
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=98
2017-12-12 15:43:28 +00:00
Reinhard Max
15a35fecca Accepting request 545144 from home:darix:branches:server:database:postgresql
- instead of hardcoding version 10, just check if the prio is
  smaller than 80.

- simplify the postgresql-install-alternatives to only require the
  pg version and go from there.
  supported calls of the script are:
  /usr/share/postgresql/install-alternatives postgresqlXY
  /usr/share/postgresql/install-alternatives XY
  where XY can currently be: 92 93 94 95 96 10

OBS-URL: https://build.opensuse.org/request/show/545144
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=97
2017-11-24 12:45:09 +00:00
Reinhard Max
3eac0cf988 - CVE-2017-14798, bsc#1062722: Fix LPE via postgres init script.
This only affected SysV-init based systems (i.e. SLE11).

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=96
2017-11-22 13:04:57 +00:00