ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Denis Nazarov <marsden@mail.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] не применяется патч при сборке пакета
Date: Sun, 15 Mar 2009 12:05:54 +0500
Message-ID: <200903151205.54225.marsden@mail.ru> (raw)
In-Reply-To: <200903150354.24709.a_s_y@sama.ru>

On Sunday 15 March 2009 04:54:24 Sergey wrote:
> On Воскресенье 15 марта 2009, Denis Nazarov wrote:
> > пытаюсь собрать пакет со своим патчем, получаю отлуп
> > Patch #4 (rdesktop-ctrl-alt-enter-minimize.patch):
> > + /usr/bin/patch -p1
> > patching file rdesktop.c
> > Hunk #1 succeeded at 81 with fuzz 2.
> > Hunk #2 FAILED at 571.
> > 1 out of 2 hunks FAILED -- saving rejects to file rdesktop.c.rej
>
> Ну вот же написано.

написано... только очень уж неинформативно... там делов-то - вставить две 
строчки в файл. вот rdesktop.c.rej

***************
*** 570,575 ****
  
                         case 'f':
                                 g_fullscreen = True;
                                 break;
  
                         case 'b':
--- 571,577 ----
  
                         case 'f':
                                 g_fullscreen = True;
+                               g_isfullscreen = True;
                                 break;
  
                         case 'b':

потом еще смущает  Hunk #1 succeeded at 81 with fuzz 2.
Предыдущие три патча ни о каком fuzz не говорят

> > сам патч #4 вроде как правильный
>
> Безо всяких "вроде" - неправильный, раз не наложился. Поди, не от той
> версии ?
>
патч от той версии, делал его сам, первоначально код правил на оригинальных 
исходниках, потом обнаружил наличие довольно внушительных патчей, без 
которых оригинальные исходники никуда не годятся в плане работы :)
> > почему-то отрабатывает первое изменение,  а на втором затыкается.
>
> Потому, что не знает, куда его применить.
>
как он может не знать, если там все написано?

> > Что я делаю не так?
>
> Надо найти соответствующее место, пропатчить руками и сделать новый
> diff.

Вообще делал так - установил srpm пакет, выполнил rpm -bp rdesktop.spec, 
исходники распаковались и применились патчи. Насколько я понимаю, 
следующий патч надо определять после наложения предыдущих, так?
Поэтому после наложения уже существующих патчей скопировал папку с 
пропатченными исходниками в папку rdesktop.orig, затем в 
rdesktop/rdesktop.c внес изменения, затем сделал diff, обозвал вывод 
bla-bla.patch, подправил spec, затем запустил сборку и обломался...

Где в моих действиях косяк?

  reply	other threads:[~2009-03-15  7:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-14 21:29 Denis Nazarov
2009-03-14 23:54 ` Sergey
2009-03-15  7:05   ` Denis Nazarov [this message]
2009-03-15  8:26     ` Nikolay A. Fetisov
2009-03-15  8:35     ` Denis Nazarov
2009-03-15  8:50       ` Denis Nazarov
2009-03-15  9:04         ` Denis Nazarov
2009-03-15  9:20           ` Nikolay A. Fetisov
2009-03-15 10:00             ` Denis Nazarov
2009-03-15 12:54               ` Nikolay A. Fetisov
2009-03-15 13:23                 ` Denis Nazarov
2009-03-15  8:52       ` Nikolay A. Fetisov
2009-03-15 18:18       ` Sergey
2009-03-15 18:28         ` Denis Nazarov

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=200903151205.54225.marsden@mail.ru \
    --to=marsden@mail.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