[packages/mailsync] - fix build on x32
baggins
baggins at pld-linux.org
Fri May 8 09:38:09 CEST 2026
commit 34725aee7dd724c6a5296bfcfc3e6d4045873aeb
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri May 8 11:38:00 2026 +0200
- fix build on x32
mailsync.spec | 2 ++
x32.patch | 33 +++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+)
---
diff --git a/mailsync.spec b/mailsync.spec
index 1a931da..5811380 100644
--- a/mailsync.spec
+++ b/mailsync.spec
@@ -8,6 +8,7 @@ Group: Applications/Mail
Source0: http://dl.sourceforge.net/%{name}/%{name}_%{version}.orig.tar.gz
# Source0-md5: 67c9f68575756b76581cf9be74608aa5
Patch0: %{name}-ksh.patch
+Patch1: x32.patch
URL: http://mailsync.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
@@ -38,6 +39,7 @@ skrzynkami. Działa to na tej samej zasadzie co CVS, z wyjątkiem tego,
%prep
%setup -q
%patch -P0 -p0
+%patch -P1 -p1
%build
./autogen.sh
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..b0c9d2e
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,33 @@
+--- mailsync-5.2.1/acinclude/ac_with_cclient.m4~ 2026-05-08 11:29:50.000000000 +0200
++++ mailsync-5.2.1/acinclude/ac_with_cclient.m4 2026-05-08 11:33:02.530014979 +0200
+@@ -49,7 +49,7 @@
+ dnl Looking for c-client libraries
+ dnl
+ AC_MSG_CHECKING([for c-client library])
+- for l in `eval "echo {${CCLIENTLOCATIONS}}{,/c-client,/lib/c-client,/lib,/lib64}/{libc-client,libc-client4,c-client}{${SOP}}"` ; do
++ for l in `eval "echo {${CCLIENTLOCATIONS}}{,/c-client,/lib/c-client,/lib,/lib64,/libx32}/{libc-client,libc-client4,c-client}{${SOP}}"` ; do
+ if test -r "$l" ; then
+ AC_MSG_RESULT([found ${l}])
+ CCLIENT_LIBS="$l"
+--- mailsync-5.2.1/acinclude/ac_with_openssl.m4~ 2026-05-08 11:34:30.000000000 +0200
++++ mailsync-5.2.1/acinclude/ac_with_openssl.m4 2026-05-08 11:36:53.546681713 +0200
+@@ -23,7 +23,7 @@
+ ifelse([$2], , :, [$2])
+ else
+ AC_MSG_CHECKING([for libssl])
+- for p in `eval "echo {${OPENSSLLOCATIONS}}{/lib,/lib64}"` ; do
++ for p in `eval "echo {${OPENSSLLOCATIONS}}{/lib,/lib64,/libx32}"` ; do
+ if test -r "${p}/libssl.a" -o -r "${p}/libssl.so" ; then
+ OPENSSL_LDFLAGS="-L${p}"
+ AC_MSG_RESULT([found in ${p}])
+--- mailsync-5.2.1/acinclude/ac_with_pam.m4~ 2026-05-08 11:34:30.000000000 +0200
++++ mailsync-5.2.1/acinclude/ac_with_pam.m4 2026-05-08 11:37:07.216681724 +0200
+@@ -22,7 +22,7 @@
+ ifelse([$2], , :, [$2])
+ else
+ AC_MSG_CHECKING([for pam library])
+- for p in `eval "echo {${PAMLOCATIONS}}{/lib,/lib64}"` ; do
++ for p in `eval "echo {${PAMLOCATIONS}}{/lib,/lib64,/libx32}"` ; do
+ if test -r "${p}/libpam.a" -o -r "${p}/libpam.so" ; then
+ PAM_LDFLAGS="-L${p}"
+ AC_MSG_RESULT([found in ${p}])
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mailsync.git/commitdiff/34725aee7dd724c6a5296bfcfc3e6d4045873aeb
More information about the pld-cvs-commit
mailing list