Accepting request 1251815 from Base:System

OBS-URL: https://build.opensuse.org/request/show/1251815
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dicts?expand=0&rev=33
This commit is contained in:
Ana Guerrero 2025-03-10 17:07:21 +00:00 committed by Git OBS Bridge
commit 04810bd3ed
3 changed files with 29 additions and 1 deletions

19
dicts-gcc15.patch Normal file
View File

@ -0,0 +1,19 @@
--- fix8bit.c.orig 2025-03-07 12:17:09.466931076 +0000
+++ fix8bit.c 2025-03-07 12:17:58.066416164 +0000
@@ -77,14 +77,12 @@ static char Rcs_Id[] =
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
-int main (); /* Convert to/from 8-bit sequences */
static void usage (); /* Issue a usage message */
static void to7bit (); /* Convert from 8-bit sequences */
static void to8bit (); /* Convert to 8-bit sequences */
-extern void exit (); /* Terminate program */
-
int main (argc, argv) /* Convert to/from 8-bit sequences */
int argc; /* Argument count */
char * argv[]; /* Argument vector */

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 7 12:35:20 UTC 2025 - pgajdos@suse.com
- build with gcc15
- added patches
+ dicts-gcc15.patch
-------------------------------------------------------------------
Mon Feb 26 08:08:01 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package dicts
#
# Copyright (c) 2023 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
@ -53,6 +53,7 @@ Source19: finnish.tar.bz2
Source20: estonian.tar.bz2
Source21: dicts-rpmlintrc
Patch0: prepare-dicts.dif
Patch1: dicts-gcc15.patch
%global debug_package %{nil}
%description
@ -410,6 +411,7 @@ the package dicts.
make -f Makefile.Linux extract
rm Makefile.Linux
%patch -P 0 -p0 -b .pdicts
%patch -P 1 -p0
# unify the permissions of all files, to make fdupes working again (bnc#784670)
find . -type f -exec chmod 0644 {} +