* [ECOS] how to apply the patches for i386
@ 2000-11-28 23:11 niky
2000-11-29 9:01 ` Jonathan Larmour
0 siblings, 1 reply; 5+ messages in thread
From: niky @ 2000-11-28 23:11 UTC (permalink / raw)
To: ecos-discuss
Hi,
I got the patches Fabrice Gautier provides for i386 from
ftp://ftp.sigmadesigns.com/ecos/
when I used the patch hal-i386-pc.patch under the packages diretory
patch -r0 < hal-i386-pc.patch
it showed
can't find file to patch at input line 9
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|? hal/i386/pc/current/include/plf_io.h
|Index: hal/i386/arch/current/include/basetype.h
|===================================================================
|RCS file:
/cvs/ecos/ecos/packages/hal/i386/arch/current/include/basetype.h,v
|retrieving revision 1.7
|diff -u -w -b -B -r1.7 basetype.h
|--- basetype.h 2000/09/05 15:44:11 1.7
|+++ basetype.h 2000/11/02 20:50:30
--------------------------
File to patch:
it could not find the file basetype.h, but
hal/i386/arch/current/include/basetype.h really exists.
Patch finds the basetype.h according to Index, doesnt it ?
How could I apply the patch ?
Thanks for your help!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] how to apply the patches for i386
2000-11-28 23:11 [ECOS] how to apply the patches for i386 niky
@ 2000-11-29 9:01 ` Jonathan Larmour
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Larmour @ 2000-11-29 9:01 UTC (permalink / raw)
To: niky; +Cc: ecos-discuss
niky wrote:
> when I used the patch hal-i386-pc.patch under the packages diretory
>
> patch -r0 < hal-i386-pc.patch
You mean "patch -p0"
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [ECOS] how to apply the patches for i386
2000-11-29 10:53 Fabrice Gautier
2000-11-29 12:33 ` Jonathan Larmour
@ 2000-11-29 13:56 ` Gary Thomas
1 sibling, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2000-11-29 13:56 UTC (permalink / raw)
To: Fabrice Gautier; +Cc: ecos-discuss, niky
On 29-Nov-2000 Fabrice Gautier wrote:
> Hi,
>
> You're right the filenames are wrong, (it's because the eCos cvs server is
> old and broken.) Someone from cygnus (Jifl?) sent a perl script to correct
> the paths in their patch. It should be in the archives.
>
>
>> -----Original Message-----
>> From: niky [ mailto:b4506051@csie.ntu.edu.tw ]
>> Subject: [ECOS] how to apply the patches for i386
>>
>
>> can't find file to patch at input line 9
>> Perhaps you should have used the -p or --strip option?
>> The text leading up to this was:
>> --------------------------
>> |? hal/i386/pc/current/include/plf_io.h
>> |Index: hal/i386/arch/current/include/basetype.h
>> |===================================================================
>> |RCS file:
>> /cvs/ecos/ecos/packages/hal/i386/arch/current/include/basetype.h,v
>> |retrieving revision 1.7
>> |diff -u -w -b -B -r1.7 basetype.h
>> |--- basetype.h 2000/09/05 15:44:11 1.7
>> |+++ basetype.h 2000/11/02 20:50:30
>> --------------------------
>> File to patch:
>>
>> it could not find the file basetype.h, but
>> hal/i386/arch/current/include/basetype.h really exists.
>> Patch finds the basetype.h according to Index, doesnt it ?
>> How could I apply the patch ?
>> Thanks for your help!
>
> --
> Fabrice Gautier
> fabrice_gautier@sdesigns.com
>
>
Just pass the patch file through this filter.
------- FixPatch -------------------------------------------------------------
#! /usr/bin/perl -wi
# From: Jason Merrill <jason@cygnus.com>
# Date: 07 Dec 1997 01:29:36 -0800
#
# When I do a cvs diff, I always pass the output through this script, which
# copies the filename from the Index line into the patch itself.
while (<>)
{
if (/^Index: (.*)/)
{
$full = $1;
print;
for (1..7)
{
$_ = <>;
s/ [^\t]+\t/ $full\t/;
print;
}
}
else
{
print;
}
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] how to apply the patches for i386
2000-11-29 10:53 Fabrice Gautier
@ 2000-11-29 12:33 ` Jonathan Larmour
2000-11-29 13:56 ` Gary Thomas
1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Larmour @ 2000-11-29 12:33 UTC (permalink / raw)
To: Fabrice Gautier; +Cc: 'niky', ecos-discuss
Fabrice Gautier wrote:
>
> You're right the filenames are wrong, (it's because the eCos cvs server is
> old and broken.) Someone from cygnus (Jifl?) sent a perl script to correct
> the paths in their patch. It should be in the archives.
Attached.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault
#! /usr/bin/perl -wi
# From: Jason Merrill <jason@cygnus.com>
# Date: 07 Dec 1997 01:29:36 -0800
#
# When I do a cvs diff, I always pass the output through this script, which
# copies the filename from the Index line into the patch itself.
while (<>)
{
if (/^Index: (.*)/)
{
$full = $1;
print;
for (1..7)
{
$_ = <>;
s/ [^\t]+\t/ $full\t/;
print;
}
}
else
{
print;
}
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [ECOS] how to apply the patches for i386
@ 2000-11-29 10:53 Fabrice Gautier
2000-11-29 12:33 ` Jonathan Larmour
2000-11-29 13:56 ` Gary Thomas
0 siblings, 2 replies; 5+ messages in thread
From: Fabrice Gautier @ 2000-11-29 10:53 UTC (permalink / raw)
To: 'niky', ecos-discuss
Hi,
You're right the filenames are wrong, (it's because the eCos cvs server is
old and broken.) Someone from cygnus (Jifl?) sent a perl script to correct
the paths in their patch. It should be in the archives.
> -----Original Message-----
> From: niky [ mailto:b4506051@csie.ntu.edu.tw ]
> Subject: [ECOS] how to apply the patches for i386
>
> can't find file to patch at input line 9
> Perhaps you should have used the -p or --strip option?
> The text leading up to this was:
> --------------------------
> |? hal/i386/pc/current/include/plf_io.h
> |Index: hal/i386/arch/current/include/basetype.h
> |===================================================================
> |RCS file:
> /cvs/ecos/ecos/packages/hal/i386/arch/current/include/basetype.h,v
> |retrieving revision 1.7
> |diff -u -w -b -B -r1.7 basetype.h
> |--- basetype.h 2000/09/05 15:44:11 1.7
> |+++ basetype.h 2000/11/02 20:50:30
> --------------------------
> File to patch:
>
> it could not find the file basetype.h, but
> hal/i386/arch/current/include/basetype.h really exists.
> Patch finds the basetype.h according to Index, doesnt it ?
> How could I apply the patch ?
> Thanks for your help!
--
Fabrice Gautier
fabrice_gautier@sdesigns.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-11-29 13:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-28 23:11 [ECOS] how to apply the patches for i386 niky
2000-11-29 9:01 ` Jonathan Larmour
2000-11-29 10:53 Fabrice Gautier
2000-11-29 12:33 ` Jonathan Larmour
2000-11-29 13:56 ` Gary Thomas
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).