From 354dcf53e31eb546fec1aefe198ebea005fde015 Mon Sep 17 00:00:00 2001 From: dengzhongyuan Date: Fri, 20 Jun 2025 16:37:04 +0800 Subject: [PATCH 1/2] chore: update CMake configuration for non-sw_64 architectures - Added additional compiler flags for better compatibility and warning management when the system processor is not sw_64. --- src/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cad6e823..cfe74ebd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -44,6 +44,13 @@ if(DOTEST) endif() endif() +if (NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "sw_64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wl,--as-need -fPIE") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=incompatible-pointer-types -fPIC") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wl,--as-need -fPIE -Wno-error=incompatible-pointer-types") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie") +endif() + find_package(Qt${QT_VERSION_MAJOR} REQUIRED ${QtModule}) add_definitions(${QT_DEFINITIONS}) From c4ab44264377f2f24a195ec1aefa1218b3aa15df Mon Sep 17 00:00:00 2001 From: dengzhongyuan Date: Fri, 20 Jun 2025 16:37:46 +0800 Subject: [PATCH 2/2] chore(version): bump version to 6.5.4 --- debian/changelog | 6 ++++++ linglong.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 408cda17..5fb06065 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +deepin-ocr (6.5.4) unstable; urgency=medium + + * chore: update CMake configuration for non-sw_64 architectures + + -- dengzhongyuan Fri, 20 Jun 2025 16:37:22 +0800 + deepin-ocr (6.5.3) unstable; urgency=medium * chore: update build dependencies in debian/control diff --git a/linglong.yaml b/linglong.yaml index 5ab673d8..cfce276c 100644 --- a/linglong.yaml +++ b/linglong.yaml @@ -1,7 +1,7 @@ package: id: org.deepin.ocr name: "deepin-ocr" - version: 6.5.2.1 + version: 6.5.3.1 kind: app description: | Ocr is a text recognition software.