This is the mail archive of the cygwin-apps@cygwin.com 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]

Re: setup.exe /var, /tmp?



===
----- Original Message -----
From: "Jan Nieuwenhuizen" <janneke@gnu.org>
> > Please try this patch...
>
> Hmm, this doesn't help.  Similar fix applied to install.cc also
> doesn't help.  After removing c:/cygwin and doing a fresh install, you
> get the error message:
>
>     cannot open log file C:/cygwin/var/log/setup.log.full for writing.

Install.cc doesn't need that fix. It needs a different one I think - see
if this helps.

As for the graphics problem, I can't reproduce it here,
Rob

Index: install.cc
===================================================================
RCS file: /cvs/src/src/winsup/cinstall/install.cc,v
retrieving revision 2.41.2.1
diff -u -p -r2.41.2.1 install.cc
--- install.cc 2002/02/19 02:47:59 2.41.2.1
+++ install.cc 2002/02/20 21:29:52
@@ -426,13 +426,13 @@ do_install_thread (HINSTANCE h, HWND own

   next_dialog = IDD_DESKTOP;

-  io_stream::mkpath_p (PATH_TO_DIR, get_root_dir ());
+  io_stream::mkpath_p (PATH_TO_DIR, String ("file://") + get_root_dir
());

   for (i = 0; standard_dirs[i]; i++)
     {
       String p = cygpath (standard_dirs[i]);
       if (p.size())
- io_stream::mkpath_p (PATH_TO_DIR, p);
+ io_stream::mkpath_p (PATH_TO_DIR, String ("file://") + p);
     }

   /* Create /var/run/utmp */
Index: log.cc
===================================================================
RCS file: /cvs/src/src/winsup/cinstall/log.cc,v
retrieving revision 2.9.2.1
diff -u -p -r2.9.2.1 log.cc
--- log.cc 2002/02/19 00:43:14 2.9.2.1
+++ log.cc 2002/02/20 21:29:52
@@ -88,7 +88,7 @@ log_save (int babble, String const &file
     return;
   been_here = 1;

-  io_stream::mkpath_p (PATH_TO_FILE, filename);
+  io_stream::mkpath_p (PATH_TO_FILE, String("file://")+filename);

   io_stream *f = io_stream::open(String("file://")+filename, append ?
"at" : "wt");
   if (!f)
Index: package_meta.cc
===================================================================
RCS file: /cvs/src/src/winsup/cinstall/package_meta.cc,v
retrieving revision 2.17.2.1
diff -u -p -r2.17.2.1 package_meta.cc
--- package_meta.cc 2002/02/19 03:50:23 2.17.2.1
+++ package_meta.cc 2002/02/20 21:29:52
@@ -43,21 +43,21 @@ static const char *cvsid = "\n%%% $Id: p
 #include "package_db.h"

 static const char *standard_dirs[] = {
-  "/bin",
-  "/etc",
-  "/lib",
-  "/tmp",
-  "/usr",
-  "/usr/bin",
-  "/usr/lib",
-  "/usr/src",
-  "/usr/local",
-  "/usr/local/bin",
-  "/usr/local/etc",
-  "/usr/local/lib",
-  "/usr/tmp",
-  "/var/run",
-  "/var/tmp",
+  "bin",
+  "etc",
+  "lib",
+  "tmp",
+  "usr",
+  "usr/bin",
+  "usr/lib",
+  "usr/src",
+  "usr/local",
+  "usr/local/bin",
+  "usr/local/etc",
+  "usr/local/lib",
+  "usr/tmp",
+  "var/run",
+  "var/tmp",
   0
 };




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