ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] [bug 10382] %_localstatedir: /var или /var/lib ?
Date: Wed, 25 Oct 2017 08:52:35 +0300
Message-ID: <20171025055235.GA11123@altlinux.org> (raw)
In-Reply-To: <58b358eb-a6fd-66ef-0a86-8a3d1649a98b@basealt.ru>

[-- Attachment #1: Type: text/plain, Size: 1733 bytes --]

On Wed, Oct 25, 2017 at 08:38:39AM +0300, Anton Farygin wrote:
> 25.10.2017 08:14, Dmitry V. Levin пишет:
> > Причина очевидна -- обратная совместимость нам важнее, чем совместимость
> > с федорой.
> 
> При чём тут совместимость с федорой ?
> 
> http://www.pathname.com/fhs/pub/fhs-2.3.html#THEVARHIERARCHY
> 
> Нам важнее совместимость с FHS.

Я не вижу, где бы в FHS говорилось про local state dir.
"/var/lib : Variable state information" -- и всё,
никаких упоминаний local/shared state dir там нет.

Если читать FHS буквально, то "/var contains variable data files",
и это гораздо шире, чем local state dir.

> У авторов всякого-разного софта есть уверенность, что с --localstatedir 
> прилетит что-то совместимое с FHS

У авторов всякого-разного софта довольно разные представления о том,
что прилетит с --localstatedir.

> https://www.gnu.org/prep/standards/html_node/Directory-Variables.html

sharedstatedir:
The directory for installing architecture-independent data files which the
programs modify while they run.  This should normally be /usr/local/com,
but write it as $(prefix)/com.

localstatedir: 
The directory for installing data files which the programs modify while
they run, and that pertain to one specific machine.  Users should never
need to modify files in this directory to configure the package's
operation; put such configuration information in separate files that
go in $(datadir) or $(sysconfdir).  $(localstatedir) should normally
be /usr/local/var, but write it as $(prefix)/var.

Очевидно, по этому вопросу FHS и GNU coding standards разошлись:
FHS подразумевает, что localstatedir -- это /var/lib, в то время как
в GNU coding standards это /var.


-- 
ldv

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2017-10-25  5:52 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-09 11:42 Sergey Afonin
2017-10-17 22:35 ` Vitaly Lipatov
2017-10-18 11:56   ` Sergey Afonin
2017-10-25  5:14     ` Dmitry V. Levin
2017-10-25  5:38       ` Anton Farygin
2017-10-25  5:52         ` Dmitry V. Levin [this message]
2017-10-25  6:27           ` Anton Farygin
2017-10-25  6:50             ` Dmitry V. Levin
2017-10-25  7:26               ` Anton Farygin
2017-10-25 12:31               ` Lenar Shakirov
2017-10-25 12:59                 ` Dmitry V. Levin
2017-10-25 13:08                   ` Anton Farygin
2017-10-25 13:16                     ` Dmitry V. Levin
2017-10-25 13:17                       ` Anton Farygin
2017-10-25 13:27                         ` Dmitry V. Levin
2017-10-26 14:38                           ` Dmitry V. Levin
2017-10-26 15:23                             ` Michael Shigorin
2017-10-28  7:44                             ` Sergey Y. Afonin
2017-10-28  8:20                               ` Sergey Y. Afonin
2017-10-25 13:17                   ` Aleksei Nikiforov
2017-10-25 13:20                     ` [devel] автоматическая забраковка по содержимому файлов Dmitry V. Levin
2017-10-25 13:24                       ` Aleksei Nikiforov
2017-10-25 13:29                         ` Dmitry V. Levin
2017-10-26 18:32                           ` Dmitry V. Levin

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=20171025055235.GA11123@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@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 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