ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@altlinux.org>
To: devel@lists.altlinux.org
Cc: Ivan Melnikov <iv@altlinux.org>
Subject: [devel] I: rpm-macros-qemu
Date: Sun, 9 Oct 2022 16:22:31 +0300
Message-ID: <20221009132231.GD22202@imap.altlinux.org> (raw)

	Здравствуйте.
Собрал для e2kv6 qemu -- понадобился rpm-macros-qemu,
чтоб не замусоривать типовыми условиями разные спеки.

Текущее содержимое добавленных макросов:

---
%qemu_arches %ix86 x86_64 %arm aarch64 ppc64le e2kv6

%qemu_check \
%ifarch %qemu_arches \
%def_with check \
%def_with test \
%def_enable check \
%def_enable test \
%else \
%def_without check \
%def_without test \
%def_disable check \
%def_disable test \
%endif
---

Вариант применения на примере virt-p2v, где qemu-nbd нужен для
make check:

---
+%qemu_check

[...]

+BuildRequires(pre): rpm-macros-qemu
---

(там чуть больше получилось, но это уж специфика пакета/правок)

Мне не очень по вкусу название макроса для проверки,
в него просится "def_", но не вижу, куда бы хорошо.
Предложения, пока не расползлось -- приветствуются.

Всё это ушло в сизиф как http://git.altlinux.org/tasks/308136/

PS 2 iv: вдруг когда пригодится и для mipsel/riscv64.

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


                 reply	other threads:[~2022-10-09 13:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20221009132231.GD22202@imap.altlinux.org \
    --to=mike@altlinux.org \
    --cc=devel@lists.altlinux.org \
    --cc=iv@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