[devel] автогенерация debug-пакетов в rpm

Andrey Rahmatullin wrar на altlinux.ru
Сб Май 2 21:24:20 MSD 2009


On Wed, Apr 22, 2009 at 12:28:30AM +0400, Alexey Tourbin wrote:
> Assuming that -g does not alter optimization, there are two ways to plug
> -g:
> 
> 1) in %optflags; 
Так сделано в Debian, SUSE, Fedora и Mandriva.

> the problem is that %optflags are not always used,
"If not, suboptimal debuginfo packages are not the only problem; the
package is probably also compiled without the security enhancing options
of recent compiler versions."
Это, во-1-х, проблема конкретных пакетов, и если майнтейнер хочет -dbg, он
эту проблему исправит. Во-2-х, это в любом случае если не бага, то
неприятность, стоящая её исправления.

> and for this reason there is a second option:
> 
> 2) in gcc spec, implicitly, like __chk_printf/--as-needed etc.
Я против. Это не то, ради чего надо патчить gcc, тем более что на мой
взгляд это достигается более простым способом.

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):

"я тебя открыл, я тебя и closed"
		-- mike in #4235
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.altlinux.org/pipermail/devel/attachments/20090502/3cb200c8/attachment.bin>


Подробная информация о списке рассылки Devel