X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <49CB80A8.8090809@cwilson.fastmail.fm> Date: Thu, 26 Mar 2009 09:18:32 -0400 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: /etc/alternatives was RE: [Re: GCC 4 installation problem] References: <49CA8243 DOT 2090908 AT encelade DOT com> <49CA90D2 DOT 9080809 AT gmail DOT com> <5E25AF06EFB9EA4A87C19BC98F5C875302E759AB AT core-email DOT int DOT ascribe DOT com> In-Reply-To: <5E25AF06EFB9EA4A87C19BC98F5C875302E759AB@core-email.int.ascribe.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 Phil Betts wrote: > For the first problem, I think it would help avoid installation problems > if the directory contained a simple README file explaining how to > properly maintain the links, and why manually changing them is a bad > idea. To avoid looking like just another link, and thus getting > overlooked, I think this should be a real file, rather than a symlink > to the README in the doc directory. Maybe Chuck could add this to the > cygwin alternatives package, or perhaps he would prefer the upstream > chkconfig maintainer to consider it. That's a good suggestion; I'll do that when I roll out the next alternatives update (which should be sometime before 1.7 goes live). > For the second problem, perhaps it would also help if the names of the > links in the alternatives directory were a hash of the program name. > E.g. > /usr/bin/gs -> /etc/alternatives/9ad6a289eea9c92be09d3a5a8bc737e6 > /etc/alternatives/9ad6a289eea9c92be09d3a5a8bc737e6 -> /usr/bin/gs-x11 > where 9ad6a289eea9c92be09d3a5a8bc737e6 is the md5sum of "/usr/bin/gs". > This would make it much more obvious that the links were managed, or > at least give one pause for thought before diving in. But this...no. At least, not specifically for the cygwin port; I don't want enlarge the cygwin differences from mainline chkconfig even more. Besides, the upgrade issues would be horrendous. OTOH, if you can convince the upstream chkconfig package to make that change, then we'll pick it up eventually. chkconfig is a Red Hat tool, and at last investigation builds specifically and only on Fedora/RHE without modification (maybe other linuxes, but it isn't autotooled IIRC). So, cygwin's port is based off of this one: http://www.fastcoder.net/software/chkconfig/ The only differences (other than the autoconf nature, and the use of getopt_long rather than popt -- both pluses, as far as I am concerned) between fastcoder version 1.3.30c and Fedora 8 version 1.3.36 are (a) translations (b) the alternatives man page and (c) some behavioral changes in the chkconfig prog. Neither (a) nor (c) matter to cygwin's alternatives package, so I'm happy to stick with the fastcoder version. -- Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/