delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/14/13:28:06

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=HtJp/1Lly8Z6WQTCePFWckxKJKdg
vJeLw9Kpy2ImeWGGJOOgxjoGhmSDT9tgVQluAgQV6Avs1dM8rhdzVOcstDnXPVVX
mQ/jYo00I3Ajpb2J9XFCMwy+tqMkKDbzbbGM2F6VV8k6CkO4HPLaUY4zIEvVYS3p
E9VvUs2J44tWX7E=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; s=default; bh=oSWOUJehM3eKSaH1N3UxlwKqnsk=; b=Yg
E1s+qMmszCN9ck7rT4oAyyqYHmN2xYiahguSs/lkV1w1Pw89DopMyXxkDCi62g62
Om7YMiSUXg2O6InplW8YKuHwQlTEAvEXyPeNIE2F9t6kSNVpvIsPf1cSJ3bnhKw2
Uenn38LXbFAyQ0NtArrQuk15IjeUNOQwgJw9WCSrs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: etr-usa.com
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Subject: Re: How to correctly rebase?
From: Warren Young <wyml AT etr-usa DOT com>
In-Reply-To: <22046.25592.311399.765933@woitok.gmail.com>
Date: Wed, 14 Oct 2015 11:27:46 -0600
Message-Id: <8925F252-F479-4990-B568-1EC612DF39A5@etr-usa.com>
References: <22046 DOT 25592 DOT 311399 DOT 765933 AT woitok DOT gmail DOT com>
To: cygwin AT cygwin DOT com, Rainer DOT Woitok AT Gmail DOT Com
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t9EHS1gG008079

On Oct 14, 2015, at 8:17 AM, Dr Rainer Woitok <rainer DOT woitok AT gmail DOT com> wrote:
> 
> telling me to place the list of absolute paths  of my personal DLLs into
> /var/lib/rebase/user.d/Rainer”

It doesn’t actually care what the file is called.  I expect the only reason the docs tell you to name it that way is in case there are multiple users on the system, they’re all running from a common Cygwin installation, and each may have their own set of customizations.

> to run  "rebase-trigger fullrebase" (it
> didn't advice to run this from a privileged account, but I found out my-
> self)

I don’t see that it’s a foregone conclusion that admin privs are required for that step.  The file that script creates could be in a user-writeable directory.  Nevertheless, the maintainer of that doc file probably should consider mentioning the possibility.

While investigating this, I found that the rebase mechanism isn’t as robust as it should be.

The core problem I ran into is that /var/cache/rebase and /var/lib/rebase/*.d didn’t exist on my system, and this caused various complaints and failures.  I propose that the _autorebase maintainer add those directories to the package, so they’re always available.

/var/cache/rebase is the critical one: without it, the rebase-trigger script can’t set the trigger, so the rebasing will never happen.  The lack of the others just causes nonfatal complaints.

To do it by hand, start Dash with admin privs as you did before — this next bit really does require admin — then type:

    /etc/postinstall/0p_*

If it gives errors other than ones about missing /var/lib/rebase/*.d directories, post them here, or fix them.  Once I fixed all the errors I got here, full autorebasing via setup.exe started working again.

(Which makes me wonder how it got broken, since the Windows VM I tested this on isn’t used heavily, and was created not all that long ago.)

> After doing so, I rebooted and tested again

You should not have to reboot.  If you do, it means you’re ignoring complaints from setup.exe about files being in use during the installation, which could be part of the problem.

Shut down *everything* linked to cygwin1.dll, however indirectly, while setup.exe and the rebasing processes run.

> PS: Please also reply by personal mail to me,  as I am not subscribed to
> this mailing list.

You expect direct personal consultation?  My fee for that is $100/hr, and you’ve chewed up one hour already.  Where shall I send the bill? :)

If you want free community help, you are expected to participate in the community.  I’m Cc’ing you directly on this one just as a courtesy.
--
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