This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygwin installer v2.774, lyx postinstall error


During and upgrade, an error was receivedfrom postinstall lyx
processing.  The postinstall processing call is
"/etc/postinstall/lyx.sh" - it should be
"/etc/postinstall/lyx.sh/lyx.sh" (or better yet change the directory
name of "lyx.sh" to "lyx").


Extracted from /var/log/setup.log.full:

2013/01/07 14:12:00 Starting cygwin install, version 2.774
.
.
<snip>
.
.
warning: Schema 'org.gnome.system.proxy.socks' has path
'/system/proxy/socks/'.  Paths starting with '/apps/', '/desktop/' or
'/system/' are deprecated.
2013/01/07 14:21:18 running: C:\cygwin\bin\bash.exe --norc --noprofile
"/etc/postinstall/gvim.sh"
gtk-update-icon-cache: Cache file created successfully.
2013/01/07 14:21:25 running: C:\cygwin\bin\bash.exe --norc --noprofile
"/etc/postinstall/vim-common.sh"
2013/01/07 14:21:25 running: C:\cygwin\bin\bash.exe --norc --noprofile
"/etc/postinstall/lyx.sh"
/etc/postinstall/lyx.sh: /etc/postinstall/lyx.sh: is a directory
2013/01/07 14:21:25 abnormal exit: exit code=126
2013/01/07 14:21:25 Changing gid to Administrators
2013/01/07 14:51:28 note: Installation Complete
2013/01/07 14:51:28 Ending cygwin install



In directory /etc/postinstall/lyx.sh is a single file named lyx.sh

The contents for /etc/postinstall/lyx.sh/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


The error has no affect if one does not have a "local.conf" font file.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]