delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/03/03:52:29

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 3 May 2012 09:51:19 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [Bug] rebaseall
Message-ID: <20120503075119.GG3031@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <loom DOT 20120503T080600-849 AT post DOT gmane DOT org> <loom DOT 20120503T085009-974 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20120503T085009-974@post.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On May  3 06:59, Achim Gratz wrote:
> In addition, there should be a "picket fence" in front of those expression(s),
> too.  Otherwise they match other lines that are not supposed to be deleted (the
> DLL lines are probably safe, but could be changed defensively as well).

Sounds good to me.

Jason, I would suggest the following patch to apply to the next rebase
release, courtesy Achim:

Index: rebaseall.in
===================================================================
RCS file: /sourceware/projects/cygwin-apps-home/cvsfiles/rebase/rebaseall.in,v
retrieving revision 1.8
diff -u -p -r1.8 rebaseall.in
--- rebaseall.in	30 Apr 2012 13:37:15 -0000	1.8
+++ rebaseall.in	3 May 2012 07:47:36 -0000
@@ -202,9 +202,9 @@ case $Platform in
   cygwin)
     find /etc/setup -name '*.lst.gz' | xargs gzip -d -c |
       grep -E "\.($Suffixes)\$" |
-      sed -e '/cygwin1\.dll$/d' -e '/cyglsa.*\.dll$/d' \
+      sed -e '/\/cygwin1\.dll$/d' -e '/\/cyglsa.*\.dll$/d' \
           -e '/sys-root\/mingw/d' -e 's/^/\//' \
-          -e '/d?ash\.exe$/d' -e '/rebase\.exe$/d' >"${TmpFile}"
+          -e '/\/d\?ash\.exe$/d' -e '/\/rebase\.exe$/d' >"${TmpFile}"
       # Unconditionally add the -n flag so rebased DLLs get the
       # dynamicbase flag removed.
       NoDyn='-n'
@@ -214,9 +214,9 @@ case $Platform in
     do
       find $f -type f |
         grep -E "\.($Suffixes)\$" |
-	sed -e '/msys-1\.0.*\.dll$/d' -e '/cygwin1\.dll$/d' \
-	    -e '/cyglsa.*\.dll$/d' -e '/d?ash\.exe$/d' \
-	    -e '/rebase\.exe$/d' >>"$TmpFile"
+	sed -e '/\/msys-1\.0.*\.dll$/d' -e '/\/cygwin1\.dll$/d' \
+	    -e '/\/cyglsa.*\.dll$/d' -e '/\/d\?ash\.exe$/d' \
+	    -e '/\/rebase\.exe$/d' >>"$TmpFile"
     done
     ;;
 esac


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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