From 8f3c4affad5ae04490fa8f84178fcaa7c9a1bc75 Mon Sep 17 00:00:00 2001 From: handsome-feng Date: Tue, 19 Sep 2023 18:22:36 +0800 Subject: [PATCH] override dh_clean; fix the wrong package name in symbols and control; breaks and replaces with libkysdk-base --- debian/control | 6 +++++- debian/libkysdk-base2.symbols | 12 ++++++------ debian/rules | 4 ++++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/debian/control b/debian/control index 244d4f6..9d4724d 100644 --- a/debian/control +++ b/debian/control @@ -21,6 +21,8 @@ Multi-Arch: same Depends: libkysdk-base-common (>= ${source:Version}), ${misc:Depends}, ${shlibs:Depends} +breaks: libkysdk-base (<= 2.2.0.0-1+b1) +replaces: libkysdk-base (<= 2.2.0.0-1+b1) Description: Kylin SDK basic library libkysdk-base provides common functions in the process of program development, including log @@ -31,7 +33,7 @@ Description: Kylin SDK basic library Package: libkysdk-base-dev Architecture: any Section: libdevel -Depends: libkysdk-base ( = ${binary:Version}), libsystemd-dev, ${misc:Depends} +Depends: libkysdk-base2 (= ${binary:Version}), libsystemd-dev, ${misc:Depends} Description: development files for libkysdk-base libkysdk-base-dev provides common functions in the process of program development, including log @@ -45,6 +47,8 @@ Section: misc Architecture: all Multi-Arch: foreign Depends: ${misc:Depends} +breaks: libkysdk-base (<= 2.2.0.0-1+b1) +replaces: libkysdk-base (<= 2.2.0.0-1+b1) Description: common files for kylin sdk base library libkysdk-base provides common functions in the process of program development, including log diff --git a/debian/libkysdk-base2.symbols b/debian/libkysdk-base2.symbols index 5d9a032..bb70cb5 100644 --- a/debian/libkysdk-base2.symbols +++ b/debian/libkysdk-base2.symbols @@ -1,4 +1,4 @@ -libkydatastruct.so.2 libkysdk-base #MINVER# +libkydatastruct.so.2 libkysdk-base2 #MINVER# * Build-Depends-Package: libkysdk-base-dev kysdk_create_skiplist@Base 2.2.0.0 kysdk_destroy_skiplist@Base 2.2.0.0 @@ -6,7 +6,7 @@ libkydatastruct.so.2 libkysdk-base #MINVER# kysdk_skiplist_insert@Base 2.2.0.0 kysdk_skiplist_search@Base 2.2.0.0 kysdk_skiplist_setmaxlevels@Base 2.2.0.0 -libkysdk-config.so.2 libkysdk-base #MINVER# +libkysdk-config.so.2 libkysdk-base2 #MINVER# * Build-Depends-Package: libkysdk-base-dev S_destroyParse@Base 2.2.0.0 S_getGroupList@Base 2.2.0.0 @@ -33,7 +33,7 @@ libkysdk-config.so.2 libkysdk-base #MINVER# kdk_conf_reload@Base 2.2.0.0 kdk_conf_set_value@Base 2.2.0.0 kdk_config_freeall@Base 2.2.0.0 -libkysdk-gsetting.so.2 libkysdk-base #MINVER# +libkysdk-gsetting.so.2 libkysdk-base2 #MINVER# * Build-Depends-Package: libkysdk-base-dev kdk_gsettings_get@Base 2.2.0.0 kdk_gsettings_set@Base 2.2.0.0 @@ -44,7 +44,7 @@ libkysdk-gsetting.so.2 libkysdk-base #MINVER# kdk_settings_set_int@Base 2.2.0.0 kdk_settings_set_string@Base 2.2.0.0 schema_key_is_exist@Base 2.2.0.0 -libkysdk-log.so.2 libkysdk-base #MINVER# +libkysdk-log.so.2 libkysdk-base2 #MINVER# * Build-Depends-Package: libkysdk-base-dev append_wrap@Base 2.2.0.0 destroyKLogger@Base 2.2.0.0 @@ -73,14 +73,14 @@ libkysdk-log.so.2 libkysdk-base #MINVER# stringLevel@Base 2.2.0.0 writeFile@Base 2.2.0.0 writeLog@Base 2.2.0.0 -libkysdk-timer.so.2 libkysdk-base #MINVER# +libkysdk-timer.so.2 libkysdk-base2 #MINVER# * Build-Depends-Package: libkysdk-base-dev kdk_timer_destroy@Base 2.2.0.0 kdk_timer_init@Base 2.2.0.0 kdk_timer_reset@Base 2.2.0.0 kdk_timer_start@Base 2.2.0.0 kdk_timer_stop@Base 2.2.0.0 -libkyutils.so.2 libkysdk-base #MINVER# +libkyutils.so.2 libkysdk-base2 #MINVER# * Build-Depends-Package: libkysdk-base-dev kdkVolumeBaseCharacterConvert@Base 2.2.0.0 kdkVolumeBaseNumericalConvert@Base 2.2.0.0 diff --git a/debian/rules b/debian/rules index 7b38f52..ff46c58 100755 --- a/debian/rules +++ b/debian/rules @@ -7,3 +7,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all # override_dh_makeshlibs: # dh_makeshlibs --no-scripts +override_dh_clean: + rm -rf lib + rm -rf bin + dh_clean