ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mhz@alt-linux.org>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Re: RPM
Date: Mon, 25 Mar 2002 01:33:27 +0300
Message-ID: <20020324223327.GH24704@mhz.mikhail.zabaluev.name> (raw)
In-Reply-To: <20020323130222.1fac7fdf.avl@l14.ru>

Hello Любимов,

On Sat, Mar 23, 2002 at 01:02:22PM +0300, Любимов А.В. wrote:
>
> > > > А подскажите как собирать рпм-ы из под юзверя? 
> > > > В группе РПМ нахожусь, вроде собирается, но пермишшены менять не
> > > > дает. Какие пермишшены? Вы, что -- напрямую chown делаете в
> > > > %install? Замените эти chown на соответствующие
> > > > %attr(режим,владелец,группа) перед этим же файлом в секции %files,
> > > > или %defattr(режим, владелец, группа), если для всех файлов.
> > 
> > Осталось добавить, что если и владелец и группа = root, то всё будет
> > нормально по умолчанию.
> 
> а еще добавить, что перед всякими mkdir /usr/bin/blalala надо
ставить %RMP_BUILD_ROOT

$RPM_BUILD_ROOT

> это можно сделать еще на стадии %configure через префмкс  --prefix
> а еще, если прога прописывает пути к данным в себя при сборке, то
> так не получится - надо править только секцию %инсталл..

Никогда не надо использовать $RPM_BUILD_ROOT в ином месте,
нежели %install.

> или ее же в Makefile.
> а еще очень помогает  perl -pi -e "g|сто меняем| на что меняем|s" -f
> Makefile в спеке для динамического исправления мейкфайла.

Лучше просто переопределять макросы make в командной строке. Или
пользоваться готовыми решениями:

%make_install

сделает всё, как надо, для autoconf-based дерева сборки.

> а лучше всего взять пару-тройку простых прог из альта и посмотреть
> на них.

Воистину.

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
You can drive a horse to water, but a pencil must be lead.



      reply	other threads:[~2002-03-24 22:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-19 18:06 [sisyphus] Bug in Master? Keyd
2002-03-19 22:11 ` Vitaly Lipatov
2002-03-20  6:50   ` [sisyphus] " Michael Shigorin
2002-03-20  7:02   ` [sisyphus] " Andrei Bulava
2002-03-20 21:58     ` Vitaly Lipatov
2002-03-21  7:15       ` Re[2]: " Andrei Bulava
2002-03-22 12:57         ` [sisyphus] RPM iLL
2002-03-22 13:23           ` cornet
2002-03-22 13:23           ` Alexander Bokovoy
2002-03-22 23:40             ` [sisyphus] RPM Mikhail Zabaluev
2002-03-23 10:02               ` Любимов А.В.
2002-03-24 22:33                 ` Mikhail Zabaluev [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=20020324223327.GH24704@mhz.mikhail.zabaluev.name \
    --to=mhz@alt-linux.org \
    --cc=sisyphus@altlinux.ru \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

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

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


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