1 2000-08-02 DJ Delorie <dj@redhat.com>
3 * net.cc: remove proxy password code
4 * res.rc: remove proxy user/pass from net, add auth dialogs
5 * netio.cc,h: add sys/proxy auth methods
6 * nio-ie5: use them, check for http status codes
7 * state.h: add system authorization
9 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
12 2000-08-02 Norman Vine <nhv@yahoo,com>
14 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
16 2000-08-01 DJ Delorie <dj@redhat.com>
18 * postinstall.cc (each): don't rename files we ignore
19 (do_postinstall): set CYGWINROOT to root_dir, chdir there
21 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
23 2000-07-31 DJ Delorie <dj@redhat.com>
25 * desktop.cc: reverse PATH so /usr/bin precedes /bin
27 2000-07-18 DJ Delorie <dj@redhat.com>
29 * autoload.c: new, autoload dlls that might not be available.
30 * Makefile.in (OBJS): add autoload.o
32 * res.rc: rewrite root options (text/binary, system/user) to be
35 * site.cc (get_site_list): trim displayed URL, sort by domain
37 * net.cc (do_net): make IE5 default to checked, for now
39 * choose.cc (do_choose): sort packages correctly
40 * ini.cc (do_ini): handle parse errors more gracefully
42 (fprintf): line buffer output
43 (do_ini): if we can't load setup.ini, go back to the site list.
44 * ini.h: add "unknown" trust level
45 * inilex.l: absorb unknown trust levels and key/value pairs,
47 * iniparse.y: handle parse errors more gracefully.
48 * install.cc: skip packages with no valid install entry
50 2000-07-17 DJ Delorie <dj@cygnus.com>
52 * coding standards fixups, many files
53 * mkdir.cc: warn about deletions *before* deleting them
55 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
57 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
59 * other.cc (dialog_cmd): save download site URL
60 * site.cc (get_root_dir): new
61 (save_mirror_site): new
62 (dialog_cmd): save download site URL
63 (get_site_list): make list big enough to add prev site
64 (get_initial_list_idx): new, read last-used URL from file and
65 append it to site_list
66 (do_site): call get_initial_list_idx
68 * concat.cc (concat): avoid segfault when first parm is null
70 2000-07-13 DJ Delorie <dj@cygnus.com>
73 * Makefile.in: add postinstall.o
74 * concat.h: add backslash ()
76 * desktop.cc (etc_profile): don't do postinstall
77 (backslash): moved to concat.cc
79 (make_postinstall_script): run directly
80 (do_desktop): chain to do_postinstall
81 * dialog.h: add exit_msg, do_postinstall
82 * download.cc: use exit_msg
84 * main.cc: add postinstall, exit_msg
85 * resource.h: add postinstall
86 * README: add more to-do items
88 2000-07-12 DJ Delorie <dj@cygnus.com>
90 * desktop.cc: add /etc/postinstall/ support
91 * install.cc: add more "standard" directories
93 2000-07-11 DJ Delorie <dj@cygnus.com>
95 * desktop.cc: create /etc/profile
96 * desktop.cc: fix include syntax
97 * Makefile.in: add auto-dependencies
98 * root.cc: support system vs user
106 * desktop.cc: make sure we use backslashes, not slashes.
107 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
108 * geturl.cc: change math for percentage to avoid overflow
110 * download.cc: post "download complete" message.
111 * root.cc: pre-fill in defaults if needed, don't start
112 browse at root_dir unless it's set.
113 * desktop.cc: quote $PATH in case it has spaces in it
115 2000-07-10 DJ Delorie <dj@cygnus.com>
117 * Makefile.in: add desktop.o and mklink2.o
118 * dialog.h: add do_desktop
119 * install.cc: create standard directories, call do_desktop
120 * res.rc: add cygwin.ico as a file also
121 * desktop.cc: new, do shortcuts, batch files, and icons
122 * mklink2.c: new, for COM
123 * README: update to-do list
125 2000-07-10 DJ Delorie <dj@cygnus.com>
127 * ini.cc (do_ini): don't worry about timestamps if we're not
130 2000-07-09 DJ Delorie <dj@cygnus.com>
132 * Makefile.in: add -I$(srcdir) for ini.h
134 2000-07-06 DJ Delorie <dj@cygnus.com>
136 * Replace everything with a new GUI version
137 * zlib/gzio.c: add gzctell() for progress displays
139 2000-06-22 DJ Delorie <dj@cygnus.com>
141 * setup.c (tarx): re-add call to write_pkg()
143 2000-06-07 DJ Delorie <dj@cygnus.com>
145 * cygcalls.c: new, call cygwin1.dll functions directly
146 * cygcalls.h: header for same
147 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
148 exes, fix cinstall.rc dependencies.
149 * path.c: remove unneeded code
150 * setup.c: use cygcalls instead of xcreate_process.
151 uncompress embedded files with zlib
152 add "-d" for "download only"
154 postpone mount changes until very end
155 add download progress indicators
156 pack multi-column listings more
157 auto-delete temp files
158 customize banner message according to options
159 prompt user for text/binary mounts
160 add warnings about empty setup directory, root installs, etc
162 2000-05-24 DJ Delorie <dj@cygnus.com>
164 * tar.c: New file; built-in tar using zlib.
165 * tar.h: New file; header for same.
166 * ctar.c: New file; test program for same.
167 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
168 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
169 * setup.c (tarx): add support for built-in tar
170 (main): accept unix-style slashes, check root dir for drive letters,
171 warn about installing in /, make sure cwd is empty for internet installs,
172 defer mounts to end of install, support built-in tar.
174 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
176 Fix compiler warnings throughout.
177 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
179 * setup.c: Make 'root' global.
180 (istargz): Return pointer to "stem" of matched .tar.gz file.
181 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
182 bogus check_for_installed check.
183 (recurse_dirs): Add preliminary support for .bat file execution.
184 (create_uninstall): Eliminate unneeded parameter.
185 (do_start_menu): Ditto.
187 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
188 scanning for the version number. Eliminate unneeded argument to
190 (getdownloadsource): Add 'name' to list of names rather than url.
191 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
192 unneeded argument in mkmount and do_start_menu.
194 2000-05-18 DJ Delorie <dj@cygnus.com>
196 * setup.c (optionprompt): allow multi-column, clean up message
197 about more options, be more robust about user input.
198 (getdownloadsource): make the mirror URL a macro.
199 (main): do mounts after done prompting user.
201 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
203 * setup.c (cleanup): Inverse order of deletion stands a better chance
204 of deleting cygpath.exe. Still seems to suffer from occasional races,
206 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
208 (output_file): Defend against an unlikely handle leak.
209 (main): Don't set up signal handling until we have something special to
212 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
214 * path.c (kill_cygpath): Delete function.
215 (exit_cygpath): Make more defensive so that it can be called at any
217 (cygpath_pipe): Don't set up signal here. Do it in main().
218 * setup.c (istargz): New function.
219 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
220 inexplicably fails on samba mounted partitions. Use istargz to match
222 (processdirlisting) Use istargz to match tar.gz tail.
223 (cleanup): Renamed from filedel.
224 (cleanup_on_signal): New function. Called on CTRL-C.
225 (main): Record handle of main thread so that it can be suspended when
226 CTRL-C occurs. Set up cleanup_on_signal signal handler.
228 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
230 * setup.c (do_start_menu): Don't concatenate paths to already built
233 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
235 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
236 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
238 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
240 * setup.c (filedel): Call exit_cygpath here so that we can be assured
241 that cygpath subprocess has died. This allows us to delete cygpath.exe
243 (optionprompt): Initialize response to -1 so that second screen of
245 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
246 * setup.h: Reflect init_pkgs prototype change.
248 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
250 * pkg.c (init_pkgs): Accept an argument to control what root registry
252 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
253 * setup.h: Reflect init_pkgs prototype change.
255 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
257 * error.c (winerror): Respond to gcc warning.
258 * path.c (cygpath_pipe): Ditto.
259 * setup.c (filedel): Call sa_cleanup on deleteme.
260 (create_shortcut): Coerce argument to eliminate compiler warning.
261 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
262 (refmatches): New function. Tests if ref is contained in a list of
264 (filematches): New function. Tests if filename matches one of a list
265 of packages to install.
266 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
267 test to accomodate _tar.gz.
268 (prompt): Ensure that stdout is flushed prior to asking for input.
269 (findhref): Initialize variables to quiet a compiler warning.
270 (processdirlisting): Accept list of packages to install. Special case
271 cygwin tar file version number.
272 (downloaddir): Accept list of packages to install.
273 (downloadfrom): Ditto.
274 (create_uninstall): Eliminate unneeded variables. Quote arguments to
276 (do_start_menu): Don't create uninstall bat file if updating or user
277 specified a list of packages.
278 (mkmount): Eliminate unneeded variables.
279 (get_pkg_stuff): New function. Checks for previous unversioned
281 (main): Accept -u and -f options and package names on the command line.
282 Use get_pkg_stuff to initialize package information. Umount /etc.
283 Call recurse_dirs and downloadfrom with list of package to install.
284 Ensure that all /usr/local directories are created. Output
285 installation time to setup.log.
286 * setup.h: Add some prototypes.
287 * xsystem.c (xcreate_process): Eliminate unneeded variable.
289 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
291 * setup.c (optionprompt): Don't overlap display of already seen options
293 (geturl): Print name of site which we're connecting to rather than "ftp
295 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
297 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
298 problems when user chooses x:\ as their root.
299 (main): For now, default to "non-update" mode. Allow -u option to
302 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
305 * setup.c (tarx): Skip already installed or older packages. Report
306 when a package has been updated.
307 (processdirlisting): Skip already installed or older packages.
308 (main): Detect -f option for forced installation. Initialize pkg stuff
310 * setup.h: Add pkg definitions.
312 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
314 * setup.c (findhref): Return NULL on empty string. Eat any trailing
316 (processdirlisting): Attempt to limit recursively processing the same
319 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
321 * setup.c (filedel): New function.
322 (output_file): Keep track of files extracted from setup.exe for
324 (tarx): Close process handle of child tar process or suffer handle
326 (getdownloadsource): Close mirror file so that it can be unlinked.
327 (processdirlisting): Return total number of files extracted.
328 (main): Initialize array of files to delete. Ensure that files are
329 closed on exit. Make the directory that setup.exe is started from ==
330 the directory where temporary files are placed. Issue an error if no
331 files were found to download.
332 * xsystem.c (xcreate_process): Close the thread handle. Close the
333 process handle if we waited for it to exit.
335 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
337 * setup.c (main): Change version number output.
339 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
341 * setup.c (tarx): Use full path name to tar executable.
342 (main): Build full pathname to tar executable. Create /usr/local/etc
345 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
347 * setup.c (findhref): Change method for scanning for href= to choose
348 the last one on the line. This is still not foolproof and probably
349 will need to be changed eventually. Don't abort if no "size" field is
351 (processdirlisting): Fix boolean algebra.
353 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
355 * main.c (tarx): Add some code for future task of unmounting
356 directories encountered in tar file.
358 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
360 * setup.c (findhref): Decode file size, when appropriate.
361 (needfile): New function. Returns 1 when file should be
363 (processdirlisting): Always download if file size does not
364 match. Prompt when download fails for some reason.
365 (getdownloadsource): Accomodate findhref argument changes.
367 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
369 Throughout, use global session handle rather than reinitializing for
370 each connect. Don't pass session as an argument to setup.c functions.
371 * setup.c (geturl): Only issue "Connecting to.." message when using
372 http or first time for ftp since subsequent connections will be fast.
373 (processdirlisting): Allocate space for "N" when user has specified
374 "N"ever option so that it can be subsequently freed.
375 (main): Abort if we can't get the list of mirrors.
377 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
379 * setup.c (main): Umount /bin and /lib.
381 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
383 * setup.c (main): Create an empty /var/run/utmp.
385 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
387 * Makefile.in: Add umount to list of files to include in setup.exe.
388 * setup.c (xumount): New function for unmounting directories.
389 (main): Unmount /usr.
390 (mkmount): Unmount "unix directory" before trying to figure out where
391 to create the directory.
393 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
395 * setup.c (mkmount): Use xcreate_process to start mount process,
397 (main): Don't do buffering on stdout or prompts won't be displayed
398 correctly if running in a cygwin shell with CYGWIN=tty.
400 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
402 * setup.c (main): Remove the CYGWIN environment variable before
403 starting any cygwin programs.
405 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
407 * setup.c (geturl): Use alternative method for finding filename part of
409 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
410 (downloaddir): Unlink file containing dir listing.
411 (downloadfrom): Ditto.
413 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
415 * setup.c (main): Disallow running setup.exe from the "root".
417 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
419 Use "warning" function, where appropriate, to output warnings.
420 * setup.c (warning): New function -- outputs warning to console and log
422 (tarx): Fix index used to reset file protection.
423 (main): Open the log file earlier so that more stuff can be sent to it.
425 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
427 * setup.c (processdirlisting): Make "N" option a little less aggressive.
429 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
431 * setup.c (tarx): Wait to after tar has completed to reset protections
432 or suffer races with tar process.
434 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
436 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
437 * setup.c (create_uninstall): Create the uninstall .bat file in the
438 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
439 list of files to be deleted. Fix directory detection for determining
441 (do_start_menu): Add /usr/local/bin to the path.
442 (main): Add slop to files.array allocation so that we don't have to
443 worry about reallocating the array when it grows too large when doing
444 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
447 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
449 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
452 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
454 * path.c (kill_cygpath): New cleanup function.
455 (exit_cygpath): New cleanup function.
456 (cygpath_pipe): New function. Sets up cygpath in the background for
457 translating filenames.
458 (pathcvt): Use background cygpath for file translation.
459 * setup.c (tarx): New function. Called to extract tar files, capture
460 logging output, and translate it to Windows format.
461 (recurse_dirs): Use 'tarx' function to extract files.
462 (create_uninstall): Use file list built up by tarx rather than reading
464 (mkmount): Add ability to mount root.
465 (main): Track elapsed install time. Mount root.
466 * starry.h: Add index field to strarry for tracking of tarx's usage of
468 * xsystem.c (xcreate_process): Return proces handle when not waiting.
470 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
473 (pathfp): New function. Preliminary work for new -f cygpath
475 * Makefile.in: Add new file.
476 (pathcvt): Move to new file.
480 * setup.c (processdirlisting): Always open file in text mode.
481 (create_uninstall): Ditto.
482 (getdownloadsource): Ditto.
485 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
487 * xsystem.c: New file.
488 * Makefile.in: Accomodate new file.
489 * setup.c (xsystem): Move to new file.
490 (recurse_dirs): Accept handle to output log file. Don't use ">"
491 redirection to trap tar output. Use supplied handle instead.
492 (create_uninstall): Accept FILE pointer to opened log file. Don't
493 unlink log file here.
494 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
495 (main): Open log file here and pass it to various functions. Unlink
498 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
500 Change occurrences of .usr.bin to .bin throughout.
501 * setup.c (geturl): Increase number of retries to 20. Let user know
502 what's going on during long connects.
503 (processdirlisting): Accept "A"lways and "N"ever as update options.
504 (create_uninstall): Load cygwin1.dll from the current directory rather
506 (main): Add some expository text.
508 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
510 * Makefile.in: Change method for compressing cygwin1.dll to avoid
511 creating a cygwin1.dll in the current directory. Ensure the addition
512 of -nostdinc to MINGW_CFLAGS.
514 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
516 * Makefile.in: Augment clean target.
518 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
520 * README: Added info about non-working mingw implementation
521 * gzip.exe.gz: Replace with a version from the same build as the other
523 * tar.exe.gz: Replace with a version from the same build as the other
525 * mount.exe.gz: Add to repository until, mingw can build setup.
526 * cygpath.exe.gz: ditto
527 * cygwin1.dll.gz: ditto
528 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
529 for Win9x. Display only a screenfull of options at a time. Call all
530 tools with an absolute path.
531 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
536 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
538 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
539 cygwin1.dll from ../cygwin subdirectory.
540 * gzip.exe.gz: Update.
541 * tar.exe.gz: Update.
543 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
545 * Makefile.in: Use ZLIB variable as a target.
547 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
549 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
550 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
552 * configure.in: Locate correct objcopy.
553 * configure: Regenerate.
555 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
557 * Makefile.in: New file.
558 * configure.in: New file.
559 * configure: New file.
560 * zlib/Makefile.am: New file.
561 * zlib/configure.in: New file.
562 * zlib/aclocal.m4: New file.
563 * zlib/acinclude.m4: New file.
564 * zlib/configure: Regenerate from configure.in.
565 * zlib/Makefile.in: Regenerate from Makefile.am