forked from pool/postgresql12
- bsc#1187751: Make the dependency of postgresqlXX-server-devel on
llvm and clang optional (postgresql-llvm-optional.patch). OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql12?expand=0&rev=48
This commit is contained in:
parent
7f6dd520bb
commit
eab86d3b60
16
postgresql-llvm-optional.patch
Normal file
16
postgresql-llvm-optional.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
--- src/Makefile.global.in.orig
|
||||||
|
+++ src/Makefile.global.in
|
||||||
|
@@ -192,7 +192,12 @@ with_krb_srvnam = @with_krb_srvnam@
|
||||||
|
with_ldap = @with_ldap@
|
||||||
|
with_libxml = @with_libxml@
|
||||||
|
with_libxslt = @with_libxslt@
|
||||||
|
-with_llvm = @with_llvm@
|
||||||
|
+# Only build for LLVM, if the core supports it and the llvm and clang packages are installed.
|
||||||
|
+ifeq (@with_llvm@ $(wildcard /usr/bin/clang /usr/bin/llvm-lto),yes /usr/bin/clang /usr/bin/llvm-lto)
|
||||||
|
+with_llvm = yes
|
||||||
|
+else
|
||||||
|
+with_llvm = no
|
||||||
|
+endif
|
||||||
|
with_system_tzdata = @with_system_tzdata@
|
||||||
|
with_uuid = @with_uuid@
|
||||||
|
with_zlib = @with_zlib@
|
@ -11,6 +11,12 @@ Tue Aug 24 13:01:54 UTC 2021 - Marcus Rueckert <mrueckert@suse.de>
|
|||||||
be crashes or incorrect query results. Disclosure of server
|
be crashes or incorrect query results. Disclosure of server
|
||||||
memory contents is also possible.
|
memory contents is also possible.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 2 07:47:15 UTC 2021 - Reinhard Max <max@suse.com>
|
||||||
|
|
||||||
|
- bsc#1187751: Make the dependency of postgresqlXX-server-devel on
|
||||||
|
llvm and clang optional (postgresql-llvm-optional.patch).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 19 15:24:24 UTC 2021 - Reinhard Max <max@suse.com>
|
Wed May 19 15:24:24 UTC 2021 - Reinhard Max <max@suse.com>
|
||||||
|
|
||||||
|
@ -88,6 +88,7 @@ BuildRequires: %libpq
|
|||||||
%bcond_with systemd
|
%bcond_with systemd
|
||||||
%bcond_with systemd_notify
|
%bcond_with systemd_notify
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1500 && %pgsuffix >= 11 && %pgsuffix < 90
|
%if 0%{?suse_version} >= 1500 && %pgsuffix >= 11 && %pgsuffix < 90
|
||||||
%bcond_without llvm
|
%bcond_without llvm
|
||||||
%else
|
%else
|
||||||
@ -153,6 +154,7 @@ Patch4: postgresql-plperl-keep-rpath.patch
|
|||||||
Patch6: postgresql-testsuite-int8.sql.patch
|
Patch6: postgresql-testsuite-int8.sql.patch
|
||||||
Patch8: postgresql-testsuite-keep-results-file.patch
|
Patch8: postgresql-testsuite-keep-results-file.patch
|
||||||
Patch9: postgresql-var-run-socket.patch
|
Patch9: postgresql-var-run-socket.patch
|
||||||
|
Patch10: postgresql-llvm-optional.patch
|
||||||
URL: https://www.postgresql.org/
|
URL: https://www.postgresql.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Provides: postgresql = %version-%release
|
Provides: postgresql = %version-%release
|
||||||
@ -255,8 +257,8 @@ Requires: %pgname-server = %version-%release
|
|||||||
Provides: postgresql-server-devel-exclusive = %pgmajor
|
Provides: postgresql-server-devel-exclusive = %pgmajor
|
||||||
Conflicts: postgresql-server-devel-exclusive < %pgmajor
|
Conflicts: postgresql-server-devel-exclusive < %pgmajor
|
||||||
%if %{with llvm}
|
%if %{with llvm}
|
||||||
Requires: clang
|
Recommends: clang
|
||||||
Requires: llvm
|
Recommends: llvm
|
||||||
%endif
|
%endif
|
||||||
Requires: libxslt-devel
|
Requires: libxslt-devel
|
||||||
Requires: openssl-devel
|
Requires: openssl-devel
|
||||||
@ -459,6 +461,7 @@ touch -r configure tmp
|
|||||||
%patch6
|
%patch6
|
||||||
%patch8 -p1
|
%patch8 -p1
|
||||||
%patch9
|
%patch9
|
||||||
|
%patch10
|
||||||
touch -r tmp configure
|
touch -r tmp configure
|
||||||
rm tmp
|
rm tmp
|
||||||
find src/test/ -name '*.orig' -delete
|
find src/test/ -name '*.orig' -delete
|
||||||
@ -533,8 +536,7 @@ make check || {
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
VLANG=${RPM_PACKAGE_VERSION%%.*}
|
VLANG=%pgmajor
|
||||||
VSO=${RPM_PACKAGE_VERSION%%%%.*}
|
|
||||||
%if %mini
|
%if %mini
|
||||||
make DESTDIR=%buildroot PACKAGE_TARNAME=%pgname -C src/include install
|
make DESTDIR=%buildroot PACKAGE_TARNAME=%pgname -C src/include install
|
||||||
make DESTDIR=%buildroot PACKAGE_TARNAME=%pgname -C src/interfaces install
|
make DESTDIR=%buildroot PACKAGE_TARNAME=%pgname -C src/interfaces install
|
||||||
|
Loading…
Reference in New Issue
Block a user