devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: "Ivan A. Melnikov" <iv@altlinux.org>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] Существует ли SPEC-директива для останова сборки, типа %break?
Date: Fri, 27 Mar 2026 19:42:01 +0400
Message-ID: <acajyxoOnm44_sF3@iv-work> (raw)
In-Reply-To: <79f147a2-8082-4e74-a38d-332aad72c130@yandex.ru>

On Fri, Mar 27, 2026 at 05:49:06PM +0300, Alexander Lubyagin wrote:
> Можно ли какой-либо директивой остановить процесс сборки, "провалившись" в
> chroot сборочного процесса?
> 
> Я так понял - можно просто написать в нужной мне секции синтаксически
> некорректную команду, после чего - запустить hsh-shell?

Или просто

exit 42

> Будет ли продолжение сборки идентичное тому, что было бы без останова?

Этого можно добиться, аккуратно запустив сборку снова. Иногда в этом
может помочь rpmbuild --short-circuit -b[стадия] ~/RPM/SPECS/*.spec,
который похоже работает для всех стадий, а не только для трёх указанных
в man rpmbuild.

> Есть ли специальная команда типа %break для этого?

Специальной, насколько мне известно, нет.

> Как вы решаете вопрос отладки с остановом с нужном месте?

Не припомню, чтобы мне нужно было остановить сборку в каком-то месте,
кроме как после её окончания, но там она сама останавливается.

-- 
  wbr,
    iv m.


  parent reply	other threads:[~2026-03-27 15:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-27 14:49 Alexander Lubyagin
2026-03-27 15:14 ` Anton Farygin
2026-03-27 15:42 ` Ivan A. Melnikov [this message]
2026-04-14 19:24 ` Andrey Savchenko

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=acajyxoOnm44_sF3@iv-work \
    --to=iv@altlinux.org \
    --cc=devel-newbies@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

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