From 4c3a3bb32b91d574c3c837297ff0f4728272e21c Mon Sep 17 00:00:00 2001 From: liweiganga Date: Tue, 14 Mar 2023 17:19:46 +0800 Subject: [PATCH] feat: fix strip (cherry picked from commit 2dc5c302a79a7f5f8cfd69418a89c5e905950f5a) --- 0002-feat-fix-strip.patch | 11 +++++++++++ dde-api.spec | 8 ++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 0002-feat-fix-strip.patch diff --git a/0002-feat-fix-strip.patch b/0002-feat-fix-strip.patch new file mode 100644 index 0000000..66a7e69 --- /dev/null +++ b/0002-feat-fix-strip.patch @@ -0,0 +1,11 @@ +--- a/Makefile 2023-03-14 17:56:42.460087712 +0800 ++++ b/Makefile 2023-03-14 17:55:21.035843959 +0800 +@@ -5,7 +5,7 @@ + libdir = /lib + SYSTEMD_LIB_DIR = ${libdir} + SYSTEMD_SERVICE_DIR = ${SYSTEMD_LIB_DIR}/systemd/system/ +-GOBUILD = env GOPATH="${CURDIR}/${GOBUILD_DIR}:${GOPATH}" go build ++GOBUILD = env GOPATH="${CURDIR}/${GOBUILD_DIR}:${GOPATH}" go build -ldflags "-s" + + LIBRARIES = \ + thumbnails \ diff --git a/dde-api.spec b/dde-api.spec index 08760b2..7a98175 100644 --- a/dde-api.spec +++ b/dde-api.spec @@ -2,7 +2,7 @@ # disable for bootstrapping %bcond_with check #%global _unpackaged_files_terminate_build 0 -%global with_debug 0 +%global with_debug 1 %if 0%{?with_debug} %global debug_package %{nil} @@ -21,7 +21,7 @@ Name: dde-api Version: 5.4.6 -Release: 3 +Release: 4 Summary: Go-lang bingding for dde-daemon License: GPLv3+ URL: https://shuttle.corp.deepin.com/cache/tasks/19177/unstable-amd64/ @@ -31,6 +31,7 @@ Source1: vendor.tar.gz #fix sound service bug Patch0001: 0001-fix-https-gitee.com-src-openeuler-dde-api-issues-I6H.patch +Patch0002: 0002-feat-fix-strip.patch BuildRequires: libcanberra-devel BuildRequires: deepin-gettext-tools @@ -132,6 +133,9 @@ exit 0 %files -n %{name}-devel -f devel.file-list %changelog +* Tue Mar 14 2023 liweiganga - 5.4.6-4 +- feat: fix strip + * Fri Mar 10 2023 heyitao - 5.4.6-3 - Fix sound service failed -- Gitee