* need help with yasr patch
@ jude dashiell
` Cheryl Homiak
0 siblings, 1 reply; 8+ messages in thread
From: jude dashiell @ UTC (permalink / raw)
To: blinux-list
I can't get the right -p value. I have my yasr source in /tmp/yasr-0.6.3
and tried the patch with it in /home/dashielljt at first then moved the
patch into the /tmp/yasr-0.6.3 directory itself and it continues
complaining about line 3.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: need help with yasr patch
need help with yasr patch jude dashiell
@ ` Cheryl Homiak
` jude dashiell
` diff and patch Was: " Mario Lang
0 siblings, 2 replies; 8+ messages in thread
From: Cheryl Homiak @ UTC (permalink / raw)
To: blinux-list
Jude:
I happen to do my compiling in /usr/local/src, but you can do this in /tmp or
whereever. I put the patch in /usr/local/src/yasr-0.6.0/yasr-0.6.0 and typed:
patch <yasrpatch (the name i had given the patch file. It worked with no
problem.
Just be sure you cut it off at the right place when you edited it out of the
email.
Cheryl
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: need help with yasr patch
` Cheryl Homiak
@ ` jude dashiell
` Mike Gorse
` diff and patch Was: " Mario Lang
1 sibling, 1 reply; 8+ messages in thread
From: jude dashiell @ UTC (permalink / raw)
To: blinux-list
Ah, okay I was trying to patch yasr 0.6.3 and had about 18 lines in the
patch file. If you were applying that patch to 0.6.0, this one was
probably already handled.On Thu, 22 May 2003, Cheryl Homiak wrote:
> Jude:
> I happen to do my compiling in /usr/local/src, but you can do this in /tmp or
> whereever. I put the patch in /usr/local/src/yasr-0.6.0/yasr-0.6.0 and typed:
> patch <yasrpatch (the name i had given the patch file. It worked with no
> problem.
> Just be sure you cut it off at the right place when you edited it out of the
> email.
>
> Cheryl
>
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
>
^ permalink raw reply [flat|nested] 8+ messages in thread* diff and patch Was: Re: need help with yasr patch
` Cheryl Homiak
` jude dashiell
@ ` Mario Lang
1 sibling, 0 replies; 8+ messages in thread
From: Mario Lang @ UTC (permalink / raw)
To: blinux-list
Cheryl Homiak <chomiak@chartermi.net> writes:
> Just be sure you cut it off at the right place when you edited it out of the
> email.
Tip of the day: patch is smart enough to detect if
you got extra, irrelevant, lines of text in your patch file.
So usually, you should be able to just save the mail, and apply
it, as long as the patch wasn't base64 encoded or something like that.
Looking at "cvs diff" output is an example for that. cvs outputs
additional lines of information about the patch, which are not
part of a normal diff file. patch happily ignores those without the need
to manually edit the diff, or filter it in some way.
Another related trick is executable patch files. Since
patch ignores irrelevant, non-diff text lines, you can begin
your patch file like
#!/bin/sh
and write a little interactive script which applies "patch" on itself,
something like
patch -p1 <$0
This way you can put safety checks in your patch to avoid
common user errors. You just need to set the executable bit
on your patch file, and off you go.
--
CYa,
Mario | Debian Developer <URL:http://debian.org/>
| Get my public key via finger mlang@db.debian.org
| 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
need help with yasr patch jude dashiell
` Cheryl Homiak
` jude dashiell
` Mike Gorse
` Cheryl Homiak
` Cheryl Homiak
` jude dashiell
` diff and patch Was: " Mario Lang
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).