1 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3 * ini.h (struct _Info): Add "derived" element.
4 * choose.cc (scan2): Try to place unknown tar files into proper slot
5 when package exists in setup.ini but tar file does not.
7 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
9 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
10 (do_choose): Log the first category name.
12 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
14 *ini.h: Reapply 2001-06-25 changes.
15 * choose.cc (add_required): Ditto. Default to "Keep" state if
16 UNINSTALL and product is installed. Default to curr state if SKIP,
18 (keep_or_skip): New function. Returns skip or keep state depending on
19 installed state of package.
20 (default_trust): Use keep_or_skip to set state.
21 (_view::insert_pkg): Use calloc to allocate lines.
22 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
24 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
26 * choose.cc: Remove globals full_list, headers, package_indexes and
28 Add globals cat_headers, pkg_headers and chooser.
29 (add_required): New function.
30 (paint): Use the chooser for header details.
31 Call into the chooser to paint each line.
32 (list_click): Use new global variables.
33 Call into the chooser to handle the click.
34 Repaint the entire view if packages have been added or removed.
35 (note_width): Get passed a headers struct rather than using a global
37 (fill_missing_category): New function.
38 (default_trust): Skip non-"Required" or "Misc" packages.
39 (pick_line::set_line (Package *)): New function.
40 (pick_line::set_line (Category *)): New function.
41 (pick_line::paint): New function.
42 (pick_line::click): New function.
43 (_view::_view): New function.
44 (_view::set_view_mode): New function.
45 (_view::mode_caption): New function.
46 (_view::set_headers): New function.
47 (_view::init_header): New function.
48 (_view::insert_pkg): New function.
49 (_view::insert_category): New function.
50 (_view::insert_at): New function.
51 (_view::insert_under): New function.
52 (_view::clear_view): New function.
53 (viewsplusplus): New function.
54 (_view::client): New function.
55 (set_view_mode): Use new chooser functionality.
56 (set_full_list): Use new global variables.
57 (create_listview): Instantiate chooser.
58 Remove all hardcoded headers[] code.
59 (dialog_cmd): On trust changes, check dependencies.
60 (getcategorybyname): New function.
61 (getpackagecategorybyname): New function.
62 (scan2): Use case-insensitive package comparison.
63 (do_choose): Use fill_missing_category ().
64 Show some category data.
65 * ini.h: Protect against multiple inclusion.
67 (_CategoryPackage): New struct.
68 (_Category): New struct.
69 (_Package): Change category to Category * from char *.
70 (extern Category category): New global variable.
71 (extern in ncategories): Ditto.
72 (getcategorybyname): New prototype.
73 (catpackagecategorybyname): New prototype.
74 (register_category): New prototype.
75 (add_category): New prototype.
76 * iniparse.y: Parse multiple categories per package.
77 category: New global variable.
78 ncategories: New global variable.
79 (new_package): Compare package against NULL, not 0.
80 (new_requirement): Source formatting fix.
81 (register_category): New function.
82 (add_category): New function.
83 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
84 IDC_CHOOSE_VIEWCAPTION: New control.
85 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
86 IDC_CHOOSE_VIEWCAPTION: New control.
87 Increment _APS_NEXT_CONTROL_VALUE.
89 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
91 * choose.cc (paint): Wrap excessively long lines.
93 (create_listview): Ditto.
94 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
95 setup.log.full. Allow "Yes" for source exists in setup.log.full when
96 installing from local directories.
98 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
100 * choose.cc (set_action): Only clear srcpicked when moving to next state.
101 Allow source installation if it exists in the current "trust" state.
102 Don't move to skip state when package is installed.
103 (list_click): Don't allow source clicking when no source is available.
104 (set_full_list): Display package when not is_full_action.
105 * ini.h (is_full_action): Define.
107 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
109 * install.cc (check_for_old_cygwin): New function. First stab at
110 checking for old cygwin versions.
111 (do_install): Call check_for_old_cygwin if there were no errors during
114 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
116 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
117 than zeroed "source" element.
119 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
121 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
122 the highest available "hole" in the trust array.
124 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
126 * choose.cc (set_existence): Use pointer method for indexing in trust
128 (create_listview): Ditto.
129 (scan2): Ditto. Also, use consistent variable name for indexing into
131 * ini.h (Package): Reorganize info array for easier scanning.
133 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
135 * choose.cc (isinstalled): Eliminate special download only test.
136 (set_action): Don't move to next state if in ACTION_SAME range and not
138 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
140 (do_choose): Sort packages after all packages have been read.
141 Accomodate the fact that first element in trust array is empty so that
142 log files don't report the wrong trust value.
143 * iniparse.y (new_package): Malloc space for package name or suffer
146 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
148 * ini.h (Dependency): New structure. Declare new function.
149 * inilex.l (yylex): Detect new setup.ini options - category and requires.
150 * iniparse.y: Declare new setup.ini token values.
151 (yyparse): Parse new token values.
152 (new_requirement): New function.
154 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
156 * choose.cc (read_installed_db): Eliminate obsolete code.
158 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
160 * choose.cc (set_action): Set trust on "redo".
161 (_Info::_Info): New constructor.
162 (read_installed_db): Use new constructor. Use trusts type for
164 * ini.h (struct _Info): Label struct, add constructor.
165 (Package): Make installed_ix a type 'trusts.'
166 * install.cc (uninstall_one): Unset any installed info for current
168 (install_one): Allocate new Info struct for installed reflecting new
170 (do_install): Don't output line to installed.db if package is being
173 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
175 * choose.cc (getpkgbyname): Use consistent method for scanning package
178 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
180 * choose.cc: Add some comments.
181 (getpkgbyname): Use strcasecmp for comparisons.
183 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
185 * install.cc (do_install): Avoid checking for download action if
186 package wasn't currently retrieved.
188 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
190 * choose.cc: Eliminate extra array throughout. Use element in package
191 structure instead. Use pointers rather than array indexes where
193 (set_action): New function to set next action based on current.
194 (choose_caption): New function. Returns display caption.
195 (check_existence): Change arguments. Use pointer to 'info' structure.
196 (set_existence): Use pointer rather than array index.
197 (default_trust): Use trusts enum for second argument.
198 (set_full_list): Honor exclude element in package structure.
199 (build_labels): Eliminate.
200 (base): Make global. Use const char * argument.
201 (get_package_version): Eliminate.
202 (getpkgbyname): New function.
203 (read_installed_db): Use parse_filename to get version info.
204 * desktop.cc (make_passwd_group): Use getpkgbyname function.
205 * download.cc (get_file_size): const argument.
206 (do_download): Use is_download_action to determine when something
207 should be downloaded.
208 * filemanip.h: Add some functions.
209 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
210 * ini.h: Use enums for actions and trusts.
211 (is_download_action): New macro.
212 (is_upgrade_action): Ditto.
213 (is_uninstall_action): Ditto.
214 (struct Package): Add new fields.
215 * inilex.l (yylex): Detect new setup.ini options.
216 * iniparse.y: Declare new tokens.
217 (yyparse): Detect exclude keyword. Fill out version field even if
219 (new_package): Use greater granularity when allocating package array to
220 avoid repeated calls to realloc.
221 * install.cc (exists): const argument.
222 (uninstall_one): Take pkg argument.
223 (install_one): Ditto. Eliminate unneeded arguments which can be
224 derived from package info.
225 (do_install): Iterate over package array using a pointer. Use
226 is_download_action to control when package should be downloaded.
227 * tar.cc (tar_open): const argument.
228 * tar.h: Refloect const argument.
230 2001-05-31 Michael Chase mchase@ix.netcom.com
232 * main.cc (WinMain): Add setup version to starting setup.log entry
234 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
236 * inilex.l: Add + to list of valid string characters.
238 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
240 * Makefile.in: Remove more stuff in the clean target.
242 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
244 * Makefile.in: Correctly generate iniparse.h.
246 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
248 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
249 * geturl.h: Change declaration of `get_url_to_file' accordingly.
250 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
251 Set member `ftp_auth'.
252 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
253 to constructors of derived classes.
254 (NetIO::get_ftp_auth): New method.
255 * netio.h: Change class definition accordingly.
256 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
257 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
258 Add code for ftp authentication retry.
259 * nio-ftp.h: Change class definition accordingly.
260 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
261 Add code for ftp authentication retry in case of proxy connection.
262 * nio-http.h: Change class definition accordingly.
263 * res.rc: Add FTP authentication dialog.
264 * resource.h: Add new constants used in res.rc.
265 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
267 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
269 * res.rc (IDD_SPLASH): Add a copyright year.
271 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
273 * Makefile.in: Make iniparse.y produce a c++ file.
274 * choose.cc (set_existence): Revert 2001-05-27 change.
275 * ini.cc: Remove "C" from declaration of yyparse.
276 * iniparse.y (yyparse): Fill out version field by default when a binary
277 install is detected and no version has been set yet.
278 * install.cc (do_install): Mount things earlier so that we can use
279 proper mount table settings. Don't remove mounts since they are now
281 * mount.cc (create_mount): Reread the mount table after establishing a
283 (read_mounts): Explicitly clear root_here to allow multiple uses of
284 this function. Ensure that there is no garbage in the table when we've
285 exhausted all of the mounts in the registry.
286 (cygpath): Accomodate ./ in path.
288 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
290 Use parse_filename method to parse filenames throughout. Use
291 get_root_dir to retrieve the current root directory throughout. Set
292 const in argument list, where appropriate, throughout.
293 * choose.cc (set_existence): Detect case of uninstalled package with no
295 (parse_filename): New function.
296 * filemanip.h (fileparse): New structure.
297 * mount.cc (read_mounts): Remember where we found the root mount.
298 (set_root_dir): New function.
299 (get_root_dir): Ditto.
300 * mount.h: Declare new functions.
301 * site.cc (get_root_dir_now): Renamed from get_root_dir.
302 (save_site_url): Use new function name.
303 (get_initial_list_idx): Ditto.
305 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
307 * choose.cc: Use a constant throughout to deal with chooser icon
309 * res.rc (IDD_CHOOSE): Increase size of chooser box.
311 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
313 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
314 use when Redownload or Sources Only selected.
316 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
318 Reformat file after botched patch formatting.
319 * choose.cc (which_trust): Eliminate variable.
320 (default_trust): Don't set which_trust.
321 (do_choose): Use selected trust when reinstalling or installing source.
323 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
325 Change concat to cygpath throughout.
326 Change map_filename to cygpath throughout.
327 * concat.cc (vconcat): New function.
328 (concat): Use vconcat.
329 * concat.h: Reflect above.
330 * install.cc (map_filename): Eliminate.
331 (install_one): Free dest_file.
332 * mount.cc (find2): Expect input key to be pointing to mount record.
333 (in_table): New function.
334 (is_admin): Move from root.cc.
335 (read_mounts): New function.
336 (path_prefix_p): New function.
337 (cygpath): New function.
338 * mount.h: Define new functions and structure.
339 * root.cc (in_table): Move to mount.cc.
340 (do_root): Call read_mounts to initialize root stuff and mount table.
341 * site.cc (get_root_dir): Ditto.
343 2001-05-09 Matt Hargett <matt@use.net>
345 * Makefile.in: Remove *.rc from clean.
347 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
349 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
350 TRUST_PREV which produced "0" versions.
352 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
354 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
355 _APS_NEXT_CONTROL_VALUE to account for addition of
356 IDC_CHOOSE_INST_TEXT.
357 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
358 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
359 hot keys to select Prev, Curr, Exp.
360 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
361 define for LOOP_PACKAGES to include new actions ACTION_REDO and
363 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
364 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
365 source Checkbox to use.
366 (build_labels): Add logic to allow for selection of Source only
367 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
368 current version binary.
369 (dialog_proc): Add conditional display for file selection prompt based
370 on download vs install using IDC_CHOOSE_INST_TEXT.
371 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
372 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
373 handle the instance where Source Download/Install was selected. Modify
374 log file to store appropriate information regarding Action selected and
375 the new actions that were added (I.E.: ACTION_REDO and
377 * download.cc: Add include for <unistd.h> and "port.h".
378 (download_one): Modify parameter list to include the selected action
379 for the file to be downloaded. Modify size check against expected size
380 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
381 .tmp file to also remove the destination file if exists due to ability
382 to redownload source and binary now.
383 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
384 calculation of Download Bytes. Modify to also use ACTION_REDO and
385 ACTION_SRC_ONLY in determining files selected for download.
386 * install.cc (uninstall_one): Add check to treat a Reinstall like an
387 upgrade so current version will be uninstalled prior to reinstall.
388 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
389 uninstalling and installing binary and source packages.
390 * desktop.cc (make_passwd_group): Modify logic to account for a Source
391 only cygwin install when checking for cygwin to determine need for
392 mkpasswd and mkgroup.
394 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
396 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
397 Removed WS_DISABLED from "OK" buttons to accomodate default focus
398 changes in net.cc and source.cc.
399 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
400 a default is selected.
401 * winsup/cinstall/source.cc (dialog_proc): Ditto.
402 (check_if_enable_next): Removed. No longer needed since a radio button
403 will always be selected.
404 (load_dialog): Removed call to check_if_enable_next.
405 (dialog_cmd): Ditto. Also added default to switch.
407 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
409 * res.rc: Resize affected text.
411 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
413 * net.cc (do_net): Default to direct download.
414 * res.rc: Move default selections to the top.
416 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
418 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
419 Must now include <windows.h> and not the pieces.
420 * choose.cc (create_listview): Clean up type mismatch problems.
421 * dialog.h (NEXT(id)): Ditto.
422 * geturl.cc (dialog): Ditto.
423 * install.cc (dialog): Ditto.
424 * splash.cc (load_dialog): Ditto.
426 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
428 * tar.cc (class gzbz): Define dummy virtual functions.
430 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
432 * Makefile.in: Add bz2 include/library support.
433 * filemanip.h: New file.
434 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
436 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
437 (read_installed_db): Ditto.
439 * fromcwd.cc (found_file): Ditto.
441 * tar.cc (class gzbz): New super class for uncompression support.
442 (gz): New class for gzip support.
443 (bz): New class for bzip2 support.
444 (tar_open): Use gzbz class to control file opening.
445 (tar_ftell): Ditto for returning position in file.
446 (skip_file): Ditto for reading file.
447 (tar_next_file): Ditto.
448 (tar_read_file): Ditto.
449 (tar_close): Ditto for close.
451 * zlib/configure.in: Force NM substitution.
453 * source.cc (do_source): Default to "Install from Internet".
455 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
457 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
459 * choose.cc (list_click): Correct inability to select source code for
461 (scan2): Modify to skip source tarballs when scanning disk for
462 installable packages.
464 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
466 * install.cc: install sources into /usr/src instead
467 of /, also include the sizes of source tarballs
469 * download.cc: include sizes of source tarballs in
470 total_download_bytes.
472 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
474 * download.cc (get_file_size): Remove `static'.
476 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
478 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
480 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
482 * choose.cc (paint): Modify message for nothing to download vs
483 nothing to install/update based on installation method.
484 (list_click): Modify to skip versions in selection process if
485 installing from local directory and installation file does not exist.
486 Also leaves Source Action set to N/A if the source file does not exist
487 and installing from local directory.
488 (check_existence): New method to check current existence of installation
489 files based on selected installation method.
490 (set_existence): New method to set the current existence of installation
491 files based on selected installation method.
492 (best_trust): Modify decision process for best trust to base decision on
493 current trust selected (IE: Prev, Curr, or Test), existence of file and
494 installation method selected.
495 (default_trust): Add logic to capture the current trust level and the
496 trust selected for the given package.
497 (set_full_list): Expand decision criteria for displaying a package in
498 the selection list to include file existence/non-existence and selected
500 (build_labels): Modify criteria for label addition to include
501 installation method and file existence/non-existence.
502 (create_listview): Modify to establish package trust level for each
503 package before setting up the display list. Also modification to set
504 current trust button as the default.
505 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
506 a reset of the selection list in addition to setting the default trust.
507 (get_package_version): New method to provide reusable code for
508 determining the package version from the file name for a specified
510 (scan2): Modify to use new method get_package_version and
511 also enhance handling of the build for the structures package and
513 (read_installed_db): Modify to use the new method
514 get_package_version and also enhance handling of the build for the
515 structures package and extra.
516 (do_choose): Add additional initialization of package and extra
517 structures. Modify to use read_installed_db all the time despite
518 install method. Modify output to setup.log.full log file to increase
519 readability by adding additional spacing, expanded code and available
521 * ini.h: Add new fields install_exists, source_exists and
522 partial_list_display to the structure definition for package.
523 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
524 pushbuttons by replacing with Radio Buttons thus allowing the
525 operator to better determine which is selected.
527 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
529 * download.cc (do_download): Add new variables total_download_bytes and
530 total_download_bytes_sofar for download progress meter. Add loop
531 to accumulate the total bytes to download from the selected packages.
532 * geturl.cc: Add state.h and diskfull.h to include list. Add new
533 variables gw_iprogress, gw_pprogress, gw_progress_text,
534 gw_pprogress_text, and gw_iprogress_text to allow for addition of
535 total packages download progress meter and disk full percent
536 progress meter. Add variables total_download_bytes and
537 total_download_bytes_sofar for use by progress meters.
538 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
539 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
540 allow for addition of total packages download progress meter and disk
541 full percent progress meter.
542 (init_dialog): Ditto.
544 (get_url_to_file): Ditto.
545 * geturl.h: Add external definition for total_download_bytes and
546 total_download_bytes_sofar.
547 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
548 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
549 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
551 * resource.h: Add new fields for progress meters and text and update
552 _APS_NEXT_CONTROL_VALUE.
554 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
556 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
559 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
561 * download.cc (download_one): Add missing parenthesis.
563 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
565 * download.cc (get_file_size): New function. Eliminates the need
567 (download_one): Call `get_file_size' instead of `stat'. This
568 workarounds a problem with mingw's `stat' call.
570 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
572 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
573 This is to allow cinstall to build with 2.95.2-7 and to make the
574 use of headers consistent.
576 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
578 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
580 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
582 * winsup/cinstall/res.rc: Added accelerators and improved focus
585 2000-12-10 Egor Duda <deo@logos-m.ru>
587 * choose.cc (paint): Use system background color for text output.
589 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
591 * Makefile.in: Use CXX for linking and for compiling .cc files.
592 * configure.in: Find correct c++ compiler.
593 * configure: Regenerate.
595 2000-11-17 DJ Delorie <dj@redhat.com>
597 * splash.cc (load_dialog): Make message more obvious.
600 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
602 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
603 necessary for newer compilers.
605 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
607 * desktop.cc: Include "ini.h" and "version.h".
608 (make_passwd_group): Skip the function on 9x/ME boxes when an
609 older version of Cygwin has been installed which doesn't
610 support mkpasswd/mkgroup on 9x/ME.
611 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
614 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
616 * desktop.cc (make_passwd_group): Don't exit when started
617 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
619 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
621 * install.cc (do_install): Add call to set_cygdrive_flags to sync
623 * mount.cc (set_cygdrive_flags): New function.
624 (get_cygdrive_flags): Ditto.
625 (default_cygdrive): Ditto.
626 (set_cygdrive_flags): Ditto.
627 * mount.h: Add prototype for set_cygdrive_flags.
629 2000-10-23 DJ Delorie <dj@redhat.com>
631 * ini.h: add source actions
632 * fromcwd.cc: check for available sources
633 * res.rc: add checkbox bitmaps
636 * choose.cc: add source column
637 * download.cc: download sources if called for
638 * install.cc: [un]install sources too
640 2000-10-22 DJ Delorie <dj@redhat.com>
642 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
643 ignore it wrt full_list if there's already a version installed.
644 (do_choose): Sort the list.
647 2000-10-12 DJ Delorie <dj@redhat.com>
649 * res.rc: Add more error strings.
651 * iniparse.y (new_package): re-initialize if needed.
652 * download.cc (do_download): Keep track of errors; notify and
654 * install.cc (do_install): Ditto.
656 2000-10-05 DJ Delorie <dj@redhat.com>
658 * Makefile.in: fix %.cc rule
660 2000-10-04 DJ Delorie <dj@redhat.com>
662 * desktop.cc: quote HOME and USER, don't . ./.profile
664 * choose.cc (build_labels): don't include in partial list just
665 because there's a *previous* version available.
667 * install.cc (do_install): if installing from local directory with
668 setup.ini and the file isn't found, look in "." also. Note errors.
670 2000-10-02 DJ Delorie <dj@redhat.com>
672 * ini.cc (do_ini): save setup.ini locally
674 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
676 * desktop.cc: quote escapes in prompt
678 2000-10-02 Jason Tishler <jt@dothill.com>
680 * root.cc (is_admin): New function.
681 (read_mount_table): Check for administrative priviledges and set
682 installation scope as appropriate.
684 2000-09-28 DJ Delorie <dj@redhat.com>
686 * nio-ftp.cc (ftp_line): handle continuations more robustly
688 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
690 * res.rc: increased the size of the site dialog (IDD_SITE) & the
691 corresponding list box to provide for more URL's to be listed.
692 Modified the position of the Back, Next and Cancel buttons to
693 correspond to the new size of the dialog.
695 2000-09-13 DJ Delorie <dj@redhat.com>
697 * install.cc (do_install): update disk fullness once per package
698 to improve performance
700 * choose.cc (create_listview): call ReleaseDC
702 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
704 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
705 returned, as it seems Samba 2.0.6+ returns this instead of
708 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
710 * site.cc (get_initial_list_idx): Don't default to saved URL if it
713 2000-09-07 DJ Delorie <dj@redhat.com>
715 * splash.cc: use version.h, not local decl
716 * res.rc: add "old version" message
719 * fromcwd.cc (canonicalize_version): make global
720 * iniparse.y: add setup-version support, fix bug in blank line
723 * inilex.l: add [exp] as alias for [test], add setup-version
724 * Makefile.in (version.c): add setup-version tag
726 * desktop.cc (do_desktop): remove 1.1 version number
727 (do_desktop_setup): ditto
729 * ini.cc (do_ini): zero out package list just in case we redo it.
731 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
733 * choose.cc (list_click): Check for nindexes==0; if so, return.
735 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
737 * localdir.cc: new, local package directory selection dialog; cd
738 into selected directory
739 * Makefile.in (OBJS): add localdir.o
740 * dialog.h: add prototype for do_local_dir
741 * main.cc (WinMain): initialize local_dir to cwd; add call to
743 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
744 * source.cc (dialog_cmd): ditto
745 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
746 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
747 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
748 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
749 * state.h: add local_dir variable
751 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
753 * desktop.cc: added logic to handle to the new dialog and to
754 default the setting for the new checkboxes based on whether the
755 desktop icon or start menu link already exist.
756 (desktop_icon): correction to desktop directories for desktop icon
757 creation. Additional logic added for Win95 which does not appear
758 to have Common Directories so if Common selected and null uses
760 (start_menu): Additional logic added for Win95 which does not
761 appear to have Common Directories so if Common selected and null
762 uses normal directory.
763 (do_desktop_setup): moved the saving of the icon, creation of the
764 bat file, profile, passwd, Start Menu link and desktop shortcut to
765 this method from do_desktop. Made the creation of the desktop
766 icon and start menu link conditional on settings of new dialog
768 * install.cc (do_install): changed next from IDD_S_DESKTOP to
770 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
771 * res.rc: added new resource to create a desktop dialog with 2
772 checkboxes for creating the desktop icon and start menu link.
773 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
774 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
775 * state.h: added root_menu and root_desktop for use in dialog.
777 2000-08-29 DJ Delorie <dj@redhat.com>
779 * choose.cc (scan_downloaded_files): scan for existing files, so
780 that the user only sees new downloads.
782 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
783 * site.cc (do_site): if we can't download the mirror list, go back
784 to the net setup box to choose another transport.
785 * autoload.c: add more functions
786 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
787 * resource.h: add WININET message
789 * net.cc (do_net): no longer default to IE5
790 * simpsock.h (class SimpleSocket): new, simplify socket operations
792 * nio-http.h: new, for direct http protocol
794 * nio-ftp.h: new, for direct http protocol
796 * netio.cc (set_url): move initialization here to handle redirections
797 (open): add direct http/ftp
798 * netio.h (NetIO::set_url): new
800 * log.cc (log_save): create directory for log if needed
802 * hash.cc, hash.h: new
803 * Makefile: add hash.o
804 * choose.cc: enable "uninstall" option
805 * download.cc: invert action test to accomodate uninstalling
806 * ini.h: add ACTION_UNINSTALL
807 * install.cc: add uninstall functionality
808 * res.rc: make install tag changeable
809 * resource.h: add uninstall resources
811 * res.rc: update mirror list URL
813 2000-08-24 DJ Delorie <dj@redhat.com>
815 * log.cc, log.h: new files
816 * Makefile.in (OBJS): add log.o
817 * tar.cc: use exit_setup instead of exit
818 * dialog.cc (fatal): use exit_setup instead of ExitProcess
819 * msg.cc (fatal): ditto
820 * install.cc (dialog_cmd): ditto
821 * ini.cc (do_ini): ditto
822 * main.cc (main): add logging
823 * source.cc (do_source): ditto
824 * root.cc (do_source): ditto
825 * site.cc (do_site): ditto
826 * other.cc (do_other): ditto
827 * net.cc (do_net): ditto
828 * choose.cc (do_choose): ditto
829 * download.cc (do_download): ditto
830 * install.cc (do_install): ditto
831 * msg.cc (fatal): ditto
833 * res.rc: mark password boxes as *being* password boxes.
835 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
836 calls won't use the same buffer.
837 * choose.cc (create_listview): don't default to full list if no changes
838 (base): return computed value, not temporary :-(
839 (do_choose): don't use installed.db if we're only downloading.
841 2000-08-23 DJ Delorie <dj@redhat.com>
843 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
844 * nio-ie5.h (flush_io): new
845 * netio.cc (load_dialog): note when we're initializing the dialog
846 box, and ignore changes to the edit fields then.
848 2000-08-21 DJ Delorie <dj@redhat.com>
852 * fromcwd.cc (found_file): don't remember the canonicalized version
854 * choose.cc (paint): print "nothing to do" message when list is empty.
855 (build_labels): Use version "0.0" if no version is available.
856 (create_listview): default to full list if nothing to install/update.
857 (base): new, returns basename of file
858 (read_installed_db): compare base names, not full paths
860 2000-08-11 DJ Delorie <dj@redhat.com>
862 * choose.cc: add new chooser dialog
863 * fromcwd.cc: use IDD_CHOOSE
864 * ini.cc: use IDD_CHOOSE
865 * main.cc: use IDD_CHOOSE
866 * ini.h: cosmetic changes
867 * res.rc: add choose dialog, bitmaps
868 * choose-spin.bmp: new
869 * choose-rtarrow.bmp: new
870 * resource.h: add choose dialog controls
872 * mount.cc: remove debug statement
874 2000-08-08 DJ Delorie <dj@redhat.com>
876 * Makefile.in (version.c): make version checking more robust
877 * splash.cc (load_dialog): handle case where there's no version
879 2000-08-07 DJ Delorie <dj@redhat.com>
881 * (all): add cvsid tags
882 * Makefile.in: generate version.c from ChangeLog, add splash.o
884 * res.rc: add splash screen
886 2000-08-02 DJ Delorie <dj@redhat.com>
888 * net.cc: remove proxy password code
889 * res.rc: remove proxy user/pass from net, add auth dialogs
890 * netio.cc,h: add sys/proxy auth methods
891 * nio-ie5: use them, check for http status codes
892 * state.h: add system authorization
894 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
897 2000-08-02 Norman Vine <nhv@yahoo,com>
899 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
901 2000-08-01 DJ Delorie <dj@redhat.com>
903 * postinstall.cc (each): don't rename files we ignore
904 (do_postinstall): set CYGWINROOT to root_dir, chdir there
906 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
908 2000-07-31 DJ Delorie <dj@redhat.com>
910 * desktop.cc: reverse PATH so /usr/bin precedes /bin
912 2000-07-18 DJ Delorie <dj@redhat.com>
914 * autoload.c: new, autoload dlls that might not be available.
915 * Makefile.in (OBJS): add autoload.o
917 * res.rc: rewrite root options (text/binary, system/user) to be
920 * site.cc (get_site_list): trim displayed URL, sort by domain
922 * net.cc (do_net): make IE5 default to checked, for now
924 * choose.cc (do_choose): sort packages correctly
925 * ini.cc (do_ini): handle parse errors more gracefully
927 (fprintf): line buffer output
928 (do_ini): if we can't load setup.ini, go back to the site list.
929 * ini.h: add "unknown" trust level
930 * inilex.l: absorb unknown trust levels and key/value pairs,
931 add line number logic
932 * iniparse.y: handle parse errors more gracefully.
933 * install.cc: skip packages with no valid install entry
935 2000-07-17 DJ Delorie <dj@cygnus.com>
937 * coding standards fixups, many files
938 * mkdir.cc: warn about deletions *before* deleting them
940 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
942 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
944 * other.cc (dialog_cmd): save download site URL
945 * site.cc (get_root_dir): new
946 (save_mirror_site): new
947 (dialog_cmd): save download site URL
948 (get_site_list): make list big enough to add prev site
949 (get_initial_list_idx): new, read last-used URL from file and
950 append it to site_list
951 (do_site): call get_initial_list_idx
953 * concat.cc (concat): avoid segfault when first parm is null
955 2000-07-13 DJ Delorie <dj@cygnus.com>
957 * postinstall.cc: new
958 * Makefile.in: add postinstall.o
959 * concat.h: add backslash ()
961 * desktop.cc (etc_profile): don't do postinstall
962 (backslash): moved to concat.cc
964 (make_postinstall_script): run directly
965 (do_desktop): chain to do_postinstall
966 * dialog.h: add exit_msg, do_postinstall
967 * download.cc: use exit_msg
969 * main.cc: add postinstall, exit_msg
970 * resource.h: add postinstall
971 * README: add more to-do items
973 2000-07-12 DJ Delorie <dj@cygnus.com>
975 * desktop.cc: add /etc/postinstall/ support
976 * install.cc: add more "standard" directories
978 2000-07-11 DJ Delorie <dj@cygnus.com>
980 * desktop.cc: create /etc/profile
981 * desktop.cc: fix include syntax
982 * Makefile.in: add auto-dependencies
983 * root.cc: support system vs user
991 * desktop.cc: make sure we use backslashes, not slashes.
992 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
993 * geturl.cc: change math for percentage to avoid overflow
995 * download.cc: post "download complete" message.
996 * root.cc: pre-fill in defaults if needed, don't start
997 browse at root_dir unless it's set.
998 * desktop.cc: quote $PATH in case it has spaces in it
1000 2000-07-10 DJ Delorie <dj@cygnus.com>
1002 * Makefile.in: add desktop.o and mklink2.o
1003 * dialog.h: add do_desktop
1004 * install.cc: create standard directories, call do_desktop
1005 * res.rc: add cygwin.ico as a file also
1006 * desktop.cc: new, do shortcuts, batch files, and icons
1007 * mklink2.c: new, for COM
1008 * README: update to-do list
1010 2000-07-10 DJ Delorie <dj@cygnus.com>
1012 * ini.cc (do_ini): don't worry about timestamps if we're not
1013 actually installing.
1015 2000-07-09 DJ Delorie <dj@cygnus.com>
1017 * Makefile.in: add -I$(srcdir) for ini.h
1019 2000-07-06 DJ Delorie <dj@cygnus.com>
1021 * Replace everything with a new GUI version
1022 * zlib/gzio.c: add gzctell() for progress displays
1024 2000-06-22 DJ Delorie <dj@cygnus.com>
1026 * setup.c (tarx): re-add call to write_pkg()
1028 2000-06-07 DJ Delorie <dj@cygnus.com>
1030 * cygcalls.c: new, call cygwin1.dll functions directly
1031 * cygcalls.h: header for same
1032 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
1033 exes, fix cinstall.rc dependencies.
1034 * path.c: remove unneeded code
1035 * setup.c: use cygcalls instead of xcreate_process.
1036 uncompress embedded files with zlib
1037 add "-d" for "download only"
1039 postpone mount changes until very end
1040 add download progress indicators
1041 pack multi-column listings more
1042 auto-delete temp files
1043 customize banner message according to options
1044 prompt user for text/binary mounts
1045 add warnings about empty setup directory, root installs, etc
1047 2000-05-24 DJ Delorie <dj@cygnus.com>
1049 * tar.c: New file; built-in tar using zlib.
1050 * tar.h: New file; header for same.
1051 * ctar.c: New file; test program for same.
1052 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
1053 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
1054 * setup.c (tarx): add support for built-in tar
1055 (main): accept unix-style slashes, check root dir for drive letters,
1056 warn about installing in /, make sure cwd is empty for internet installs,
1057 defer mounts to end of install, support built-in tar.
1059 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
1061 Fix compiler warnings throughout.
1062 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
1064 * setup.c: Make 'root' global.
1065 (istargz): Return pointer to "stem" of matched .tar.gz file.
1066 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
1067 bogus check_for_installed check.
1068 (recurse_dirs): Add preliminary support for .bat file execution.
1069 (create_uninstall): Eliminate unneeded parameter.
1070 (do_start_menu): Ditto.
1072 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
1073 scanning for the version number. Eliminate unneeded argument to
1075 (getdownloadsource): Add 'name' to list of names rather than url.
1076 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
1077 unneeded argument in mkmount and do_start_menu.
1079 2000-05-18 DJ Delorie <dj@cygnus.com>
1081 * setup.c (optionprompt): allow multi-column, clean up message
1082 about more options, be more robust about user input.
1083 (getdownloadsource): make the mirror URL a macro.
1084 (main): do mounts after done prompting user.
1086 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
1088 * setup.c (cleanup): Inverse order of deletion stands a better chance
1089 of deleting cygpath.exe. Still seems to suffer from occasional races,
1091 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
1093 (output_file): Defend against an unlikely handle leak.
1094 (main): Don't set up signal handling until we have something special to
1097 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
1099 * path.c (kill_cygpath): Delete function.
1100 (exit_cygpath): Make more defensive so that it can be called at any
1102 (cygpath_pipe): Don't set up signal here. Do it in main().
1103 * setup.c (istargz): New function.
1104 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
1105 inexplicably fails on samba mounted partitions. Use istargz to match
1107 (processdirlisting) Use istargz to match tar.gz tail.
1108 (cleanup): Renamed from filedel.
1109 (cleanup_on_signal): New function. Called on CTRL-C.
1110 (main): Record handle of main thread so that it can be suspended when
1111 CTRL-C occurs. Set up cleanup_on_signal signal handler.
1113 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
1115 * setup.c (do_start_menu): Don't concatenate paths to already built
1118 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
1120 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
1121 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
1123 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
1125 * setup.c (filedel): Call exit_cygpath here so that we can be assured
1126 that cygpath subprocess has died. This allows us to delete cygpath.exe
1128 (optionprompt): Initialize response to -1 so that second screen of
1129 mirrors will appear.
1130 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
1131 * setup.h: Reflect init_pkgs prototype change.
1133 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
1135 * pkg.c (init_pkgs): Accept an argument to control what root registry
1137 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
1138 * setup.h: Reflect init_pkgs prototype change.
1140 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
1142 * error.c (winerror): Respond to gcc warning.
1143 * path.c (cygpath_pipe): Ditto.
1144 * setup.c (filedel): Call sa_cleanup on deleteme.
1145 (create_shortcut): Coerce argument to eliminate compiler warning.
1146 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
1147 (refmatches): New function. Tests if ref is contained in a list of
1148 packages to install.
1149 (filematches): New function. Tests if filename matches one of a list
1150 of packages to install.
1151 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
1152 test to accomodate _tar.gz.
1153 (prompt): Ensure that stdout is flushed prior to asking for input.
1154 (findhref): Initialize variables to quiet a compiler warning.
1155 (processdirlisting): Accept list of packages to install. Special case
1156 cygwin tar file version number.
1157 (downloaddir): Accept list of packages to install.
1158 (downloadfrom): Ditto.
1159 (create_uninstall): Eliminate unneeded variables. Quote arguments to
1161 (do_start_menu): Don't create uninstall bat file if updating or user
1162 specified a list of packages.
1163 (mkmount): Eliminate unneeded variables.
1164 (get_pkg_stuff): New function. Checks for previous unversioned
1166 (main): Accept -u and -f options and package names on the command line.
1167 Use get_pkg_stuff to initialize package information. Umount /etc.
1168 Call recurse_dirs and downloadfrom with list of package to install.
1169 Ensure that all /usr/local directories are created. Output
1170 installation time to setup.log.
1171 * setup.h: Add some prototypes.
1172 * xsystem.c (xcreate_process): Eliminate unneeded variable.
1174 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
1176 * setup.c (optionprompt): Don't overlap display of already seen options
1178 (geturl): Print name of site which we're connecting to rather than "ftp
1180 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
1181 test too simplistic?
1182 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
1183 problems when user chooses x:\ as their root.
1184 (main): For now, default to "non-update" mode. Allow -u option to
1187 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
1190 * setup.c (tarx): Skip already installed or older packages. Report
1191 when a package has been updated.
1192 (processdirlisting): Skip already installed or older packages.
1193 (main): Detect -f option for forced installation. Initialize pkg stuff
1195 * setup.h: Add pkg definitions.
1197 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
1199 * setup.c (findhref): Return NULL on empty string. Eat any trailing
1201 (processdirlisting): Attempt to limit recursively processing the same
1204 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
1206 * setup.c (filedel): New function.
1207 (output_file): Keep track of files extracted from setup.exe for
1208 subsequent deletion.
1209 (tarx): Close process handle of child tar process or suffer handle
1211 (getdownloadsource): Close mirror file so that it can be unlinked.
1212 (processdirlisting): Return total number of files extracted.
1213 (main): Initialize array of files to delete. Ensure that files are
1214 closed on exit. Make the directory that setup.exe is started from ==
1215 the directory where temporary files are placed. Issue an error if no
1216 files were found to download.
1217 * xsystem.c (xcreate_process): Close the thread handle. Close the
1218 process handle if we waited for it to exit.
1220 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
1222 * setup.c (main): Change version number output.
1224 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
1226 * setup.c (tarx): Use full path name to tar executable.
1227 (main): Build full pathname to tar executable. Create /usr/local/etc
1230 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
1232 * setup.c (findhref): Change method for scanning for href= to choose
1233 the last one on the line. This is still not foolproof and probably
1234 will need to be changed eventually. Don't abort if no "size" field is
1236 (processdirlisting): Fix boolean algebra.
1238 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
1240 * main.c (tarx): Add some code for future task of unmounting
1241 directories encountered in tar file.
1243 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
1245 * setup.c (findhref): Decode file size, when appropriate.
1246 (needfile): New function. Returns 1 when file should be
1248 (processdirlisting): Always download if file size does not
1249 match. Prompt when download fails for some reason.
1250 (getdownloadsource): Accomodate findhref argument changes.
1252 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
1254 Throughout, use global session handle rather than reinitializing for
1255 each connect. Don't pass session as an argument to setup.c functions.
1256 * setup.c (geturl): Only issue "Connecting to.." message when using
1257 http or first time for ftp since subsequent connections will be fast.
1258 (processdirlisting): Allocate space for "N" when user has specified
1259 "N"ever option so that it can be subsequently freed.
1260 (main): Abort if we can't get the list of mirrors.
1262 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
1264 * setup.c (main): Umount /bin and /lib.
1266 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
1268 * setup.c (main): Create an empty /var/run/utmp.
1270 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
1272 * Makefile.in: Add umount to list of files to include in setup.exe.
1273 * setup.c (xumount): New function for unmounting directories.
1274 (main): Unmount /usr.
1275 (mkmount): Unmount "unix directory" before trying to figure out where
1276 to create the directory.
1278 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
1280 * setup.c (mkmount): Use xcreate_process to start mount process,
1282 (main): Don't do buffering on stdout or prompts won't be displayed
1283 correctly if running in a cygwin shell with CYGWIN=tty.
1285 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
1287 * setup.c (main): Remove the CYGWIN environment variable before
1288 starting any cygwin programs.
1290 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
1292 * setup.c (geturl): Use alternative method for finding filename part of
1294 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
1295 (downloaddir): Unlink file containing dir listing.
1296 (downloadfrom): Ditto.
1298 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
1300 * setup.c (main): Disallow running setup.exe from the "root".
1302 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
1304 Use "warning" function, where appropriate, to output warnings.
1305 * setup.c (warning): New function -- outputs warning to console and log
1307 (tarx): Fix index used to reset file protection.
1308 (main): Open the log file earlier so that more stuff can be sent to it.
1310 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
1312 * setup.c (processdirlisting): Make "N" option a little less aggressive.
1314 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
1316 * setup.c (tarx): Wait to after tar has completed to reset protections
1317 or suffer races with tar process.
1319 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
1321 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
1322 * setup.c (create_uninstall): Create the uninstall .bat file in the
1323 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
1324 list of files to be deleted. Fix directory detection for determining
1325 when to use 'rmdir'.
1326 (do_start_menu): Add /usr/local/bin to the path.
1327 (main): Add slop to files.array allocation so that we don't have to
1328 worry about reallocating the array when it grows too large when doing
1329 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
1332 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
1334 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
1337 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
1339 * path.c (kill_cygpath): New cleanup function.
1340 (exit_cygpath): New cleanup function.
1341 (cygpath_pipe): New function. Sets up cygpath in the background for
1342 translating filenames.
1343 (pathcvt): Use background cygpath for file translation.
1344 * setup.c (tarx): New function. Called to extract tar files, capture
1345 logging output, and translate it to Windows format.
1346 (recurse_dirs): Use 'tarx' function to extract files.
1347 (create_uninstall): Use file list built up by tarx rather than reading
1349 (mkmount): Add ability to mount root.
1350 (main): Track elapsed install time. Mount root.
1351 * starry.h: Add index field to strarry for tracking of tarx's usage of
1353 * xsystem.c (xcreate_process): Return proces handle when not waiting.
1355 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
1358 (pathfp): New function. Preliminary work for new -f cygpath
1360 * Makefile.in: Add new file.
1361 (pathcvt): Move to new file.
1365 * setup.c (processdirlisting): Always open file in text mode.
1366 (create_uninstall): Ditto.
1367 (getdownloadsource): Ditto.
1370 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
1372 * xsystem.c: New file.
1373 * Makefile.in: Accomodate new file.
1374 * setup.c (xsystem): Move to new file.
1375 (recurse_dirs): Accept handle to output log file. Don't use ">"
1376 redirection to trap tar output. Use supplied handle instead.
1377 (create_uninstall): Accept FILE pointer to opened log file. Don't
1378 unlink log file here.
1379 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
1380 (main): Open log file here and pass it to various functions. Unlink
1383 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
1385 Change occurrences of .usr.bin to .bin throughout.
1386 * setup.c (geturl): Increase number of retries to 20. Let user know
1387 what's going on during long connects.
1388 (processdirlisting): Accept "A"lways and "N"ever as update options.
1389 (create_uninstall): Load cygwin1.dll from the current directory rather
1391 (main): Add some expository text.
1393 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
1395 * Makefile.in: Change method for compressing cygwin1.dll to avoid
1396 creating a cygwin1.dll in the current directory. Ensure the addition
1397 of -nostdinc to MINGW_CFLAGS.
1399 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
1401 * Makefile.in: Augment clean target.
1403 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
1405 * README: Added info about non-working mingw implementation
1406 * gzip.exe.gz: Replace with a version from the same build as the other
1408 * tar.exe.gz: Replace with a version from the same build as the other
1410 * mount.exe.gz: Add to repository until, mingw can build setup.
1411 * cygpath.exe.gz: ditto
1412 * cygwin1.dll.gz: ditto
1413 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
1414 for Win9x. Display only a screenfull of options at a time. Call all
1415 tools with an absolute path.
1416 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
1421 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
1423 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
1424 cygwin1.dll from ../cygwin subdirectory.
1425 * gzip.exe.gz: Update.
1426 * tar.exe.gz: Update.
1428 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
1430 * Makefile.in: Use ZLIB variable as a target.
1432 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
1434 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
1435 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
1437 * configure.in: Locate correct objcopy.
1438 * configure: Regenerate.
1440 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
1442 * Makefile.in: New file.
1443 * configure.in: New file.
1444 * configure: New file.
1445 * zlib/Makefile.am: New file.
1446 * zlib/configure.in: New file.
1447 * zlib/aclocal.m4: New file.
1448 * zlib/acinclude.m4: New file.
1449 * zlib/configure: Regenerate from configure.in.
1450 * zlib/Makefile.in: Regenerate from Makefile.am