1 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
4 use when Redownload or Sources Only selected.
6 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
8 Reformat file after botched patch formatting.
9 * choose.cc (which_trust): Eliminate variable.
10 (default_trust): Don't set which_trust.
11 (do_choose): Use selected trust when reinstalling or installing source.
13 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
15 Change concat to cygpath throughout.
16 Change map_filename to cygpath throughout.
17 * concat.cc (vconcat): New function.
18 (concat): Use vconcat.
19 * concat.h: Reflect above.
20 * install.cc (map_filename): Eliminate.
21 (install_one): Free dest_file.
22 * mount.cc (find2): Expect input key to be pointing to mount record.
23 (in_table): New function.
24 (is_admin): Move from root.cc.
25 (read_mounts): New function.
26 (path_prefix_p): New function.
27 (cygpath): New function.
28 * mount.h: Define new functions and structure.
29 * root.cc (in_table): Move to mount.cc.
30 (do_root): Call read_mounts to initialize root stuff and mount table.
31 * site.cc (get_root_dir): Ditto.
33 2001-05-09 Matt Hargett <matt@use.net>
35 * Makefile.in: Remove *.rc from clean.
37 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
39 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
40 TRUST_PREV which produced "0" versions.
42 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
44 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
45 _APS_NEXT_CONTROL_VALUE to account for addition of
47 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
48 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
49 hot keys to select Prev, Curr, Exp.
50 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
51 define for LOOP_PACKAGES to include new actions ACTION_REDO and
53 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
54 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
55 source Checkbox to use.
56 (build_labels): Add logic to allow for selection of Source only
57 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
58 current version binary.
59 (dialog_proc): Add conditional display for file selection prompt based
60 on download vs install using IDC_CHOOSE_INST_TEXT.
61 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
62 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
63 handle the instance where Source Download/Install was selected. Modify
64 log file to store appropriate information regarding Action selected and
65 the new actions that were added (I.E.: ACTION_REDO and
67 * download.cc: Add include for <unistd.h> and "port.h".
68 (download_one): Modify parameter list to include the selected action
69 for the file to be downloaded. Modify size check against expected size
70 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
71 .tmp file to also remove the destination file if exists due to ability
72 to redownload source and binary now.
73 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
74 calculation of Download Bytes. Modify to also use ACTION_REDO and
75 ACTION_SRC_ONLY in determining files selected for download.
76 * install.cc (uninstall_one): Add check to treat a Reinstall like an
77 upgrade so current version will be uninstalled prior to reinstall.
78 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
79 uninstalling and installing binary and source packages.
80 * desktop.cc (make_passwd_group): Modify logic to account for a Source
81 only cygwin install when checking for cygwin to determine need for
84 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
86 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
87 Removed WS_DISABLED from "OK" buttons to accomodate default focus
88 changes in net.cc and source.cc.
89 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
90 a default is selected.
91 * winsup/cinstall/source.cc (dialog_proc): Ditto.
92 (check_if_enable_next): Removed. No longer needed since a radio button
93 will always be selected.
94 (load_dialog): Removed call to check_if_enable_next.
95 (dialog_cmd): Ditto. Also added default to switch.
97 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
99 * res.rc: Resize affected text.
101 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
103 * net.cc (do_net): Default to direct download.
104 * res.rc: Move default selections to the top.
106 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
108 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
109 Must now include <windows.h> and not the pieces.
110 * choose.cc (create_listview): Clean up type mismatch problems.
111 * dialog.h (NEXT(id)): Ditto.
112 * geturl.cc (dialog): Ditto.
113 * install.cc (dialog): Ditto.
114 * splash.cc (load_dialog): Ditto.
116 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
118 * tar.cc (class gzbz): Define dummy virtual functions.
120 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
122 * Makefile.in: Add bz2 include/library support.
123 * filemanip.h: New file.
124 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
126 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
127 (read_installed_db): Ditto.
129 * fromcwd.cc (found_file): Ditto.
131 * tar.cc (class gzbz): New super class for uncompression support.
132 (gz): New class for gzip support.
133 (bz): New class for bzip2 support.
134 (tar_open): Use gzbz class to control file opening.
135 (tar_ftell): Ditto for returning position in file.
136 (skip_file): Ditto for reading file.
137 (tar_next_file): Ditto.
138 (tar_read_file): Ditto.
139 (tar_close): Ditto for close.
141 * zlib/configure.in: Force NM substitution.
143 * source.cc (do_source): Default to "Install from Internet".
145 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
147 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
149 * choose.cc (list_click): Correct inability to select source code for
151 (scan2): Modify to skip source tarballs when scanning disk for
152 installable packages.
154 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
156 * install.cc: install sources into /usr/src instead
157 of /, also include the sizes of source tarballs
159 * download.cc: include sizes of source tarballs in
160 total_download_bytes.
162 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
164 * download.cc (get_file_size): Remove `static'.
166 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
168 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
170 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
172 * choose.cc (paint): Modify message for nothing to download vs
173 nothing to install/update based on installation method.
174 (list_click): Modify to skip versions in selection process if
175 installing from local directory and installation file does not exist.
176 Also leaves Source Action set to N/A if the source file does not exist
177 and installing from local directory.
178 (check_existence): New method to check current existence of installation
179 files based on selected installation method.
180 (set_existence): New method to set the current existence of installation
181 files based on selected installation method.
182 (best_trust): Modify decision process for best trust to base decision on
183 current trust selected (IE: Prev, Curr, or Test), existence of file and
184 installation method selected.
185 (default_trust): Add logic to capture the current trust level and the
186 trust selected for the given package.
187 (set_full_list): Expand decision criteria for displaying a package in
188 the selection list to include file existence/non-existence and selected
190 (build_labels): Modify criteria for label addition to include
191 installation method and file existence/non-existence.
192 (create_listview): Modify to establish package trust level for each
193 package before setting up the display list. Also modification to set
194 current trust button as the default.
195 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
196 a reset of the selection list in addition to setting the default trust.
197 (get_package_version): New method to provide reusable code for
198 determining the package version from the file name for a specified
200 (scan2): Modify to use new method get_package_version and
201 also enhance handling of the build for the structures package and
203 (read_installed_db): Modify to use the new method
204 get_package_version and also enhance handling of the build for the
205 structures package and extra.
206 (do_choose): Add additional initialization of package and extra
207 structures. Modify to use read_installed_db all the time despite
208 install method. Modify output to setup.log.full log file to increase
209 readability by adding additional spacing, expanded code and available
211 * ini.h: Add new fields install_exists, source_exists and
212 partial_list_display to the structure definition for package.
213 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
214 pushbuttons by replacing with Radio Buttons thus allowing the
215 operator to better determine which is selected.
217 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
219 * download.cc (do_download): Add new variables total_download_bytes and
220 total_download_bytes_sofar for download progress meter. Add loop
221 to accumulate the total bytes to download from the selected packages.
222 * geturl.cc: Add state.h and diskfull.h to include list. Add new
223 variables gw_iprogress, gw_pprogress, gw_progress_text,
224 gw_pprogress_text, and gw_iprogress_text to allow for addition of
225 total packages download progress meter and disk full percent
226 progress meter. Add variables total_download_bytes and
227 total_download_bytes_sofar for use by progress meters.
228 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
229 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
230 allow for addition of total packages download progress meter and disk
231 full percent progress meter.
232 (init_dialog): Ditto.
234 (get_url_to_file): Ditto.
235 * geturl.h: Add external definition for total_download_bytes and
236 total_download_bytes_sofar.
237 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
238 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
239 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
241 * resource.h: Add new fields for progress meters and text and update
242 _APS_NEXT_CONTROL_VALUE.
244 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
246 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
249 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
251 * download.cc (download_one): Add missing parenthesis.
253 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
255 * download.cc (get_file_size): New function. Eliminates the need
257 (download_one): Call `get_file_size' instead of `stat'. This
258 workarounds a problem with mingw's `stat' call.
260 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
262 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
263 This is to allow cinstall to build with 2.95.2-7 and to make the
264 use of headers consistent.
266 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
268 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
270 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
272 * winsup/cinstall/res.rc: Added accelerators and improved focus
275 2000-12-10 Egor Duda <deo@logos-m.ru>
277 * choose.cc (paint): Use system background color for text output.
279 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
281 * Makefile.in: Use CXX for linking and for compiling .cc files.
282 * configure.in: Find correct c++ compiler.
283 * configure: Regenerate.
285 2000-11-17 DJ Delorie <dj@redhat.com>
287 * splash.cc (load_dialog): Make message more obvious.
290 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
292 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
293 necessary for newer compilers.
295 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
297 * desktop.cc: Include "ini.h" and "version.h".
298 (make_passwd_group): Skip the function on 9x/ME boxes when an
299 older version of Cygwin has been installed which doesn't
300 support mkpasswd/mkgroup on 9x/ME.
301 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
304 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
306 * desktop.cc (make_passwd_group): Don't exit when started
307 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
309 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
311 * install.cc (do_install): Add call to set_cygdrive_flags to sync
313 * mount.cc (set_cygdrive_flags): New function.
314 (get_cygdrive_flags): Ditto.
315 (default_cygdrive): Ditto.
316 (set_cygdrive_flags): Ditto.
317 * mount.h: Add prototype for set_cygdrive_flags.
319 2000-10-23 DJ Delorie <dj@redhat.com>
321 * ini.h: add source actions
322 * fromcwd.cc: check for available sources
323 * res.rc: add checkbox bitmaps
326 * choose.cc: add source column
327 * download.cc: download sources if called for
328 * install.cc: [un]install sources too
330 2000-10-22 DJ Delorie <dj@redhat.com>
332 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
333 ignore it wrt full_list if there's already a version installed.
334 (do_choose): Sort the list.
337 2000-10-12 DJ Delorie <dj@redhat.com>
339 * res.rc: Add more error strings.
341 * iniparse.y (new_package): re-initialize if needed.
342 * download.cc (do_download): Keep track of errors; notify and
344 * install.cc (do_install): Ditto.
346 2000-10-05 DJ Delorie <dj@redhat.com>
348 * Makefile.in: fix %.cc rule
350 2000-10-04 DJ Delorie <dj@redhat.com>
352 * desktop.cc: quote HOME and USER, don't . ./.profile
354 * choose.cc (build_labels): don't include in partial list just
355 because there's a *previous* version available.
357 * install.cc (do_install): if installing from local directory with
358 setup.ini and the file isn't found, look in "." also. Note errors.
360 2000-10-02 DJ Delorie <dj@redhat.com>
362 * ini.cc (do_ini): save setup.ini locally
364 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
366 * desktop.cc: quote escapes in prompt
368 2000-10-02 Jason Tishler <jt@dothill.com>
370 * root.cc (is_admin): New function.
371 (read_mount_table): Check for administrative priviledges and set
372 installation scope as appropriate.
374 2000-09-28 DJ Delorie <dj@redhat.com>
376 * nio-ftp.cc (ftp_line): handle continuations more robustly
378 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
380 * res.rc: increased the size of the site dialog (IDD_SITE) & the
381 corresponding list box to provide for more URL's to be listed.
382 Modified the position of the Back, Next and Cancel buttons to
383 correspond to the new size of the dialog.
385 2000-09-13 DJ Delorie <dj@redhat.com>
387 * install.cc (do_install): update disk fullness once per package
388 to improve performance
390 * choose.cc (create_listview): call ReleaseDC
392 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
394 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
395 returned, as it seems Samba 2.0.6+ returns this instead of
398 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
400 * site.cc (get_initial_list_idx): Don't default to saved URL if it
403 2000-09-07 DJ Delorie <dj@redhat.com>
405 * splash.cc: use version.h, not local decl
406 * res.rc: add "old version" message
409 * fromcwd.cc (canonicalize_version): make global
410 * iniparse.y: add setup-version support, fix bug in blank line
413 * inilex.l: add [exp] as alias for [test], add setup-version
414 * Makefile.in (version.c): add setup-version tag
416 * desktop.cc (do_desktop): remove 1.1 version number
417 (do_desktop_setup): ditto
419 * ini.cc (do_ini): zero out package list just in case we redo it.
421 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
423 * choose.cc (list_click): Check for nindexes==0; if so, return.
425 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
427 * localdir.cc: new, local package directory selection dialog; cd
428 into selected directory
429 * Makefile.in (OBJS): add localdir.o
430 * dialog.h: add prototype for do_local_dir
431 * main.cc (WinMain): initialize local_dir to cwd; add call to
433 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
434 * source.cc (dialog_cmd): ditto
435 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
436 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
437 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
438 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
439 * state.h: add local_dir variable
441 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
443 * desktop.cc: added logic to handle to the new dialog and to
444 default the setting for the new checkboxes based on whether the
445 desktop icon or start menu link already exist.
446 (desktop_icon): correction to desktop directories for desktop icon
447 creation. Additional logic added for Win95 which does not appear
448 to have Common Directories so if Common selected and null uses
450 (start_menu): Additional logic added for Win95 which does not
451 appear to have Common Directories so if Common selected and null
452 uses normal directory.
453 (do_desktop_setup): moved the saving of the icon, creation of the
454 bat file, profile, passwd, Start Menu link and desktop shortcut to
455 this method from do_desktop. Made the creation of the desktop
456 icon and start menu link conditional on settings of new dialog
458 * install.cc (do_install): changed next from IDD_S_DESKTOP to
460 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
461 * res.rc: added new resource to create a desktop dialog with 2
462 checkboxes for creating the desktop icon and start menu link.
463 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
464 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
465 * state.h: added root_menu and root_desktop for use in dialog.
467 2000-08-29 DJ Delorie <dj@redhat.com>
469 * choose.cc (scan_downloaded_files): scan for existing files, so
470 that the user only sees new downloads.
472 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
473 * site.cc (do_site): if we can't download the mirror list, go back
474 to the net setup box to choose another transport.
475 * autoload.c: add more functions
476 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
477 * resource.h: add WININET message
479 * net.cc (do_net): no longer default to IE5
480 * simpsock.h (class SimpleSocket): new, simplify socket operations
482 * nio-http.h: new, for direct http protocol
484 * nio-ftp.h: new, for direct http protocol
486 * netio.cc (set_url): move initialization here to handle redirections
487 (open): add direct http/ftp
488 * netio.h (NetIO::set_url): new
490 * log.cc (log_save): create directory for log if needed
492 * hash.cc, hash.h: new
493 * Makefile: add hash.o
494 * choose.cc: enable "uninstall" option
495 * download.cc: invert action test to accomodate uninstalling
496 * ini.h: add ACTION_UNINSTALL
497 * install.cc: add uninstall functionality
498 * res.rc: make install tag changeable
499 * resource.h: add uninstall resources
501 * res.rc: update mirror list URL
503 2000-08-24 DJ Delorie <dj@redhat.com>
505 * log.cc, log.h: new files
506 * Makefile.in (OBJS): add log.o
507 * tar.cc: use exit_setup instead of exit
508 * dialog.cc (fatal): use exit_setup instead of ExitProcess
509 * msg.cc (fatal): ditto
510 * install.cc (dialog_cmd): ditto
511 * ini.cc (do_ini): ditto
512 * main.cc (main): add logging
513 * source.cc (do_source): ditto
514 * root.cc (do_source): ditto
515 * site.cc (do_site): ditto
516 * other.cc (do_other): ditto
517 * net.cc (do_net): ditto
518 * choose.cc (do_choose): ditto
519 * download.cc (do_download): ditto
520 * install.cc (do_install): ditto
521 * msg.cc (fatal): ditto
523 * res.rc: mark password boxes as *being* password boxes.
525 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
526 calls won't use the same buffer.
527 * choose.cc (create_listview): don't default to full list if no changes
528 (base): return computed value, not temporary :-(
529 (do_choose): don't use installed.db if we're only downloading.
531 2000-08-23 DJ Delorie <dj@redhat.com>
533 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
534 * nio-ie5.h (flush_io): new
535 * netio.cc (load_dialog): note when we're initializing the dialog
536 box, and ignore changes to the edit fields then.
538 2000-08-21 DJ Delorie <dj@redhat.com>
542 * fromcwd.cc (found_file): don't remember the canonicalized version
544 * choose.cc (paint): print "nothing to do" message when list is empty.
545 (build_labels): Use version "0.0" if no version is available.
546 (create_listview): default to full list if nothing to install/update.
547 (base): new, returns basename of file
548 (read_installed_db): compare base names, not full paths
550 2000-08-11 DJ Delorie <dj@redhat.com>
552 * choose.cc: add new chooser dialog
553 * fromcwd.cc: use IDD_CHOOSE
554 * ini.cc: use IDD_CHOOSE
555 * main.cc: use IDD_CHOOSE
556 * ini.h: cosmetic changes
557 * res.rc: add choose dialog, bitmaps
558 * choose-spin.bmp: new
559 * choose-rtarrow.bmp: new
560 * resource.h: add choose dialog controls
562 * mount.cc: remove debug statement
564 2000-08-08 DJ Delorie <dj@redhat.com>
566 * Makefile.in (version.c): make version checking more robust
567 * splash.cc (load_dialog): handle case where there's no version
569 2000-08-07 DJ Delorie <dj@redhat.com>
571 * (all): add cvsid tags
572 * Makefile.in: generate version.c from ChangeLog, add splash.o
574 * res.rc: add splash screen
576 2000-08-02 DJ Delorie <dj@redhat.com>
578 * net.cc: remove proxy password code
579 * res.rc: remove proxy user/pass from net, add auth dialogs
580 * netio.cc,h: add sys/proxy auth methods
581 * nio-ie5: use them, check for http status codes
582 * state.h: add system authorization
584 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
587 2000-08-02 Norman Vine <nhv@yahoo,com>
589 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
591 2000-08-01 DJ Delorie <dj@redhat.com>
593 * postinstall.cc (each): don't rename files we ignore
594 (do_postinstall): set CYGWINROOT to root_dir, chdir there
596 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
598 2000-07-31 DJ Delorie <dj@redhat.com>
600 * desktop.cc: reverse PATH so /usr/bin precedes /bin
602 2000-07-18 DJ Delorie <dj@redhat.com>
604 * autoload.c: new, autoload dlls that might not be available.
605 * Makefile.in (OBJS): add autoload.o
607 * res.rc: rewrite root options (text/binary, system/user) to be
610 * site.cc (get_site_list): trim displayed URL, sort by domain
612 * net.cc (do_net): make IE5 default to checked, for now
614 * choose.cc (do_choose): sort packages correctly
615 * ini.cc (do_ini): handle parse errors more gracefully
617 (fprintf): line buffer output
618 (do_ini): if we can't load setup.ini, go back to the site list.
619 * ini.h: add "unknown" trust level
620 * inilex.l: absorb unknown trust levels and key/value pairs,
621 add line number logic
622 * iniparse.y: handle parse errors more gracefully.
623 * install.cc: skip packages with no valid install entry
625 2000-07-17 DJ Delorie <dj@cygnus.com>
627 * coding standards fixups, many files
628 * mkdir.cc: warn about deletions *before* deleting them
630 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
632 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
634 * other.cc (dialog_cmd): save download site URL
635 * site.cc (get_root_dir): new
636 (save_mirror_site): new
637 (dialog_cmd): save download site URL
638 (get_site_list): make list big enough to add prev site
639 (get_initial_list_idx): new, read last-used URL from file and
640 append it to site_list
641 (do_site): call get_initial_list_idx
643 * concat.cc (concat): avoid segfault when first parm is null
645 2000-07-13 DJ Delorie <dj@cygnus.com>
647 * postinstall.cc: new
648 * Makefile.in: add postinstall.o
649 * concat.h: add backslash ()
651 * desktop.cc (etc_profile): don't do postinstall
652 (backslash): moved to concat.cc
654 (make_postinstall_script): run directly
655 (do_desktop): chain to do_postinstall
656 * dialog.h: add exit_msg, do_postinstall
657 * download.cc: use exit_msg
659 * main.cc: add postinstall, exit_msg
660 * resource.h: add postinstall
661 * README: add more to-do items
663 2000-07-12 DJ Delorie <dj@cygnus.com>
665 * desktop.cc: add /etc/postinstall/ support
666 * install.cc: add more "standard" directories
668 2000-07-11 DJ Delorie <dj@cygnus.com>
670 * desktop.cc: create /etc/profile
671 * desktop.cc: fix include syntax
672 * Makefile.in: add auto-dependencies
673 * root.cc: support system vs user
681 * desktop.cc: make sure we use backslashes, not slashes.
682 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
683 * geturl.cc: change math for percentage to avoid overflow
685 * download.cc: post "download complete" message.
686 * root.cc: pre-fill in defaults if needed, don't start
687 browse at root_dir unless it's set.
688 * desktop.cc: quote $PATH in case it has spaces in it
690 2000-07-10 DJ Delorie <dj@cygnus.com>
692 * Makefile.in: add desktop.o and mklink2.o
693 * dialog.h: add do_desktop
694 * install.cc: create standard directories, call do_desktop
695 * res.rc: add cygwin.ico as a file also
696 * desktop.cc: new, do shortcuts, batch files, and icons
697 * mklink2.c: new, for COM
698 * README: update to-do list
700 2000-07-10 DJ Delorie <dj@cygnus.com>
702 * ini.cc (do_ini): don't worry about timestamps if we're not
705 2000-07-09 DJ Delorie <dj@cygnus.com>
707 * Makefile.in: add -I$(srcdir) for ini.h
709 2000-07-06 DJ Delorie <dj@cygnus.com>
711 * Replace everything with a new GUI version
712 * zlib/gzio.c: add gzctell() for progress displays
714 2000-06-22 DJ Delorie <dj@cygnus.com>
716 * setup.c (tarx): re-add call to write_pkg()
718 2000-06-07 DJ Delorie <dj@cygnus.com>
720 * cygcalls.c: new, call cygwin1.dll functions directly
721 * cygcalls.h: header for same
722 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
723 exes, fix cinstall.rc dependencies.
724 * path.c: remove unneeded code
725 * setup.c: use cygcalls instead of xcreate_process.
726 uncompress embedded files with zlib
727 add "-d" for "download only"
729 postpone mount changes until very end
730 add download progress indicators
731 pack multi-column listings more
732 auto-delete temp files
733 customize banner message according to options
734 prompt user for text/binary mounts
735 add warnings about empty setup directory, root installs, etc
737 2000-05-24 DJ Delorie <dj@cygnus.com>
739 * tar.c: New file; built-in tar using zlib.
740 * tar.h: New file; header for same.
741 * ctar.c: New file; test program for same.
742 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
743 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
744 * setup.c (tarx): add support for built-in tar
745 (main): accept unix-style slashes, check root dir for drive letters,
746 warn about installing in /, make sure cwd is empty for internet installs,
747 defer mounts to end of install, support built-in tar.
749 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
751 Fix compiler warnings throughout.
752 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
754 * setup.c: Make 'root' global.
755 (istargz): Return pointer to "stem" of matched .tar.gz file.
756 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
757 bogus check_for_installed check.
758 (recurse_dirs): Add preliminary support for .bat file execution.
759 (create_uninstall): Eliminate unneeded parameter.
760 (do_start_menu): Ditto.
762 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
763 scanning for the version number. Eliminate unneeded argument to
765 (getdownloadsource): Add 'name' to list of names rather than url.
766 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
767 unneeded argument in mkmount and do_start_menu.
769 2000-05-18 DJ Delorie <dj@cygnus.com>
771 * setup.c (optionprompt): allow multi-column, clean up message
772 about more options, be more robust about user input.
773 (getdownloadsource): make the mirror URL a macro.
774 (main): do mounts after done prompting user.
776 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
778 * setup.c (cleanup): Inverse order of deletion stands a better chance
779 of deleting cygpath.exe. Still seems to suffer from occasional races,
781 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
783 (output_file): Defend against an unlikely handle leak.
784 (main): Don't set up signal handling until we have something special to
787 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
789 * path.c (kill_cygpath): Delete function.
790 (exit_cygpath): Make more defensive so that it can be called at any
792 (cygpath_pipe): Don't set up signal here. Do it in main().
793 * setup.c (istargz): New function.
794 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
795 inexplicably fails on samba mounted partitions. Use istargz to match
797 (processdirlisting) Use istargz to match tar.gz tail.
798 (cleanup): Renamed from filedel.
799 (cleanup_on_signal): New function. Called on CTRL-C.
800 (main): Record handle of main thread so that it can be suspended when
801 CTRL-C occurs. Set up cleanup_on_signal signal handler.
803 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
805 * setup.c (do_start_menu): Don't concatenate paths to already built
808 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
810 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
811 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
813 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
815 * setup.c (filedel): Call exit_cygpath here so that we can be assured
816 that cygpath subprocess has died. This allows us to delete cygpath.exe
818 (optionprompt): Initialize response to -1 so that second screen of
820 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
821 * setup.h: Reflect init_pkgs prototype change.
823 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
825 * pkg.c (init_pkgs): Accept an argument to control what root registry
827 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
828 * setup.h: Reflect init_pkgs prototype change.
830 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
832 * error.c (winerror): Respond to gcc warning.
833 * path.c (cygpath_pipe): Ditto.
834 * setup.c (filedel): Call sa_cleanup on deleteme.
835 (create_shortcut): Coerce argument to eliminate compiler warning.
836 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
837 (refmatches): New function. Tests if ref is contained in a list of
839 (filematches): New function. Tests if filename matches one of a list
840 of packages to install.
841 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
842 test to accomodate _tar.gz.
843 (prompt): Ensure that stdout is flushed prior to asking for input.
844 (findhref): Initialize variables to quiet a compiler warning.
845 (processdirlisting): Accept list of packages to install. Special case
846 cygwin tar file version number.
847 (downloaddir): Accept list of packages to install.
848 (downloadfrom): Ditto.
849 (create_uninstall): Eliminate unneeded variables. Quote arguments to
851 (do_start_menu): Don't create uninstall bat file if updating or user
852 specified a list of packages.
853 (mkmount): Eliminate unneeded variables.
854 (get_pkg_stuff): New function. Checks for previous unversioned
856 (main): Accept -u and -f options and package names on the command line.
857 Use get_pkg_stuff to initialize package information. Umount /etc.
858 Call recurse_dirs and downloadfrom with list of package to install.
859 Ensure that all /usr/local directories are created. Output
860 installation time to setup.log.
861 * setup.h: Add some prototypes.
862 * xsystem.c (xcreate_process): Eliminate unneeded variable.
864 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
866 * setup.c (optionprompt): Don't overlap display of already seen options
868 (geturl): Print name of site which we're connecting to rather than "ftp
870 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
872 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
873 problems when user chooses x:\ as their root.
874 (main): For now, default to "non-update" mode. Allow -u option to
877 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
880 * setup.c (tarx): Skip already installed or older packages. Report
881 when a package has been updated.
882 (processdirlisting): Skip already installed or older packages.
883 (main): Detect -f option for forced installation. Initialize pkg stuff
885 * setup.h: Add pkg definitions.
887 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
889 * setup.c (findhref): Return NULL on empty string. Eat any trailing
891 (processdirlisting): Attempt to limit recursively processing the same
894 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
896 * setup.c (filedel): New function.
897 (output_file): Keep track of files extracted from setup.exe for
899 (tarx): Close process handle of child tar process or suffer handle
901 (getdownloadsource): Close mirror file so that it can be unlinked.
902 (processdirlisting): Return total number of files extracted.
903 (main): Initialize array of files to delete. Ensure that files are
904 closed on exit. Make the directory that setup.exe is started from ==
905 the directory where temporary files are placed. Issue an error if no
906 files were found to download.
907 * xsystem.c (xcreate_process): Close the thread handle. Close the
908 process handle if we waited for it to exit.
910 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
912 * setup.c (main): Change version number output.
914 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
916 * setup.c (tarx): Use full path name to tar executable.
917 (main): Build full pathname to tar executable. Create /usr/local/etc
920 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
922 * setup.c (findhref): Change method for scanning for href= to choose
923 the last one on the line. This is still not foolproof and probably
924 will need to be changed eventually. Don't abort if no "size" field is
926 (processdirlisting): Fix boolean algebra.
928 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
930 * main.c (tarx): Add some code for future task of unmounting
931 directories encountered in tar file.
933 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
935 * setup.c (findhref): Decode file size, when appropriate.
936 (needfile): New function. Returns 1 when file should be
938 (processdirlisting): Always download if file size does not
939 match. Prompt when download fails for some reason.
940 (getdownloadsource): Accomodate findhref argument changes.
942 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
944 Throughout, use global session handle rather than reinitializing for
945 each connect. Don't pass session as an argument to setup.c functions.
946 * setup.c (geturl): Only issue "Connecting to.." message when using
947 http or first time for ftp since subsequent connections will be fast.
948 (processdirlisting): Allocate space for "N" when user has specified
949 "N"ever option so that it can be subsequently freed.
950 (main): Abort if we can't get the list of mirrors.
952 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
954 * setup.c (main): Umount /bin and /lib.
956 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
958 * setup.c (main): Create an empty /var/run/utmp.
960 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
962 * Makefile.in: Add umount to list of files to include in setup.exe.
963 * setup.c (xumount): New function for unmounting directories.
964 (main): Unmount /usr.
965 (mkmount): Unmount "unix directory" before trying to figure out where
966 to create the directory.
968 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
970 * setup.c (mkmount): Use xcreate_process to start mount process,
972 (main): Don't do buffering on stdout or prompts won't be displayed
973 correctly if running in a cygwin shell with CYGWIN=tty.
975 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
977 * setup.c (main): Remove the CYGWIN environment variable before
978 starting any cygwin programs.
980 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
982 * setup.c (geturl): Use alternative method for finding filename part of
984 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
985 (downloaddir): Unlink file containing dir listing.
986 (downloadfrom): Ditto.
988 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
990 * setup.c (main): Disallow running setup.exe from the "root".
992 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
994 Use "warning" function, where appropriate, to output warnings.
995 * setup.c (warning): New function -- outputs warning to console and log
997 (tarx): Fix index used to reset file protection.
998 (main): Open the log file earlier so that more stuff can be sent to it.
1000 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
1002 * setup.c (processdirlisting): Make "N" option a little less aggressive.
1004 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
1006 * setup.c (tarx): Wait to after tar has completed to reset protections
1007 or suffer races with tar process.
1009 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
1011 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
1012 * setup.c (create_uninstall): Create the uninstall .bat file in the
1013 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
1014 list of files to be deleted. Fix directory detection for determining
1015 when to use 'rmdir'.
1016 (do_start_menu): Add /usr/local/bin to the path.
1017 (main): Add slop to files.array allocation so that we don't have to
1018 worry about reallocating the array when it grows too large when doing
1019 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
1022 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
1024 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
1027 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
1029 * path.c (kill_cygpath): New cleanup function.
1030 (exit_cygpath): New cleanup function.
1031 (cygpath_pipe): New function. Sets up cygpath in the background for
1032 translating filenames.
1033 (pathcvt): Use background cygpath for file translation.
1034 * setup.c (tarx): New function. Called to extract tar files, capture
1035 logging output, and translate it to Windows format.
1036 (recurse_dirs): Use 'tarx' function to extract files.
1037 (create_uninstall): Use file list built up by tarx rather than reading
1039 (mkmount): Add ability to mount root.
1040 (main): Track elapsed install time. Mount root.
1041 * starry.h: Add index field to strarry for tracking of tarx's usage of
1043 * xsystem.c (xcreate_process): Return proces handle when not waiting.
1045 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
1048 (pathfp): New function. Preliminary work for new -f cygpath
1050 * Makefile.in: Add new file.
1051 (pathcvt): Move to new file.
1055 * setup.c (processdirlisting): Always open file in text mode.
1056 (create_uninstall): Ditto.
1057 (getdownloadsource): Ditto.
1060 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
1062 * xsystem.c: New file.
1063 * Makefile.in: Accomodate new file.
1064 * setup.c (xsystem): Move to new file.
1065 (recurse_dirs): Accept handle to output log file. Don't use ">"
1066 redirection to trap tar output. Use supplied handle instead.
1067 (create_uninstall): Accept FILE pointer to opened log file. Don't
1068 unlink log file here.
1069 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
1070 (main): Open log file here and pass it to various functions. Unlink
1073 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
1075 Change occurrences of .usr.bin to .bin throughout.
1076 * setup.c (geturl): Increase number of retries to 20. Let user know
1077 what's going on during long connects.
1078 (processdirlisting): Accept "A"lways and "N"ever as update options.
1079 (create_uninstall): Load cygwin1.dll from the current directory rather
1081 (main): Add some expository text.
1083 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
1085 * Makefile.in: Change method for compressing cygwin1.dll to avoid
1086 creating a cygwin1.dll in the current directory. Ensure the addition
1087 of -nostdinc to MINGW_CFLAGS.
1089 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
1091 * Makefile.in: Augment clean target.
1093 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
1095 * README: Added info about non-working mingw implementation
1096 * gzip.exe.gz: Replace with a version from the same build as the other
1098 * tar.exe.gz: Replace with a version from the same build as the other
1100 * mount.exe.gz: Add to repository until, mingw can build setup.
1101 * cygpath.exe.gz: ditto
1102 * cygwin1.dll.gz: ditto
1103 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
1104 for Win9x. Display only a screenfull of options at a time. Call all
1105 tools with an absolute path.
1106 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
1111 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
1113 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
1114 cygwin1.dll from ../cygwin subdirectory.
1115 * gzip.exe.gz: Update.
1116 * tar.exe.gz: Update.
1118 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
1120 * Makefile.in: Use ZLIB variable as a target.
1122 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
1124 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
1125 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
1127 * configure.in: Locate correct objcopy.
1128 * configure: Regenerate.
1130 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
1132 * Makefile.in: New file.
1133 * configure.in: New file.
1134 * configure: New file.
1135 * zlib/Makefile.am: New file.
1136 * zlib/configure.in: New file.
1137 * zlib/aclocal.m4: New file.
1138 * zlib/acinclude.m4: New file.
1139 * zlib/configure: Regenerate from configure.in.
1140 * zlib/Makefile.in: Regenerate from Makefile.am