File cyrus-imapd-3.2.12-fix-perl-linking.patch of Package cyrus-imapd

From: Matthias Fehring <buschmann23@opensuse.org>
Date: 2024-03-27 15:04:00 +0100
Subject: Fix Perl linking
References: https://github.com/cyrusimap/cyrus-imapd/issues/2629#issuecomment-456925909
Upstream: no

Adds PCRE2 and libcap to the linked libraries.

---
 imap/Makefile.PL.in              |    8 ++++----
 sieve/managesieve/Makefile.PL.in |    4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

--- a/perl/imap/Makefile.PL.in	2024-03-13 02:08:55.000000000 +0100
+++ b/perl/imap/Makefile.PL.in	2024-06-17 16:49:49.685195399 +0200
@@ -1,11 +1,11 @@
-# 
+#
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions
 # are met:
 #
 # 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer. 
+#    notice, this list of conditions and the following disclaimer.
 #
 # 2. Redistributions in binary form must reproduce the above copyright
 #    notice, this list of conditions and the following disclaimer in
@@ -15,7 +15,7 @@
 # 3. The name "Carnegie Mellon University" must not be used to
 #    endorse or promote products derived from this software without
 #    prior written permission. For permission or any other legal
-#    details, please contact  
+#    details, please contact
 #      Office of Technology Transfer
 #      Carnegie Mellon University
 #      5000 Forbes Avenue
@@ -91,7 +91,7 @@
     'LD'       => $Config{ld} . ' @GCOV_LDFLAGS@',
     'OBJECT'    => 'IMAP.o',
     'MYEXTLIB'  => '@top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a',
-    'LIBS'	=> [ "$LIB_SASL @SSL_LIBS@ @LIB_UUID@ @ZLIB@ @GCOV_LIBS@ @LIBCAP_LIBS@"],
+    'LIBS'	=> [ "$LIB_SASL @SSL_LIBS@ @LIB_UUID@ @ZLIB@ @GCOV_LIBS@ @LIBCAP_LIBS@ @LIB_REGEX@"],
     'DEFINE'	=> '-DPERL_POLLUTE',    # e.g., '-DHAVE_SOMETHING'
     'INC'	=> "-I@top_srcdir@ -I@top_srcdir@/com_err/et @SASLFLAGS@ @SSL_CPPFLAGS@ @GCOV_CFLAGS@ -I@top_srcdir@/perl/imap",
     'EXE_FILES' => [cyradm],
--- a/perl/sieve/managesieve/Makefile.PL.in	2023-08-30 03:28:01.000000000 +0200
+++ b/perl/sieve/managesieve/Makefile.PL.in	2024-06-17 16:56:50.115701638 +0200
@@ -69,9 +69,9 @@
     'ABSTRACT'  => 'Cyrus Sieve management interface',
     'VERSION_FROM' => "@top_srcdir@/perl/sieve/managesieve/managesieve.pm", # finds $VERSION
     'MYEXTLIB'  => '../lib/.libs/libisieve.a @top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a',
-    'LIBS'	=> ["$LIB_SASL @SSL_LIBS@ @LIB_UUID@ @LIB_REGEX@ @ZLIB@ @SQLITE_LIBADD@ @MYSQL_LIBADD@ @PGSQL_LIBADD@"],
+    'LIBS'	=> ["$LIB_SASL @SSL_LIBS@ @LIB_UUID@ @LIB_REGEX@ @ZLIB@ @SQLITE_LIBADD@ @MYSQL_LIBADD@ @PGSQL_LIBADD@ @LIBCAP_LIBS@ @LIB_REGEX@"],
     'CCFLAGS'	=> '@GCOV_CFLAGS@',
-    'DEFINE'	=> '-DPERL_POLLUTE',     # e.g., '-DHAVE_SOMETHING' 
+    'DEFINE'	=> '-DPERL_POLLUTE',     # e.g., '-DHAVE_SOMETHING'
     'INC'	=> "-I@top_srcdir@/lib -I@top_srcdir@/perl/sieve -I@top_srcdir@/perl/sieve/lib @SASLFLAGS@ @SSL_CPPFLAGS@",
     'OBJECT'    => 'managesieve.o',
     'LD'	=> $Config{ld} . ' @GCOV_LDFLAGS@',
openSUSE Build Service is sponsored by