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

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 29 Mar 2012 10:03:15 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] New package: _autorebase. Call rebaseall after installing new or updated DLLs
Message-ID: <20120329080315.GZ30721@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <announce DOT 20120327153750 DOT GM30721 AT calimero DOT vinschen DOT de> <87fwcslaa6 DOT fsf AT Rainer DOT invalid>
MIME-Version: 1.0
In-Reply-To: <87fwcslaa6.fsf@Rainer.invalid>
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 Mar 28 22:50, Achim Gratz wrote:
> Corinna Vinschen writes:
> > I've added a new package called _autorebase to the Cygwin distro.
> >
> > This package is usually installed and updated automatically.  In the
> > default view of setup.exe you won't even see it.
> 
> Thank you very much (even though I'd just added the same functionality
> to my setup batch script).
> 
> Minor nit: rebaseall picks up a file with the suffix ".osc" in the texmf
> tree that isn't actually a DLL.

Sure?  Have a look into the rebaseall script:

  DefaultSuffixes='dll|so|oct'
  [...]
  Suffixes="${DefaultSuffixes}"
  [...]
  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' \
	    -e '/sys-root\/mingw/d' -e 's/^/\//' \
	    -e '/d?ash\.exe$/d' -e '/rebase\.exe$/d' >"${TmpFile}"
      ;;

I don't see how it should be able to pick up a file with the suffix .osc.

> 
> > The purpose of this package is to run rebaseall automatically after any
> > package containing DLLs is updated.
> 
> How is that supposed to work, exactly?  There seems to be only a single
> package having _autorebase as a dependency and the _autorebase.bat file
> has been renamed .done after the first installation.

You were using a not quite up-to-date mirror.  THis should be fixed
in the meantime.

_autorebase has a setup.hint file which results in adding itself to
the dependencies for all packages which come with files having the
suffix .dll, .sl, and .oct.  The problem was that the "upset" script
creating the setup.ini file only checks dependencies for newly uploaded
or update packages.  So at first, _autorebase was only added as a
dependency to the only updated package python-crypto.  But when we
realized it, cgf started the upset script from scratch, which is quite
a job and takes a couple of hours.  When I looked yesterday morning
(CEST), lots of dependencies to _autorebase have been added to setup.ini.

But, hmm, looks like there are still dependencies missing.  I don't see 
dependencies to _autorebase in a lot of "lib" packages, like libgcc1,
or libopenssl100.

> Also, I think it would be nicer in the long run to have an
> /etc/autorebase.d/ that can be used to drop DLL lists in there that work
> together with the "-T" option of rebase.  That way, packages would
> ultimately become responsible for listing their rebaseable files and
> users (administrators) could drop list with additional DLL that got
> installed without setup.exe.  As long as packages haven't been updated
> to provide those lists, the names could be extracted from /etc/setup,
> like they are currently (I think).

Feel free to participate in further development of the rebase tool.
Patches for useful functionality is always welcome.  The right forum is
the cygwin-apps list.


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