[packages/libol] Rel 3
arekm
arekm at pld-linux.org
Sun Mar 15 15:21:55 CET 2026
commit 55286b28844d3a86c457ed8867fa4d55dbd31bc3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 15 15:21:46 2026 +0100
Rel 3
libol-io-fix-incompatible-pointer-types.patch | 35 +++++++++++++++++++++++++++
libol.spec | 5 +++-
2 files changed, 39 insertions(+), 1 deletion(-)
---
diff --git a/libol.spec b/libol.spec
index bb03c78..bff35bc 100644
--- a/libol.spec
+++ b/libol.spec
@@ -2,12 +2,13 @@ Summary: libol library
Summary(pl.UTF-8): Biblioteka libol
Name: libol
Version: 0.3.18
-Release: 2
+Release: 3
License: GPL
Group: Libraries
Source0: http://www.balabit.hu/downloads/syslog-ng/libol/0.3/%{name}-%{version}.tar.gz
# Source0-md5: cbadf4b7ea276dfa85acc38a1cc5ff17
Patch0: %{name}-autoconf.patch
+Patch1: %{name}-io-fix-incompatible-pointer-types.patch
BuildRequires: autoconf >= 2.53
BuildRequires: automake
BuildRequires: libtool
@@ -63,6 +64,8 @@ Narzędzie programistyczne make_class dla biblioteki libol.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
+touch src/*.x
%build
%{__libtoolize}
diff --git a/libol-io-fix-incompatible-pointer-types.patch b/libol-io-fix-incompatible-pointer-types.patch
new file mode 100644
index 0000000..299031c
--- /dev/null
+++ b/libol-io-fix-incompatible-pointer-types.patch
@@ -0,0 +1,35 @@
+--- libol-0.3.18/src/io.c.orig 2026-03-15 12:45:26.578327487 +0100
++++ libol-0.3.18/src/io.c 2026-03-15 12:45:50.189133304 +0100
+@@ -378,9 +378,10 @@
+ }
+ }
+
+-static int do_recv(struct abstract_read **r, UINT32 length, UINT8 *buffer, abstract_addr *addr, socklen_t *addrlen)
++static int do_recv(struct abstract_read **r, UINT32 length, UINT8 *buffer, abstract_addr *addr, size_t *addrlen)
+ {
+ CAST(fd_read, closure, *r);
++ socklen_t slen;
+
+ if (!length) {
+ werror("io.c: do_recv(): Zero length read was requested.\n");
+@@ -394,7 +395,9 @@
+
+ ((struct sockaddr *) addr)->sa_family = 0;
+
+- res = recvfrom(closure->fd, buffer, length, 0, (struct sockaddr *) addr, (socklen_t *) addrlen);
++ slen = (socklen_t) *addrlen;
++ res = recvfrom(closure->fd, buffer, length, 0, (struct sockaddr *) addr, &slen);
++ *addrlen = (size_t) slen;
+
+ if (*addrlen == 2 || (*addrlen >= 2 && ((struct sockaddr *) addr)->sa_family == 0)) {
+ /* HACK: this is a workaround of a Linux 2.2 & 2.4 bug,
+@@ -1410,7 +1413,8 @@
+ }
+
+ fchmod(newfd, statbuf.st_mode);
+- fchown(newfd, statbuf.st_uid, statbuf.st_gid);
++ if (fchown(newfd, statbuf.st_uid, statbuf.st_gid) == -1)
++ werror("reopen_fd: fchown failed: %z\n", strerror(errno));
+ dup2(newfd, oldfd);
+ close(newfd);
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libol.git/commitdiff/55286b28844d3a86c457ed8867fa4d55dbd31bc3
More information about the pld-cvs-commit
mailing list