* Tue Mar 19 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.03-26.sme

- patch to allow build on el8/SME11
master 1_03-26_el8_sme
Jean-Philippe Pialasse 2 months ago
parent 645c7eed91
commit 0e41a83a5e

@ -0,0 +1,14 @@
--- qmail-1.03/ipme.c Mon Jun 15 06:53:16 1998
+++ qmail-1.03-sg/ipme.c Mon Jan 29 02:27:38 2001
@@ -46,6 +46,11 @@
ipme.len = 0;
ix.pref = 0;
+ /* 0.0.0.0 is a special address which always refers to
+ * "this host, this network", according to RFC 1122, Sec. 3.2.1.3a.
+ */
+ byte_copy(&ix.ip,4,"\0\0\0\0");
+ if (!ipalloc_append(&ipme,&ix)) { return 0; }
if ((s = socket(AF_INET,SOCK_STREAM,0)) == -1) return -1;
len = 256;

@ -0,0 +1,30 @@
diff -Nur --no-dereference qmail-1.03.old/chkshsgr.c qmail-1.03/chkshsgr.c
--- qmail-1.03.old/chkshsgr.c 1998-06-15 06:53:16.000000000 -0400
+++ qmail-1.03/chkshsgr.c 2024-03-19 16:21:21.624000000 -0400
@@ -1,7 +1,12 @@
#include "exit.h"
-void main()
+#include <sys/types.h>
+#include <stdlib.h>
+#include <grp.h>
+#include <unistd.h>
+
+void main(int argc, char *argv[])
{
- short x[4];
+ gid_t x[4];
x[0] = x[1] = 0;
if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
diff -Nur --no-dereference qmail-1.03.old/Makefile qmail-1.03/Makefile
--- qmail-1.03.old/Makefile 1998-06-15 06:53:16.000000000 -0400
+++ qmail-1.03/Makefile 2024-03-19 16:22:11.180000000 -0400
@@ -678,7 +678,7 @@
hasshsgr.h: \
chkshsgr warn-shsgr tryshsgr.c compile load
- ./chkshsgr || ( cat warn-shsgr; exit 1 )
+ echo "Warning: We can not run test on cross target. - ignoring ./chkshsgr || ( cat warn-shsgr; exit 1 )"
( ( ./compile tryshsgr.c \
&& ./load tryshsgr && ./tryshsgr ) >/dev/null 2>&1 \
&& echo \#define HASSHORTSETGROUPS 1 || exit 0 ) > \

@ -5,11 +5,12 @@
#
# $Id: qmail.spec,v 1.8 2021/04/12 21:54:46 jpp Exp $
#
%global debug_package %{nil}
Summary: A modern, fast, secure replacement for sendmail
%define name qmail
Name: %{name}
%define version 1.03
%define release 25
%define release 26
Version: %{version}
Release: %{release}%{?dist}
#Author: Daniel J. Bernstein
@ -25,6 +26,7 @@ Patch4: qmail-inject-null-sender.patch
Patch5: http://notes.sagredo.eu/sites/notes.sagredo.eu/files/qmail/patches/qmail-1.03-moreipme-0.6.patch
Patch6: netqmail-1.06-tls-20190517-remote.patch
#adapted from http://inoa.net/qmail-tls/netqmail-1.06-tls-20190517.patch
Patch7: qmail-1.03-el8.patch
URL: http://cr.yp.to/%{name}.html
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
Provides: smtpdaemon
@ -81,6 +83,9 @@ also includes a drop-in ``sendmail'' wrapper so that it will be used
transparently by your current UAs.
%changelog
* Tue Mar 19 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.03-26.sme
- patch to allow build on el8/SME11
* Fri Jul 14 2023 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.
@ -235,6 +240,7 @@ transparently by your current UAs.
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%build
#echo gcc -O2 --include /usr/include/errno.h > conf-cc

Loading…
Cancel
Save