public inbox for patchutils-list@sourceware.org
 help / color / mirror / Atom feed
* How to resolve hiccups by patch program?
@ 2007-01-03 10:47 SF Markus Elfring
  2007-01-03 12:43 ` Tim Waugh
  0 siblings, 1 reply; 10+ messages in thread
From: SF Markus Elfring @ 2007-01-03 10:47 UTC (permalink / raw)
  To: patchutils-list

Hello,

I wish you a happy new year.

I have found the article "http://gnuarch.org/gnuarchwiki/Process_*.rej_files" that references experiences by Miles Bader. I find his statement "Applying a hunk from diff-mode sometimes succeeds where patch failed." interesting in my case. Can Emacs perform an update really better than other usual tools in any special situations?

A couple of tools are mentioned on the page "http://cyberelk.net/tim/patchutils/". It seems that I am looking for an option or feature that might not be available here so far.
Can a package of reject files be converted by an other program into another change set for a second try if anything went unexpectedly wrong? (Does this approach make sense?)
How much may I trust the applicability of patches that were generated by TortoiseSVN 1.4.1.7992 compared to other command line tools?

I ask because the technical details might be relevant for the open issue "Improve const-correctness" (http://bugs.digium.com/view.php?id=8160) with the Asterisk software. Would you like to share any more ideas for a solution to the observed obstacle?
http://article.gmane.org/gmane.comp.version-control.subversion.tortoisesvn.user/5180

Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: How to resolve hiccups by patch program?
@ 2007-01-04  8:04 SF Markus Elfring
  2007-01-04 14:04 ` Tim Waugh
  0 siblings, 1 reply; 10+ messages in thread
From: SF Markus Elfring @ 2007-01-04  8:04 UTC (permalink / raw)
  To: Tim Waugh; +Cc: patchutils-list

> I have yet to see a patch reject that was created by patch(1) without good reason.

Do you know a kind of debug version for the patch program that provides verbose explanations?
Are there any chances to get more informations about the reason?


> There are sure to be conflicts of some sort in the patch.

Can you see it from the example reject file "app_db.c.rej" in the referenced issue tracking system?
http://bugs.digium.com/file_download.php?file_id=12652&type=bug
(I'm sorry - I recognise only my intended updates.)


> If there are any conflicts at all, they need to be resolved by human
> intervention -- there is no other way to be sure that the patch may be
> applied without producing an incorrect result.

This intervention depends on the willingness for cooperation of the involved software developers. (It seems that I get on the nerves of the other side because of their expectations with bug reporting and coding guidelines.)

Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: How to resolve hiccups by patch program?
@ 2007-01-05 10:26 SF Markus Elfring
  2007-01-05 11:21 ` Tim Waugh
  0 siblings, 1 reply; 10+ messages in thread
From: SF Markus Elfring @ 2007-01-05 10:26 UTC (permalink / raw)
  To: Tim Waugh; +Cc: patchutils-list

> No -- you just need to create a clean patch in the first place, i.e. one
> that applies directly to the same file the developer is using. :-)

Would you like to try a comparison with the current development revision to check if my update suggestion (context-diff from "app_db.c.rej") is still valid?
http://svn.digium.com/view/asterisk/trunk/apps/app_db.c?rev=47783&view=markup

It is strange that the appropriate location could not be found by the tool, isn't it?
Have you ever heard if wrong rejections could be possible by this software?
http://en.wikipedia.org/wiki/Type_I_and_type_II_errors#False_positive_rate

Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: How to resolve hiccups by patch program?
@ 2007-01-05 12:08 SF Markus Elfring
  0 siblings, 0 replies; 10+ messages in thread
From: SF Markus Elfring @ 2007-01-05 12:08 UTC (permalink / raw)
  To: Tim Waugh; +Cc: patchutils-list

> I'm not entirely sure why you're asking me -- you know that patchutils
> is altogether separate from diffutils (which provides diff) and from
> patch, don't you?

I know - I am asking you because I thought that something from your published tool box can help.

I've tried to get more ideas.
http://article.gmane.org/gmane.comp.version-control.subversion.tortoisesvn.user/5191

I did not get suggestions from "bug-patch@gnu.org". Maybe, I'll start another request.

Regards,
Markus

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

end of thread, other threads:[~2007-01-06 15:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-03 10:47 How to resolve hiccups by patch program? SF Markus Elfring
2007-01-03 12:43 ` Tim Waugh
2007-01-04  8:04 SF Markus Elfring
2007-01-04 14:04 ` Tim Waugh
2007-01-04 22:04   ` SF Markus Elfring
2007-01-05 10:26 SF Markus Elfring
2007-01-05 11:21 ` Tim Waugh
2007-01-05 21:51   ` SF Markus Elfring
2007-01-06 15:03   ` SF Markus Elfring
2007-01-05 12:08 SF Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).