]> git.pld-linux.org Git - packages/libkcapi.git/commitdiff
- updated to 1.3.1 auto/th/libkcapi-1.3.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 1 Nov 2021 08:48:25 +0000 (09:48 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 1 Nov 2021 08:48:25 +0000 (09:48 +0100)
- removed obsolete 32bit patch

libkcapi-32bit.patch [deleted file]
libkcapi.spec

diff --git a/libkcapi-32bit.patch b/libkcapi-32bit.patch
deleted file mode 100644 (file)
index ef2b0b2..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-From 299e5e8c38de9be99b86885c1af60dd5e1cc9888 Mon Sep 17 00:00:00 2001
-From: Ondrej Mosnacek <omosnace@redhat.com>
-Date: Mon, 17 May 2021 22:19:32 +0200
-Subject: [PATCH] docproc: fix -Wconversion warnings on 32-bit
-
-On i686, GCC 11.1.1 complains:
-```
-lib/doc/bin/docproc.c: In function 'find_all_symbols':
-lib/doc/bin/docproc.c:433:17: error: conversion to 'ssize_t' {aka 'int'} from 'unsigned int' may change the sign of the result [-Werror=sign-conversion]
-  433 |         start = all_list_len;
-      |                 ^~~~~~~~~~~~
-lib/doc/bin/docproc.c:441:48: error: comparison of integer expressions of different signedness: 'ssize_t' {aka 'int'} and 'unsigned int' [-Werror=sign-compare]
-  441 |         for (i = 0; i < (int)data_len && start != all_list_len; i++) {
-      |                                                ^~
-cc1: all warnings being treated as errors
-```
-
-Fix this by declaring all of all_list_len, i, count, and start as
-size_t and remove a few casts that are no longer necessary.
-
-Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
-Signed-off-by: Stephan Mueller <smueller@chronox.de>
----
- lib/doc/bin/docproc.c | 14 +++++++-------
- 1 file changed, 7 insertions(+), 7 deletions(-)
-
-diff --git a/lib/doc/bin/docproc.c b/lib/doc/bin/docproc.c
-index 556d5d4..74b3cdb 100644
---- a/lib/doc/bin/docproc.c
-+++ b/lib/doc/bin/docproc.c
-@@ -77,11 +77,11 @@ FILELINE * docsection;
- static char *srctree, *kernsrctree;
- static char **all_list = NULL;
--static unsigned int all_list_len = 0;
-+static size_t all_list_len = 0;
- static void consume_symbol(const char *sym)
- {
--      unsigned int i;
-+      size_t i;
-       for (i = 0; i < all_list_len; i++) {
-               if (!all_list[i])
-@@ -361,11 +361,11 @@ static void find_all_symbols(char *filename)
- {
-       char *vec[4]; /* kerneldoc -list file NULL */
-       pid_t pid;
--      ssize_t ret, i, count, start;
-+      ssize_t ret;
-       char real_filename[PATH_MAX + 1];
-       int pipefd[2];
-       char *data, *str;
--      size_t data_len = 0;
-+      size_t i, count, start, data_len = 0;
-       vec[0] = KERNELDOC;
-       vec[1] = LIST;
-@@ -424,21 +424,21 @@ static void find_all_symbols(char *filename)
-       count = 0;
-       /* poor man's strtok, but with counting */
--      for (i = 0; i < (int)data_len; i++) {
-+      for (i = 0; i < data_len; i++) {
-               if (data[i] == '\n') {
-                       count++;
-                       data[i] = '\0';
-               }
-       }
-       start = all_list_len;
--      all_list_len += (unsigned int)count;
-+      all_list_len += count;
-       all_list = realloc(all_list, sizeof(char *) * all_list_len);
-       if (!all_list) {
-               perror("realloc");
-               exit(1);
-       }
-       str = data;
--      for (i = 0; i < (int)data_len && start != all_list_len; i++) {
-+      for (i = 0; i < data_len && start != all_list_len; i++) {
-               if (data[i] == '\0') {
-                       all_list[start] = str;
-                       str = data + i + 1;
index 6d1aac082b4bdf88a6dd38c5a6d876df01927992..ced0faa7165e9d883c69867add05058f9e93fc88 100644 (file)
@@ -8,14 +8,13 @@
 Summary:       Linux Kernel Crypto API User Space Interface Library
 Summary(pl.UTF-8):     Biblioteka interfejsu przestrzeni użytownika do API kryptograficznego jądra Linuksa
 Name:          libkcapi
-Version:       1.3.0
+Version:       1.3.1
 Release:       1
 License:       BSD or GPL v2
 Group:         Libraries
 #Source0Download: https://www.chronox.de/libkcapi.html
 Source0:       https://www.chronox.de/libkcapi/%{name}-%{version}.tar.xz
-# Source0-md5: f441943c07b7876ee057fb6de9efd674
-Patch0:                %{name}-32bit.patch
+# Source0-md5: d65056b8eff5e570cc8d0750d29ea48c
 URL:           https://www.chronox.de/libkcapi.html
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -81,7 +80,6 @@ Statyczna biblioteka libkcapi.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 %{__libtoolize}
This page took 0.167491 seconds and 4 git commands to generate.