ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Andrey Savchenko <bircoph@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] rpm: некорректные макросы
Date: Mon, 16 Dec 2019 16:16:20 +0300
Message-ID: <20191216161620.f616b7b72faedf23d1098604@altlinux.org> (raw)
In-Reply-To: <20191216004612.GB28473@altlinux.org>

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

On Mon, 16 Dec 2019 03:46:13 +0300 Alexey V. Vissarionov wrote:
> On 2019-12-15 18:06:45 +0300, Victor Wagner wrote:
> 
>  >> Прорезюмирую результат обсуждения IRL: значения этих и многих
>  >> других макросов нужно брать из rpmbuild. Из rpm их лучше в
>  >> дальнейшем удалить во избежание недоразумений.
>  > Тут есть одна тонкость - нету у юзера на production сервере
>  > rpmbuild. И не должно быть. Ибо средства разработки это
>  > толстенная дыра в безопасности.
> 
> И не нужны они там.
> 
>  > А у меня проблема возникла именно из задачи - "прописать юзеру
>  > в /etc/apt/sources.list.d правильный репозиторий, не полагаясь
>  > на то, что юзер знает, какая у него архитектура и версия платформы".
> 
> В смысле, репу добавить? А откуда в sources.list.d/ новый файл
> попадет? По уму - из пакета. Но тогда при сборке этого пакета вся
> необходимая информация уже доступна.
> 
>  > Поэтому нужен способ точно определить архитектуру установленной
>  > системы. Именно системы, а не ядра, так как никто не обещал в
>  > нашу эпоху контейнеров, что они совпадают.
> 
> Дык `uname -m` внутри контейнера вполне говорит i686 - даже когда
> хост x86_64 (у меня других уже давно нет).

На e2k не всё так просто. Для совместимости с МЦСТ у нас uname -m
возвращает e2k на всех поколениях, а человеку нужно разделять v3 и
v4.

В скором времени я добавлю поддержку корректного значения %_arch
в rpm. На других архитектурах сейчас так же, так что есть смысл
выровнять с ними e2k.

Best regards,
Andrew Savchenko

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

  reply	other threads:[~2019-12-16 13:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-12 23:08 Andrey Savchenko
2019-12-13  8:02 ` Dmitry V. Levin
2019-12-13 18:18   ` Andrey Savchenko
2019-12-15 15:06     ` Victor Wagner
2019-12-16  0:46       ` Alexey V. Vissarionov
2019-12-16 13:16         ` Andrey Savchenko [this message]
2019-12-16 14:27           ` Alexey V. Vissarionov
2019-12-16 17:40           ` Andrey Savchenko
2019-12-16  9:55     ` Ivan A. Melnikov

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=20191216161620.f616b7b72faedf23d1098604@altlinux.org \
    --to=bircoph@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