Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| dce6f41b29 | |||
| ce8ee97cb6 |
29
opencc-gcc15.patch
Normal file
29
opencc-gcc15.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
github.com/BYVoid/OpenCC/pull/934
|
||||
github.com/BYVoid/OpenCC/commit/72cae18
|
||||
|
||||
|
||||
From 72cae18cfe4272f2b11c9ec1c44d6af7907abcab Mon Sep 17 00:00:00 2001
|
||||
From: Peng Wu <alexepico@gmail.com>
|
||||
Date: Thu, 13 Feb 2025 00:15:10 +0800
|
||||
Subject: [PATCH] Fix build for gcc 15 (#934)
|
||||
|
||||
Co-authored-by: Peng Wu <pwu@redhat.com>
|
||||
---
|
||||
src/SerializedValues.hpp | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/SerializedValues.hpp b/src/SerializedValues.hpp
|
||||
index c17210ba7..f7e5bb264 100644
|
||||
--- a/src/SerializedValues.hpp
|
||||
+++ b/src/SerializedValues.hpp
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
+#include <cstdint>
|
||||
+
|
||||
#include "Common.hpp"
|
||||
#include "SerializableDict.hpp"
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 5 14:42:06 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
|
||||
|
||||
- Add opencc-gcc15.patch to fix gcc15 compile time error
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 22 11:58:00 UTC 2024 - Cliff Zhao <qzhao@suse.com>
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ License: Apache-2.0
|
||||
Group: System/I18n/Chinese
|
||||
URL: https://github.com/BYVoid/OpenCC
|
||||
Source: https://github.com/BYVoid/OpenCC/archive/ver.%{version}/OpenCC-ver.%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch1: opencc-gcc15.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
@@ -74,6 +76,8 @@ This package provides development headers for OpenCC.
|
||||
|
||||
%prep
|
||||
%setup -q -n OpenCC-ver.%{version}
|
||||
%autopatch -p1
|
||||
|
||||
# call python3 with path
|
||||
sed -i \
|
||||
-e 's:BIN python:BIN /usr/bin/python3:g' \
|
||||
|
||||
Reference in New Issue
Block a user