Revert "feat(packaging): add delivery packages as recommends for Professional edition"#431
Conversation
…essional…" This reverts commit 944d65e.
|
CLA Assistant Lite bot: |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: qiuzhiqian, zhaohuiw42 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto review你好!我是CodeGeeX。我已仔细审查了你提供的 Git Diff 内容。本次修改主要涉及 Debian 打包配置( 以下是我从语法逻辑、代码质量、代码性能和代码安全四个维度提出的详细审查意见与改进建议: 1. 语法与逻辑
2. 代码质量
3. 代码性能
4. 代码安全
综合改进建议如果确认移除 # 移除未使用的 SYSTYPE 变量,提升代码整洁度
# SYSTYPE=$(shell grep Type= /etc/deepin-version|cut -d= -f 2)
depend_ostree = true
ifdef depend_ostree
DistDepends += ostree,
endif
ifneq ($(DEB_BUILD_ARCH), mips64el
export GOBUILD_OPTIONS= -ldflags '-linkmode=external -extldflags "-Wl,-z,noexecstack,-z,relro,-z,now,-pie"'
export GOBUILD_CGO_FLAGS= CGO_CFLAGS="-fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -ftrapv"
override_dh_auto_test:
endif
# 保留 ifdef DistDepends 逻辑,防止空变量注入导致 dpkg 解析报错
ifdef DistDepends
override_dh_gencontrol:
dh_gencontrol -- -Vdist:Depends="$(DistDepends)"
endif
override_dh_installsystemd:
dh_installsystemd -r --no-restart-after-upgrade --no-start总结:本次修改整体质量很高,逻辑清晰,消除了对构建主机环境的危险依赖,并修复了潜在的空变量解析问题。唯一需要确认的是业务逻辑的变更(移除推荐包)是否符合预期,以及是否可以顺手清理掉无用的 |
Reverts #429