delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/24/16:34:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: Attn: gtk2-x11 maintainer - postinstall patch
Date: Tue, 24 Aug 2004 16:32:37 -0400
Message-ID: <3D848382FB72E249812901444C6BDB1D03E04E4E@exchange.timesys.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Robb, Sam" <sam DOT robb AT timesys DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i7OKYa68006680

When doing a full installation of Cygiwn on a clean machine,
setup.exe runs into an error when running the postinstall
script for gtk2-x11 as documented in the mail message:

  http://www.cygwin.com/ml/cygwin/2004-07/msg01125.html

Note that when this error message occurs, X has been installed,
but the X postinstall script(s) haven't been run yet.  As a
result, the default PATH doesn't contain /usr/X11R6/bin.

The attached patch to the gtk2-x11 postinstall script works
around the problem by explicitly setting the PATH for the
postinstall script execution.  It also changes the calls to
mkdir and chmod to use absolute paths as well, though this
probably really isn't neccesary with the PATH being set
properly.

-Samrobb

--- gtk2-x11.sh.orig    2004-07-06 12:21:39.000000000 -0400
+++ gtk2-x11.sh 2004-08-24 16:32:09.538908200 -0400
@@ -1,7 +1,9 @@
 #!/usr/bin/sh

-mkdir -p /etc/gtk-2.0
-chmod 777 /etc/gtk-2.0
+export PATH=/usr/bin:/usr/X11R6/bin
+
+/usr/bin/mkdir -p /etc/gtk-2.0
+/usr/bin/chmod 777 /etc/gtk-2.0
 if [ -f /usr/bin/gdk-pixbuf-query-loaders.exe ] ; then \
   /usr/bin/gdk-pixbuf-query-loaders.exe > /etc/gtk-2.0/gdk-pixbuf.loaders ; \
 fi

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


- Raw text -


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