Mail Archives: djgpp/1997/03/06/06:31:15
From: | Andy Eskilsson <x-aes AT telelogic DOT se>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Weird patch and redir problems.. Patch doesn't want to patch :-(
|
Date: | 06 Mar 1997 11:08:13 +0100
|
Organization: | Telelogic AB, Sweden
|
Lines: | 130
|
Sender: | x-aes AT vega
|
Message-ID: | <kswwrl9vua.fsf@telelogic.se>
|
Reply-To: | x-aes AT telelogic DOT se
|
NNTP-Posting-Host: | vega.telelogic.se
|
Mime-Version: | 1.0 (generated by tm-edit 7.101)
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
--Multipart_Thu_Mar__6_11:08:13_1997-1
Content-Type: text/plain; charset=US-ASCII
I am having some problems with patch and redir.. Lets see if I can't
make even Eli happy today ;-)
Well general.. win95 servicpack 1, .. uhm djgpp works wonderfully,
last virusscan (yesterday) found no viruses.. (mcafee scan, february
data-file.) Haven't tried it under plain dos. Tried it both under bash
and 4dos as my shell.
First of all c:\temp exists, the TMPDIR variable in djgpp.env file
points there. At the start it is empty except for the tmp-subdir.
/Andy
** Patch weirdness ********************
d:\tst>patch -p2 < diffs-t6
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- port/bash-1.14.7/mm Mon Dec 30 18:29:38 1996
|+++ tmp/bash-1.14.7/mm Sat Mar 1 21:39:50 1997
--------------------------
Patching file mm using Plan A...
Hunk #1 succeeded at 1.
Can't backup mm, output is in c:/temp/poaaaaaa: No such file or directory (ENOENT)
done
d:\tst>dir c:\temp
Volume in drive C is ANDYS C Serial number is 1C73:8081
Directory of C:\temp\*
7-05-96 18:22 <DIR> .
7-05-96 18:22 <DIR> ..
2-22-97 13:20 <DIR> tmp
3-05-97 22:54 369 poaaaaaa
3-05-97 22:54 647 ppdaaaaa
1,016 bytes in 2 files and 3 dirs 16,384 bytes allocated
84,484,096 bytes free
Hmm the files above seems to contain the information I am looking
for.. (the files patched)
** PATCH + REDIR weirdness ********************
Ok. lets try some magic..
d:\tst>redir -eo patch -p2 < diffs-t6 > outfile
d:\tst>cat diffs-t6 | redir -eo patch -p2 > outfile
Tells me tht 4dos has performed an illegal operation and will be
terminated.. unspecified exception, fault location 0000:00E.
d:\tst>cat diffs-t6 | redir -eo patch -p2
Just closes the window..
And I have a outputfile with lengt 0
Trying redir for other purposes..
d:\tst>redir -eo gcc --version
2.7.2.1
Works..
** Versions ********************
d:/tst: ls -l h:/djgpp/bin/patch.exe
-rwxr-xr-x 1 flognat dos 117248 Oct 19 11:28 h:/djgpp/bin/patch.exe*
No more patch.exe found in the vicinity..
d:/tst: ls -l h:/djgpp/bin/redir.exe
-rwxr-xr-x 1 flognat dos 60416 Jan 13 22:08 h:/djgpp/bin/redir.exe*
^^^^^^^^^^^^ hmm weird date, but
the size is the same as
at delories site..
Uhm oh.. my go32.v2 sayz..
go32/v2 version 2.0 built Aug 12 1996 22:27:23
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as
well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH
but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.
DPMI memory available: 14947 Kb
DPMI swap space available: 3777 Kb
** Demo files ********************
And now.. gentlemen here comes some example code, the mm, and diff6-t6
file.
--Multipart_Thu_Mar__6_11:08:13_1997-1
Content-Type: application/zip
Content-Disposition: attachment; filename="weirdpatch.zip"
Content-Transfer-Encoding: x-uue
begin 666 weirdpatch.zip
M4$L#!!0 ( ).Z92(O52-^EP$ (<" ( 9&EF9G,M=#9M46%KVS 4
M_+Q _L/--62;*WM.VK4.&)*HZ2C8;5E:QJ"0RK(:B]F6D=6N AT _[XRLF2=&,@
MH=/3NWOW] @A:)0V0<;:@H1^>.2?!%7U+E4US AT 3'Z#/"T_$P&H].$4;1EW[/
M\SR8JOF7L& &*=- B&$X'D7C8\N,HI-^;S(!"0^/X(6'X0B32;^'@_=!)NN@
M+?H]4K&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