cygwin and applying patches
Joel Sherrill
joel.sherrill at OARcorp.com
Tue Sep 19 21:57:34 UTC 2000
Rosimildo da Silva wrote:
>
> From: Joel Sherrill <joel.sherrill at OARcorp.com>
> To: <rtems-users at OARcorp.com>
> Sent: Tuesday, September 19, 2000 3:17 PM
> Subject: cygwin and applying patches
>
> >
> > What's the trick? :)
> >
> >
> > Does it work at all? I can't seem to make it work. The patch
> > is rejected with the .orig file being OK but the newly written
> > file has DOS-style CR/LF's and the reject has CR/LF's.
> >
> > I have clobbered the cygwin installation and am using a relatively
> > recent (downloaded 8/20) download of Net Cygwin.
> >
> > Sugestions appreciated.
> >
>
> tr -d '\r' < your_patch_here.patch | patch -p1
>
> The patch utility under Cygwin 1.1.x is broken big time. It cores dump
> on many patches. Use the "tr" utility with any patch.
Thanks. This means we can't use the %patch rule in RPM on cygwin
which also means that Cygwin can't use the same specs as Linux
and Solaris. Thus we will have to stoop to something like this:
%ifos cygwin
echo Using Cygwin specific patch rule
%else
%patch...
%endif
I wonder how RPM worked at all with my old B20
Cygwin installation. :(
> Rosimildo.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list