[devel] bad paths in rpm packages
Dmitry V. Levin
=?iso-8859-1?q?ldv_=CE=C1_altlinux=2Eorg?=
Вт Мар 25 02:13:21 MSK 2008
On Tue, Mar 25, 2008 at 02:07:51AM +0300, Alexey Tourbin wrote:
> $ fgrep /../ /ALT/Sisyphus/noarch/base/contents_index |head
> /usr/share/php/pear/../pear pear-core
> /usr/share/php/pear/../pear/.channels pear-core
> /usr/share/php/pear/../pear/.channels/.alias pear-core
> /usr/share/php/pear/../pear/.channels/.alias/pear.txt pear-core
> /usr/share/php/pear/../pear/.channels/.alias/pecl.txt pear-core
> /usr/share/php/pear/../pear/.channels/__uri.reg pear-core
> /usr/share/php/pear/../pear/.channels/pear.php.net.reg pear-core
> /usr/share/php/pear/../pear/.channels/pecl.php.net.reg pear-core
> /usr/share/php/pear/../pear/.depdb pear-core
> /usr/share/php/pear/../pear/.depdblock pear-core
> $ fgrep /./ /ALT/Sisyphus/noarch/base/contents_index |head
> /usr/share/php/pear/./.channels pear-core
> /usr/share/php/pear/./.channels/.alias pear-core
> /usr/share/php/pear/./.channels/.alias/pear.txt pear-core
> /usr/share/php/pear/./.channels/.alias/pecl.txt pear-core
> /usr/share/php/pear/./.channels/__uri.reg pear-core
> /usr/share/php/pear/./.channels/pear.php.net.reg pear-core
> /usr/share/php/pear/./.channels/pecl.php.net.reg pear-core
> /usr/share/php/pear/./.depdb pear-core
> /usr/share/php/pear/./.depdblock pear-core
> /usr/share/php/pear/./.filemap pear-core
> $
>
> $ rpmpeek /ALT/Sisyphus/files/SRPMS/pear-core-1.6.2-alt6.src.rpm fgrep /. pear-core.spec
> %pear_dir/.*
Надо просто добавить проверку в rpm-build.
Аналогичная проверка на то, что все пути начинаются от корня,
там уже есть. Такие пакеты просто не должны собираться.
--
ldv
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип : application/pgp-signature
Размер : 197 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url : <http://lists.altlinux.org/pipermail/devel/attachments/20080325/1c4dd1dc/attachment-0002.bin>
Подробная информация о списке рассылки Devel