public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libesmtp] f45: Update to 1.1.0
@ 2026-10-06 18:52 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-06 18:52 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libesmtp
Branch : f45
Commit : 8f20ae579a76be27df8f3fb57e3d9b4c44a5a718
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-09-01T18:09:52-04:00
Stats : +93/-125 in 8 file(s)
URL : https://src.fedoraproject.org/rpms/libesmtp/c/8f20ae579a76be27df8f3fb57e3d9b4c44a5a718?branch=f45
Log:
Update to 1.1.0
- Resolves: rhbz#2504273
---
diff --git a/.gitignore b/.gitignore
index 85bf0c8..e6f139f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
libesmtp-1.0.4.tar.bz2
/libesmtp-1.0.6.tar.bz2
+/libESMTP-1.1.0.tar.gz
diff --git a/1001-meson-build-soname.patch b/1001-meson-build-soname.patch
new file mode 100644
index 0000000..3eb65f0
--- /dev/null
+++ b/1001-meson-build-soname.patch
@@ -0,0 +1,21 @@
+From: "Jeremy T. Bouse" <jbouse@debian.org>
+Date: Mon, 7 Jun 2021 20:28:24 -0400
+Subject: Update libESMTP SONAME version on build
+
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 72e23c3..e2b8a44 100644
+--- a/meson.build
++++ b/meson.build
+@@ -208,7 +208,7 @@ vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfil
+
+ lib = library('esmtp', sources,
+ link_args : vflag, link_depends : mapfile,
+- soversion : libesmtp_so_version,
++ version : libesmtp_so_version,
+ dependencies : deps,
+ install : true)
+
diff --git a/1003-default-source.patch b/1003-default-source.patch
new file mode 100644
index 0000000..7dbf39a
--- /dev/null
+++ b/1003-default-source.patch
@@ -0,0 +1,10 @@
+--- a/meson.build
++++ b/meson.build
+@@ -30,6 +30,7 @@
+ ################################################################################
+ cflags = [
+ '-D_POSIX_C_SOURCE=200809L',
++ '-D_DEFAULT_SOURCE',
+ ]
+
+ cflags_warnings = [
diff --git a/34.patch b/34.patch
new file mode 100644
index 0000000..e40dd34
--- /dev/null
+++ b/34.patch
@@ -0,0 +1,29 @@
+From f74ac43fcd2af19dac28901bfb9dd1e62a8ec7b0 Mon Sep 17 00:00:00 2001
+From: Ravi Kant Sharma <ravi.kant.sharma@canonical.com>
+Date: Tue, 28 Jul 2026 20:35:48 +0200
+Subject: [PATCH] Fix build with OpenSSL 4.0 opaque ASN1_STRING
+
+OpenSSL 4.0 made ASN1_STRING opaque, so direct access to ->data and
+->length fields no longer compiles. Use ASN1_STRING_get0_data() and
+ASN1_STRING_length() accessors which are available since OpenSSL 1.1.0.
+
+Fixes #33
+---
+ smtp-tls.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/smtp-tls.c b/smtp-tls.c
+index 9f3e50e..981284e 100644
+--- a/smtp-tls.c
++++ b/smtp-tls.c
+@@ -599,8 +599,8 @@ check_acceptable_security (smtp_session_t session, SSL *ssl)
+
+ if (name->type == GEN_DNS)
+ {
+- const char *ia5str = (const char *) name->d.ia5->data;
+- size_t ia5len = name->d.ia5->length;
++ const char *ia5str = (const char *) ASN1_STRING_get0_data(name->d.ia5);
++ size_t ia5len = ASN1_STRING_length(name->d.ia5);
+
+ hasaltname = 1;
+ if (strlen (ia5str) == ia5len && match_domain (host, ia5str))
diff --git a/libesmtp-1.0.6-openssl-1.1.patch b/libesmtp-1.0.6-openssl-1.1.patch
deleted file mode 100644
index 53e32c5..0000000
--- a/libesmtp-1.0.6-openssl-1.1.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff --git a/configure.ac b/configure.ac
-index 556f220..2c0693d 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -303,7 +303,7 @@ if test x$with_openssl != xno ; then
- )
- fi
- if test x$with_openssl != xno ; then
-- AC_CHECK_LIB(ssl, SSL_library_init, [
-+ AC_CHECK_LIB(ssl, SSL_new, [
- with_openssl=yes
- LIBS="-lssl -lcrypto $LIBS"
- ], [
-
diff --git a/libesmtp-configure-c99.patch b/libesmtp-configure-c99.patch
deleted file mode 100644
index 29f87d4..0000000
--- a/libesmtp-configure-c99.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-Fix C99 compatibility issues (implicit int, implicit function
-declarations) in the configure script. Upstream has removed
-autotools altogether, addressing this issue:
-
-commit 5ea5d5ec7c7f4e628db5f0b4c446dc510ff2777a
-Author: Brian Stafford <contact@brianstafford.info>
-Date: Tue Mar 3 18:40:30 2020 +0000
-
- Remove autotools
-
- * it has only been a 20 year wait for this :-)
-
-diff --git a/acinclude.m4 b/acinclude.m4
-index 912149736f74a70b..3632220c1a107dd1 100644
---- a/acinclude.m4
-+++ b/acinclude.m4
-@@ -355,12 +355,12 @@ AC_DEFUN([ACX_SNPRINTF], [
- AC_TRY_RUN([
- #include <stdio.h>
-
--main ()
-+int main (void)
- {
- char buf[16];
-
- snprintf (buf, 4, "abcd");
-- exit ((buf[3] == '\0') ? 0 : 1);
-+ return (buf[3] == '\0') ? 0 : 1;
- }
-
- ], acx_cv_working_snprintf=yes, acx_cv_working_snprintf=no, acx_cv_working_snprintf=yes)
-diff --git a/configure b/configure
-index d586ca2df4fc0435..f5e13a62ef13a55d 100755
---- a/configure
-+++ b/configure
-@@ -13211,13 +13211,14 @@ else
- /* end confdefs.h. */
-
- #include <stdio.h>
-+#include <string.h>
-
- main ()
- {
- char buf[16];
-
- snprintf (buf, 4, "abcd");
-- exit ((buf[3] == '\0') ? 0 : 1);
-+ return (buf[3] == '\0') ? 0 : 1;
- }
-
-
diff --git a/libesmtp.spec b/libesmtp.spec
index 0e90939..31c2d4f 100644
--- a/libesmtp.spec
+++ b/libesmtp.spec
@@ -1,18 +1,18 @@
-%define plugindir %{_libdir}/esmtp-plugins
-
Summary: SMTP client library
Name: libesmtp
-Version: 1.0.6
-Release: 37%{?dist}
-# Automatically converted from old format: LGPLv2+ - review is highly recommended.
-License: LicenseRef-Callaway-LGPLv2+
-Source: http://www.stafford.uklinux.net/libesmtp/%{name}-%{version}.tar.bz2
-URL: http://www.stafford.uklinux.net/libesmtp/
+Version: 1.1.0
+Release: 1%{?dist}
+License: LGPL-2.1-or-later
+Source: https://github.com/libesmtp/libESMTP/archive/v%{version}/libESMTP-%{version}.tar.gz
+URL: https://libesmtp.github.io/
BuildRequires: gcc
-BuildRequires: openssl-devel pkgconfig autoconf automake libtool
-BuildRequires: make
-Patch0: libesmtp-1.0.6-openssl-1.1.patch
-Patch1: libesmtp-configure-c99.patch
+BuildRequires: pkgconfig(openssl)
+BuildRequires: meson
+# Fix build with OpenSSL 4.0 opaque ASN1_STRING
+Patch: https://github.com/libesmtp/libESMTP/pull/34.patch
+# Debian patches
+Patch: 1001-meson-build-soname.patch
+Patch: 1003-default-source.patch
%description
LibESMTP is a library to manage posting (or submission of) electronic
@@ -24,8 +24,7 @@ functionality is not the program's primary purpose.
%package devel
Summary: Headers and development libraries for libESMTP
# example file is under the GPLv2+
-# Automatically converted from old format: LGPLv2+ and GPLv2+ - review is highly recommended.
-License: LicenseRef-Callaway-LGPLv2+ AND GPL-2.0-or-later
+License: LGPL-2.1-or-later AND GPL-2.0-or-later
Requires: %{name} = %{version}-%{release}, openssl-devel
%description devel
@@ -36,68 +35,41 @@ Exim.
The libesmtp-devel package contains headers and development libraries
necessary for building programs against libesmtp.
-%prep
-%setup -q
-%patch -P0 -p1 -b .openssl-1.1
-%patch -P1 -p1
-
-autoreconf -fi
-
-# Keep rpmlint happy about libesmtp-debuginfo...
-chmod a-x htable.c
+%prep
+%autosetup -n libESMTP-%{version} -p1
%build
+%meson
+%meson_build
-if pkg-config openssl ; then
- export CFLAGS="$CFLAGS $RPM_OPT_FLAGS `pkg-config --cflags openssl`"
- export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
-fi
-%configure --with-auth-plugin-dir=%{plugindir} --enable-pthreads \
- --enable-require-all-recipients --enable-debug \
- --enable-etrn --disable-isoc --disable-more-warnings --disable-static
-make %{?_smp_mflags}
-cat << "EOF" > libesmtp.pc
-prefix=%{_prefix}
-exec_prefix=%{_prefix}
-libdir=%{_libdir}
-includedir=%{_includedir}
-
-Name: libESMTP
-Version: %{version}
-Description: SMTP client library.
-Requires: openssl
-Libs: -pthread -L${libdir} -lesmtp
-Cflags:
-EOF
-
+# deprecated; still used by esmtp
cat << "EOF" > libesmtp-config
#! /bin/sh
-exec pkg-config "$@" libesmtp
+exec pkg-config "$@" libesmtp-1.0
EOF
%install
-rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p'
-rm $RPM_BUILD_ROOT/%{_libdir}/*.la
-rm $RPM_BUILD_ROOT/%{_libdir}/esmtp-plugins/*.la
-install -p -m644 -D libesmtp.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libesmtp.pc
-
-
-%ldconfig_scriptlets
+%meson_install
+install -p -m755 -D -t %{buildroot}%{_bindir} libesmtp-config
%files
-%doc AUTHORS COPYING.LIB NEWS Notes README
-%{_libdir}/libesmtp.so.*
-%{plugindir}
+%doc README.md
+%license LICENSE
+%{_libdir}/libesmtp.so.6{,.*}
+%{_libdir}/esmtp-plugins-6.*
%files devel
-%doc examples COPYING
+%doc examples
+%license COPYING.GPL
%{_bindir}/libesmtp-config
%{_prefix}/include/*
%{_libdir}/libesmtp.so
-%{_libdir}/pkgconfig/libesmtp.pc
+%{_libdir}/pkgconfig/libesmtp-1.0.pc
%changelog
+* Fri Aug 28 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 1.1.0-1
+- Update to 1.1.0
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/sources b/sources
index 84f3423..524b6f9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-bf3915e627fd8f35524a8fdfeed979c8 libesmtp-1.0.6.tar.bz2
+SHA512 (libESMTP-1.1.0.tar.gz) = fc2a9d9922a1807cce8c8cee627ea8fd3a79c33f0987c5a487080b1a1659fd504bc45da2f919d30eced33ab3e950105383a46ecf3365493134adc1183eb99e53
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-06 18:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-06 18:52 [rpms/libesmtp] f45: Update to 1.1.0 Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox