public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/inn] epel10: add missing test dependencies and run testsuite
@ 2026-08-26  8:07 Dominik 'Rathann' Mierzejewski
  0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-08-26  8:07 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/inn
Branch : epel10
Commit : 0b26fbec751ac3db6e0d14c9a556f106a2ded1e5
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date   : 2020-09-13T01:39:45+02:00
Stats  : +66/-45 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/inn/c/0b26fbec751ac3db6e0d14c9a556f106a2ded1e5?branch=epel10

Log:
add missing test dependencies and run testsuite

---
diff --git a/inn-2.6.0-rh.patch b/inn-2.6.0-rh.patch
deleted file mode 100644
index 7fd287a..0000000
--- a/inn-2.6.0-rh.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff -up inn-2.6.0/Makefile.global.in.rh inn-2.6.0/Makefile.global.in
---- inn-2.6.0/Makefile.global.in.rh	2015-09-12 15:25:22.000000000 +0200
-+++ inn-2.6.0/Makefile.global.in	2016-01-21 15:45:09.587661504 +0100
-@@ -299,8 +299,8 @@ INEWSMODE	= @INEWSMODE@
- RNEWSMODE	= @RNEWSMODE@
- FILEMODE	= @FILEMODE@
- 
--OWNER		= -o $(RUNASUSER) -g $(RUNASGROUP)
--ROWNER		= -o $(RUNASUSER) -g $(RNEWSGROUP)
-+OWNER           =
-+ROWNER          =
- 
- INSTALL		= $(top)/support/install-sh -c
- 
-diff -up inn-2.6.0/samples/inn.conf.in.rh inn-2.6.0/samples/inn.conf.in
---- inn-2.6.0/samples/inn.conf.in.rh	2015-09-12 15:25:22.000000000 +0200
-+++ inn-2.6.0/samples/inn.conf.in	2016-01-21 15:45:09.587661504 +0100
-@@ -21,7 +21,7 @@ mta:                         "@SENDMAIL@
- organization:                "A poorly-installed InterNetNews site"
- ovmethod:                    tradindexed
- hismethod:                   hisv6
--pathhost:                    @HOSTNAME@
-+#pathhost:                    localhost
- pathnews:                    @prefix@
- 
- #runasuser:
-@@ -147,7 +147,7 @@ backofftrigger:              10000
- 
- # Monitoring
- 
--doinnwatch:                  true
-+doinnwatch:                  false
- innwatchbatchspace:          4000
- innwatchlibspace:            25000
- innwatchloload:              1000
-@@ -186,7 +186,7 @@ icdsynccount:                10
- keepmmappedthreshold:        1024
- #maxcmdreadsize:
- maxforks:                    10
--nicekids:                    4
-+nicekids:                    0
- nicenewnews:                 0
- nicennrpd:                   0
- pauseretrytime:              300

diff --git a/inn-2.6.3-rh.patch b/inn-2.6.3-rh.patch
new file mode 100644
index 0000000..8181d47
--- /dev/null
+++ b/inn-2.6.3-rh.patch
@@ -0,0 +1,59 @@
+diff -up inn-2.6.3/lib/innconf.c.rh inn-2.6.3/lib/innconf.c
+--- inn-2.6.3/lib/innconf.c.rh	2019-02-07 16:02:22.000000000 +0100
++++ inn-2.6.3/lib/innconf.c	2020-09-12 23:58:28.176116563 +0200
+@@ -268,7 +268,7 @@ const struct config config_table[] = {
+     { K(pgpverify),               BOOL   (false) },
+ 
+     /* The following settings are specific to innwatch. */
+-    { K(doinnwatch),              BOOL    (true) },
++    { K(doinnwatch),              BOOL    (false) },
+     { K(innwatchbatchspace),      UNUMBER (4000) },
+     { K(innwatchlibspace),        UNUMBER (25000) },
+     { K(innwatchloload),          UNUMBER (1000) },
+diff -up inn-2.6.3/Makefile.global.in.rh inn-2.6.3/Makefile.global.in
+--- inn-2.6.3/Makefile.global.in.rh	2019-02-07 16:02:22.000000000 +0100
++++ inn-2.6.3/Makefile.global.in	2020-09-12 23:58:28.177116571 +0200
+@@ -309,8 +309,8 @@ INEWSMODE	= @INEWSMODE@
+ RNEWSMODE	= @RNEWSMODE@
+ FILEMODE	= @FILEMODE@
+ 
+-OWNER		= -o $(RUNASUSER) -g $(RUNASGROUP)
+-ROWNER		= -o $(RUNASUSER) -g $(RNEWSGROUP)
++OWNER           =
++ROWNER          =
+ 
+ INSTALL		= $(top)/support/install-sh -c
+ 
+diff -up inn-2.6.3/samples/inn.conf.in.rh inn-2.6.3/samples/inn.conf.in
+--- inn-2.6.3/samples/inn.conf.in.rh	2019-02-07 16:02:22.000000000 +0100
++++ inn-2.6.3/samples/inn.conf.in	2020-09-12 23:58:28.177116571 +0200
+@@ -21,7 +21,7 @@ mta:                         "@SENDMAIL@
+ organization:                "A poorly-installed InterNetNews site"
+ ovmethod:                    tradindexed
+ hismethod:                   hisv6
+-pathhost:                    @HOSTNAME@
++#pathhost:                    localhost
+ pathnews:                    @prefix@
+ 
+ #runasuser:
+@@ -149,7 +149,7 @@ backofftrigger:              10000
+ 
+ # Monitoring
+ 
+-doinnwatch:                  true
++doinnwatch:                  false
+ innwatchbatchspace:          4000
+ innwatchlibspace:            25000
+ innwatchloload:              1000
+diff -up inn-2.6.3/tests/lib/innconf-t.c.rh inn-2.6.3/tests/lib/innconf-t.c
+--- inn-2.6.3/tests/lib/innconf-t.c.rh	2019-02-07 16:02:22.000000000 +0100
++++ inn-2.6.3/tests/lib/innconf-t.c	2020-09-13 00:08:44.805778629 +0200
+@@ -73,7 +73,7 @@ main(void)
+     fclose(config);
+     ok(7, !innconf_check("config/tmp"));
+     unlink("config/tmp");
+-    ok_string(8, "config/tmp:28: unknown parameter foo\n", errors);
++    ok_string(8, "config/tmp:27: unknown parameter foo\n", errors);
+     errors_uncapture();
+     free(errors);
+     errors = NULL;

diff --git a/inn.spec b/inn.spec
index 77f4b1f..ffb23ff 100644
--- a/inn.spec
+++ b/inn.spec
@@ -21,7 +21,7 @@ Source23: innd-nntpsend.service
 Source24: innd-nntpsend.timer
 Source25: innd-rnews.service
 Source26: innd-rnews.timer
-Patch1:  inn-2.6.0-rh.patch
+Patch1: inn-2.6.3-rh.patch
 Patch2: inn-2.6.3-filterPath.patch
 Patch4: inn-2.6.0.pie.patch
 Patch6: inn-2.5.2.posix.patch
@@ -46,6 +46,8 @@ BuildRequires: perl-interpreter
 BuildRequires: perl(ExtUtils::Embed)
 BuildRequires: perl(GD)
 BuildRequires: perl(MIME::Parser)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Pod)
 BuildRequires: python3-devel
 BuildRequires: systemd
 BuildRequires: uucp
@@ -265,6 +267,9 @@ D %{_localstatedir}/run/news 0755 news news -
 EOF
 install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/run/news
 
+%check
+LD_LIBRARY_PATH=%{buildroot}%{_libdir} %make_build check
+
 %pre -n inews
 getent group news >/dev/null || groupadd -g 13 -r news
 getent passwd news >/dev/null || \
@@ -622,6 +627,7 @@ fi
 * Sat Sep 12 2020 Dominik Mierzejewski <rpm@greysector.net> - 2.6.3-10
 - add missing build dependencies (enable zlib and gdbm)
 - minimize shared library deps as recommended by upstream
+- add missing test dependencies and run testsuite
 
 * Wed Sep 09 2020 Petr Viktorin <pviktori@redhat.com> - 2.6.3-9
 - Switch BuildRequires to python3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-26  8:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26  8:07 [rpms/inn] epel10: add missing test dependencies and run testsuite Dominik 'Rathann' Mierzejewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox