From: "Vladimir D. Seleznev" <vseleznv@altlinux.org>
To: grenka@altlinux.org, imz@altlinux.org
Subject: [newbies] tty-solitaire и PREFIX
Date: Wed, 1 Nov 2017 23:03:21 +0300
Message-ID: <20171101200321.GA31526@portlab> (raw)
Доброго времени суток!
%makeinstall PREFIX=%buildroot%_prefix [1]
записывать в PREFIX %buildroot, как правило, очень плохая идея, для
этого есть DESTDIR:
make install DESTDIR=%buildroot PREFIX=%_prefix
Плохая идея это потому, что в сгенерённый пути в разные файлы может
попасть этот самый %buildroot, что может сделать программу
неработоспособной.
%makeinstall раскрывается в нечто страшное и не особо правильное, как я
погляжу, его лучше не использовать.
Есть:
$ 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
--
С уважением,
Владимир Селезнев
next reply other threads:[~2017-11-01 20:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-01 20:03 Vladimir D. Seleznev [this message]
2017-11-02 15:23 ` Ivan Zakharyaschev
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=20171101200321.GA31526@portlab \
--to=vseleznv@altlinux.org \
--cc=devel-newbies@lists.altlinux.org \
--cc=grenka@altlinux.org \
--cc=imz@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