From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: [sisyphus] RFC: posttrans warnings (was: alsa и udev)
Date: Sat, 4 Sep 2010 19:17:06 +0300
Message-ID: <20100904161706.GZ14287@osdn.org.ua> (raw)
In-Reply-To: <4C8262D9.3060502@mail.ru>
On Sat, Sep 04, 2010 at 07:16:41PM +0400, Кокарев Константин wrote:
> >Новый пакет udev совместим только с ядрами >= 2.6.31
> Спасибо. Сам бы не догадался.
А кто какие грабли видит в добавлении ещё одного типа
posttrans-триггера на e.g. /usr/share/changes/*.sh, которые тогда
будет смысл делать тестами, которые раскладывать по некритичным в
общем пакетам, которые могут при подобных изменениях терять часть
функциональности?
--- /usr/share/changes/udev.sh
#!/bin/sh
# test running kernel version for being higher
# than minimally reasonable one for current udev
MIN="2.6.31"
kernel_version_code()
{
local release="$1" && shift
local kver="$(printf %s "$release" | cut -d- -f1)"
local version="$(printf %s "$kver" | cut -d. -f1)"
local patchlevel="$(printf %s "$kver" | cut -d. -f2)"
local sublevel="$(printf %s "$kver" | cut -d. -f3)"
# from kernel Makefile
expr "$version" \* 65536 + "$patchlevel" \* 256 + "$sublevel"
}
[ $(kernel_version_code "`uname -r`") -ge ($kernel_version_code "$MIN") ] || {
echo "WARNING: `uname -r` is too old kernel for this udev" >&2
}
---
Разве что спамить может -- если окажется багом, а не фичем,
можно сделать библиотечку для работы с таймстампами и версиями
"уже отчитавшихся" где-нить в /var/lib/changes/.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
next prev parent reply other threads:[~2010-09-04 16:17 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-04 12:10 [sisyphus] alsa и udev Кокарев Константин
2010-09-04 12:14 ` Andrey Rahmatullin
2010-09-04 12:28 ` Кокарев Константин
2010-09-04 13:13 ` Sergey Vlasov
2010-09-04 14:03 ` Michael Shigorin
2010-09-04 14:06 ` Andrey Rahmatullin
2010-09-04 14:41 ` Michael Shigorin
2010-09-04 14:46 ` Andrey Rahmatullin
2010-09-04 15:13 ` Sergey Vlasov
2010-09-04 15:52 ` Michael Shigorin
2010-09-04 15:16 ` Кокарев Константин
2010-09-04 16:17 ` Michael Shigorin [this message]
2010-09-04 16:30 ` [sisyphus] RFC: posttrans warnings (was: alsa и udev) Andrey Rahmatullin
2010-09-04 16:44 ` Michael Shigorin
2010-09-04 16:49 ` Andrey Rahmatullin
2010-09-04 17:02 ` Michael Shigorin
2010-09-04 17:10 ` Andrey Rahmatullin
2010-09-04 17:07 ` [sisyphus] RFC: posttrans warnings Кокарев Константин
2010-09-04 13:13 ` [sisyphus] alsa и udev Andrey Rahmatullin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100904161706.GZ14287@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=shigorin@gmail.com \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git