Compare commits

..

110 Commits

Author SHA1 Message Date
Patrik Novotný
22cc719777 Fix missing requirements
- fix FTBFS due to named opcodes disabled in perl
    - fix missing requirements for server-devel package
      regarding the llvmjit
2020-03-12 15:42:37 +01:00
Patrik Novotný
be3eaa2525 Fixup sources for rebase to upstream version 12.2
- missing postgresql-setup-8.4
2020-02-17 10:52:57 +01:00
Patrik Novotný
9637a4eb78 Rebase to upstream release 12.2
Version: 12.2-1
2020-02-17 09:18:26 +01:00
Patrik Novotný
01110f9fc1 Rebase to upstream release 12.1
Resolves: BZ#1801396
    Version: 12.1-1
2020-02-12 14:19:52 +01:00
Fedora Release Engineering
261eac466c - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 09:35:22 +00:00
Patrik Novotný
b70ea669e0 Rebase to upstream version 11.6 2019-11-25 15:26:58 +01:00
Pete Walter
368b14b6a5 Rebuild for ICU 65 2019-11-01 15:51:23 +00:00
Sandro Mani
95a1777ae4 Own %{_libdir}/pgsql in postgresql-server 2019-09-28 10:39:51 +00:00
Patrik Novotný
f86d009fdc postgresql-server-devel requires krb5-devel
Fixes: BZ#1736425
    Version: 11.5-5
2019-09-05 16:34:48 +02:00
Patrik Novotný
f25f4d7c5d Add explicit obsoletes to plpython2 package 2019-09-03 12:09:19 +02:00
Patrik Novotný
3de7e5024c Fix %files and %description after renaming plpython 2019-09-02 16:47:12 +02:00
Patrik Novotný
5c5f249239 plpython: rename to plpython2
Related: BZ#1738814
2019-09-02 16:42:20 +02:00
Miro Hrončok
2c626b6e5d Rebuilt for Python 3.8 2019-08-19 10:22:46 +02:00
Petr Kubat
910a512dd4 New upstream release 11.5
Per release notes:
https://www.postgresql.org/docs/11/release-11-5.htm
2019-08-07 07:44:49 +02:00
Fedora Release Engineering
87384430b2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 11:10:07 +00:00
Petr Kubat
e6a3dbb942 New upstream release 11.4
Per release notes:
https://www.postgresql.org/docs/11/release-11-4.html
2019-07-11 08:30:22 +02:00
Jitka Plesnikova
bcb06d9ada Perl 5.30 rebuild 2019-05-31 07:15:26 +02:00
Patrik Novotný
083e635254 New upstream release 11.3
Per release notes:
    https://www.postgresql.org/docs/11/release-11-3.html

    Version: 11.3-1
2019-05-09 14:43:25 +02:00
Pavel Raiskup
e4bf7609cc Make test macros RPM noarch
This is probably Fedora only statement.

Resolves: rhbz#1686620
2019-03-08 08:52:03 +01:00
Pavel Raiskup
538260fd70 update postgresql-setup to 8.3
Related: rhbz#1668301
Version: 11.2-2
2019-03-05 09:13:09 +01:00
Pavel Raiskup
3e105297fb ci: add external beakerlib testsuite 2019-02-22 11:11:00 +01:00
Igor Gnatenko
b6f5483140 Rebuild for readline 8.0 2019-02-17 09:30:53 +01:00
Patrik Novotný
c56e80e096 Rebase to upstream release 11.2
Per release notes:
https://www.postgresql.org/docs/11/release-11-2.html

Version: 11.2-1
Fixes: #9
2019-02-15 09:41:44 +01:00
Pavel Raiskup
27dc0dd200 server: build against up2date library
This is a toy BuildRequires which doesn't solve much problems, it
is there mostly to remind us that we should first update libpq
library before moving forward with server package.

Version: 11.1-5
2019-02-14 14:59:12 +01:00
Fedora Release Engineering
d93212b654 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 04:40:43 +00:00
Pavel Raiskup
70efd4431e server: build with ICU collations support
After reading the following links, it seems to be important (even
though large) server dependency for opt-in collations.

https://www.postgresql.org/message-id/20160617154311.GB19359%40momjian.us
https://bugzilla.redhat.com/show_bug.cgi?id=1320356
https://www.postgresql.org/message-id/flat/111D0E27-A8F3-4A84-A4E0-B0FB703863DF@s24.com

