devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
To: devel-newbies@lists.altlinux.org,
	 "Vladimir D. Seleznev" <vseleznv@altlinux.org>
Cc: grenka@altlinux.org
Subject: Re: [newbies] tty-solitaire и PREFIX
Date: Thu, 2 Nov 2017 18:23:22 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.1711021822040.1631@imap.altlinux.org> (raw)
In-Reply-To: <20171101200321.GA31526@portlab>

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

On Wed, 1 Nov 2017, Vladimir D. Seleznev wrote:

> %makeinstall PREFIX=%buildroot%_prefix [1]
>
> записывать в PREFIX %buildroot, как правило, очень плохая идея, для
> этого есть DESTDIR:
>
> make install DESTDIR=%buildroot PREFIX=%_prefix
>
> Плохая идея это потому, что в сгенерённый пути в разные файлы может
> попасть этот самый %buildroot, что может сделать программу
> неработоспособной.
>
> %makeinstall раскрывается в нечто страшное и не особо правильное, как я
> погляжу, его лучше не использовать.

Ага, читайте https://www.altlinux.org/Spec#.25install .

> Есть:
>
> $ rpm -E %makeinstall_std
> make INSTALL="/bin/install -p" install DESTDIR=/tmp/.private/${тут_имя_пользователя}/%{name}-buildroot
>
> Тогда это можно было бы заменить на:
>
> %makeinstall_std PREFIX=%_prefix
>
> [1] http://git.altlinux.org/gears/t/tty-solitaire.git?p=tty-solitaire.git;a=blob;f=tty-solitaire.spec;h=71c17e2386c841e75b6fcce72e1af1806c9c63da;hb=cf6f4404180b4d8e0050ba32175b8a2e6ad8dec4#l31

-- 
Best regards,
Ivan

      reply	other threads:[~2017-11-02 15:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01 20:03 Vladimir D. Seleznev
2017-11-02 15:23 ` Ivan Zakharyaschev [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=alpine.LFD.2.20.1711021822040.1631@imap.altlinux.org \
    --to=imz@altlinux.org \
    --cc=devel-newbies@lists.altlinux.org \
    --cc=grenka@altlinux.org \
    --cc=vseleznv@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

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

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


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