* [devel] lm_sensors3: расположение /etc/sensors3.conf
@ 2009-06-01 6:03 Afanasov Dmitry
2009-06-01 6:23 ` Mikhail Yakshin
0 siblings, 1 reply; 3+ messages in thread
From: Afanasov Dmitry @ 2009-06-01 6:03 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 923 bytes --]
есть вопрос по пакето-расположению конфиг-файла.
на данный момент файл конфигурации /etc/sensors3.conf находится в пакете
lm_sensors3. lm_sensors3 сделан так, чтобы библиотека жила вместе с
библиотекой 2.10, основной пакет конфликует с 2.10.
ситуация: конфигурацию в lm_sensors'ах читают библиотеки (спасибо vsu за
новодку). а библиотеки живут вместе.
libsensors3 читает сначала /etc/sensors3.conf. если не получается -
fallback на /etc/sensors.conf.
надо помнить, что форматы конфигов немного именились.
в итоге можем поиметь ситуацию, когда:
1. стоит lm_sensors-2.10
2. стоит libsensors-2.10
3. стоит libsensors3-3.1.0
пакет, использующий libsensors3-3.1.0, будет получать ошибки анализа
конфиг файла.
сам вопрос: стоит переносить /etc/sensors3.conf в библиотеку? или такое
оставить такое поведение - гарантированные ошибки либо с 2.10, либо с
3.1.0?
--
С уважением
Афанасов Дмитрий
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] lm_sensors3: расположение /etc/sensors3.conf
2009-06-01 6:03 [devel] lm_sensors3: расположение /etc/sensors3.conf Afanasov Dmitry
@ 2009-06-01 6:23 ` Mikhail Yakshin
2009-06-01 6:25 ` Afanasov Dmitry
0 siblings, 1 reply; 3+ messages in thread
From: Mikhail Yakshin @ 2009-06-01 6:23 UTC (permalink / raw)
To: ALT Linux Team development discussions
Приветствую,
> на данный момент файл конфигурации /etc/sensors3.conf находится в пакете
> lm_sensors3. lm_sensors3 сделан так, чтобы библиотека жила вместе с
> библиотекой 2.10, основной пакет конфликует с 2.10.
> libsensors3 читает сначала /etc/sensors3.conf. если не получается -
> fallback на /etc/sensors.conf.
По-моему - проблема в этом - не проще ли запатчить libsensors3, чтобы
она никогда не смотрела в /etc/sensors.conf?
--
WBR, Mikhail Yakshin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] lm_sensors3: расположение /etc/sensors3.conf
2009-06-01 6:23 ` Mikhail Yakshin
@ 2009-06-01 6:25 ` Afanasov Dmitry
0 siblings, 0 replies; 3+ messages in thread
From: Afanasov Dmitry @ 2009-06-01 6:25 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
On Mon, Jun 01, 2009 at 10:23:00AM +0400, Mikhail Yakshin wrote:
> Приветствую,
>
> > на данный момент файл конфигурации /etc/sensors3.conf находится в пакете
> > lm_sensors3. lm_sensors3 сделан так, чтобы библиотека жила вместе с
> > библиотекой 2.10, основной пакет конфликует с 2.10.
>
> > libsensors3 читает сначала /etc/sensors3.conf. если не получается -
> > fallback на /etc/sensors.conf.
>
> По-моему - проблема в этом - не проще ли запатчить libsensors3, чтобы
> она никогда не смотрела в /etc/sensors.conf?
легко, это удалить буквально две строки:
$ cat -n lm_sensors3/lib/init.c
191 if (!input && errno == ENOENT)
192 input = fopen(name = ALT_CONFIG_FILE, "r");
--
С уважением
Афанасов Дмитрий
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-01 6:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-01 6:03 [devel] lm_sensors3: расположение /etc/sensors3.conf Afanasov Dmitry
2009-06-01 6:23 ` Mikhail Yakshin
2009-06-01 6:25 ` Afanasov Dmitry
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git