pacote tzc
Herbert Fortes (hpfn) <[email protected]> Tue, 7 Jun 2016 17:11:28 -0300
| Newsgroups | gmane.linux.debian.devel.portuguese |
|---|---|
| Message-ID | <[email protected]> |
Olá,
Estou preparando um NMU para o pacote tzc. Último
upload do mantenedor em 2005. Este é o quarto.
Tem dois lintian sobre hardening. Se colocar
hardening=+all no debian/rules o pacote não
constrói. Então fiz:
- bindnow. Tirei colocando no debian/rules:
export DEB_BUILD_MAINT_OPTIONS := hardening=+bindnow
- pie: Alterei o Makefile adicionando as opções:
-fPIE -pie -O2 -fstack-protector-strong -Wformat
Assim o pacote constrói sem os dois lintians. O complemento
'-O2 -fstack-protector-strong -Wformat' é porque o 'blhc' reclama.
Ele ainda reclama de '-Werror=format-security', mas se isso
for adicionado o pacote não constroi:
gcc -g -O -Wall -DINTERREALM -fPIE -pie -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o tzc.o tzc.c
tzc.c: In function ‘check’:
tzc.c:390:7: error: format not a string literal and no format arguments [-Werror=format-security]
com_err(__FILE__, e, s);
^
tzc.c: In function ‘warn’:
tzc.c:398:7: error: format not a string literal and no format arguments [-Werror=format-security]
com_err(__FILE__, e, s);
^
tzc.c: In function ‘send_zgram_to_one’:
tzc.c:713:33: error: format not a string literal and no format arguments [-Werror=format-security]
com_err(__FILE__, retval, bfr);
^
cc1: some warnings being treated as errors
<builtin>: recipe for target 'tzc.o' failed
Acho que 'com_err' é do pacote comerr-dev.
Tem solução ? Li isso[0], mas o arquivo é de outro
pacote.
[0] - https://fedoraproject.org/wiki/Format-Security-FAQ
O debian/rules:
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS := hardening=+bindnow #,+pie
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
%:
dh $@
Para onde vai a 'INSTALL_PROGRAM' ? O pacote não
tem repositório, mas ela não aparece em nenhum outro
lugar.
abraços,
--
Herbert Parentes Fortes Neto (hpfn)
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXVypxAAoJEFUlbyisYGEaOh0P/jxdnxJtvdWZ+EFxoBlZKOW8 6vrbZUhJDYoLzrXHodfRrD0wBqmjSIJSeDyTDQni6zotWyPuNd+Bk/c9kVlyqwuV AzoffeNaLBuVtys+q6PA+Y7AAcAj0xX4AVqWM9Z1Chx5cMaTm+XgPWGvo9+4l8sC mnLN8cDpFy1XZBW6GqUpF9lsdxLHl1GLHAsglOLT71gtHxLNmAk6jAj2/gyHxI4M KJ92Oq8r98tk+3UEguwfBLuY51DRYHDhum0HnvgmOrYHtXj0r64iTwY/z6CpkYFX fV9AIn52LXTxUIZEKCftz86vsaCuuiC5YKJOSumC45deGLuHt051dwzxK6vIkHyt g3Jeoq951LbDXmHtXS+qKv2ea7oRC5pk+8qZR8P1xKplN+qFWM46S05KDr8tcnZB pJb/FRyvkcSKZtFdHXmycxS9TBe2bap5TGY+uowkYOHLC89e0x2c8vIvL5S+V8dE URa3HzWetGmjNUq/1pGPFEq8wG/4KWKb62M2uEuQQL/W7Tp3uCH+2FoFmIgOZvBb nTAwE9Etrvg5bt2SNn26c9Kzsqua97zYXKhSBLItsjc3k9NLHNnJ0JBTDf5z+F0R ZjmEbdroBjEKvSGkes07PKCj4cvObDT6FDxdDoUNoulr5mXKg4uAGsA6H9pkRntt G6AcbabDmO5v+nqqbCwT =48VK -----END PGP SIGNATURE-----