update 开始贡献/ukylin打包指南.md.

This commit is contained in:
luoyaoming 2022-01-12 03:45:18 +00:00 committed by Gitee
parent c5c5eaf313
commit 83a2c34e9b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 0 deletions

View File

@ -436,6 +436,7 @@ check自测用例通过。
**debian/rules维护者版本.**
```
$ vim debhello-0.0/debian/rules
... hack, hack, hack, ...
$ cat debhello-0.0/debian/rules
@ -443,6 +444,8 @@ $ cat debhello-0.0/debian/rules
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed %: dh \$@ override_dh_auto_install: dh_auto_install -- prefix=/usr
```
如上在 **debian/rules** 文件中导出=**DH_VERBOSE** 环境变量可以强制 **debhelper**
工具输出细粒度的构建报告。
@ -465,6 +468,7 @@ DESTDIR=debian/debhello prefix=/usr**”。
**debian/control维护者版本.**
$ vim debhello-0.0/debian/control ... hack, hack, hack, ...
$ cat debhello-0.0/debian/control
Source: debhello