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:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=eX8Uy OoHqcSWVgOJDHNdqfgm+LWGrhw8bW+pTOcwJvVETBWEHBSu1wPoMmIIw5eW+JhMN PhB+iv+amuOqBub+zJTSI48r7gdW0ALdygWkEHssHBPCu434NJRjDVpRCeD6amp1 sw+gVgDbo/hLKOI/IcfJ9/KlmU6tG0if62YFoI= 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:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=RE+ldFAJlia L5E45xoju/kW73Ts=; b=CPQwEDEOn+s/Xv6jQLuatoorDyqDLSFvbCcrOjaG91m 5zyCen+vWHxB5cO7fL8M7xB1Vi0uAKnUkPkzKamYOD7UvflzN6BlGufq8AgmqeUB sq/pRD0400kVKmuQNb/mD7aa2Jp9ZsUeakV7rIzkZt05S/RScCQIUI1r3ATIM1SE = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Emacs, emacs, H*i:sk:56FFD48, H*f:sk:56FFD48 X-HELO: mail-in-06.arcor-online.net X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-17.arcor-online.net 3qchCL6zmHzZFd From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: How to install a custom permanent postinstall handler? References: <838469265 DOT 20160401235308 AT yandex DOT ru> <87a8lcicxg DOT fsf AT Rainer DOT invalid> <56FFD48C DOT 4000802 AT redhat DOT com> Date: Sat, 02 Apr 2016 16:56:14 +0200 In-Reply-To: <56FFD48C.4000802@redhat.com> (Eric Blake's message of "Sat, 2 Apr 2016 08:17:48 -0600") Message-ID: <871t6ohxf5.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Eric Blake writes: > Since I maintain both dash and bash, I'm game for setting up /bin/sh as > an alternative. However, I've never targeted the alternatives system > before as a package maintainer; any advice on docs or an example that I > could copy from? I would probably make the defaults give bash higher > priority over dash, but with the alternatives in place, it would be easy > for a local user to swap the priorities on their system; I'd probably > also want to provide a convenience script to make swapping default sh an > easier task than users having to actually call directly into the > alternatives system. You could look at Emacs. It has all the components you ask about for making either emacs-nox, emacs-w32 or emacs-x11 the default (only the latter two have helper scripts). man alternatives The alternatives package is currently orphaned and should probably get an update to use hardlinks or copies for DLL, then it would become usable for switching between BLAS/LAPACK implementations. I have that on my list of things to update for some time now, but if somebody beats me to it I would not complain (it's in the utils directory for Debian dpkg if you're wondering). 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 -- 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