www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/01/03/07:36:02

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Message-ID: <099801c19453$381a2b00$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Jan Nieuwenhuizen" <janneke AT gnu DOT org>
Cc: <cygwin-apps AT sources DOT redhat DOT com>
References: <m3bshtmxhb DOT fsf AT appel DOT lilypond DOT org><878764062 DOT 20011128173421 AT nyckelpiga DOT de><m37ks9lgxi DOT fsf AT appel DOT lilypond DOT org><4434079433 DOT 20011129221637 AT familiehaase DOT de><m3oflgy98n DOT fsf AT appel DOT lilypond DOT org><9517228633 DOT 20011203135833 AT familiehaase DOT de><m3lmgkwgeu DOT fsf AT appel DOT lilypond DOT org> <3C0D8535 DOT D67735D1 AT ece DOT gatech DOT edu><m33d2pam3l DOT fsf AT appel DOT lilypond DOT org><00d501c17d93$1936c990$0200a8c0 AT lifelesswks><m3zo4x7obb DOT fsf AT appel DOT lilypond DOT org><m38zcdssxd DOT fsf AT appel DOT lilypond DOT org><01a801c18036$3d447350$0200a8c0 AT lifelesswks><m3itbhqowz DOT fsf AT appel DOT lilypond DOT org><027001c18040$c91651f0$0200a8c0 AT lifelesswks><m3wuzth3l1 DOT fsf AT appel DOT lilypond DOT org><04db01c18302$e66cae60$0200a8c0 AT lifelesswks><m3667ax540 DOT fsf AT appel DOT lilypond DOT org><105201c18604$ea001670$0200a8c0 AT lifelesswks><m366779lms DOT fsf AT appel DOT lilypond DOT org><m3pu4s73f2 DOT fsf AT appel DOT lilypond DOT org><097401c1944b$de1aa230$0200a8c0 AT lifelesswks> <m3ell7pr6b DOT fsf AT appel DOT lilypond DOT org>
Subject: Re: setup.exe remove scripts [Was: Re: experimental texmf packages]
Date: Thu, 3 Jan 2002 23:36:07 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-OriginalArrivalTime: 03 Jan 2002 12:35:58.0413 (UTC) FILETIME=[31F08FD0:01C19453]

Redirected to cygwin-apps.

----- Original Message -----
From: "Jan Nieuwenhuizen" <janneke AT gnu DOT org>
Sent: Thursday, January 03, 2002 11:14 PM
Subject: Re: setup.exe remove scripts [Was: Re: experimental texmf
packages]


> "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au> writes:
>
> > Right, this is now in CVS> Sorry about the muckup.
>
> Ok, thanks, it's there.
>
> How should errors in postinstall scripts be handled?  It is tempting
> to replace
>
>     postinstall.cc:
>     find (cygpath ("/etc/postinstall", 0),
run_script_in_etc_postinstall);
>
> with something vaguely like
>
>    for (size_t n = 1; n <= db.packages.number (); n++)
>      if (try_run_script ("/etc/postinstall/", name))
>        warning ("postinstall of %s failed"
>                 "please examine or rerun /etc/postinstall/%s.sh
manually",
>                 name, name));
>
> But, afaik, there's no need for a package's postinstall script to be
> called '<pkg->name>.sh'?  Should/can we enforce something like this?

We could, but there is a more general way that is more flexible and
equally  effective:

The extraction process should note special files (ie anything in
/etc/postinstall) and associate that with the package object. This
solves postinstall script name guessing, and persistent storage of the
same solves removal script naming guesswork. As package files are
currently stored in gzipped flat file format, you can achieve the same
result for removal scripts by parsing the package file list.

Long term: This whole process need to be encapsulated in objects, and
then converted to a database (preferrable dpkg or rpm compatible).

Rob

- Raw text -


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