From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41685 invoked by alias); 30 May 2015 06:01:24 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 41667 invoked by uid 89); 30 May 2015 06:01:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-in-10.arcor-online.net Received: from mail-in-10.arcor-online.net (HELO mail-in-10.arcor-online.net) (151.189.21.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Sat, 30 May 2015 06:01:21 +0000 Received: from mail-in-10-z2.arcor-online.net (mail-in-10-z2.arcor-online.net [151.189.8.27]) by mx.arcor.de (Postfix) with ESMTP id 3lzBwF4yRmzQPqt for ; Sat, 30 May 2015 08:01:17 +0200 (CEST) Received: from mail-in-15.arcor-online.net (mail-in-15.arcor-online.net [151.189.21.55]) by mail-in-10-z2.arcor-online.net (Postfix) with ESMTP id A755D28B2A7 for ; Sat, 30 May 2015 08:01:17 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-15.arcor-online.net 3lzBwF41FHzFB4g Received: from Gertrud (p54B47BD4.dip0.t-ipconnect.de [84.180.123.212]) (Authenticated sender: stromeko@arcor.de) by mail-in-15.arcor-online.net (Postfix) with ESMTPSA id 3lzBwF41FHzFB4g for ; Sat, 30 May 2015 08:01:17 +0200 (CEST) From: Achim Gratz To: cygwin-apps@cygwin.com Subject: Re: [Attn Maintainer] octave References: <87bnh3dw92.fsf@Rainer.invalid> <556946DF.3070502@gmail.com> Date: Sat, 30 May 2015 06:01:00 -0000 In-Reply-To: <556946DF.3070502@gmail.com> (Marco Atzeri's message of "Sat, 30 May 2015 07:13:03 +0200") Message-ID: <87d21i4n9y.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2015-05/txt/msg00083.txt.bz2 Marco Atzeri writes: > /usr/share/octave/site/m/startup/octaverc is updating > "/usr/share/octave/packages" > if any subdirectory under "/usr/share/octave/" has been added > or removed, to update the octave package database. > > Why do you see actions under "/usr/lib" ? I simply remembered wrong. > See note on: > https://sourceware.org/ml/cygwin-announce/2014-08/msg00033.html In any case, making a whole directory mode 666 on a server isn't going to fly. >> Could you please remove that code and put the update into a post-install >> script? > > It is build as such as a normal post-install script will not work. TeXLive had the same problem, that's one of the reasons perpetual postinstall scripts were introduced. You can look at that to see how Ken deals with that. > I will look if I can find a mechanism that allow a common approach for > the 50s octave-* packages. > > In the past these problems make another solution impossible: > > - the script must run octave and due to octave lib dependency a fork > failures on 32bit was almost guarantee. This is not a problem anymore since your postinstall action will be run after autorebase. > - the script must run for any postinstall - postremove of any > octave-* (forge packages). So > 1) it will be heavy to run it 50 times, it must be a common one. No, you just place a trigger that is then collected by the perpetual postinstall. > 2) we have no post remove. With perpetual post-install, pre-remove is working just as well as long as octave itself is installed. > 3) If also octave is removed the post remove must not run. In this case the perpetual postinstall script is also removed, so whether the trigger is or isn't there makes no difference. > - /usr/share/octave/packages does not exist if the database is empty > so I can not change its permission in the postinstall phase before > its creation. Why is that? Just because cygport by default removes empty directories? Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs