Hello,
Just wondering if anybody knows why solaris patch refuses to process the bdb 4.7 patch files, where the patch command on linux works perfectly.
Ie: on solaris :
patch -p0 <patch.4.7.25.1 Looks like a context diff to me... Hunk #1 failed at line 187. Hunk #3 failed at line 296. 2 out of 4 hunks failed: saving rejects to sequence/sequence.c.rej done
Works fine on a linux machine ?
Have tried patch 2.5.9 built from soruce on gnu.org, this fails also.
(i usually end up patching on linux, and then copying the patched tarball back to solaris.. but just wondering?)
Cheers Brett
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Brett @Google wrote:
Hello,
Just wondering if anybody knows why solaris patch refuses to process the bdb 4.7 patch files, where the patch command on linux works perfectly.
Ie: on solaris :
patch -p0 <patch.4.7.25.1 Looks like a context diff to me... Hunk #1 failed at line 187. Hunk #3 failed at line 296. 2 out of 4 hunks failed: saving rejects to sequence/sequence.c.rej done
Works fine on a linux machine ?
We use --ignore-whitespace on FreeBSD ports (databases/db47) which solved this problem. Another solution would be to convert the patch to an Unix file :)
Cheers, - -- Xin LI delphij@delphij.net http://www.delphij.net/ FreeBSD - The Power to Serve!
On Thu, Jun 11, 2009 at 4:03 PM, Xin LI delphij@delphij.net wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Brett @Google wrote:
Hello,
Just wondering if anybody knows why solaris patch refuses to process the bdb 4.7 patch files, where the patch command on linux works perfectly.
Ie: on solaris :
patch -p0 <patch.4.7.25.1 Looks like a context diff to me... Hunk #1 failed at line 187. Hunk #3 failed at line 296. 2 out of 4 hunks failed: saving rejects to sequence/sequence.c.rej done
Works fine on a linux machine ?
We use --ignore-whitespace on FreeBSD ports (databases/db47) which solved this problem. Another solution would be to convert the patch to an Unix file :)
Yes this was the problem, ran the patch through dos2unix, and the patch applied ok.
Firefox (in Windows) transparently changed to native line encoding when it was being saved.
I suspect that some versions of Linux "patch" with automatically convert linefeeds.
Cheers Brett
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Brett @Google wrote:
I suspect that some versions of Linux "patch" with automatically convert linefeeds.
Could you tell me the distribution you are using? I'm interested in implementing similar feature in our patch utility...
Cheers, - -- Xin LI delphij@delphij.net http://www.delphij.net/ FreeBSD - The Power to Serve!
On Thu, Jun 11, 2009 at 5:06 PM, Xin LI delphij@delphij.net wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Brett @Google wrote:
I suspect that some versions of Linux "patch" with automatically convert linefeeds.
Could you tell me the distribution you are using? I'm interested in implementing similar feature in our patch utility...
core problem was that i was using solaris "patch", if i'd used solaris "gpatch" it automatically strips trailing CRs, ie :
gpatch -p 0 <~/patch.4.7.25.1 (Stripping trailing CRs from patch.)
Presently running on solaris10 / sparc, can't test linux at work, but that would be using the gnu patch.
Solaris /usr/bin/gpatch has emits version info :
patch 2.5.4 Copyright 1984-1988 Larry Wall Copyright 1989-1999 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of this program under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING.
written by Larry Wall and Paul Eggert
Cheers Brett
Hy,
Under Solaris 10, I am using gpatch instead of patch. And it works.
Best Regards,
Adrien Futschik
Hello,
Just wondering if anybody knows why solaris patch refuses to process the bdb 4.7 patch files, where the patch command on linux works perfectly.
Ie: on solaris :
patch -p0 <patch.4.7.25.1 Looks like a context diff to me... Hunk #1 failed at line 187. Hunk #3 failed at line 296. 2 out of 4 hunks failed: saving rejects to sequence/sequence.c.rej done
Works fine on a linux machine ?
Have tried patch 2.5.9 built from soruce on gnu.org, this fails also.
(i usually end up patching on linux, and then copying the patched tarball back to solaris.. but just wondering?)
Cheers Brett
Brett @Google wrote:
Hello,
Just wondering if anybody knows why solaris patch refuses to process the bdb 4.7 patch files, where the patch command on linux works perfectly.
Ie: on solaris :
patch -p0 <patch.4.7.25.1 Looks like a context diff to me... Hunk #1 failed at line 187. Hunk #3 failed at line 296. 2 out of 4 hunks failed: saving rejects to sequence/sequence.c.rej done
Looks like you're using Solaris' old patch, which doesn't understand unified diffs. You need a recent GNU patch...
Works fine on a linux machine ?
Have tried patch 2.5.9 built from soruce on gnu.org http://gnu.org, this fails also.
(i usually end up patching on linux, and then copying the patched tarball back to solaris.. but just wondering?)
Cheers Brett
openldap-technical@openldap.org