public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/libetpan] rawhide: execute unittest
Date: Sun, 31 May 2026 12:04:07 GMT	[thread overview]
Message-ID: <178022904723.1.8520133450378243305.rpms-libetpan-72ec5bb0df1b@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/libetpan
Branch : rawhide
Commit : 72ec5bb0df1bb4fe20dffbb55f854c71d2e67099
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-05-31T09:26:28+01:00
Stats  : +40/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libetpan/c/72ec5bb0df1bb4fe20dffbb55f854c71d2e67099?branch=rawhide

Log:
execute unittest

---
diff --git a/libetpan-1.10-xmlError-constness.patch b/libetpan-1.10-xmlError-constness.patch
new file mode 100644
index 0000000..e343887
--- /dev/null
+++ b/libetpan-1.10-xmlError-constness.patch
@@ -0,0 +1,11 @@
+--- libetpan-1.10/unittest/plaintext-rendering/html_flattener.c.const	2026-05-22 07:44:38.000000000 +0100
++++ libetpan-1.10/unittest/plaintext-rendering/html_flattener.c	2026-05-31 09:03:48.514228462 +0100
+@@ -366,7 +366,7 @@ static void comment_parsed(void * ctx, c
+   (void) value;
+ }
+ 
+-static void structured_error(void * user_data, xmlErrorPtr error)
++static void structured_error(void * user_data, const xmlError * error)
+ {
+   (void) user_data;
+   (void) error;

diff --git a/libetpan.spec b/libetpan.spec
index 140b486..b4cdc96 100644
--- a/libetpan.spec
+++ b/libetpan.spec
@@ -1,6 +1,6 @@
 Name:           libetpan
 Version:        1.10
-Release:        0.100%{?dist}
+Release:        0.101%{?dist}
 Summary:        Portable, efficient middle-ware for different kinds of mail access
 
 # src/bsd/getopt.c BSD-4-Clause (not used)
@@ -11,6 +11,8 @@ URL:            http://www.etpan.org/
 Source0:        https://github.com/dinhviethoa/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
 # system crypto policy (see rhbz#1179310)
 Patch10:        libetpan-1.9.2-cryptopolicy.patch
+# xmlError constness
+Patch11:        libetpan-1.10-xmlError-constness.patch
 # Upstream patches
 #
 
@@ -28,6 +30,9 @@ BuildRequires:  make
 # libcurl and libexpat not needed by Claws Mail:
 # http://lists.claws-mail.org/pipermail/users/2016-January/015665.html
 #BuildRequires:  libcurl-devel expat-devel
+# %%check
+BuildRequires:  libxml2-devel
+BuildRequires:  pkgconfig(tidy)
 
 %description
 The purpose of this mail library is to provide a portable, efficient middle-ware
@@ -51,6 +56,7 @@ find . -name \*.gz -delete
 sed -i.flags libetpan.pc.in \
     -e 's|-letpan@LIBSUFFIX@.*$|-letpan@LIBSUFFIX@|'
 %patch -P10 -p1 -b .crypto-policy
+%patch -P11 -p1 -b .const
 
 # 2013-08-05 F20 development, bz 992070: The configure scripts adds some
 # extra libs to the GnuTLS link options, which cause rebuilds to fail, since
@@ -84,7 +90,28 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/libetpan.{,l}a
 
 iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog
 
-%ldconfig_scriptlets
+%check
+# unittest
+# plaintext-rendering does not work well
+export LD_LIBRARY_PATH=$(pwd)/src/.libs
+pushd unittest
+
+sed -i.shared Makefile \
+	-e 's|libetpan.a|libetpan.so|' \
+	-e 's|-liconv ||' \
+	-e 's|-Werror |-Werror -Wno-error=deprecated-declarations |' \
+	-e 's|\$(TIDY_LDLIBS) |$(TIDY_LDLIBS) -lm |' \
+	%{nil}
+
+# plaintext_rendering_test does not work well
+sed -i.opt Makefile \
+	-e '\@cd plaintext-rendering@s|./plaintext_rendering_test|true ./plaintext_rendering_test|' \
+	%{nil}
+make
+make check
+
+popd
+
 
 %files
 %license COPYRIGHT

                 reply	other threads:[~2026-05-31 12:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178022904723.1.8520133450378243305.rpms-libetpan-72ec5bb0df1b@fedoraproject.org \
    --to=mtasaka@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox