delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/16/12:05:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <502D1967.7090705@etr-usa.com>
Date: Thu, 16 Aug 2012 10:01:43 -0600
From: Warren Young <warren AT etr-usa DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Promote sqlite 3.7.13-1 from test status?
References: <announce DOT 5029275C DOT 4040009 AT etr-usa DOT com> <502C0B7D DOT 10909 AT etr-usa DOT com> <loom DOT 20120816T092134-266 AT post DOT gmane DOT org> <20120816085016 DOT GB5536 AT calimero DOT vinschen DOT de> <502CCBB1 DOT 2070600 AT etr-usa DOT com> <20120816105507 DOT GD17546 AT calimero DOT vinschen DOT de> <502CE120 DOT 4050900 AT etr-usa DOT com> <20120816122654 DOT GG17546 AT calimero DOT vinschen DOT de>
In-Reply-To: <20120816122654.GG17546@calimero.vinschen.de>
X-IsSubscribed: yes
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

On 8/16/2012 6:26 AM, Corinna Vinschen wrote:
> On Aug 16 06:01, Warren Young wrote:
>>
>> This recent wish for SQLite on Cygwin to act more Unix-like is the
>> first such request I've received, and I don't remember it being an
>> issue with the previous maintainer, either.
>
> Maybe the reason is because subversion didn't use SQLite before?

That's mere happenstance.  There's nothing special about Subversion in 
this regard.  It could have happened with any other pair of SQLite based 
programs.  The fact that it hasn't until now means the DITCW principle 
isn't buying us much in this case.

Understand Corinna, I see your point, and Achim's.  Remember that I 
accepted Achim's patch and released 3.7.12.1-1 including it.  Making 
Cygwin SQLite behave in a POSIXy way feels right.  But, given that the 
new locking behavior causes actual people actual problems, purity alone 
isn't looking like such a good reason to keep the new behavior.

If we discard purity as a reason to do this, all we're left with is the 
actual problem brought up by one person (Achim) in N years.  We can't 
solve that problem without causing problems for many others.

> This behaviour breaks concurrency with other Cygwin executables
> using POSIX calls for file locking.

I agree, in principle, the 3.7.3/13-1 locking behavior is Wrong (tm).

In practice, it breaks *one person's* program, while allowing many 
others' programs to work correctly.

It's not like I've refused to even try the pure path.  I did try it. 
Now that the experiment's been run and I want to revert that change, 
returning to the way it's been for *years*, you want me to keep the 
problematic change, and thus keep the problems.  Why would I?

If you're feeling adamant about this issue, you should take this 
package's maintainership away from me, and give it to someone who will 
do it the way you want.

Seriously.  No bluff, no rancor.  I already tried to persuade Achim to 
take over maintanership, since it seemed he cared a lot more about the 
Cygwin SQLite package than me.  He chose not to accept, but maybe he's 
still persuadable.

>> Advisory locking only works when all players cooperate.  We can't
>> assume that on Windows, unless we set up an insular Cygwin ghetto.
>
> So, are you saying that Cygwin should use mandatory file locking?

In a situation like this, you have three choices:

1. Use mandatory locking in the Cygwin program.  Ugly, but useful work 
gets done.

2. Tell all users of the Cygwin program to stop using the native Windows 
program or switch to a Cygwin alternative.  This is a bad choice as a 
rule, since it tells the world Cygwin doesn't play well with others. 
It's worse in this case due to N years of the Cygwin program playing 
well with the Windows program.  Additionally, there is no GUI Subversion 
client in the Cygwin package repo.

3. Tell all users of the native Windows program to stop using the Cygwin 
program.  Again, it says Cygwin doesn't play well with others.

I suppose there's a fourth choice, where everyone refuses to budge and 
you get Palestine.  But, that's not going to happen here, because I've 
already told you you can take the West Bank if you want it.

> Stop right here.  If the compatibility with native WIndows tools is more
> important than the compatibility with POSIX and CYgwin POSIX tools with
> each other, then why do we bother at all to implement POSIX calls in the
> most POSIXy or Linuxy way possible?

In principle, yes, you're right.  But that's the problem with rigid 
principles: there are always specific breakdown cases where the 
principle causes more harm than good.  This is one of those cases.

--
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