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