Tips about Debian packaging: mudanças entre as edições

De Eriberto Wiki
Ir para navegação Ir para pesquisar
Sem resumo de edição
 
(6 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 8: Linha 8:


==== Use blhc to verify the full hardening status ====
==== Use blhc to verify the full hardening status ====
See this [http://eriberto.pro.br/blog/?p=2222 post].


==== Use spell to check spelling errors ====
==== Use spell to check spelling errors ====
==== Try to use dh-autoreconf ====


References:
References:


* https://wiki.debian.org/HardeningWalkthrough
* https://www.debian.org/doc/manuals/maint-guide/dreq.en.html#customrules
* https://wiki.debian.org/Autoreconf


== Common issues and solutions ==
== Common issues and solutions ==
==== debian/rules: how to pass extra parameters to ./configure command ====
==== debian/rules: adding a SONAME to a library ====
==== debian/rules: adding a SONAME to a library ====
==== debian/watch: how to make? ====
==== debian/watch: how to make? ====


Please, see this [http://eriberto.pro.br/blog/?p=1459 post].
Please, see this [http://eriberto.pro.br/blog/?p=1459 post].
==== debian/watch: what to do if upstream homepage is dead? ====
search GitHub, use fake site etc


==== dpkg-shlibdeps: warning: package could avoid a useless dependency if FOO was not linked against BAR.so.1.2 (it uses none of the library's symbols) ====
==== dpkg-shlibdeps: warning: package could avoid a useless dependency if FOO was not linked against BAR.so.1.2 (it uses none of the library's symbols) ====
==== lintian: duplicate-files ====


==== lintian: hardening-no-relro / hardening-no-fortify-functions ====
==== lintian: hardening-no-relro / hardening-no-fortify-functions ====


Use blhc...
Use blhc... See this [http://eriberto.pro.br/blog/?p=2222 post].
Change = to +=
 
CFLAGS and LDFLAGS appends
== General tips ==
 
==== How to search for packages that depend another to build ====


References:
==== How to find a package that contains a specific file ====


* https://lintian.debian.org/tags/hardening-no-relro.html
* https://lintian.debian.org/tags/hardening-no-fortify-functions.html
* https://wiki.debian.org/Hardening
* https://wiki.debian.org/HardeningWalkthrough


==== lintian: how to see Pedantic, Experimental and other messages? ====
==== lintian: how to see Pedantic, Experimental and other messages? ====


Please, see this [http://eriberto.pro.br/blog/?p=1289 post].
Please, see this [http://eriberto.pro.br/blog/?p=1289 post].

Edição atual tal como às 10h44min de 12 de setembro de 2015

The main goal of this article is gather quick tips about software packaging in Debian. I will use these tips to help to sponsor third party packages.

Mandatory checks after packaging

Remove all trash and extra blank lines

Use cowbuilder to verify if the package builds in a clean jail

Use blhc to verify the full hardening status

See this post.

Use spell to check spelling errors

Try to use dh-autoreconf

References:

Common issues and solutions

debian/rules: how to pass extra parameters to ./configure command

debian/rules: adding a SONAME to a library

debian/watch: how to make?

Please, see this post.

debian/watch: what to do if upstream homepage is dead?

search GitHub, use fake site etc

dpkg-shlibdeps: warning: package could avoid a useless dependency if FOO was not linked against BAR.so.1.2 (it uses none of the library's symbols)

lintian: duplicate-files

lintian: hardening-no-relro / hardening-no-fortify-functions

Use blhc... See this post.

General tips

How to search for packages that depend another to build

How to find a package that contains a specific file

lintian: how to see Pedantic, Experimental and other messages?

Please, see this post.