ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] I: hasher-rich-chroot-user-utils
@ 2014-05-21 12:32 Igor Vlasenko
  2014-05-22  3:41 ` Eugene Prokopiev
  0 siblings, 1 reply; 2+ messages in thread
From: Igor Vlasenko @ 2014-05-21 12:32 UTC (permalink / raw)
  To: devel

Господа,

презентую пакет hasher-rich-chroot-user-utils,
удобная вещь, если нужно оптом починить от десятка пакетов.

Зачем оно нужно.

последние пол года мне постоянно приходится оптом чинить
сломанные пакеты, десятками, а в иной день и сотнями.

Заметил, что на автомате запускаю пересборку, когда она выбила -
вызываю из истории
$ hsh-install mc vim-console less unzip elfutils rpm-utils
$ hsh-shell --mountpoint=/proc,/dev/pts 
и далее каждый раз руками вбиваю 
/.in $ cd /usr/src/RPM/SPECS
vim blabla.spec
rpmbuild -ba ...

Этот тренажер клавиатуры у меня уже в моторной памяти сидит.
пакет из сабжа позволит продлить жизнь клавиатуры.
теперь я вызываю из истории
hsh-install-rich-chroot
hsh-shell --mountpoint=/proc,/dev/pts
и ура - стрелка вверх выводит cd /usr/src/RPM/SPECS.

bash_history содержит и другие полезные команды,
cat >> ~/.bash_history << EOF
ls /usr/src/tmp/*-buildroot/
diff -u ../COPY/$spec $spec
rpmbuild -ba $spec 2>&1 | tee log
vim $spec
cd /usr/src/RPM/SPECS
EOF

а также заполнен ~/.config/mc/hotlist.

cat >> ~/.config/mc/hotlist <<'EOF'
ENTRY "/usr/src/RPM/SPECS" URL "/usr/src/RPM/SPECS"
ENTRY "/usr/src/RPM/BUILD" URL "/usr/src/RPM/BUILD"
ENTRY "/usr/src/RPM/SOURCES" URL "/usr/src/RPM/SOURCES"
ENTRY "/usr/src/RPM" URL "/usr/src/RPM"
ENTRY "/usr/src/tmp" URL "/usr/src/tmp"
ENTRY "/.in" URL "/.in"
EOF

PROFIT!

-- 

Igor Vlasenko


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] I: hasher-rich-chroot-user-utils
  2014-05-21 12:32 [devel] I: hasher-rich-chroot-user-utils Igor Vlasenko
@ 2014-05-22  3:41 ` Eugene Prokopiev
  0 siblings, 0 replies; 2+ messages in thread
From: Eugene Prokopiev @ 2014-05-22  3:41 UTC (permalink / raw)
  To: ALT Linux Team development discussions

21 мая 2014 г., 16:32 Igor Vlasenko написал:

> Заметил, что на автомате запускаю пересборку, когда она выбила -
> вызываю из истории ...

Действительно типовой случай, спасибо!

-- 
WBR,
Eugene Prokopiev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-22  3:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-21 12:32 [devel] I: hasher-rich-chroot-user-utils Igor Vlasenko
2014-05-22  3:41 ` Eugene Prokopiev

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