| Summary: | problematic %post | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Michael Shigorin <mike> |
| Component: | ltsp-server | Assignee: | Michael Shigorin <mike> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
(В ответ на комментарий №0)
> Скрипт сейчас такой:
> [ -f /usr/share/alsa/alsa.conf ] &&
> for n in null pulse xaudio; do
> [ -f /etc/ltsp/asound-$n.conf ] &&
> sed -e 's|"/etc/asound.conf"|"/etc/ltsp/asound-'$n'.conf"|g' \
> -e '/asoundrc/d' /usr/share/alsa/alsa.conf >
> /usr/share/ltsp/alsa-$n.conf ||:
> done
>
> Боюсь, в нём не хватает финального "||:" (или [ ! -f ... ] || ...).
Лучше:
if [ -f /usr/share/alsa/alsa.conf ]; then
....
fi
(В ответ на комментарий №0)
> PS до кучи:
> warning: file /usr/share/ltsp/ltsp-common-functions is packaged into both
> ltsp-server and ltsp-client
> warning: file /usr/share/ltsp/ltsp-vendor-functions is packaged into both
> ltsp-server and ltsp-client
Не надо "до кучи" - эти файлы нужны в обоих субпакетах (в спеке это прокоментированно).
Ну, или возвращаемся к теме о том, как изготовить полноценный common-субпакет, ничего не сломав.
А, ну как тебе видней. Мне бы чтоб ltsp-server{,-basic} и ltsp-client{,-full} точно устанавливались в сизифе/M50 :-) Вчера-сегодня вот ищу грабли с этим...
По факту исправлено (глядя в 5.1.21-alt0.4). |
Поймано при сборке профиля на 5.0/branch: error: execution of %post scriptlet from ltsp-server-5.1.21-alt0.1 failed, exit status 1 Скрипт сейчас такой: [ -f /usr/share/alsa/alsa.conf ] && for n in null pulse xaudio; do [ -f /etc/ltsp/asound-$n.conf ] && sed -e 's|"/etc/asound.conf"|"/etc/ltsp/asound-'$n'.conf"|g' \ -e '/asoundrc/d' /usr/share/alsa/alsa.conf > /usr/share/ltsp/alsa-$n.conf ||: done Боюсь, в нём не хватает финального "||:" (или [ ! -f ... ] || ...). PS до кучи: warning: file /usr/share/ltsp/ltsp-common-functions is packaged into both ltsp-server and ltsp-client warning: file /usr/share/ltsp/ltsp-vendor-functions is packaged into both ltsp-server and ltsp-client