Commit Graph

31 Commits

Author SHA1 Message Date
yeshanshan 5042e3af39 fix: add security hardening flags to build configuration
Added security hardening compiler and linker flags to the Debian build
rules
1. Enabled all hardening options via DEB_BUILD_MAINT_OPTIONS
2. Added -Wall warning flags for C/C++ compilation
3. Added secure linker flags including RELRO, immediate binding, and
noexecstack
4. These changes improve security by enabling modern compiler
protections and reducing potential attack surfaces

fix: 在构建配置中添加安全加固标志

在 Debian 构建规则中添加了安全加固的编译器和链接器标志
1. 通过 DEB_BUILD_MAINT_OPTIONS 启用所有加固选项
2. 为 C/C++ 编译添加 -Wall 警告标志
3. 添加安全的链接器标志包括 RELRO、立即绑定和 noexecstack
4. 这些更改通过启用现代编译器保护和减少潜在攻击面来提高安全性
2025-07-03 12:59:45 +00:00
Yixue Wang 81e3d9c093 feat: Support VERSION file
Use VERSION file to manage DTK version. VERSION file defines package
version. It also decides the initial value of cached variable
DTK_VERSION which controls the project version in cmake build system.
VERSION file is not synchronized to DTK6, as DTK6 has its own VERSION
file. One can still pass version to DTK_VERSION when running cmake
configure. This is helpful for developers.

Signed-off-by: Yixue Wang <wangyixue@deepin.org>
2025-06-06 17:11:20 +08:00
ck c234a5cb38 fix(build): debian/rule use tab instead of space
space ==> tab
2024-10-23 10:58:39 +08:00
ck 918c40f616 fix(dlog): JournalAppender not work
BUILD_WITH_SYSTEMD not defined
2024-10-18 14:14:35 +08:00
ck 1a6e919cc5 refactor: log files move to dtklog
Issue: linuxdeepin/dtk#182

dtklog: https://github.com/linuxdeepin/dtklog
2024-07-05 14:13:31 +08:00
YinJie 56117af57e fix: 修复计算 build 版本号错误的问题
场景如下(完整版本号 -> 构建版本号):
5.6.8 -> 0
5.6.8.7 -> 7
5.6.8+u001 -> 1
5.6.8.7+u001 -> 7
5.6.8.0+u001 -> 0

Log:
Influence: 构建版本号(BUILD_VERSION )
2024-05-17 09:56:39 +08:00
ck f5fd6cf9a8 feat: support dtk6core build
cmake -DDVERSION=6.0.0 to build libdtk6core
install qdbusxml2cpp-fix to DCore/bin to avoid conficts
do not build doc when build dtk6
remove Core5Compat depends
DVERSION ==> DTK_VERSION
tools install to CMAKE_INSTALL_LIBEXECDIR
2023-06-16 08:32:50 +08:00
xzl 098e3975f0 fix: Removing strong dependencies on systemd
去除对systemd的强依赖

Log:
2023-02-06 15:24:41 +08:00
Ye ShanShan 33de26ff1c fix: Losing dconfig info when compiling and packaging
Add adjust for linux when compile.
  Add `D_DSG_APP_DATA_FALLBACK` macro when packaging.
  see the commit: 7b13e5c4b8

Log: none
Influence: none
Change-Id: Ie047dbd2d8158ed5242dfb5bcc7fa4e02ee1d925
2023-02-03 08:52:09 +00:00
wangyixue 012cf2b3d0 chore: fix lintian warnings
Fix some lintian warnings.

Log: fix lintian warnings
2023-01-09 13:12:00 +08:00
rewine 8ce7d3e3c7 feat: Optimize compilation parameters
Log: Optimize compilation parameters
2022-10-09 07:21:28 +00:00
chenhongtao 552c42794e chore(package): unit test, coverage
use better optionname and use test , make test link to -lgcov , then
coverage can be caculated. And use ctest , the cmake command to run
tests

fix test-recoverage bash scipts

Log: option name changed , use ctest command, fix test-recoverage script
2022-08-30 08:14:36 +00:00
chenhongtao d0c66b03a6 feat(doc): add package for doc
build the package for doc

