2 Commits

Author SHA256 Message Date
850b174541 Accepting request 1283369 from home:pgajdos
- added patches
  build with gc15
  + libowfat-gcc15.patch

OBS-URL: https://build.opensuse.org/request/show/1283369
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libowfat?expand=0&rev=5
2025-06-13 11:01:20 +00:00
7bf6394142 - update to 0.34:
* be more C99 compliant (Florian Weimer)
  * add C++ convenience overloads to uint*.h
  * remove unaligned memory access behind #ifdef i386 from
    uint*.h

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libowfat?expand=0&rev=3
2025-03-30 10:44:18 +00:00
7 changed files with 119 additions and 6 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:311ec8b3f4b72bb442e323fb013a98f956fa745547f2bc9456287b20d027cd7d
size 213920

Binary file not shown.

3
libowfat-0.34.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d4330d373ac9581b397bc24a22ad1f7f5d58a7fe36d9d239fe352ceffc5d304b
size 223960

BIN
libowfat-0.34.tar.xz.sig Normal file

Binary file not shown.

96
libowfat-gcc15.patch Normal file
View File

@@ -0,0 +1,96 @@
diff -upr libowfat-0.34.orig/buffer/buffer_frombuf.c libowfat-0.34/buffer/buffer_frombuf.c
--- libowfat-0.34.orig/buffer/buffer_frombuf.c 2025-06-05 13:04:55.953444541 +0000
+++ libowfat-0.34/buffer/buffer_frombuf.c 2025-06-05 13:07:56.706475665 +0000
@@ -14,6 +14,6 @@ void buffer_frombuf(buffer* b,const char
b->n=l;
b->a=l;
b->fd=0;
- b->op=dummyreadwrite;
+ b->op=(ssize_t (*)())dummyreadwrite;
b->deinit=0;
}
diff -upr libowfat-0.34.orig/buffer/buffer_init.c libowfat-0.34/buffer/buffer_init.c
--- libowfat-0.34.orig/buffer/buffer_init.c 2025-06-05 13:04:55.954260901 +0000
+++ libowfat-0.34/buffer/buffer_init.c 2025-06-05 13:08:59.040375115 +0000
@@ -2,7 +2,7 @@
void buffer_init(buffer* b,ssize_t (*op)(),int fd,
char* y,size_t ylen) {
- b->op=op;
+ b->op=(ssize_t (*)())op;
b->fd=fd;
b->x=y;
b->a=ylen;
diff -upr libowfat-0.34.orig/buffer/buffer_init_read.c libowfat-0.34/buffer/buffer_init_read.c
--- libowfat-0.34.orig/buffer/buffer_init_read.c 2025-06-05 13:04:55.954376812 +0000
+++ libowfat-0.34/buffer/buffer_init_read.c 2025-06-05 13:09:27.488368184 +0000
@@ -3,7 +3,7 @@
int buffer_init_read(buffer* b, int fd, char* y,size_t ylen) {
if (fd==-1) return -1;
- buffer_init(b, read, fd, y, ylen);
+ buffer_init(b, (ssize_t (*)())read, fd, y, ylen);
return 0;
}
diff -upr libowfat-0.34.orig/buffer/buffer_init_read_allocbuf.c libowfat-0.34/buffer/buffer_init_read_allocbuf.c
--- libowfat-0.34.orig/buffer/buffer_init_read_allocbuf.c 2025-06-05 13:04:55.954406172 +0000
+++ libowfat-0.34/buffer/buffer_init_read_allocbuf.c 2025-06-05 13:10:05.473383454 +0000
@@ -2,6 +2,6 @@
#include "buffer.h"
int buffer_init_read_allocbuf(buffer* b, int fd, size_t ylen) {
- return buffer_init_allocbuf(b, read, fd, ylen);
+ return buffer_init_allocbuf(b, (ssize_t (*)())read, fd, ylen);
}
diff -upr libowfat-0.34.orig/buffer/buffer_init_write.c libowfat-0.34/buffer/buffer_init_write.c
--- libowfat-0.34.orig/buffer/buffer_init_write.c 2025-06-05 13:04:55.954492336 +0000
+++ libowfat-0.34/buffer/buffer_init_write.c 2025-06-05 13:11:27.055825690 +0000
@@ -3,7 +3,7 @@
int buffer_init_write(buffer* b, int fd, char* y,size_t ylen) {
if (fd==-1) return -1;
- buffer_init(b, write, fd, y, ylen);
+ buffer_init(b, (ssize_t (*)())write, fd, y, ylen);
return 0;
}
diff -upr libowfat-0.34.orig/buffer/buffer_init_write_allocbuf.c libowfat-0.34/buffer/buffer_init_write_allocbuf.c
--- libowfat-0.34.orig/buffer/buffer_init_write_allocbuf.c 2025-06-05 13:04:55.954520046 +0000
+++ libowfat-0.34/buffer/buffer_init_write_allocbuf.c 2025-06-05 13:11:03.334025742 +0000
@@ -2,6 +2,6 @@
#include "buffer.h"
int buffer_init_write_allocbuf(buffer* b, int fd, size_t ylen) {
- return buffer_init_allocbuf(b, write, fd, ylen);
+ return buffer_init_allocbuf(b, (ssize_t (*)())write, fd, ylen);
}
diff -upr libowfat-0.34.orig/buffer/buffer_tosa.c libowfat-0.34/buffer/buffer_tosa.c
--- libowfat-0.34.orig/buffer/buffer_tosa.c 2025-06-05 13:04:55.956117620 +0000
+++ libowfat-0.34/buffer/buffer_tosa.c 2025-06-05 13:11:51.320981423 +0000
@@ -21,7 +21,7 @@ int buffer_tosa(buffer* b,stralloc* sa)
b->n=0;
b->a=1024;
b->fd=0;
- b->op=strallocwrite;
+ b->op=(ssize_t (*)())strallocwrite;
b->cookie=sa;
b->deinit=0;
return 0;
diff -upr libowfat-0.34.orig/buffer.h libowfat-0.34/buffer.h
--- libowfat-0.34.orig/buffer.h 2025-06-05 13:04:55.948677083 +0000
+++ libowfat-0.34/buffer.h 2025-06-05 13:06:36.896963445 +0000
@@ -37,8 +37,8 @@ typedef struct buffer {
int fd; /* passed as first argument to op */
} buffer;
-#define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
-#define BUFFER_INIT_FREE(op,fd,buf,len) { (buf), 0, 0, (len), (op), NULL, buffer_free, (fd) }
+#define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), ((ssize_t (*)())op), NULL, NULL, (fd) }
+#define BUFFER_INIT_FREE(op,fd,buf,len) { (buf), 0, 0, (len), ((ssize_t (*)())op), NULL, buffer_free, (fd) }
#define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
#define BUFFER_INSIZE 8192
#define BUFFER_OUTSIZE 8192

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Jun 5 13:18:54 UTC 2025 - pgajdos@suse.com
- added patches
build with gc15
+ libowfat-gcc15.patch
-------------------------------------------------------------------
Sun Mar 30 10:42:37 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.34:
* be more C99 compliant (Florian Weimer)
* add C++ convenience overloads to uint*.h
* remove unaligned memory access behind #ifdef i386 from
uint*.h
-------------------------------------------------------------------
Sun Apr 14 10:31:30 UTC 2024 - Martin Hauke <mardnh@gmx.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libowfat
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: libowfat
Version: 0.33
Version: 0.34
Release: 0
Summary: A reimplementation of libdjb
License: GPL-2.0-only
@@ -27,6 +27,7 @@ URL: https://www.fefe.de/libowfat/
Source: https://www.fefe.de/libowfat/%{name}-%{version}.tar.xz
Source98: https://www.fefe.de/libowfat/%{name}-%{version}.tar.xz.sig
Source99: https://dl.fefe.de/felix@fefe.de.asc#/%{name}.keyring
Patch0: libowfat-gcc15.patch
%description
libowfat is a library of general purpose APIs extracted from Dan
@@ -43,7 +44,7 @@ Bernstein's software, reimplemented and covered by the GNU General
Public License Version 2 (no later versions).
%prep
%setup -q
%autosetup -p1
%build
%make_build headers