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

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

View File

@ -436,14 +436,13 @@ check自测用例通过。
**debian/rules维护者版本.** **debian/rules维护者版本.**
| \$ vim debhello-0.0/debian/rules $ vim debhello-0.0/debian/rules
... hack, hack, hack, ... ... hack, hack, hack, ...
$ cat debhello-0.0/debian/rules $ cat debhello-0.0/debian/rules
#!/usr/bin/make -f #!/usr/bin/make -f
export DH_VERBOSE = 1 export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all 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 | 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** 如上在 **debian/rules** 文件中导出=**DH_VERBOSE** 环境变量可以强制 **debhelper**
工具输出细粒度的构建报告。 工具输出细粒度的构建报告。
@ -466,7 +465,7 @@ DESTDIR=debian/debhello prefix=/usr**”。
**debian/control维护者版本.** **debian/control维护者版本.**
| \$ vim debhello-0.0/debian/control ... hack, hack, hack, ... $ vim debhello-0.0/debian/control ... hack, hack, hack, ...
$ cat debhello-0.0/debian/control $ cat debhello-0.0/debian/control
Source: debhello Source: debhello
Section: devel Section: devel
@ -480,8 +479,7 @@ Package: debhello
Architecture: any Architecture: any
Multi-Arch: foreign Multi-Arch: foreign
Depends: \${misc:Depends}, \${shlibs:Depends} Depends: \${misc:Depends}, \${shlibs:Depends}
Description: Simple packaging example for debmake This Debian binary package is an example package. (This is an example only) | Description: Simple packaging example for debmake This Debian binary package is an example package. (This is an example only)
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
在 **debian/** 在 **debian/**
目录下还有一些其它的模板文件。根据具体场景,它们也需要进行更新。之后可以开始对软件包进行构建。 目录下还有一些其它的模板文件。根据具体场景,它们也需要进行更新。之后可以开始对软件包进行构建。