Log: build package of doc
2022-08-29 09:33:59 +08:00
ShootingStarDragons c2ab630d91 chore(win32): Add win32 files and delete pri files
Delete all pri files and add win32 files back to CMakeLists.txt

Log: add win32 file back to CMakeLists.txt
2022-08-17 06:06:02 +00:00
ck 165921354d fix(build): invalid digit "8" in octal constant
when BUILD_VERSION start with 0 was recognized as octal

Log:
Influence: debian build
Change-Id: I0d9cb1518b4250b5f50408651d8fab66f469bebb
2022-08-17 13:03:59 +08:00
ShootingStarDragons db5ae947fe feat(tocmake): tocmake
Change the build system to cmake

Log: use cmake
2022-08-16 07:50:54 +00:00
zccrs 7b13e5c4b8 fix: fallback to the user directory if no a valid global config directory
In the not supported for DSG_APP_DATA environment, we can't get a valid
directory for the global config, then falied when saving data. In order
not to lose data, we can only fallback to storing it to the user
directory.

Also, allows to specify a fallback directory for DSG_APP_DATA on
compile, in order to never fallback to the user directory.

Log:
2022-08-04 14:30:03 +08:00
Gary Wang 86ae88ebe4 chore: build doxygen documentation
追加基于 doxygen 的文档构建

Log:
2022-07-04 08:57:29 +00:00
ck badc9adcaf fix: gerrit build error
包含.git目录时构建出错, 删掉这个判断

Log:
Change-Id: I08a2057ac1ebb7e17fecf27b2ca47abeca97b68c
(cherry picked from commit 303c1f1cd5865a7b937baed85db0a6a0ec3d835a)
2021-04-25 16:46:19 +08:00
ck 5ed0728138 feat: 重载dh_makeshlibs
安装时依赖dtk的版本号要不小于构建时的版本,需要系统部改脚本支持

Log: 修改打包规则
Change-Id: I7785454cac3984b6524c33eceee0ce4311e90662
2020-11-23 11:25:05 +08:00
liuyang b975e0ba38 feat: 打包可以触发单元测试
qmake添加testcase,并在构建时添加指令make-check,打包时可以自动触发进行单元测试

Log: 打包时触发单元测试
Change-Id: Ic02f8893974abe2e2689e412ba0b29b86b56db0c
2020-11-19 10:48:24 +08:00
zccrs 33cd3b98e3 refactor: disable dh_makeshlibs 2020-05-06 12:58:05 +08:00
zccrs 141a7cca1f Revert "remove version config"
This reverts commit 96970458d0.
2019-07-25 10:13:25 +08:00
deepinzhangshuang 96970458d0 remove version config 2019-07-25 09:59:33 +08:00
zccrs 8a68af5985 chore: save dpkg-parsechangelog calls in debian/rules
https://github.com/linuxdeepin/internal-discussion/issues/866
Change-Id: Ia71cba608dbaa8c13b6e362080ddeffe74d7fcb4
2019-01-21 13:12:20 +08:00
leaeasy 6d3b4ead70 feat: make version parser easier
Change-Id: I30870bd384d19c2911a380a42bc46300ab70d3c5
2018-01-16 12:06:19 +08:00
Iceyer 524a3fa602 fix: awk script failed
Change-Id: Ib5e731eb6a87b75c1e88c75065502ea175f734e5
2018-01-16 09:52:59 +08:00
Iceyer ec6e2a8376 fix: set default build version for debian changelog
Change-Id: Ia1099685e8119ce050f3ee3a7bb9c39cec387496
2018-01-16 09:24:08 +08:00
Iceyer 9083dbd3e2 feat: set verion when build
Change-Id: Ic598a1b0b3eb5f10df07ea6e07a902a13ad6247c
2018-01-15 17:14:55 +08:00
Iceyer ba9f460f71 Fix cannot run test by make check
Change-Id: Ife192a0e5b9022ba68bee5185c80fe8bfd2721b9
2017-08-18 14:43:37 +08:00
Iceyer 9fefc50e68 Add debian
Change-Id: I37ecb597c3d659fb0c25958b8a11f68ddd844eab
2017-07-26 17:01:19 +08:00