Hello community,

here is the log from the commit of package rsyslog for openSUSE:Factory checked 
in at 2019-03-12 09:49:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rsyslog (Old)
 and      /work/SRC/openSUSE:Factory/.rsyslog.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rsyslog"

Tue Mar 12 09:49:19 2019 rev:144 rq:683365 version:8.39.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rsyslog/rsyslog.changes  2019-03-10 
09:30:48.180243846 +0100
+++ /work/SRC/openSUSE:Factory/.rsyslog.new.28833/rsyslog.changes       
2019-03-12 09:49:20.667586743 +0100
@@ -1,0 +2,7 @@
+Tue Mar  5 09:45:52 UTC 2019 - Dominique Leuenberger <[email protected]>
+
+- Add rsyslog-pgsql-pkg-config.patch: use pkgconfig to find the
+  right libraries/directories for postgresql. According to pgsql
+  upstream, pg_config must only be used to buildpgsql modules.
+
+-------------------------------------------------------------------

New:
----
  rsyslog-pgsql-pkg-config.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rsyslog.spec ++++++
--- /var/tmp/diff_new_pack.bUV4rM/_old  2019-03-12 09:49:23.207586236 +0100
+++ /var/tmp/diff_new_pack.bUV4rM/_new  2019-03-12 09:49:23.243586229 +0100
@@ -238,6 +238,7 @@
 
 # PATCH-FIX-OPENSUSE rsyslog-unit.patch [email protected] Customize 
upstream systemd unit for openSUSE needs.
 Patch0:         rsyslog-unit.patch
+Patch1:         rsyslog-pgsql-pkg-config.patch
 
 # this is a dirty hack since % dir does only work for the specified directory 
and nothing above
 # but I want to be able to switch this to /etc/apparmor.d once the profiles 
received more testing
@@ -569,6 +570,7 @@
 %prep
 %setup -q -a 14
 %patch0 -p1
+%patch1 -p1
 #
 %if %{with systemd}
 for file in rsyslog-service-prepare; do

++++++ rsyslog-pgsql-pkg-config.patch ++++++
Index: rsyslog-8.39.0/configure.ac
===================================================================
--- rsyslog-8.39.0.orig/configure.ac
+++ rsyslog-8.39.0/configure.ac
@@ -794,24 +794,7 @@ AC_ARG_ENABLE(pgsql,
         [enable_pgsql=no]
 )
 if test "x$enable_pgsql" = "xyes"; then
-  AC_CHECK_PROG(
-    [PG_CONFIG],
-    [pg_config],
-    [pg_config],
-    [no],,,
-  )
-  if test "x${PG_CONFIG}" = "xno"; then
-    AC_MSG_FAILURE([pg_config not found])
-  fi
-  AC_CHECK_LIB(
-    [pq],
-    [PQconnectdb],
-    [PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
-     PGSQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
-    ],
-    [AC_MSG_FAILURE([PgSQL library is missing])],
-    [-L`$PG_CONFIG --libdir`]
-  )
+  PKG_CHECK_MODULES([PGSQL], [libpq])
 fi
 AM_CONDITIONAL(ENABLE_PGSQL, test x$enable_pgsql = xyes)
 AC_SUBST(PGSQL_CFLAGS)

Reply via email to