ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Kharitonov A. Dmitry" <kharpost@rambler.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Установка патча
Date: Tue, 04 Nov 2008 21:18:31 +0300
Message-ID: <491091F7.6020309@rambler.ru> (raw)
In-Reply-To: <20081104153722.GO30442@osdn.org.ua>

Michael Shigorin пишет:
> On Tue, Nov 04, 2008 at 05:13:13PM +0300, "Павел П." wrote:
>   
>> Товарищи, быстрый вопрос:
>> как установить патч?
>>     
>
> Быстрый ответ: лучше попробовать сначала другие варианты,
> если есть.
>
> Подробнее: патчи на исходники не "устанавливаются",
> а "применяются"; исходники после этого необходимо ещё
> скомпилировать, чтоб получить заметный на глаз результат.
> Поскольку это всё может быть не совсем тривиально, уже
> и порекомендовали разместить багрепорт в bugzilla.
>
> Для применения же патча надо взять из соответствующего
> установленному дистрибутиву бранча hal-0.5.*.src.rpm,
> установить его командой rpm -i этот.src.rpm, перейти 
> в ~/RPM/SOURCES, а вот дальше раздвоение: если по-быстрому
> проверить, патч вообще ложится или нет -- то распаковывать
> тарбол с исходниками и пытаться наложить руками, если собирать
> человеческий пакет -- то файл с патчем укладывается в этот 
> каталог, дальше идём в ~/RPM/SPECS и правим hal.spec, добавляя 
> строчку PatchNN: имя_файла.patch и макрос %patchNN в секции
> %build.
>
> В общем, лучше всё-таки в bugzilla, поскольку это недостаточно
> подробно, только как вешки.
>   
Чтобы было совсем понятно:
sudo apt-get update
apt-get install hasher
sudo gpasswd -a $USER rpm
hasher-useradd $USER
sudo reboot&&exit
mkdir ~/hasher
sudo apt-get update
sudo apt-get install rpm-build rpm-utils

apt-get source hal-mount-subfs
sudo apt-get build-dep hal-mount-subfs
Делаете что-то в ~/RPM, что написал выше Михаил
rpmbuild -bs "~/RPM/SPECS/hal-mount-subfs.spec"
hsh -v ~/hasher --build-args="--target=i586" 
/home/user/RPM/SRPMS/<Название собранного вами пакета>
Если вам очень очень крупно повезёт, то готовый пакет найдёте где-то в 
~/hasher/repo/



  parent reply	other threads:[~2008-11-04 18:18 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  8:38 [Comm] Не подключается флешка Нестерук Юрий
2008-11-04  8:45 ` Motsyo Gennadi aka Drool
2008-11-04  8:47   ` Mikhail A. Pokidko
2008-11-04 11:51     ` Нестерук Юрий
2008-11-04 12:08       ` Michael Shigorin
2008-11-04 14:08       ` Motsyo Gennadi aka Drool
2008-11-04 14:13         ` [Comm] Установка патча "Павел П."
2008-11-04 14:17           ` Andrey Rahmatullin
2008-11-04 14:32             ` "Павел П."
2008-11-04 14:38               ` Andrey Rahmatullin
2008-11-04 14:41                 ` Dmitriy Kruglikov
2008-11-04 14:47                   ` "Павел П."
2008-11-04 15:00                     ` Dmitriy Kruglikov
2008-11-04 14:18           ` Dmitriy Kruglikov
2008-11-04 14:28             ` "Павел П."
2008-11-04 14:37               ` Dmitriy Kruglikov
2008-11-04 14:43                 ` "Павел П."
2008-11-04 14:49                   ` Dmitriy Kruglikov
2008-11-04 15:37           ` Michael Shigorin
2008-11-04 16:00             ` "Павел П."
2008-11-04 18:18             ` Kharitonov A. Dmitry [this message]
2008-11-05  7:32               ` Dmitriy Kruglikov
2008-11-05 14:21                 ` Michael Shigorin
2008-11-05 14:21                 ` Kharitonov A. Dmitry
2008-11-05 14:38                   ` Dmitriy Kruglikov
2008-11-05 15:21                     ` Kharitonov A. Dmitry
2008-11-05 15:29                       ` Dmitriy Kruglikov
2008-11-08  9:42               ` Michael A. Kangin
2008-11-05  8:02         ` [Comm] Не подключается флешка Нестерук Юрий
2008-11-05 11:09           ` Motsyo Gennadi aka Drool

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=491091F7.6020309@rambler.ru \
    --to=kharpost@rambler.ru \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git