Version: 11.1-3
2019-01-30 19:59:15 +01:00
Igor Gnatenko
ec07c9387a Remove unneeded %clean section
It is the behavior since EPEL5.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-29 05:47:15 +01:00
Igor Gnatenko
1d34e7d7b0 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:38 +01:00
Björn Esser
b498ca836e
Rebuilt for libcrypt.so.2 (#1666033) 2019-01-14 19:13:06 +01:00
Patrik Novotný
361bde51e2 Revert "Checksum fix for postgresql-setup-6.0.tar.gz"
This reverts commit 5d5891d095.
2018-11-08 22:23:37 +01:00
Patrik Novotný
5d5891d095 Checksum fix for postgresql-setup-6.0.tar.gz 2018-11-08 22:22:05 +01:00
Patrik Novotný
ad8ff44c19 Rebase to upstream release 11.1
Per release notes:
    https://www.postgresql.org/docs/11/release-11-1.html

    Version: 11.1-1
2018-11-08 13:34:02 +01:00
Pavel Raiskup
840f216dc6 Build also Python 3 variants of python contrib modules
Version: 11.0-2
2018-11-02 12:22:04 +01:00
Pavel Raiskup
626e81aa1d rebase: update to 11.0
Per release notes:
https://www.postgresql.org/docs/11/static/release-11-0.html

Version: 11.0-1
2018-10-17 14:32:43 +02:00
Pavel Raiskup
6111911b25 fix Makefile.regress for docker and missing coreutils
Per report from Václav Daněk.

Resolves: rhbz#1508011
2018-09-26 14:33:44 +02:00
Pavel Raiskup
ffc865e4a8 modularity: drop '*-libs' and '*-devel' subpackages
The PostgreSQL shared libraries are moved to 'libpq' and 'libecpg'
packages, which allows us to have single library version per
Fedora release, even though we will provide multiple versions of
PostgreSQL servers.

Related: rhbz#1618698
Version: 10.5-4
2018-09-05 08:43:30 +02:00
Pavel Raiskup
b46d68a9cb devel: provide libecpg-devel and postgresql-server-devel
Related: rhbz#1618698
Version: 10.5-3
2018-08-27 15:18:38 +02:00
Pavel Raiskup
9242708bee devel: provide libpq-devel
Version: 10.5-2
2018-08-27 14:05:50 +02:00
Pavel Raiskup
15c9a5a7e3 some cleanups
Version: 10.5-2
2018-08-27 14:04:24 +02:00
Pavel Raiskup
51abe650bc rebase: update to 10.5
Per release notes:
https://www.postgresql.org/docs/10/static/release-10-5.html

Version: 10.5-1
2018-08-08 11:39:52 +02:00
Pavel Raiskup
ff6bdd20bf setup: new version
start test PG servers on random port number

Version: 10.4-8
2018-08-02 09:14:03 +02:00
Fedora Release Engineering
e4f9b1fa14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 22:46:03 +00:00
Pavel Raiskup
f1d6398874 move pg_config*.mo files to *-devel
This complements 4034635788 commit.

THANKS: Jun Aruga
Version: 10.4-6
2018-07-12 16:12:51 +02:00
Pavel Raiskup
be2d41d2fc Drop hack for ppc64* gcc optimization bug
Related: rhbz#1544349
Version: 10.4-6
2018-07-12 14:36:07 +02:00
Pavel Raiskup
db5a549f53 FTBFS: 'python' is not on $PATH on F29+
Version: 10.4-5
2018-07-09 10:18:42 +02:00
Pavel Raiskup
07daa8e53a Re-enable -O3 compilation for PPC 64bit boxes
Related: rhbz#1544349
Version: 10.4-5
2018-07-09 08:57:53 +02:00
Petr Písař
12b384bfd8 Perl 5.28 rebuild 2018-07-03 13:00:30 +02:00
Jitka Plesnikova
82e5aaaf8d Perl 5.28 rebuild 2018-06-27 20:51:20 +02:00
Miro Hrončok
d18c574660 Rebuilt for Python 3.7 2018-06-19 10:49:49 +02:00
Pavel Raiskup
b707571b4f rebase: update to 10.4
Per release notes:
https://www.postgresql.org/docs/10/static/release-10-4.html

Version: 10.4-1
2018-05-10 13:04:01 +02:00
Pavel Raiskup
c8ac4491b6 pltcl: drop tcl-pgtcl dep
This reverts 58e1c1f5ad.
I discussed with Jozef that it's OK, that dep shouldn't be needed.

Version: 10.3-5
2018-04-26 17:09:31 +02:00
Pavel Raiskup
cc5d65f927 upgrade: package plpython*.so
Version: 10.3-4
2018-04-19 14:54:04 +02:00
Pavel Raiskup
1942c8b9d5 upgrade: don't package libpq.so & friends
Version: 10.3-3
2018-04-16 13:29:07 +02:00
Pavel Raiskup
bf6f0859a8 upgrade: package contrib modules
Version: 10.3-3
2018-04-16 13:28:26 +02:00
Pavel Raiskup
3e9c3b569f upgrade: package pltcl.so and plperl.so
Version: 10.3-3
2018-04-16 12:03:05 +02:00
Pavel Raiskup
8ac102b47e spec: make it a bit more airy
Version: 10.3-2
2018-04-13 15:13:14 +02:00
Pavel Raiskup
50065a2277 postgresql-test-rpm-macros subpackage
We used to provide the functionality under postgresql-devel
subpackage, but that one has already too much purposes (we build
against that both client tools and server modules, using that for
tests is too much).

Newly, the postgresql-server package is automatically added as
transitive dependency, so the typical fix for dependant packages
would be:

    - BuildRequires: postgresql-devel
    - BuildRequires: postgresql-server
    + BuildRequires: postgresql-test-rpm-macros

(when the package doesn't need header files from postgresql-devel)

Version: 10.3-2
2018-04-13 15:02:14 +02:00
Pavel Raiskup
fa3717b8d2 setup: new upstream release
Version: 10.3-2
2018-04-13 14:48:03 +02:00
Pavel Raiskup
5b5042670f define %precise_version
Version: 10.3-2
2018-04-13 14:46:24 +02:00
Pavel Raiskup
d1c05385d1 Drop -O3 for ppc* to work-around FTBFS with gcc 8.0
Related: rhbz#1544349
Version: 10.3-1
2018-03-01 18:08:52 +01:00
Pavel Raiskup
0948580a64 spec: add gcc to BuildRequires
Per https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequire

Version: 10.3-1
2018-03-01 13:54:02 +01:00
Pavel Raiskup
7e0314402a rebase: update to 10.3
Per release notes:
https://www.postgresql.org/docs/10/static/release-10-3.html

Version: 10.3-1
2018-03-01 13:02:42 +01:00
Petr Kubat
82b3e4e96d rebase: update to 10.2
Per release notes:
https://www.postgresql.org/docs/10/static/release-10-2.html

Version: 10.2-1
2018-02-08 10:53:58 +01:00
Björn Esser
0df80d97f3
Rebuilt for switch to libxcrypt 2018-01-20 23:07:35 +01:00
Pavel Raiskup
a820a9eff8 spec: cleanup %if-fork for obsoleted fedora versions 2017-12-19 15:55:16 +01:00
Pavel Raiskup
5dec06f6e5 service: use sd_notify and disable timeout
Resolves: rhbz#1414314, rhbz#1525477
Version: 10.1-4
2017-12-19 10:51:26 +01:00
Pavel Raiskup
ead24cd155 spec: provides/requires s/python/python2/
Version: 10.1-3
2017-12-13 14:18:37 +01:00
Pavel Raiskup
55a65cc101 spec: drop unsupported --with-krb5
Version: 10.1-3
2017-12-13 12:19:25 +01:00
Pavel Raiskup
5fbaf23499 spec: python{2,3} %configure opts on one place
Version: 10.1-3
2017-12-13 11:57:29 +01:00
Pavel Raiskup
0a81447ee3 postgresql-setup: update to version 7.0
Version: 10.1-2
2017-11-14 15:15:39 +01:00
Pavel Raiskup
971c8f8aa3 rebase: security update to 10.1
Per release notes:
https://www.postgresql.org/docs/10/static/release-10-1.html

Version: 10.1-1
2017-11-08 07:10:52 +01:00
Pavel Raiskup
6f2e35359f postgresql-setup: fix CVE-2017-15097
Fixed by updating the postgresql-setup tarball.

Resolves: CVE-2017-15097
Version: 10.0-4
2017-11-08 07:01:14 +01:00
Pavel Raiskup
07894e0da4 upgrade: provide %postgresql_upgrade_prefix macro
Related: rhbz#1475177
Version: 10.0-3
2017-10-12 12:48:51 +02:00
Pavel Raiskup
4a3d2412bc bundling: confess postgresql-setup and prevversion bundles
Version: 10.0-3
2017-10-12 11:14:20 +02:00
Pavel Raiskup
83fb3d530a upgrade-devel: stricter separation from 'postgresql-upgrade'
Related: rhbz#1475177
Version: 10.0-2
2017-10-09 08:58:39 +02:00
Jozef Mlích
710aefbd49 upgrade-devel: support for upgrade with extenstions
Related: rhbz#1475177
Version: 10.0-2
2017-10-09 08:46:51 +02:00
Pavel Raiskup
d3a91d27a0 rebase: update to 10.0
Per release notes:
https://www.postgresql.org/docs/10/static/release-10.html

Version: 10.0-1
2017-10-06 20:36:37 +02:00
Pavel Raiskup
e1715bb6aa libs: own the %{_libdir}/pgsql directory
This directory logically belongs to postgresql-libs;  but
originally this request was triggered by rhbz#1478831
where we observed that there is leftover directory after
postgresql-devel removal.

Resolves: rhbz#1478831
Version: 9.6.5-2
2017-09-05 16:16:06 +02:00
Pavel Raiskup
1fa73e0a7b sources: upstream disabled the ftp:// download option
Version: 9.6.5-1
2017-08-29 16:12:03 +02:00
Pavel Raiskup
d93550a71b rebase: update to 9.6.5
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6-5.html

Version: 9.6.5-1
2017-08-29 10:37:21 +02:00
Petr Kubat
698585a43d rebase: update to 9.6.4
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6-4.html

Resolves: #1480284
Version: 9.6.4-1
2017-08-11 11:51:28 +02:00
Fedora Release Engineering
c719c5ea1e - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 06:18:09 +00:00
Fedora Release Engineering
e244775c56 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 08:57:18 +00:00
Pavel Raiskup
c27dd8df9e plperl: drop postgresql-perl-rpath.patch
Perl now provides valid libperl.so in %_libdir so there's not need
to play with rpath anymore.

Resolves: rhbz#1474417
Version: 9.6.3-7
2017-07-24 17:03:18 +02:00
Pavel Raiskup
7c1110c041 spec: better provides-exclude fix based on rh-postgresql96
Version: 9.6.3-6
2017-06-26 12:10:07 +02:00
Pavel Raiskup
25dea2dcb8 spec: avoid providing libpqwalreceiver.so plugin as soname
Related: rhbz#1464368
Version: 9.6.3-6
2017-06-23 11:24:54 +02:00
Pavel Raiskup
36a141a4c0 spec: drop the old %beta hack about %__os_install_post
This always was broken and the %__os_install_post macro was
redefined also for non-beta builds;  that's because
%{?x:%global y z} defines %y even when %x is zero.

If we really wanted this %beta/%post hack, it would have to look
similarly to:
%{lua:if rpm.expand("%beta") ~= "0" then rpm.define('...') end}
On the other hand, I'm not sure that this is actually needed
nowadays so I'm removing it completely.  Please let us know if you
happen to need the %__os_install_post redefinition.

Originally added by commit 9636c11b0d.

Version: 9.6.3-5
2017-06-21 08:55:30 +02:00
Pavel Raiskup
235453b233 spec: drop -DLINUX_OOM_SCORE_ADJ=0 from CFLAGS
Related: rhbz#1110969, rhbz#1436554
Version: 9.6.3-4
2017-06-12 13:26:05 +02:00
Jitka Plesnikova
19739cf1a6 Perl 5.26 rebuild 2017-06-04 15:07:09 +02:00
Petr Kubat
5b2a26a63d fix indentation issues in hstore_plperlu test-case
Resolves: rhbz#1453111
Version: 9.6.3-2
2017-05-22 11:30:49 +02:00
Pavel Raiskup
4aa087fae3 rebase: update to 9.6.3
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6-3.html

Version: 9.6.3-1
2017-05-11 12:39:35 +02:00
Pavel Raiskup
cb6e898698 setup: new upstream release
Version: 9.6.2-4
2017-04-24 13:22:35 +02:00
Pavel Raiskup
56b78dd057 spec: spring cleanup #2 (systemd obsoleted constructs)
Resolves: rhbz#1440729
Version: 9.6.2-3
2017-04-24 13:22:21 +02:00
Pavel Raiskup
19af2059f2 spec: spring cleaning
- %_pkgdocdir definition, not needed now
- define %service_name == postgresql.service
- remove duplicate help2man br
- don't try to install perl-generators on RHEL
- add BR Data::Dumper for perl testsuite
- use %_localstatedir for several /var occurrences
- use %_datadir instead of hard-wiring it
- don't install *.o tutorial files (rhbz#1187514)
- use mv instead of cp for rhbz#1250006 work-around
- run 'make check' for postgresql-setup tarball

Resolves: rhbz#1440729
Version: 9.6.2-3
2017-04-24 13:22:03 +02:00
Pavel Raiskup
55a2b11e5d bump: rebuild for rhbz#1436006
Version: 9.6.2-2
Resolves: rhbz#1436006
2017-03-27 08:56:23 +02:00
Pavel Raiskup
0c1f8cf381 tests: fix testsuites for tzdata2017a
Version: 9.6.2-1
2017-03-13 11:12:16 +01:00
Pavel Raiskup
86f7229682 static: drop mistakenly added libpgfeutils.a
Version: 9.6.2-1
2017-02-22 10:01:46 +01:00
Pavel Raiskup
f200f72f3d rebase: update to 9.6.2
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6-2.html

Version: 9.6.2-1
2017-02-09 22:33:28 +01:00
Igor Gnatenko
069ea47da5 Rebuild for readline 7.x
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-01-12 17:30:37 +01:00
Miro Hrončok
61feab0edf Rebuild for Python 3.6 2016-12-19 18:20:36 +01:00
Pavel Raiskup
06a51ffa8a gitignore: add up2date items
And fix related script.

Version: 9.6.1-1
2016-10-26 11:41:00 +02:00
Pavel Raiskup
b0108e4725 build: remove config.{guess,sub} hacks
These issues are now automatically solved by %configure.

Version: 9.6.1-1
2016-10-26 08:43:54 +02:00
Pavel Raiskup
ba2a35679a build: remove plpython build hack
(fixed upstream: 7107d58ec5a3c45967e77525809612a5f89b97f3)

Version: 9.6.1-1
2016-10-26 08:29:39 +02:00
Pavel Raiskup
30648b934d rebase: update to 9.6.1
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6-1.html

Version: 9.6.1-1
2016-10-26 08:29:13 +02:00
Pavel Raiskup
bb1db959b3 setup: rebase to 5.0
- macros are now automatically generated
- there are convenient macros for testing other
  packages against postgresql-server

Resolves: rhbz#1368477, rhbz#1368480
Version: 9.6.0-1
2016-10-04 12:42:24 +02:00
Pavel Raiskup
041e748b02 typoe: remove leftover in comment
Version: 9.6.0-1
2016-10-02 14:17:53 +02:00
Pavel Raiskup
23f9d768a9 upload proper checksum
Version: 9.6.0-1
2016-10-01 09:13:33 +02:00
Pavel Raiskup
c02b42b8e8 build: fix plpython's makefile inconsistency
Version: 9.6.0-1
2016-10-01 09:11:17 +02:00
Pavel Raiskup
08014984d3 run_testsuite: don't fail immediately
Version: 9.6.0-1
2016-10-01 09:10:35 +02:00
Pavel Raiskup
97dfdfe4b9 rebase: new upstream major release
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6.html

Merged changes from https://github.com/devexp-db/postgresql-latest
- removal of obsoleted patch, we can set port in postgresql.conf
- install new files
- hack for plpython build

Version: 9.6.0-1
2016-10-01 09:09:13 +02:00
13 changed files with 1036 additions and 498 deletions

9
.gitignore vendored
View File

@ -1,6 +1,3 @@
/postgresql-9.4.14.tar.bz2
/postgresql-9.4.14.tar.bz2.sha256
/postgresql-9.5.9.tar.bz2
/postgresql-9.5.9.tar.bz2.sha256
/postgresql-setup-4.0.tar.gz
/postgresql-9.5.9-US.pdf
/postgresql-*.tar.bz2*
/postgresql-setup-*.tar.gz
/postgresql-*-US.pdf

View File

@ -47,7 +47,9 @@ installcheck-parallel: cleandirs
cleandirs:
-rm -rf testtablespace results
mkdir testtablespace results
[ -x /usr/bin/chcon ] && /usr/bin/chcon -u system_u -r object_r -t postgresql_db_t testtablespace results
if test -x /usr/bin/chcon && ! test -f /.dockerenv; then \
/usr/bin/chcon -u system_u -r object_r -t postgresql_db_t testtablespace results ; \
fi
# old interfaces follow...

View File

@ -1,10 +0,0 @@
#! /bin/sh -x
set -e
spectool -S *.spec | cut -d' ' -f2 \
| grep -E -e 'postgresql-.*\.tar\.*' -e 'postgresql.*\.pdf' | sort | \
while read line
do
base=`basename "$line"`
md5sum "$base"
done

View File

@ -1,6 +1,6 @@
#! /bin/sh
rm sources .gitignore
rm sources
set -e
spectool -S *.spec | cut -d' ' -f2 \
| grep -E -e 'postgresql-.*\.tar\.*' -e 'postgresql.*\.pdf' | sort | \
@ -9,5 +9,4 @@ do
base=`basename "$line"`
echo " * handling $base"
sha512sum --tag "$base" >> sources
echo "/$base" >> .gitignore
done

View File

@ -0,0 +1,192 @@
From 69db3b0cfccc0687dfbdf56afcfb2f8e536053c6 Mon Sep 17 00:00:00 2001
From: Andrew Dunstan <andrew@dunslane.net>
Date: Sun, 14 May 2017 01:10:18 -0400
Subject: [PATCH] Suppress indentation from Data::Dumper in regression tests
Ultra-modern versions of the perl Data::Dumper module have apparently
changed how they indent output. Instead of trying to keep up we choose
to tell it to supporess all indentation in the hstore_plperl regression
tests.
Backpatch to 9.5 where this feature was introduced.
---
contrib/hstore_plperl/expected/hstore_plperlu.out | 44 ++++++-----------------
contrib/hstore_plperl/sql/hstore_plperlu.sql | 6 ++++
2 files changed, 17 insertions(+), 33 deletions(-)
diff --git a/contrib/hstore_plperl/expected/hstore_plperlu.out b/contrib/hstore_plperl/expected/hstore_plperlu.out
index b09fb78..d719d29 100644
--- a/contrib/hstore_plperl/expected/hstore_plperlu.out
+++ b/contrib/hstore_plperl/expected/hstore_plperlu.out
@@ -20,15 +20,12 @@ TRANSFORM FOR TYPE hstore
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
elog(INFO, Dumper($_[0]));
return scalar(keys %{$_[0]});
$$;
SELECT test1('aa=>bb, cc=>NULL'::hstore);
-INFO: $VAR1 = {
- 'aa' => 'bb',
- 'cc' => undef
- };
-
+INFO: $VAR1 = {'aa' => 'bb','cc' => undef};
test1
-------
2
@@ -39,12 +36,12 @@ LANGUAGE plperlu
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
elog(INFO, Dumper($_[0]));
return scalar(keys %{$_[0]});
$$;
SELECT test1none('aa=>bb, cc=>NULL'::hstore);
INFO: $VAR1 = '"aa"=>"bb", "cc"=>NULL';
-
test1none
-----------
0
@@ -56,15 +53,12 @@ TRANSFORM FOR TYPE hstore
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
elog(INFO, Dumper($_[0]));
return scalar(keys %{$_[0]});
$$;
SELECT test1list('aa=>bb, cc=>NULL'::hstore);
-INFO: $VAR1 = {
- 'aa' => 'bb',
- 'cc' => undef
- };
-
+INFO: $VAR1 = {'aa' => 'bb','cc' => undef};
test1list
-----------
2
@@ -77,18 +71,12 @@ TRANSFORM FOR TYPE hstore
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
elog(INFO, Dumper($_[0]->[0], $_[0]->[1]));
return scalar(keys %{$_[0]});
$$;
SELECT test1arr(array['aa=>bb, cc=>NULL'::hstore, 'dd=>ee']);
-INFO: $VAR1 = {
- 'aa' => 'bb',
- 'cc' => undef
- };
-$VAR2 = {
- 'dd' => 'ee'
- };
-
+INFO: $VAR1 = {'aa' => 'bb','cc' => undef};$VAR2 = {'dd' => 'ee'};
test1arr
----------
2
@@ -101,6 +89,7 @@ TRANSFORM FOR TYPE hstore
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
$rv = spi_exec_query(q{SELECT 'aa=>bb, cc=>NULL'::hstore AS col1});
elog(INFO, Dumper($rv->{rows}[0]->{col1}));
@@ -111,13 +100,8 @@ $rv = spi_exec_prepared($plan, {}, $val);
elog(INFO, Dumper($rv->{rows}[0]->{col1}));
$$;
SELECT test3();
-INFO: $VAR1 = {
- 'aa' => 'bb',
- 'cc' => undef
- };
-
+INFO: $VAR1 = {'aa' => 'bb','cc' => undef};
INFO: $VAR1 = '"a"=>"1", "b"=>"boo", "c"=>NULL';
-
test3
-------
@@ -138,6 +122,7 @@ TRANSFORM FOR TYPE hstore
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
elog(INFO, Dumper($_TD->{new}));
if ($_TD->{new}{a} == 1) {
$_TD->{new}{b} = {a => 1, b => 'boo', c => undef};
@@ -147,14 +132,7 @@ return "MODIFY";
$$;
CREATE TRIGGER test4 BEFORE UPDATE ON test1 FOR EACH ROW EXECUTE PROCEDURE test4();
UPDATE test1 SET a = a;
-INFO: $VAR1 = {
- 'a' => '1',
- 'b' => {
- 'aa' => 'bb',
- 'cc' => undef
- }
- };
-
+INFO: $VAR1 = {'a' => '1','b' => {'aa' => 'bb','cc' => undef}};
SELECT * FROM test1;
a | b
---+---------------------------------
diff --git a/contrib/hstore_plperl/sql/hstore_plperlu.sql b/contrib/hstore_plperl/sql/hstore_plperlu.sql
index 8d8508c..c714b35 100644
--- a/contrib/hstore_plperl/sql/hstore_plperlu.sql
+++ b/contrib/hstore_plperl/sql/hstore_plperlu.sql
@@ -15,6 +15,7 @@ TRANSFORM FOR TYPE hstore
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
elog(INFO, Dumper($_[0]));
return scalar(keys %{$_[0]});
$$;
@@ -26,6 +27,7 @@ LANGUAGE plperlu
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
elog(INFO, Dumper($_[0]));
return scalar(keys %{$_[0]});
$$;
@@ -38,6 +40,7 @@ TRANSFORM FOR TYPE hstore
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
elog(INFO, Dumper($_[0]));
return scalar(keys %{$_[0]});
$$;
@@ -52,6 +55,7 @@ TRANSFORM FOR TYPE hstore
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
elog(INFO, Dumper($_[0]->[0], $_[0]->[1]));
return scalar(keys %{$_[0]});
$$;
@@ -66,6 +70,7 @@ TRANSFORM FOR TYPE hstore
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
$rv = spi_exec_query(q{SELECT 'aa=>bb, cc=>NULL'::hstore AS col1});
elog(INFO, Dumper($rv->{rows}[0]->{col1}));
@@ -90,6 +95,7 @@ TRANSFORM FOR TYPE hstore
AS $$
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
+$Data::Dumper::Indent = 0;
elog(INFO, Dumper($_TD->{new}));
if ($_TD->{new}{a} == 1) {
$_TD->{new}{b} = {a => 1, b => 'boo', c => undef};
--
2.1.4

View File

@ -1,19 +0,0 @@
Add note warning users that Postgres' port number is forced in the service
file, mainly because it's traditional in Red Hat installations to set it
there rather than in postgresql.conf. (There are minor usability benefits
to doing it this way though, for example that the postmaster's port number
is visible in "ps" as part of its command line.)
diff -Naur postgresql-9.2rc1.orig/src/backend/utils/misc/postgresql.conf.sample postgresql-9.2rc1/src/backend/utils/misc/postgresql.conf.sample
--- postgresql-9.2rc1.orig/src/backend/utils/misc/postgresql.conf.sample 2012-08-23 18:06:49.000000000 -0400
+++ postgresql-9.2rc1/src/backend/utils/misc/postgresql.conf.sample 2012-09-01 21:57:55.498629897 -0400
@@ -61,6 +61,8 @@
# defaults to 'localhost'; use '*' for all
# (change requires restart)
#port = 5432 # (change requires restart)
+# Note: In RHEL/Fedora installations, you can't set the port number here;
+# adjust it in the service file instead.
#max_connections = 100 # (change requires restart)
#superuser_reserved_connections = 3 # (change requires restart)
#unix_socket_directories = '/tmp' # comma-separated list of directories

View File

@ -0,0 +1,43 @@
We don't build/install interfaces by upstream's implicit rules.
This patch is used on two places; postgresql.spec and libecpg.spec -- keep those
in sync!
Related: rhbz#1618698
diff --git a/src/Makefile b/src/Makefile
index bcdbd95..4bea236 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -20,7 +20,6 @@ SUBDIRS = \
backend/utils/mb/conversion_procs \
backend/snowball \
include \
- interfaces \
backend/replication/libpqwalreceiver \
backend/replication/pgoutput \
fe_utils \
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index b9d86ac..29df69f 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -549,7 +549,7 @@ endif
# How to link to libpq. (This macro may be used as-is by backend extensions.
# Client-side code should go through libpq_pgport or libpq_pgport_shlib,
# instead.)
-libpq = -L$(libpq_builddir) -lpq
+libpq = -lpq
# libpq_pgport is for use by client executables (not libraries) that use libpq.
# We force clients to pull symbols from the non-shared libraries libpgport
@@ -579,7 +579,6 @@ endif
# Commonly used submake targets
submake-libpq: | submake-generated-headers
- $(MAKE) -C $(libpq_builddir) all
submake-libpgport: | submake-generated-headers
$(MAKE) -C $(top_builddir)/src/port all
--
2.21.0

View File

@ -13,9 +13,9 @@ diff -Naur postgresql-9.1rc1.orig/src/backend/utils/misc/postgresql.conf.sample
# into log files. Required to be on for
# csvlogs.
# (change requires restart)
@@ -287,11 +287,11 @@
@@ -355,11 +355,11 @@
# These are only used if logging_collector is on:
#log_directory = 'pg_log' # directory where log files are written,
#log_directory = 'log' # directory where log files are written,
# can be absolute or relative to PGDATA
-#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
+log_filename = 'postgresql-%a.log' # log file name pattern,
@ -27,7 +27,7 @@ diff -Naur postgresql-9.1rc1.orig/src/backend/utils/misc/postgresql.conf.sample
# same name as the new log file will be
# truncated rather than appended to.
# But such truncation only occurs on
@@ -299,9 +299,9 @@
@@ -367,9 +367,9 @@
# or size-driven rotation. Default is
# off, meaning append to existing files
# in all cases.

View File

@ -1,22 +0,0 @@
We configure Postgres with --disable-rpath because for the most part we
want to leave it to ldconfig to determine where libraries are. However,
for some reason the Perl package puts libperl.so in a nonstandard place
and doesn't add that place to the ldconfig search path. I think this
is a Perl packaging bug, myself, but apparently it's not going to change.
So work around it by adding an rpath spec to plperl.so (only).
Per bug #162198.
diff -Naur postgresql-9.1.5.orig/src/pl/plperl/GNUmakefile postgresql-9.1.5/src/pl/plperl/GNUmakefile
--- postgresql-9.1.5.orig/src/pl/plperl/GNUmakefile 2012-08-14 18:41:04.000000000 -0400
+++ postgresql-9.1.5/src/pl/plperl/GNUmakefile 2012-08-17 11:15:09.457116708 -0400
@@ -43,6 +43,9 @@
SHLIB_LINK = $(perl_embed_ldflags)
+# Force rpath to be used even though we disable it everywhere else
+SHLIB_LINK += $(rpath)
+
REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-extension=plperl --load-extension=plperlu
REGRESS = plperl plperl_lc plperl_trigger plperl_shared plperl_elog plperl_util plperl_init plperlu plperl_array
# if Perl can support two interpreters in one backend,

View File

@ -0,0 +1,59 @@
We should ideally provide '/bin/pg_config' in postgresql-server-devel, and
provide no pg_config binary in libpq package. But most of the Fedora packages
that use pg_config actually only build against PG libraries (and
postgresql-server-devel isn't needed). So.., to avoid the initial rush around
rhbz#1618698 change, rather provide pg_server_config binary, which int urn means
that we'll have to fix only a minimal set of packages which really build
PostgreSQL server modules.
diff --git a/src/bin/pg_config/Makefile b/src/bin/pg_config/Makefile
index 02e6f9d..f7c844f 100644
--- a/src/bin/pg_config/Makefile
+++ b/src/bin/pg_config/Makefile
@@ -11,28 +11,30 @@
PGFILEDESC = "pg_config - report configuration information"
PGAPPICON=win32
+PG_CONFIG = pg_server_config$(X)
+
subdir = src/bin/pg_config
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
OBJS= pg_config.o $(WIN32RES)
-all: pg_config
+all: $(PG_CONFIG)
-pg_config: $(OBJS) | submake-libpgport
- $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
+$(PG_CONFIG): $(OBJS) | submake-libpgport
+ $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
install: all installdirs
- $(INSTALL_SCRIPT) pg_config$(X) '$(DESTDIR)$(bindir)/pg_config$(X)'
+ $(INSTALL_SCRIPT) $(PG_CONFIG) '$(DESTDIR)$(bindir)/$(PG_CONFIG)'
installdirs:
$(MKDIR_P) '$(DESTDIR)$(bindir)'
uninstall:
- rm -f '$(DESTDIR)$(bindir)/pg_config$(X)'
+ rm -f '$(DESTDIR)$(bindir)/$(PG_CONFIG)'
clean distclean maintainer-clean:
- rm -f pg_config$(X) $(OBJS)
+ rm -f $(PG_CONFIG) $(OBJS)
rm -rf tmp_check
check:
diff --git a/src/bin/pg_config/nls.mk b/src/bin/pg_config/nls.mk
index 1d41f90..0f34f37 100644
--- a/src/bin/pg_config/nls.mk
+++ b/src/bin/pg_config/nls.mk
@@ -1,4 +1,4 @@
# src/bin/pg_config/nls.mk
-CATALOG_NAME = pg_config
+CATALOG_NAME = pg_server_config
AVAIL_LANGUAGES = cs de es fr he it ja ko pl pt_BR ro ru sv tr uk vi zh_CN zh_TW
GETTEXT_FILES = pg_config.c ../../common/config_info.c ../../common/exec.c

File diff suppressed because it is too large Load Diff

12
sources
View File

@ -1,6 +1,6 @@
SHA512 (postgresql-9.4.14.tar.bz2) = 5952479b7c911cc381744e72d44c7c2269f98f4dda677e8c20a8ac7f4281e143017d287634b707ed96859e5438e82e96668bc4c68bb0c2ce9f3853c5a38fd0b2
SHA512 (postgresql-9.4.14.tar.bz2.sha256) = 6ce24c915f069748b14f393cfbb7e6ade849d07342a1ec00542e401e4e02cd84fd82c2b41c59b4d11be9fe5ae7ef9cb516b79ba08f3658b90ba31c18c1ec0b43
SHA512 (postgresql-9.5.9.tar.bz2) = 2c6a887b80a4b1d1da18282f443419db2279d8fe61821aa6ed1e9af6d28dda41959981ccede2456bd8835dccd16a80fd485ebc0a1bdc9459996a5d27d7781c55
SHA512 (postgresql-9.5.9.tar.bz2.sha256) = 2e41c8a4e4a702c621cde35adc9b3496a67190597673e3c725f4c03313dce22691896aae13813039dfbe46d9e131216bcd657210823a55840ddad110fc0d8cc7
SHA512 (postgresql-setup-4.0.tar.gz) = ed5cb7046f9db4c16ef4f3f390768979b68cef47588c2e4b48efe7d4da815f5c656f58c1758e94b536a31a6ec4e2a5b1295752cac537561aea9c8c292b45b158
SHA512 (postgresql-9.5.9-US.pdf) = 8d41ea6d58a62fbb35ed870c70f9ba5e045cb7dc156340ac9b6551877ab3a770a1bac562c6ef54d318f8d74aa0ad7b4ff180adfb630e71c2dc34fc090aff5c1b
SHA512 (postgresql-12.2.tar.bz2) = 0e0ce8e21856e8f43e58b840c10c4e3ffae6d5207e0d778e9176e36f8e20e34633cbb06f0030a7c963c3491bb7e941456d91b55444c561cfc6f283fba76f33ee
SHA512 (postgresql-12.2.tar.bz2.sha256) = 8f94163228bb7d854d6fe4924a8a2ded00f90af662dd4a7c39b415be0826d9395e55f9b8e3b472baf7c19550e7c35198a650604a28756ad85d096bcfbaa5d1fd
SHA512 (postgresql-12.2-US.pdf) = f086fead2c094e0f1148bcadaf13e240a84b53be289aa0a323295f65879699e81041b4bbc6cc3ce2744aac3fcb15083fa1cab583cd86fdc8ef626499e3cb3e71
SHA512 (postgresql-11.7.tar.bz2) = 32c7ace228f9895241ce0d925fbfc60c0cd39f4cd35368fb10dc7db046151ffd59a9895b4c30a529627f0103051e84b4992ed60312cccd292489f3037076ca1e
SHA512 (postgresql-11.7.tar.bz2.sha256) = 1c8bc319da6bc49000f14e4636f4410b3eb52ab41b0698e7f3ee945efe8e93b6f1758e3f60d8658b0ea6836ea0f271a61031554a10e64c61d2c670e97c63812c
SHA512 (postgresql-setup-8.4.tar.gz) = eb73767d5c676481598aeb545e15027a29a438aa29480ad414f6af31c9df61138a51f5425999b4b35e776a3dbbb28c887790ea9771abc3328158dd1d34b1dce1

16
tests/tests.yml Normal file
View File

@ -0,0 +1,16 @@
# This package uses external repositories for maintaining CI test cases.
# Please don't edit this file if possible.
- hosts: localhost
roles:
- role: standard-test-beakerlib
repositories:
- repo: https://src.fedoraproject.org/tests/postgresql.git
dest: postgresql
# TODO: minimize: https://pagure.io/standard-test-roles/issue/294
fmf_filter: "tier: 1"
# TODO: minimize: https://pagure.io/standard-test-roles/issue/294
tags:
- classic
- container
- atomic