1 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
5 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7 * choose.cc (default_trust): Change the "Required" forced install category to
10 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
12 * choose.cc: Ran indent.
13 (set_action): When the requested trust level is missing and the level was not
14 user requested, set the action to ACTION_SAME_CURR.
16 2001-11-01 Christopher Faylor <cgf@redhat.com>
18 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
20 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
22 * choose.cc (_view::init_headers): Resync with the paint logic.
24 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
26 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
29 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
31 * choose.cc (default_trust): Autoset currently installed packages per the user's
32 selection of prev/curr/exp.
34 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
36 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
38 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
40 * geturl.cc (is_showing): Remove.
41 (is_local_install): New static variable. Controls whether the
42 progress dialog and the supporting thread will be created.
43 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
44 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
45 This prevents the progress dialog to gain control over the
46 application and fixes the "setup.exe going to background" problem.
47 (progress): Use is_local_install.
48 (get_url_to_string): Set is_local_install.
49 (dismiss_url_status_dialog): Use is_local_install.
50 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
51 (init_dialog): Remove usage of SetForegroundWindow.
52 This prevents the progress dialog to gain control over the
53 application and fixes the "setup.exe going to background" problem.
55 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
57 * choose.cc (list_click): Change r to row for clarity.
58 When we shrink the list below 1 page, scroll to the top of the list.
59 (_view::click): Return the actual change for contractions.
60 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
62 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
64 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
65 * localdir.cc: Ran indent.
66 (get_root_dir_now): New function.
67 (save_local_dir): New function.
68 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
69 (do_local_dir): If there is a saved local dir, read it in.
70 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
71 * root.cc (dialog_cmd): Ditto.
72 * source.cc (dialog_cmd): Ditto.
74 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
76 * choose.cc(list_vscroll): Return 0 as required by win32.
77 (list_hscroll): Ditto.
80 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
84 * main.cc(WinMain): Use __argv to retrieve command line parameters.
85 * Makefile,in: Remove argv.o.
87 2001-11-01 Matt Hargett <matt@use.net>
89 * geturl.cc (progress): Change int to unsigned int to eliminate
91 * (get_url_to_string): Check for NULL pointer.
92 * mount.cc (find2): Use free instead of delete for malloc'd
94 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
96 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
98 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
99 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
100 (read_installed_db): Bugfix for testing whether a package has a source tarball.
101 Reported by Matt (matt@usa.net).
102 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
103 confusion and lint errors. Reported by Matt (matt@usa.net).
105 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
107 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
110 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
111 Add mingw_getopt.o build rule.
112 * main.cc(WinMain): Initialise argv and argc for use by getopt.
114 2001-10-27 Christopher Faylor <cgf@redhat.com>
116 * res.rc: Rearrange info on top line slightly.
118 2001-10-27 Christopher Faylor <cgf@redhat.com>
120 * desktop.cc (make_passwd_group): Move file creation earlier in the
121 process to ensure that passwd-grp.bat reflects desired operation.
123 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
125 * postinstall.cc (each): Remove "*.done" file else rename will fail.
127 2001-10-16 Christopher Faylor <cgf@redhat.com>
129 * res.rc: Oops. Take 640x480 screen size into account.
131 2001-10-16 Christopher Faylor <cgf@redhat.com>
133 * res.rc: Enlarge chooser screen.
135 2001-10-12 Christopher Faylor <cgf@redhat.com>
137 * Makefile.in: Accomodate changes to w32api_include macro.
139 2001-10-12 Christopher Faylor <cgf@redhat.com>
141 * Makefile.in: Use correct flags for windres.
143 2001-10-12 Christopher Faylor <cgf@redhat.com>
145 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
147 2001-10-12 Christopher Faylor <cgf@redhat.com>
149 * choose.cc (pick_line::paint): Reorganize after botched patch.
151 2001-10-12 Christopher Faylor <cgf@redhat.com>
153 * choose.cc (pick_line::paint): Add missing declaration.
155 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
157 * choose.cc (pick_line::paint): Add package name to sdesc for display.
159 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
161 * choose.cc (_view::insert_pkg): Correctly exit loop.
162 * iniparse.y (register_category): Always insert new categories.
164 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
166 * inilex.l (yylex): For comments, eat all characters up to, but not
169 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
171 * fromcwd.cc (found_file): Use correct package name when adding an
172 unknown package rather than random stack garbage.
174 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
176 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
178 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
180 * desktop.cc (etc_profile): Leave environment variables untouched.
182 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
184 * autoload.c: Add dynamic load statements for NT/W2K
185 advapi32 functions not available in 9x/ME.
186 * main.cc (set_default_dacl): New function.
187 (WinMain): Call `set_default_dacl' if running on NT/W2K.
189 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
191 * ini.h (_CategoryPackage): Change pkg field to pkgname for
193 * choose.cc: Use pkgname field when referencing _CategoryPackage
195 (fill_missing_category): Don't add excluded packages.
196 (default_trust): Ditto.
197 (_view::insert_pkg): Ditto.
198 * iniparse.y (register_category): Use consistent variable name.
200 2001-07-09 Egor Duda <deo@logos-m.ru>
202 * choose.cc: Use system foreground color for text output.
204 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
206 * choose.cc (set_action): Use default trust for determining reinstall
208 (default_trust): Set default trust.
209 (pick_line::paint): Allow source selection when reinstalling or
212 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
214 * choose.cc (isinstalled): Modify to properly accomodate special case
216 (set_action): Check downloaded components, not installed components if
218 (set_existence): Always include full list of files when "download
221 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
223 * choose.cc (pick_line::paint): Properly display "na" field when no
226 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
228 * choose.cc (scan2): Ensure that older versions do not show up in
231 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
233 * choose.cc (set_action): Allow "Skip" action if trust != installed.
234 * res.rc: Fix copyright.
236 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
238 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
240 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
242 * choose.cc: Restore some more changes from 2001-06-25, throughout.
243 (paint): Wrap some excessively long lines.
244 (pick_line::paint): Ditto. Move the arrow in the "Current" column
245 right to where it belongs. Move the source checkbox slightly to the
247 (do_choose): List categories and required packages in setup.log.full.
249 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
251 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
253 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
255 * ini.h (struct _Info): Add "derived" element.
256 * choose.cc (scan2): Try to place unknown tar files into proper slot
257 when package exists in setup.ini but tar file does not.
259 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
261 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
262 (do_choose): Log the first category name.
264 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
266 *ini.h: Reapply 2001-06-25 changes.
267 * choose.cc (add_required): Ditto. Default to "Keep" state if
268 UNINSTALL and product is installed. Default to curr state if SKIP,
270 (keep_or_skip): New function. Returns skip or keep state depending on
271 installed state of package.
272 (default_trust): Use keep_or_skip to set state.
273 (_view::insert_pkg): Use calloc to allocate lines.
274 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
276 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
278 * choose.cc: Remove globals full_list, headers, package_indexes and
280 Add globals cat_headers, pkg_headers and chooser.
281 (add_required): New function.
282 (paint): Use the chooser for header details.
283 Call into the chooser to paint each line.
284 (list_click): Use new global variables.
285 Call into the chooser to handle the click.
286 Repaint the entire view if packages have been added or removed.
287 (note_width): Get passed a headers struct rather than using a global
289 (fill_missing_category): New function.
290 (default_trust): Skip non-"Required" or "Misc" packages.
291 (pick_line::set_line (Package *)): New function.
292 (pick_line::set_line (Category *)): New function.
293 (pick_line::paint): New function.
294 (pick_line::click): New function.
295 (_view::_view): New function.
296 (_view::set_view_mode): New function.
297 (_view::mode_caption): New function.
298 (_view::set_headers): New function.
299 (_view::init_header): New function.
300 (_view::insert_pkg): New function.
301 (_view::insert_category): New function.
302 (_view::insert_at): New function.
303 (_view::insert_under): New function.
304 (_view::clear_view): New function.
305 (viewsplusplus): New function.
306 (_view::client): New function.
307 (set_view_mode): Use new chooser functionality.
308 (set_full_list): Use new global variables.
309 (create_listview): Instantiate chooser.
310 Remove all hardcoded headers[] code.
311 (dialog_cmd): On trust changes, check dependencies.
312 (getcategorybyname): New function.
313 (getpackagecategorybyname): New function.
314 (scan2): Use case-insensitive package comparison.
315 (do_choose): Use fill_missing_category ().
316 Show some category data.
317 * ini.h: Protect against multiple inclusion.
319 (_CategoryPackage): New struct.
320 (_Category): New struct.
321 (_Package): Change category to Category * from char *.
322 (extern Category category): New global variable.
323 (extern in ncategories): Ditto.
324 (getcategorybyname): New prototype.
325 (catpackagecategorybyname): New prototype.
326 (register_category): New prototype.
327 (add_category): New prototype.
328 * iniparse.y: Parse multiple categories per package.
329 (category): New global variable.
330 (ncategories): New global variable.
331 (new_package): Compare package against NULL, not 0.
332 (new_requirement): Source formatting fix.
333 (register_category): New function.
334 (add_category): New function.
335 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
336 IDC_CHOOSE_VIEWCAPTION: New control.
337 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
338 IDC_CHOOSE_VIEWCAPTION: New control.
339 Increment _APS_NEXT_CONTROL_VALUE.
341 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
343 * choose.cc (paint): Wrap excessively long lines.
345 (create_listview): Ditto.
346 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
347 setup.log.full. Allow "Yes" for source exists in setup.log.full when
348 installing from local directories.
350 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
352 * choose.cc (set_action): Only clear srcpicked when moving to next
353 state. Allow source installation if it exists in the current "trust"
354 state. Don't move to skip state when package is installed.
355 (list_click): Don't allow source clicking when no source is available.
356 (set_full_list): Display package when not is_full_action.
357 * ini.h (is_full_action): Define.
359 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
361 * install.cc (check_for_old_cygwin): New function. First stab at
362 checking for old cygwin versions.
363 (do_install): Call check_for_old_cygwin if there were no errors during
366 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
368 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
369 than zeroed "source" element.
371 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
373 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
374 the highest available "hole" in the trust array.
376 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
378 * choose.cc (set_existence): Use pointer method for indexing in trust
380 (create_listview): Ditto.
381 (scan2): Ditto. Also, use consistent variable name for indexing into
383 * ini.h (Package): Reorganize info array for easier scanning.
385 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
387 * choose.cc (isinstalled): Eliminate special download only test.
388 (set_action): Don't move to next state if in ACTION_SAME range and not
390 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
392 (do_choose): Sort packages after all packages have been read.
393 Accomodate the fact that first element in trust array is empty so that
394 log files don't report the wrong trust value.
395 * iniparse.y (new_package): Malloc space for package name or suffer
398 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
400 * ini.h (Dependency): New structure. Declare new function.
401 * inilex.l (yylex): Detect new setup.ini options - category and requires.
402 * iniparse.y: Declare new setup.ini token values.
403 (yyparse): Parse new token values.
404 (new_requirement): New function.
406 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
408 * choose.cc (read_installed_db): Eliminate obsolete code.
410 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
412 * choose.cc (set_action): Set trust on "redo".
413 (_Info::_Info): New constructor.
414 (read_installed_db): Use new constructor. Use trusts type for
416 * ini.h (struct _Info): Label struct, add constructor.
417 (Package): Make installed_ix a type 'trusts.'
418 * install.cc (uninstall_one): Unset any installed info for current
420 (install_one): Allocate new Info struct for installed reflecting new
422 (do_install): Don't output line to installed.db if package is being
425 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
427 * choose.cc (getpkgbyname): Use consistent method for scanning package
430 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
432 * choose.cc: Add some comments.
433 (getpkgbyname): Use strcasecmp for comparisons.
435 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
437 * install.cc (do_install): Avoid checking for download action if
438 package wasn't currently retrieved.
440 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
442 * choose.cc: Eliminate extra array throughout. Use element in package
443 structure instead. Use pointers rather than array indexes where
445 (set_action): New function to set next action based on current.
446 (choose_caption): New function. Returns display caption.
447 (check_existence): Change arguments. Use pointer to 'info' structure.
448 (set_existence): Use pointer rather than array index.
449 (default_trust): Use trusts enum for second argument.
450 (set_full_list): Honor exclude element in package structure.
451 (build_labels): Eliminate.
452 (base): Make global. Use const char * argument.
453 (get_package_version): Eliminate.
454 (getpkgbyname): New function.
455 (read_installed_db): Use parse_filename to get version info.
456 * desktop.cc (make_passwd_group): Use getpkgbyname function.
457 * download.cc (get_file_size): const argument.
458 (do_download): Use is_download_action to determine when something
459 should be downloaded.
460 * filemanip.h: Add some functions.
461 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
462 * ini.h: Use enums for actions and trusts.
463 (is_download_action): New macro.
464 (is_upgrade_action): Ditto.
465 (is_uninstall_action): Ditto.
466 (struct Package): Add new fields.
467 * inilex.l (yylex): Detect new setup.ini options.
468 * iniparse.y: Declare new tokens.
469 (yyparse): Detect exclude keyword. Fill out version field even if
471 (new_package): Use greater granularity when allocating package array to
472 avoid repeated calls to realloc.
473 * install.cc (exists): const argument.
474 (uninstall_one): Take pkg argument.
475 (install_one): Ditto. Eliminate unneeded arguments which can be
476 derived from package info.
477 (do_install): Iterate over package array using a pointer. Use
478 is_download_action to control when package should be downloaded.
479 * tar.cc (tar_open): const argument.
480 * tar.h: Refloect const argument.
482 2001-05-31 Michael Chase mchase@ix.netcom.com
484 * main.cc (WinMain): Add setup version to starting setup.log entry
486 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
488 * inilex.l: Add + to list of valid string characters.
490 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
492 * Makefile.in: Remove more stuff in the clean target.
494 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
496 * Makefile.in: Correctly generate iniparse.h.
498 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
500 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
501 * geturl.h: Change declaration of `get_url_to_file' accordingly.
502 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
503 Set member `ftp_auth'.
504 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
505 to constructors of derived classes.
506 (NetIO::get_ftp_auth): New method.
507 * netio.h: Change class definition accordingly.
508 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
509 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
510 Add code for ftp authentication retry.
511 * nio-ftp.h: Change class definition accordingly.
512 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
513 Add code for ftp authentication retry in case of proxy connection.
514 * nio-http.h: Change class definition accordingly.
515 * res.rc: Add FTP authentication dialog.
516 * resource.h: Add new constants used in res.rc.
517 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
519 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
521 * res.rc (IDD_SPLASH): Add a copyright year.
523 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
525 * Makefile.in: Make iniparse.y produce a c++ file.
526 * choose.cc (set_existence): Revert 2001-05-27 change.
527 * ini.cc: Remove "C" from declaration of yyparse.
528 * iniparse.y (yyparse): Fill out version field by default when a binary
529 install is detected and no version has been set yet.
530 * install.cc (do_install): Mount things earlier so that we can use
531 proper mount table settings. Don't remove mounts since they are now
533 * mount.cc (create_mount): Reread the mount table after establishing a
535 (read_mounts): Explicitly clear root_here to allow multiple uses of
536 this function. Ensure that there is no garbage in the table when we've
537 exhausted all of the mounts in the registry.
538 (cygpath): Accomodate ./ in path.
540 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
542 Use parse_filename method to parse filenames throughout. Use
543 get_root_dir to retrieve the current root directory throughout. Set
544 const in argument list, where appropriate, throughout.
545 * choose.cc (set_existence): Detect case of uninstalled package with no
547 (parse_filename): New function.
548 * filemanip.h (fileparse): New structure.
549 * mount.cc (read_mounts): Remember where we found the root mount.
550 (set_root_dir): New function.
551 (get_root_dir): Ditto.
552 * mount.h: Declare new functions.
553 * site.cc (get_root_dir_now): Renamed from get_root_dir.
554 (save_site_url): Use new function name.
555 (get_initial_list_idx): Ditto.
557 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
559 * choose.cc: Use a constant throughout to deal with chooser icon
561 * res.rc (IDD_CHOOSE): Increase size of chooser box.
563 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
565 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
566 use when Redownload or Sources Only selected.
568 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
570 Reformat file after botched patch formatting.
571 * choose.cc (which_trust): Eliminate variable.
572 (default_trust): Don't set which_trust.
573 (do_choose): Use selected trust when reinstalling or installing source.
575 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
577 Change concat to cygpath throughout.
578 Change map_filename to cygpath throughout.
579 * concat.cc (vconcat): New function.
580 (concat): Use vconcat.
581 * concat.h: Reflect above.
582 * install.cc (map_filename): Eliminate.
583 (install_one): Free dest_file.
584 * mount.cc (find2): Expect input key to be pointing to mount record.
585 (in_table): New function.
586 (is_admin): Move from root.cc.
587 (read_mounts): New function.
588 (path_prefix_p): New function.
589 (cygpath): New function.
590 * mount.h: Define new functions and structure.
591 * root.cc (in_table): Move to mount.cc.
592 (do_root): Call read_mounts to initialize root stuff and mount table.
593 * site.cc (get_root_dir): Ditto.
595 2001-05-09 Matt Hargett <matt@use.net>
597 * Makefile.in: Remove *.rc from clean.
599 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
601 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
602 TRUST_PREV which produced "0" versions.
604 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
606 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
607 _APS_NEXT_CONTROL_VALUE to account for addition of
608 IDC_CHOOSE_INST_TEXT.
609 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
610 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
611 hot keys to select Prev, Curr, Exp.
612 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
613 define for LOOP_PACKAGES to include new actions ACTION_REDO and
615 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
616 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
617 source Checkbox to use.
618 (build_labels): Add logic to allow for selection of Source only
619 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
620 current version binary.
621 (dialog_proc): Add conditional display for file selection prompt based
622 on download vs install using IDC_CHOOSE_INST_TEXT.
623 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
624 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
625 handle the instance where Source Download/Install was selected. Modify
626 log file to store appropriate information regarding Action selected and
627 the new actions that were added (I.E.: ACTION_REDO and
629 * download.cc: Add include for <unistd.h> and "port.h".
630 (download_one): Modify parameter list to include the selected action
631 for the file to be downloaded. Modify size check against expected size
632 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
633 .tmp file to also remove the destination file if exists due to ability
634 to redownload source and binary now.
635 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
636 calculation of Download Bytes. Modify to also use ACTION_REDO and
637 ACTION_SRC_ONLY in determining files selected for download.
638 * install.cc (uninstall_one): Add check to treat a Reinstall like an
639 upgrade so current version will be uninstalled prior to reinstall.
640 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
641 uninstalling and installing binary and source packages.
642 * desktop.cc (make_passwd_group): Modify logic to account for a Source
643 only cygwin install when checking for cygwin to determine need for
644 mkpasswd and mkgroup.
646 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
648 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
649 Removed WS_DISABLED from "OK" buttons to accomodate default focus
650 changes in net.cc and source.cc.
651 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
652 a default is selected.
653 * winsup/cinstall/source.cc (dialog_proc): Ditto.
654 (check_if_enable_next): Removed. No longer needed since a radio button
655 will always be selected.
656 (load_dialog): Removed call to check_if_enable_next.
657 (dialog_cmd): Ditto. Also added default to switch.
659 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
661 * res.rc: Resize affected text.
663 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
665 * net.cc (do_net): Default to direct download.
666 * res.rc: Move default selections to the top.
668 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
670 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
671 Must now include <windows.h> and not the pieces.
672 * choose.cc (create_listview): Clean up type mismatch problems.
673 * dialog.h (NEXT(id)): Ditto.
674 * geturl.cc (dialog): Ditto.
675 * install.cc (dialog): Ditto.
676 * splash.cc (load_dialog): Ditto.
678 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
680 * tar.cc (class gzbz): Define dummy virtual functions.
682 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
684 * Makefile.in: Add bz2 include/library support.
685 * filemanip.h: New file.
686 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
688 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
689 (read_installed_db): Ditto.
691 * fromcwd.cc (found_file): Ditto.
693 * tar.cc (class gzbz): New super class for uncompression support.
694 (gz): New class for gzip support.
695 (bz): New class for bzip2 support.
696 (tar_open): Use gzbz class to control file opening.
697 (tar_ftell): Ditto for returning position in file.
698 (skip_file): Ditto for reading file.
699 (tar_next_file): Ditto.
700 (tar_read_file): Ditto.
701 (tar_close): Ditto for close.
703 * zlib/configure.in: Force NM substitution.
705 * source.cc (do_source): Default to "Install from Internet".
707 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
709 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
711 * choose.cc (list_click): Correct inability to select source code for
713 (scan2): Modify to skip source tarballs when scanning disk for
714 installable packages.
716 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
718 * install.cc: install sources into /usr/src instead
719 of /, also include the sizes of source tarballs
721 * download.cc: include sizes of source tarballs in
722 total_download_bytes.
724 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
726 * download.cc (get_file_size): Remove `static'.
728 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
730 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
732 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
734 * choose.cc (paint): Modify message for nothing to download vs
735 nothing to install/update based on installation method.
736 (list_click): Modify to skip versions in selection process if
737 installing from local directory and installation file does not exist.
738 Also leaves Source Action set to N/A if the source file does not exist
739 and installing from local directory.
740 (check_existence): New method to check current existence of installation
741 files based on selected installation method.
742 (set_existence): New method to set the current existence of installation
743 files based on selected installation method.
744 (best_trust): Modify decision process for best trust to base decision on
745 current trust selected (IE: Prev, Curr, or Test), existence of file and
746 installation method selected.
747 (default_trust): Add logic to capture the current trust level and the
748 trust selected for the given package.
749 (set_full_list): Expand decision criteria for displaying a package in
750 the selection list to include file existence/non-existence and selected
752 (build_labels): Modify criteria for label addition to include
753 installation method and file existence/non-existence.
754 (create_listview): Modify to establish package trust level for each
755 package before setting up the display list. Also modification to set
756 current trust button as the default.
757 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
758 a reset of the selection list in addition to setting the default trust.
759 (get_package_version): New method to provide reusable code for
760 determining the package version from the file name for a specified
762 (scan2): Modify to use new method get_package_version and
763 also enhance handling of the build for the structures package and
765 (read_installed_db): Modify to use the new method
766 get_package_version and also enhance handling of the build for the
767 structures package and extra.
768 (do_choose): Add additional initialization of package and extra
769 structures. Modify to use read_installed_db all the time despite
770 install method. Modify output to setup.log.full log file to increase
771 readability by adding additional spacing, expanded code and available
773 * ini.h: Add new fields install_exists, source_exists and
774 partial_list_display to the structure definition for package.
775 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
776 pushbuttons by replacing with Radio Buttons thus allowing the
777 operator to better determine which is selected.
779 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
781 * download.cc (do_download): Add new variables total_download_bytes and
782 total_download_bytes_sofar for download progress meter. Add loop
783 to accumulate the total bytes to download from the selected packages.
784 * geturl.cc: Add state.h and diskfull.h to include list. Add new
785 variables gw_iprogress, gw_pprogress, gw_progress_text,
786 gw_pprogress_text, and gw_iprogress_text to allow for addition of
787 total packages download progress meter and disk full percent
788 progress meter. Add variables total_download_bytes and
789 total_download_bytes_sofar for use by progress meters.
790 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
791 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
792 allow for addition of total packages download progress meter and disk
793 full percent progress meter.
794 (init_dialog): Ditto.
796 (get_url_to_file): Ditto.
797 * geturl.h: Add external definition for total_download_bytes and
798 total_download_bytes_sofar.
799 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
800 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
801 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
803 * resource.h: Add new fields for progress meters and text and update
804 _APS_NEXT_CONTROL_VALUE.
806 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
808 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
811 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
813 * download.cc (download_one): Add missing parenthesis.
815 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
817 * download.cc (get_file_size): New function. Eliminates the need
819 (download_one): Call `get_file_size' instead of `stat'. This
820 workarounds a problem with mingw's `stat' call.
822 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
824 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
825 This is to allow cinstall to build with 2.95.2-7 and to make the
826 use of headers consistent.
828 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
830 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
832 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
834 * winsup/cinstall/res.rc: Added accelerators and improved focus
837 2000-12-10 Egor Duda <deo@logos-m.ru>
839 * choose.cc (paint): Use system background color for text output.
841 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
843 * Makefile.in: Use CXX for linking and for compiling .cc files.
844 * configure.in: Find correct c++ compiler.
845 * configure: Regenerate.
847 2000-11-17 DJ Delorie <dj@redhat.com>
849 * splash.cc (load_dialog): Make message more obvious.
852 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
854 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
855 necessary for newer compilers.
857 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
859 * desktop.cc: Include "ini.h" and "version.h".
860 (make_passwd_group): Skip the function on 9x/ME boxes when an
861 older version of Cygwin has been installed which doesn't
862 support mkpasswd/mkgroup on 9x/ME.
863 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
866 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
868 * desktop.cc (make_passwd_group): Don't exit when started
869 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
871 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
873 * install.cc (do_install): Add call to set_cygdrive_flags to sync
875 * mount.cc (set_cygdrive_flags): New function.
876 (get_cygdrive_flags): Ditto.
877 (default_cygdrive): Ditto.
878 (set_cygdrive_flags): Ditto.
879 * mount.h: Add prototype for set_cygdrive_flags.
881 2000-10-23 DJ Delorie <dj@redhat.com>
883 * ini.h: add source actions
884 * fromcwd.cc: check for available sources
885 * res.rc: add checkbox bitmaps
888 * choose.cc: add source column
889 * download.cc: download sources if called for
890 * install.cc: [un]install sources too
892 2000-10-22 DJ Delorie <dj@redhat.com>
894 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
895 ignore it wrt full_list if there's already a version installed.
896 (do_choose): Sort the list.
899 2000-10-12 DJ Delorie <dj@redhat.com>
901 * res.rc: Add more error strings.
903 * iniparse.y (new_package): re-initialize if needed.
904 * download.cc (do_download): Keep track of errors; notify and
906 * install.cc (do_install): Ditto.
908 2000-10-05 DJ Delorie <dj@redhat.com>
910 * Makefile.in: fix %.cc rule
912 2000-10-04 DJ Delorie <dj@redhat.com>
914 * desktop.cc: quote HOME and USER, don't . ./.profile
916 * choose.cc (build_labels): don't include in partial list just
917 because there's a *previous* version available.
919 * install.cc (do_install): if installing from local directory with
920 setup.ini and the file isn't found, look in "." also. Note errors.
922 2000-10-02 DJ Delorie <dj@redhat.com>
924 * ini.cc (do_ini): save setup.ini locally
926 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
928 * desktop.cc: quote escapes in prompt
930 2000-10-02 Jason Tishler <jt@dothill.com>
932 * root.cc (is_admin): New function.
933 (read_mount_table): Check for administrative priviledges and set
934 installation scope as appropriate.
936 2000-09-28 DJ Delorie <dj@redhat.com>
938 * nio-ftp.cc (ftp_line): handle continuations more robustly
940 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
942 * res.rc: increased the size of the site dialog (IDD_SITE) & the
943 corresponding list box to provide for more URL's to be listed.
944 Modified the position of the Back, Next and Cancel buttons to
945 correspond to the new size of the dialog.
947 2000-09-13 DJ Delorie <dj@redhat.com>
949 * install.cc (do_install): update disk fullness once per package
950 to improve performance
952 * choose.cc (create_listview): call ReleaseDC
954 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
956 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
957 returned, as it seems Samba 2.0.6+ returns this instead of
960 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
962 * site.cc (get_initial_list_idx): Don't default to saved URL if it
965 2000-09-07 DJ Delorie <dj@redhat.com>
967 * splash.cc: use version.h, not local decl
968 * res.rc: add "old version" message
971 * fromcwd.cc (canonicalize_version): make global
972 * iniparse.y: add setup-version support, fix bug in blank line
975 * inilex.l: add [exp] as alias for [test], add setup-version
976 * Makefile.in (version.c): add setup-version tag
978 * desktop.cc (do_desktop): remove 1.1 version number
979 (do_desktop_setup): ditto
981 * ini.cc (do_ini): zero out package list just in case we redo it.
983 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
985 * choose.cc (list_click): Check for nindexes==0; if so, return.
987 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
989 * localdir.cc: new, local package directory selection dialog; cd
990 into selected directory
991 * Makefile.in (OBJS): add localdir.o
992 * dialog.h: add prototype for do_local_dir
993 * main.cc (WinMain): initialize local_dir to cwd; add call to
995 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
996 * source.cc (dialog_cmd): ditto
997 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
998 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
999 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
1000 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
1001 * state.h: add local_dir variable
1003 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
1005 * desktop.cc: added logic to handle to the new dialog and to
1006 default the setting for the new checkboxes based on whether the
1007 desktop icon or start menu link already exist.
1008 (desktop_icon): correction to desktop directories for desktop icon
1009 creation. Additional logic added for Win95 which does not appear
1010 to have Common Directories so if Common selected and null uses
1012 (start_menu): Additional logic added for Win95 which does not
1013 appear to have Common Directories so if Common selected and null
1014 uses normal directory.
1015 (do_desktop_setup): moved the saving of the icon, creation of the
1016 bat file, profile, passwd, Start Menu link and desktop shortcut to
1017 this method from do_desktop. Made the creation of the desktop
1018 icon and start menu link conditional on settings of new dialog
1019 created for desktop.
1020 * install.cc (do_install): changed next from IDD_S_DESKTOP to
1022 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
1023 * res.rc: added new resource to create a desktop dialog with 2
1024 checkboxes for creating the desktop icon and start menu link.
1025 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
1026 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
1027 * state.h: added root_menu and root_desktop for use in dialog.
1029 2000-08-29 DJ Delorie <dj@redhat.com>
1031 * choose.cc (scan_downloaded_files): scan for existing files, so
1032 that the user only sees new downloads.
1034 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
1035 * site.cc (do_site): if we can't download the mirror list, go back
1036 to the net setup box to choose another transport.
1037 * autoload.c: add more functions
1038 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
1039 * resource.h: add WININET message
1041 * net.cc (do_net): no longer default to IE5
1042 * simpsock.h (class SimpleSocket): new, simplify socket operations
1043 * simpsock.cc: ditto
1044 * nio-http.h: new, for direct http protocol
1045 * nio-http.cc: ditto
1046 * nio-ftp.h: new, for direct http protocol
1048 * netio.cc (set_url): move initialization here to handle redirections
1049 (open): add direct http/ftp
1050 * netio.h (NetIO::set_url): new
1052 * log.cc (log_save): create directory for log if needed
1054 * hash.cc, hash.h: new
1055 * Makefile: add hash.o
1056 * choose.cc: enable "uninstall" option
1057 * download.cc: invert action test to accomodate uninstalling
1058 * ini.h: add ACTION_UNINSTALL
1059 * install.cc: add uninstall functionality
1060 * res.rc: make install tag changeable
1061 * resource.h: add uninstall resources
1063 * res.rc: update mirror list URL
1065 2000-08-24 DJ Delorie <dj@redhat.com>
1067 * log.cc, log.h: new files
1068 * Makefile.in (OBJS): add log.o
1069 * tar.cc: use exit_setup instead of exit
1070 * dialog.cc (fatal): use exit_setup instead of ExitProcess
1071 * msg.cc (fatal): ditto
1072 * install.cc (dialog_cmd): ditto
1073 * ini.cc (do_ini): ditto
1074 * main.cc (main): add logging
1075 * source.cc (do_source): ditto
1076 * root.cc (do_source): ditto
1077 * site.cc (do_site): ditto
1078 * other.cc (do_other): ditto
1079 * net.cc (do_net): ditto
1080 * choose.cc (do_choose): ditto
1081 * download.cc (do_download): ditto
1082 * install.cc (do_install): ditto
1083 * msg.cc (fatal): ditto
1085 * res.rc: mark password boxes as *being* password boxes.
1087 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
1088 calls won't use the same buffer.
1089 * choose.cc (create_listview): don't default to full list if no changes
1090 (base): return computed value, not temporary :-(
1091 (do_choose): don't use installed.db if we're only downloading.
1093 2000-08-23 DJ Delorie <dj@redhat.com>
1095 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
1096 * nio-ie5.h (flush_io): new
1097 * netio.cc (load_dialog): note when we're initializing the dialog
1098 box, and ignore changes to the edit fields then.
1100 2000-08-21 DJ Delorie <dj@redhat.com>
1104 * fromcwd.cc (found_file): don't remember the canonicalized version
1106 * choose.cc (paint): print "nothing to do" message when list is empty.
1107 (build_labels): Use version "0.0" if no version is available.
1108 (create_listview): default to full list if nothing to install/update.
1109 (base): new, returns basename of file
1110 (read_installed_db): compare base names, not full paths
1112 2000-08-11 DJ Delorie <dj@redhat.com>
1114 * choose.cc: add new chooser dialog
1115 * fromcwd.cc: use IDD_CHOOSE
1116 * ini.cc: use IDD_CHOOSE
1117 * main.cc: use IDD_CHOOSE
1118 * ini.h: cosmetic changes
1119 * res.rc: add choose dialog, bitmaps
1120 * choose-spin.bmp: new
1121 * choose-rtarrow.bmp: new
1122 * resource.h: add choose dialog controls
1124 * mount.cc: remove debug statement
1126 2000-08-08 DJ Delorie <dj@redhat.com>
1128 * Makefile.in (version.c): make version checking more robust
1129 * splash.cc (load_dialog): handle case where there's no version
1131 2000-08-07 DJ Delorie <dj@redhat.com>
1133 * (all): add cvsid tags
1134 * Makefile.in: generate version.c from ChangeLog, add splash.o
1136 * res.rc: add splash screen
1138 2000-08-02 DJ Delorie <dj@redhat.com>
1140 * net.cc: remove proxy password code
1141 * res.rc: remove proxy user/pass from net, add auth dialogs
1142 * netio.cc,h: add sys/proxy auth methods
1143 * nio-ie5: use them, check for http status codes
1144 * state.h: add system authorization
1146 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
1149 2000-08-02 Norman Vine <nhv@yahoo,com>
1151 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
1153 2000-08-01 DJ Delorie <dj@redhat.com>
1155 * postinstall.cc (each): don't rename files we ignore
1156 (do_postinstall): set CYGWINROOT to root_dir, chdir there
1158 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
1160 2000-07-31 DJ Delorie <dj@redhat.com>
1162 * desktop.cc: reverse PATH so /usr/bin precedes /bin
1164 2000-07-18 DJ Delorie <dj@redhat.com>
1166 * autoload.c: new, autoload dlls that might not be available.
1167 * Makefile.in (OBJS): add autoload.o
1169 * res.rc: rewrite root options (text/binary, system/user) to be
1172 * site.cc (get_site_list): trim displayed URL, sort by domain
1174 * net.cc (do_net): make IE5 default to checked, for now
1176 * choose.cc (do_choose): sort packages correctly
1177 * ini.cc (do_ini): handle parse errors more gracefully
1179 (fprintf): line buffer output
1180 (do_ini): if we can't load setup.ini, go back to the site list.
1181 * ini.h: add "unknown" trust level
1182 * inilex.l: absorb unknown trust levels and key/value pairs,
1183 add line number logic
1184 * iniparse.y: handle parse errors more gracefully.
1185 * install.cc: skip packages with no valid install entry
1187 2000-07-17 DJ Delorie <dj@cygnus.com>
1189 * coding standards fixups, many files
1190 * mkdir.cc: warn about deletions *before* deleting them
1192 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
1194 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
1196 * other.cc (dialog_cmd): save download site URL
1197 * site.cc (get_root_dir): new
1198 (save_mirror_site): new
1199 (dialog_cmd): save download site URL
1200 (get_site_list): make list big enough to add prev site
1201 (get_initial_list_idx): new, read last-used URL from file and
1202 append it to site_list
1203 (do_site): call get_initial_list_idx
1205 * concat.cc (concat): avoid segfault when first parm is null
1207 2000-07-13 DJ Delorie <dj@cygnus.com>
1209 * postinstall.cc: new
1210 * Makefile.in: add postinstall.o
1211 * concat.h: add backslash ()
1213 * desktop.cc (etc_profile): don't do postinstall
1214 (backslash): moved to concat.cc
1216 (make_postinstall_script): run directly
1217 (do_desktop): chain to do_postinstall
1218 * dialog.h: add exit_msg, do_postinstall
1219 * download.cc: use exit_msg
1221 * main.cc: add postinstall, exit_msg
1222 * resource.h: add postinstall
1223 * README: add more to-do items
1225 2000-07-12 DJ Delorie <dj@cygnus.com>
1227 * desktop.cc: add /etc/postinstall/ support
1228 * install.cc: add more "standard" directories
1230 2000-07-11 DJ Delorie <dj@cygnus.com>
1232 * desktop.cc: create /etc/profile
1233 * desktop.cc: fix include syntax
1234 * Makefile.in: add auto-dependencies
1235 * root.cc: support system vs user
1243 * desktop.cc: make sure we use backslashes, not slashes.
1244 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
1245 * geturl.cc: change math for percentage to avoid overflow
1247 * download.cc: post "download complete" message.
1248 * root.cc: pre-fill in defaults if needed, don't start
1249 browse at root_dir unless it's set.
1250 * desktop.cc: quote $PATH in case it has spaces in it
1252 2000-07-10 DJ Delorie <dj@cygnus.com>
1254 * Makefile.in: add desktop.o and mklink2.o
1255 * dialog.h: add do_desktop
1256 * install.cc: create standard directories, call do_desktop
1257 * res.rc: add cygwin.ico as a file also
1258 * desktop.cc: new, do shortcuts, batch files, and icons
1259 * mklink2.c: new, for COM
1260 * README: update to-do list
1262 2000-07-10 DJ Delorie <dj@cygnus.com>
1264 * ini.cc (do_ini): don't worry about timestamps if we're not
1265 actually installing.
1267 2000-07-09 DJ Delorie <dj@cygnus.com>
1269 * Makefile.in: add -I$(srcdir) for ini.h
1271 2000-07-06 DJ Delorie <dj@cygnus.com>
1273 * Replace everything with a new GUI version
1274 * zlib/gzio.c: add gzctell() for progress displays
1276 2000-06-22 DJ Delorie <dj@cygnus.com>
1278 * setup.c (tarx): re-add call to write_pkg()
1280 2000-06-07 DJ Delorie <dj@cygnus.com>
1282 * cygcalls.c: new, call cygwin1.dll functions directly
1283 * cygcalls.h: header for same
1284 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
1285 exes, fix cinstall.rc dependencies.
1286 * path.c: remove unneeded code
1287 * setup.c: use cygcalls instead of xcreate_process.
1288 uncompress embedded files with zlib
1289 add "-d" for "download only"
1291 postpone mount changes until very end
1292 add download progress indicators
1293 pack multi-column listings more
1294 auto-delete temp files
1295 customize banner message according to options
1296 prompt user for text/binary mounts
1297 add warnings about empty setup directory, root installs, etc
1299 2000-05-24 DJ Delorie <dj@cygnus.com>
1301 * tar.c: New file; built-in tar using zlib.
1302 * tar.h: New file; header for same.
1303 * ctar.c: New file; test program for same.
1304 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
1305 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
1306 * setup.c (tarx): add support for built-in tar
1307 (main): accept unix-style slashes, check root dir for drive letters,
1308 warn about installing in /, make sure cwd is empty for internet installs,
1309 defer mounts to end of install, support built-in tar.
1311 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
1313 Fix compiler warnings throughout.
1314 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
1316 * setup.c: Make 'root' global.
1317 (istargz): Return pointer to "stem" of matched .tar.gz file.
1318 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
1319 bogus check_for_installed check.
1320 (recurse_dirs): Add preliminary support for .bat file execution.
1321 (create_uninstall): Eliminate unneeded parameter.
1322 (do_start_menu): Ditto.
1324 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
1325 scanning for the version number. Eliminate unneeded argument to
1327 (getdownloadsource): Add 'name' to list of names rather than url.
1328 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
1329 unneeded argument in mkmount and do_start_menu.
1331 2000-05-18 DJ Delorie <dj@cygnus.com>
1333 * setup.c (optionprompt): allow multi-column, clean up message
1334 about more options, be more robust about user input.
1335 (getdownloadsource): make the mirror URL a macro.
1336 (main): do mounts after done prompting user.
1338 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
1340 * setup.c (cleanup): Inverse order of deletion stands a better chance
1341 of deleting cygpath.exe. Still seems to suffer from occasional races,
1343 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
1345 (output_file): Defend against an unlikely handle leak.
1346 (main): Don't set up signal handling until we have something special to
1349 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
1351 * path.c (kill_cygpath): Delete function.
1352 (exit_cygpath): Make more defensive so that it can be called at any
1354 (cygpath_pipe): Don't set up signal here. Do it in main().
1355 * setup.c (istargz): New function.
1356 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
1357 inexplicably fails on samba mounted partitions. Use istargz to match
1359 (processdirlisting) Use istargz to match tar.gz tail.
1360 (cleanup): Renamed from filedel.
1361 (cleanup_on_signal): New function. Called on CTRL-C.
1362 (main): Record handle of main thread so that it can be suspended when
1363 CTRL-C occurs. Set up cleanup_on_signal signal handler.
1365 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
1367 * setup.c (do_start_menu): Don't concatenate paths to already built
1370 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
1372 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
1373 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
1375 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
1377 * setup.c (filedel): Call exit_cygpath here so that we can be assured
1378 that cygpath subprocess has died. This allows us to delete cygpath.exe
1380 (optionprompt): Initialize response to -1 so that second screen of
1381 mirrors will appear.
1382 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
1383 * setup.h: Reflect init_pkgs prototype change.
1385 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
1387 * pkg.c (init_pkgs): Accept an argument to control what root registry
1389 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
1390 * setup.h: Reflect init_pkgs prototype change.
1392 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
1394 * error.c (winerror): Respond to gcc warning.
1395 * path.c (cygpath_pipe): Ditto.
1396 * setup.c (filedel): Call sa_cleanup on deleteme.
1397 (create_shortcut): Coerce argument to eliminate compiler warning.
1398 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
1399 (refmatches): New function. Tests if ref is contained in a list of
1400 packages to install.
1401 (filematches): New function. Tests if filename matches one of a list
1402 of packages to install.
1403 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
1404 test to accomodate _tar.gz.
1405 (prompt): Ensure that stdout is flushed prior to asking for input.
1406 (findhref): Initialize variables to quiet a compiler warning.
1407 (processdirlisting): Accept list of packages to install. Special case
1408 cygwin tar file version number.
1409 (downloaddir): Accept list of packages to install.
1410 (downloadfrom): Ditto.
1411 (create_uninstall): Eliminate unneeded variables. Quote arguments to
1413 (do_start_menu): Don't create uninstall bat file if updating or user
1414 specified a list of packages.
1415 (mkmount): Eliminate unneeded variables.
1416 (get_pkg_stuff): New function. Checks for previous unversioned
1418 (main): Accept -u and -f options and package names on the command line.
1419 Use get_pkg_stuff to initialize package information. Umount /etc.
1420 Call recurse_dirs and downloadfrom with list of package to install.
1421 Ensure that all /usr/local directories are created. Output
1422 installation time to setup.log.
1423 * setup.h: Add some prototypes.
1424 * xsystem.c (xcreate_process): Eliminate unneeded variable.
1426 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
1428 * setup.c (optionprompt): Don't overlap display of already seen options
1430 (geturl): Print name of site which we're connecting to rather than "ftp
1432 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
1433 test too simplistic?
1434 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
1435 problems when user chooses x:\ as their root.
1436 (main): For now, default to "non-update" mode. Allow -u option to
1439 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
1442 * setup.c (tarx): Skip already installed or older packages. Report
1443 when a package has been updated.
1444 (processdirlisting): Skip already installed or older packages.
1445 (main): Detect -f option for forced installation. Initialize pkg stuff
1447 * setup.h: Add pkg definitions.
1449 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
1451 * setup.c (findhref): Return NULL on empty string. Eat any trailing
1453 (processdirlisting): Attempt to limit recursively processing the same
1456 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
1458 * setup.c (filedel): New function.
1459 (output_file): Keep track of files extracted from setup.exe for
1460 subsequent deletion.
1461 (tarx): Close process handle of child tar process or suffer handle
1463 (getdownloadsource): Close mirror file so that it can be unlinked.
1464 (processdirlisting): Return total number of files extracted.
1465 (main): Initialize array of files to delete. Ensure that files are
1466 closed on exit. Make the directory that setup.exe is started from ==
1467 the directory where temporary files are placed. Issue an error if no
1468 files were found to download.
1469 * xsystem.c (xcreate_process): Close the thread handle. Close the
1470 process handle if we waited for it to exit.
1472 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
1474 * setup.c (main): Change version number output.
1476 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
1478 * setup.c (tarx): Use full path name to tar executable.
1479 (main): Build full pathname to tar executable. Create /usr/local/etc
1482 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
1484 * setup.c (findhref): Change method for scanning for href= to choose
1485 the last one on the line. This is still not foolproof and probably
1486 will need to be changed eventually. Don't abort if no "size" field is
1488 (processdirlisting): Fix boolean algebra.
1490 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
1492 * main.c (tarx): Add some code for future task of unmounting
1493 directories encountered in tar file.
1495 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
1497 * setup.c (findhref): Decode file size, when appropriate.
1498 (needfile): New function. Returns 1 when file should be
1500 (processdirlisting): Always download if file size does not
1501 match. Prompt when download fails for some reason.
1502 (getdownloadsource): Accomodate findhref argument changes.
1504 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
1506 Throughout, use global session handle rather than reinitializing for
1507 each connect. Don't pass session as an argument to setup.c functions.
1508 * setup.c (geturl): Only issue "Connecting to.." message when using
1509 http or first time for ftp since subsequent connections will be fast.
1510 (processdirlisting): Allocate space for "N" when user has specified
1511 "N"ever option so that it can be subsequently freed.
1512 (main): Abort if we can't get the list of mirrors.
1514 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
1516 * setup.c (main): Umount /bin and /lib.
1518 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
1520 * setup.c (main): Create an empty /var/run/utmp.
1522 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
1524 * Makefile.in: Add umount to list of files to include in setup.exe.
1525 * setup.c (xumount): New function for unmounting directories.
1526 (main): Unmount /usr.
1527 (mkmount): Unmount "unix directory" before trying to figure out where
1528 to create the directory.
1530 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
1532 * setup.c (mkmount): Use xcreate_process to start mount process,
1534 (main): Don't do buffering on stdout or prompts won't be displayed
1535 correctly if running in a cygwin shell with CYGWIN=tty.
1537 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
1539 * setup.c (main): Remove the CYGWIN environment variable before
1540 starting any cygwin programs.
1542 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
1544 * setup.c (geturl): Use alternative method for finding filename part of
1546 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
1547 (downloaddir): Unlink file containing dir listing.
1548 (downloadfrom): Ditto.
1550 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
1552 * setup.c (main): Disallow running setup.exe from the "root".
1554 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
1556 Use "warning" function, where appropriate, to output warnings.
1557 * setup.c (warning): New function -- outputs warning to console and log
1559 (tarx): Fix index used to reset file protection.
1560 (main): Open the log file earlier so that more stuff can be sent to it.
1562 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
1564 * setup.c (processdirlisting): Make "N" option a little less aggressive.
1566 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
1568 * setup.c (tarx): Wait to after tar has completed to reset protections
1569 or suffer races with tar process.
1571 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
1573 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
1574 * setup.c (create_uninstall): Create the uninstall .bat file in the
1575 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
1576 list of files to be deleted. Fix directory detection for determining
1577 when to use 'rmdir'.
1578 (do_start_menu): Add /usr/local/bin to the path.
1579 (main): Add slop to files.array allocation so that we don't have to
1580 worry about reallocating the array when it grows too large when doing
1581 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
1584 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
1586 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
1589 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
1591 * path.c (kill_cygpath): New cleanup function.
1592 (exit_cygpath): New cleanup function.
1593 (cygpath_pipe): New function. Sets up cygpath in the background for
1594 translating filenames.
1595 (pathcvt): Use background cygpath for file translation.
1596 * setup.c (tarx): New function. Called to extract tar files, capture
1597 logging output, and translate it to Windows format.
1598 (recurse_dirs): Use 'tarx' function to extract files.
1599 (create_uninstall): Use file list built up by tarx rather than reading
1601 (mkmount): Add ability to mount root.
1602 (main): Track elapsed install time. Mount root.
1603 * starry.h: Add index field to strarry for tracking of tarx's usage of
1605 * xsystem.c (xcreate_process): Return proces handle when not waiting.
1607 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
1610 (pathfp): New function. Preliminary work for new -f cygpath
1612 * Makefile.in: Add new file.
1613 (pathcvt): Move to new file.
1617 * setup.c (processdirlisting): Always open file in text mode.
1618 (create_uninstall): Ditto.
1619 (getdownloadsource): Ditto.
1622 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
1624 * xsystem.c: New file.
1625 * Makefile.in: Accomodate new file.
1626 * setup.c (xsystem): Move to new file.
1627 (recurse_dirs): Accept handle to output log file. Don't use ">"
1628 redirection to trap tar output. Use supplied handle instead.
1629 (create_uninstall): Accept FILE pointer to opened log file. Don't
1630 unlink log file here.
1631 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
1632 (main): Open log file here and pass it to various functions. Unlink
1635 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
1637 Change occurrences of .usr.bin to .bin throughout.
1638 * setup.c (geturl): Increase number of retries to 20. Let user know
1639 what's going on during long connects.
1640 (processdirlisting): Accept "A"lways and "N"ever as update options.
1641 (create_uninstall): Load cygwin1.dll from the current directory rather
1643 (main): Add some expository text.
1645 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
1647 * Makefile.in: Change method for compressing cygwin1.dll to avoid
1648 creating a cygwin1.dll in the current directory. Ensure the addition
1649 of -nostdinc to MINGW_CFLAGS.
1651 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
1653 * Makefile.in: Augment clean target.
1655 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
1657 * README: Added info about non-working mingw implementation
1658 * gzip.exe.gz: Replace with a version from the same build as the other
1660 * tar.exe.gz: Replace with a version from the same build as the other
1662 * mount.exe.gz: Add to repository until, mingw can build setup.
1663 * cygpath.exe.gz: ditto
1664 * cygwin1.dll.gz: ditto
1665 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
1666 for Win9x. Display only a screenfull of options at a time. Call all
1667 tools with an absolute path.
1668 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
1673 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
1675 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
1676 cygwin1.dll from ../cygwin subdirectory.
1677 * gzip.exe.gz: Update.
1678 * tar.exe.gz: Update.
1680 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
1682 * Makefile.in: Use ZLIB variable as a target.
1684 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
1686 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
1687 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
1689 * configure.in: Locate correct objcopy.
1690 * configure: Regenerate.
1692 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
1694 * Makefile.in: New file.
1695 * configure.in: New file.
1696 * configure: New file.
1697 * zlib/Makefile.am: New file.
1698 * zlib/configure.in: New file.
1699 * zlib/aclocal.m4: New file.
1700 * zlib/acinclude.m4: New file.
1701 * zlib/configure: Regenerate from configure.in.
1702 * zlib/Makefile.in: Regenerate from Makefile.am