delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/09/13:19:21

From: "Ed Manlove" <emanlove AT ieee DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: patch and LFN support
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <KFDW8.388$Si7.357662829@news.netcarrier.net>
Date: Tue, 9 Jul 2002 11:46:48 -0400
NNTP-Posting-Host: 207.207.196.22
X-Complaints-To: news AT netcarrier DOT com
X-Trace: news.netcarrier.net 1026229994 207.207.196.22 (Tue, 09 Jul 2002 11:53:14 EDT)
NNTP-Posting-Date: Tue, 09 Jul 2002 11:53:14 EDT
Organization: NetCarrier Internet Services
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

What is the issue with the patch command and long filenames?  I did a search
on "patch" and "LFN" at http://www.delorie.com/search/ and got several hits.
But I was not able to decipher the messages or really understand at this
point in time what the status is.  I have verified I have LFN on and even
tried turning it off although I did not get far with that because of other
bash commands using LFN.  Ever thing I have tried so far fails in my bash
script. Below is the part of my build script which is performing the patch.

****************************************************** build script
cd $GCC
mv gcc/config/h8300/h8300.c gcc/config/h8300/h8300.c.orig
patch --verbose -u -i c:/djgpp/build/gcc-29~2.dif -o
gcc/config/h8300/h8300.c
mv gcc/config/h8300/h8300.h gcc/config/h8300/h8300.h.orig
patch --verbose -u -i c:/djgpp/build/gcc-29~1.dif -o
gcc/config/h8300/h8300.h
cd ..

The following are differenct version of the -i options which I have tried

patch -u -i ../gcc-2.95.2-rcx-1.diff -o gcc/config/h8300/h8300.c
patch -u -i $BUILDDIR/gcc-2.95.2-rcx-1.diff -o gcc/config/h8300/h8300.c
patch -u -i c:/djgpp/build/gcc-2.95.2-rcx-1.diff -o gcc/config/h8300/h8300.c
patch -u -i c:\djgpp\build\gcc-2.95.2-rcx-1.diff -o gcc/config/h8300/h8300.c
patch -u -i C:/DJGPP/build/GCC-29~1.DIF -o gcc/config/h8300/h8300.c
patch -u -i C:/DJGPP/build/GCC-29~2.DIF -o gcc/config/h8300/h8300.c

the later ones are the dos names and when prompt to enter a file to patch
because the script fails I can enter the exact same name and it accepts
that.  Below is the error I am receiving from my script.

****************************************************** bash output
Tue Jul 9 10:40:16 2002 GCC patch start
Hmm...  Looks like a unified diff to me...
can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|--- gcc\config\h8300\h8300.c.orig      Thu Apr  8 01:17:52 1999
|+++ gcc\config\h8300\h8300.c.orig      Wed Aug 16 16:57:10 2000
--------------------------
File to patch:

--
Ed Manlove
emanlove AT eclipse DOT net


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019