X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,RDNS_NONE,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <50ECB7DA.8060608@timcollins.com>
Date: Tue, 08 Jan 2013 16:20:42 -0800
From: Tim Collins <cygwin_forum_13@timcollins.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Cygwin installer v2.774, lyx postinstall error
References: <50EBC161.6000007@timcollins.com> <50EBC3D5.3030008@gmail.com>
In-Reply-To: <50EBC3D5.3030008@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 1/7/2013 10:59 PM, marco atzeri wrote:
> On 1/8/2013 7:49 AM, Tim Collins wrote:
>> Marco,
>>
>> The package is lyx not lynx.
>>
>> $ cygcheck -l lyx | grep etc
>> /etc/postinstall/lyx.sh/lyx.sh
>>
> 
> 
> sorry, than it is a package mistake
> 
> Mon Jun 14 02:22:31 2010              0 etc/postinstall/
> Mon Jun 14 02:23:03 2010              0 etc/postinstall/lyx.sh/
> Thu Sep 28 03:08:48 2006            440 etc/postinstall/lyx.sh/lyx.sh

I'm a long time user of cygwin, but have not participated in development
and thus unfamiliar with  "general package ownership" or "how to fix".

This seems like it would be easy to fix so others don't have to deal
with it.  Is this something I can help fix and if yes, can you provide
an initial direction?

> 
> as workaround same suggestion
> 
> remove etc/postinstall/lyx.sh/
> move etc/postinstall/lyx.sh/lyx.sh to etc/postinstall/lyx.sh
> 
> 
My install was unaffected - it doesn't have the file that would be
manipulated: /etc/fonts/local.conf

=========== listing of lyx.sh ===========\
$ cat /etc/postinstall/lyx.sh/lyx.sh
#!/bin/sh

# Add /usr/share/lyx/fonts to /etc/fonts/local.conf
# if it is not already there.
if [ -f /etc/fonts/local.conf ]; then
    grep -q /usr/share/lyx/fonts /etc/fonts/local.conf
    if [ $? -ne 0 ]; then
        sed 's/^<\/fontconfig>/<dir>\/usr\/share\/lyx\/fonts<\/dir>
<\/fontconfig>/' /etc/fonts/local.conf > /etc/fonts/local.conf.tmp
        mv -f /etc/fonts/local.conf.tmp /etc/fonts/local.conf
        fc-cache /usr/share/lyx/fonts
    fi
fi

$

> /etc/postinstall should have no subdirectory
> 
> 
> -- 
> 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
> 
> 


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

