ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux general discussion list <community@lists.altlinux.org>
Subject: Re: [Comm] Зависимости при сборке rpm
Date: Fri, 24 Feb 2006 16:33:48 +0300
Message-ID: <20060224133348.GD25094@basalt.office.altlinux.org> (raw)
In-Reply-To: <43FEC82A.2090903@uaservice.com.ua>

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

On Fri, Feb 24, 2006 at 10:47:38AM +0200, Valentin Lavrinenko wrote:
> Valentin Lavrinenko wrote:
> > Hi, All!
> >
> > Подскажите, плз, где почитать о том, каким образом определяются
> > зависимости результирующего rpm'а (не src.rpm) при сборке из спека?
> > Поиск по гуглю результатов сходу не дал - может, я неправильно запрос
> > формулировал, не знаю. Дело в том, что у меня вылазит зависимость,
> > которой вроде бы быть не должно, и от которой я очень хочу избавиться.
> Сам нашел, как это сделать, делюсь опытом:
> $ rpm -bp <spec>
> $ rpm -bc <spec>
> // что должно быть в <buildroot>? Я написал ~/RPM/BUILD/<project>, 
> сработало...
> $ export RPM_BUILD_ROOT=<buildroot>
> $ export RPM_FINDREQ_METHOD=all
> $ find ~/RPM/BUILD/<project> | /bin/sh -x /usr/lib/rpm/find-requires 
>  >~/log 2>&1
> После чего ищем в логе интересующую нас зависимость и
> где-то перед ней видим, какой файл ее породил.
> 
> Может и криво, но для меня сработало. Если кто-то знает, как сделать лучше -
> буду рад увидеть.

$ RPM_SCRIPTS_DEBUG=1 rpmbuild -bi specfile &>logfile
- включает трассировку скриптов, которые вычисляют зависимости.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

      reply	other threads:[~2006-02-24 13:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-24  6:32 Valentin Lavrinenko
2006-02-24  8:47 ` Valentin Lavrinenko
2006-02-24 13:33   ` Dmitry V. Levin [this message]

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=20060224133348.GD25094@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git