ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Stanislav Ievlev <inger@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] /usr/lib/rpm/*-files.req.list
Date: Tue, 17 Jun 2008 10:45:10 +0400
Message-ID: <20080617064510.GC10233@imap.altlinux.org> (raw)
In-Reply-To: <20080617050506.GO17919@solemn.turbinal>

Хорошо бы все эти знания на wiki.

On Tue, Jun 17, 2008 at 09:05:06AM +0400, Alexey M. Tourbin wrote:
> Я сделал модульным механизм поиска зависимостей на каталоги.
> Теперь каждый может создать файл /usr/lib/rpm/%name-files.req.list
> (но желательно сначала написать об этом сюда).
> 
> Формат файла /usr/lib/rpm/%name-files.req.list следующий:
> 1) Значащие строки начинаются со слеша '/'.
> 2a) Значащая строка может содержать одно поле:
> <каталог>
> 2б) или же два поля:
> <каталог> <пакет>
> 
> Здесь <каталог> означает тот каталог, на который будет выставляться
> зависимость; <пакет> в 2б означает пакет, который эксклюзивно владеет
> каталогом.  Если указан эксклюзивный владелец каталога, то будет
> срабатывать проверка (чтобы никакой другой пакет не смог завладеть
> каталогом).
> 
> <каталог> может быть записан в форме с одним окончательным слешем
> (или без него), количество пробелов любое.
> 
> Если файл подпадает под два или более каталога (в таком случае один из
> каталогов является подкаталогом другого), то будет выбран самый длинный
> каталог.
> 
> Далее приведён пример, как реализовать зависимости на каталоги
> /usr/lib/pkgconfig
> /usr/lib64/pkgconfig
> /usr/share/pkgconfig
> при этом пакет pkg-config эксклюзивно владеет этими каталогами.
> 
> Интересно, что каталогом /usr/lib64/pkgconfig незаконно владеют
> ещё три пакета:
> 
> sphinxbase 0.3-alt1
> libvolume_id-devel 124-alt1
> libsynce-devel 0.11.1-alt1
> 
> 
> commit ee38c43ae68a0a39b238abd3e8bb4f2121f75c50
> Author: Alexey Tourbin <at@altlinux>
> Date:   Mon Jun 16 12:39:54 2008 +0400
> 
>     spec: make %_rpmlibdir/pkgconfig-files.req.list
> 
> Full diff since common ancestor `0.23-alt1' follows:
> diff --git a/pkg-config.spec b/pkg-config.spec
> index 55ae32a..a90832b 100644
> --- a/pkg-config.spec
> +++ b/pkg-config.spec
> @@ -8,6 +8,9 @@ Group: Development/Other
>  Url: http://pkg-config.freedesktop.org/wiki/
>  Packager: Dmitry V. Levin <ldv@altlinux>
>  
> +Provides: %_libdir/pkgconfig
> +Provides: %_datadir/pkgconfig
> +
>  Provides: pkgconfig-reqprov, pkgconfig-recursion, pkgconfig = 1:%version-%release
>  Obsoletes: pkgconfig
>  
> @@ -55,8 +58,17 @@ cat <<\EOF >%buildroot%_sysconfdir/buildreqs/files/ignore.d/%name
>  ^(%_libdir|%_datadir)/pkgconfig/[^/]+\.pc$
>  EOF
>  
> +mkdir -p %buildroot%_rpmlibdir
> +cat <<\EOF >%buildroot%_rpmlibdir/pkgconfig-files.req.list
> +# %name dirlist for %_rpmlibdir/files.req
> +/usr/lib/pkgconfig	%name
> +/usr/lib64/pkgconfig	%name
> +/usr/share/pkgconfig	%name
> +EOF
> +
>  %files
>  %config %_sysconfdir/buildreqs/files/ignore.d/*
> +%config %_rpmlibdir/*
>  %_bindir/pkg-config
>  %dir %_libdir/pkgconfig
>  %dir %_datadir/pkgconfig



> _______________________________________________
> Devel mailing list
> Devel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel



  reply	other threads:[~2008-06-17  6:45 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-17  5:05 Alexey M. Tourbin
2008-06-17  6:45 ` Stanislav Ievlev [this message]
2008-06-17  8:15   ` Alexey Tourbin
2008-06-18  7:31     ` Stanislav Ievlev
2008-07-09 17:40 ` Aleksey Avdeev
2008-07-09 17:44   ` Mikhail Gusarov
2008-07-09 18:00     ` Aleksey Avdeev
2008-07-09 18:03       ` Mikhail Gusarov
2008-07-09 18:24         ` [devel] [Policy] rpm-build-<name> (was: /usr/lib/rpm/*-files.req.list) Aleksey Avdeev
2008-07-09 18:29           ` [devel] [Policy] rpm-build-<name> Mikhail Gusarov
2008-07-09 18:33             ` Aleksey Avdeev
2008-07-09 18:47               ` Igor Vlasenko
2008-07-09 18:50                 ` Mikhail Gusarov
2008-07-09 18:57                   ` Led
2008-07-09 20:15                     ` Michael Shigorin
2008-07-09 20:36                       ` Led
2008-07-09 20:41                         ` Mikhail Gusarov
2008-07-09 20:50                           ` Led
2008-07-09 18:59                   ` Igor Vlasenko
2008-07-09 19:36                     ` Aleksey Avdeev
2008-07-09 19:48                       ` Aleksey Avdeev
2008-07-10  2:02                     ` [devel] [Policy] rpm-build-<name> и webserver-common Aleksey Avdeev
2008-07-10  4:22                       ` Igor Vlasenko
2008-07-10  4:32                     ` [devel] [Policy] rpm-build-<name> Igor Vlasenko
2008-07-10  5:17                       ` Mikhail Gusarov
2008-07-10  5:48                       ` Alexey I. Froloff
2008-07-10  7:46                         ` Igor Vlasenko
2008-07-10 13:30                         ` Igor Vlasenko
2008-07-10 13:50                           ` Aleksey Avdeev
2008-07-10 14:15                             ` Igor Vlasenko
2008-07-10 14:31                               ` Aleksey Avdeev
2008-07-10 16:08                                 ` Aleksey Avdeev
2008-07-10 17:25                                   ` Aleksey Avdeev
2008-07-10 17:41                                     ` Igor Vlasenko
2008-07-10 17:46                                       ` Led
2008-07-30 12:21                                         ` [devel] [OT] macroses Michael Shigorin
2008-07-10 17:47                                       ` [devel] [Policy] rpm-build-<name> Mikhail Gusarov
2008-07-10 20:21                                         ` Aleksey Avdeev
2008-07-10 17:56                                       ` Aleksey Avdeev
2008-07-10  6:08                       ` [devel] rpm-build-<name> Alexey Tourbin
2008-07-10  7:52                         ` Igor Vlasenko
2008-07-10  8:05                           ` Alexey I. Froloff
2008-07-10  8:13                             ` Igor Vlasenko
2008-07-10  9:06                             ` Aleksey Avdeev
2008-07-10  9:19                               ` Alexey I. Froloff
2008-07-10  9:58                                 ` Aleksey Avdeev
2008-07-10 10:28                                   ` Alexey I. Froloff
2008-07-10 10:56                                   ` Mykola S. Grechukh
2008-07-10 11:38                                     ` Aleksey Avdeev
2008-07-13 13:50                           ` Alexey Tourbin
2008-07-09 19:17                   ` [devel] [Policy] rpm-build-<name> Aleksey Avdeev
2008-07-09 19:27                     ` Igor Vlasenko
2008-07-09 19:08                 ` Aleksey Avdeev
2008-07-09 19:11                   ` Igor Vlasenko
2008-07-10  2:33                 ` [devel] rpm-build-<name> Alexey Tourbin
2008-07-10 20:34                 ` [devel] [Policy] rpm-build-<name> Mikhail Gusarov
2008-07-11  7:10                   ` Aleksey Avdeev
2008-07-11  7:18                     ` Mikhail Gusarov
2008-07-09 18:50             ` Alexey I. Froloff
2008-07-10  2:27   ` [devel] /usr/lib/rpm/*-files.req.list Alexey Tourbin
2008-07-10  9:28     ` Aleksey Avdeev
2008-07-11 23:47     ` Aleksey Avdeev
2008-07-12  0:13       ` Alexey I. Froloff
2008-07-12  0:58         ` Aleksey Avdeev
2008-07-09 18:43 ` Led
2008-07-10  2:41   ` Alexey Tourbin

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=20080617064510.GC10233@imap.altlinux.org \
    --to=inger@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