]> cygwin.com Git - cygwin-apps/setup.git/blame - ChangeLog
* inilex.l (yylex): For comments, eat all characters up to, but not including
[cygwin-apps/setup.git] / ChangeLog
CommitLineData
fb2cd8f6
CF
1Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
2
3 * inilex.l (yylex): For comments, eat all characters up to, but not
4 including newline.
5
127b32e1
CF
6Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
7
8 * fromcwd.cc (found_file): Use correct package name when adding an
9 unknown package rather than random stack garbage.
10
2cd555aa
CF
11Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
12
13 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
14
4254cc64
CF
15Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
16
17 * desktop.cc (etc_profile): Leave environment variables untouched.
18
acbae401
CV
192001-08-07 Corinna Vinschen <corinna@vinschen.de>
20
21 * autoload.c: Add dynamic load statements for NT/W2K
22 advapi32 functions not available in 9x/ME.
23 * main.cc (set_default_dacl): New function.
24 (WinMain): Call `set_default_dacl' if running on NT/W2K.
25
969a294c
CF
26Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
27
28 * ini.h (_CategoryPackage): Change pkg field to pkgname for
29 consistency.
30 * choose.cc: Use pkgname field when referencing _CategoryPackage
31 throughout.
32 (fill_missing_category): Don't add excluded packages.
33 (default_trust): Ditto.
34 (_view::insert_pkg): Ditto.
35 * iniparse.y (register_category): Use consistent variable name.
36
9eeb0e83
ED
372001-07-09 Egor Duda <deo@logos-m.ru>
38
39 * choose.cc: Use system foreground color for text output.
40
06560feb
CF
41Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
42
43 * choose.cc (set_action): Use default trust for determining reinstall
44 and source only.
45 (default_trust): Set default trust.
46 (pick_line::paint): Allow source selection when reinstalling or
47 retrieving.
48
1fb09149
CF
49Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
50
51 * choose.cc (isinstalled): Modify to properly accomodate special case
52 of "download only".
53 (set_action): Check downloaded components, not installed components if
54 "download only".
55 (set_existence): Always include full list of files when "download
56 only".
57
14cfffa5
CF
58Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
59
60 * choose.cc (pick_line::paint): Properly display "na" field when no
61 source exists.
62
f54385f6
CF
63Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
64
65 * choose.cc (scan2): Ensure that older versions do not show up in
66 "Test" slot.
67
85b1fb54
CF
68Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
69
70 * choose.cc (set_action): Allow "Skip" action if trust != installed.
71 * res.rc: Fix copyright.
72
2dada532
CF
73Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
74
75 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
76 boxes.
06c6d195 77 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2dada532
CF
78
79 * choose.cc: Restore some more changes from 2001-06-25, throughout.
80 (paint): Wrap some excessively long lines.
81 (pick_line::paint): Ditto. Move the arrow in the "Current" column
82 right to where it belongs. Move the source checkbox slightly to the
83 right.
84 (do_choose): List categories and required packages in setup.log.full.
85
86Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
87
88 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
89
1b13eeec
CF
90Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
91
92 * ini.h (struct _Info): Add "derived" element.
93 * choose.cc (scan2): Try to place unknown tar files into proper slot
94 when package exists in setup.ini but tar file does not.
95
9307254d
RC
96Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
97
98 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
99 (do_choose): Log the first category name.
100
3467d79f
CF
101Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
102
103 *ini.h: Reapply 2001-06-25 changes.
104 * choose.cc (add_required): Ditto. Default to "Keep" state if
105 UNINSTALL and product is installed. Default to curr state if SKIP,
106 etc.
107 (keep_or_skip): New function. Returns skip or keep state depending on
108 installed state of package.
109 (default_trust): Use keep_or_skip to set state.
110 (_view::insert_pkg): Use calloc to allocate lines.
111 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
112
8f53e82a
RC
113Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
114
1fb09149 115 * choose.cc: Remove globals full_list, headers, package_indexes and
8f53e82a
RC
116 nindexes.
117 Add globals cat_headers, pkg_headers and chooser.
118 (add_required): New function.
119 (paint): Use the chooser for header details.
120 Call into the chooser to paint each line.
1fb09149 121 (list_click): Use new global variables.
8f53e82a
RC
122 Call into the chooser to handle the click.
123 Repaint the entire view if packages have been added or removed.
124 (note_width): Get passed a headers struct rather than using a global
125 variable.
126 (fill_missing_category): New function.
127 (default_trust): Skip non-"Required" or "Misc" packages.
128 (pick_line::set_line (Package *)): New function.
129 (pick_line::set_line (Category *)): New function.
130 (pick_line::paint): New function.
131 (pick_line::click): New function.
132 (_view::_view): New function.
133 (_view::set_view_mode): New function.
134 (_view::mode_caption): New function.
135 (_view::set_headers): New function.
136 (_view::init_header): New function.
137 (_view::insert_pkg): New function.
138 (_view::insert_category): New function.
139 (_view::insert_at): New function.
140 (_view::insert_under): New function.
141 (_view::clear_view): New function.
142 (viewsplusplus): New function.
143 (_view::client): New function.
144 (set_view_mode): Use new chooser functionality.
145 (set_full_list): Use new global variables.
146 (create_listview): Instantiate chooser.
147 Remove all hardcoded headers[] code.
148 (dialog_cmd): On trust changes, check dependencies.
149 (getcategorybyname): New function.
150 (getpackagecategorybyname): New function.
151 (scan2): Use case-insensitive package comparison.
152 (do_choose): Use fill_missing_category ().
153 Show some category data.
154 * ini.h: Protect against multiple inclusion.
155 (views) New enum.
156 (_CategoryPackage): New struct.
157 (_Category): New struct.
158 (_Package): Change category to Category * from char *.
159 (extern Category category): New global variable.
160 (extern in ncategories): Ditto.
161 (getcategorybyname): New prototype.
162 (catpackagecategorybyname): New prototype.
163 (register_category): New prototype.
164 (add_category): New prototype.
165 * iniparse.y: Parse multiple categories per package.
2dada532
CF
166 (category): New global variable.
167 (ncategories): New global variable.
8f53e82a
RC
168 (new_package): Compare package against NULL, not 0.
169 (new_requirement): Source formatting fix.
170 (register_category): New function.
171 (add_category): New function.
172 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
173 IDC_CHOOSE_VIEWCAPTION: New control.
174 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
175 IDC_CHOOSE_VIEWCAPTION: New control.
176 Increment _APS_NEXT_CONTROL_VALUE.
177
26a27c14
CF
178Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
179
e19ad6a3 180 * choose.cc (paint): Wrap excessively long lines.
26a27c14
CF
181 (list_click): Ditto.
182 (create_listview): Ditto.
183 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
184 setup.log.full. Allow "Yes" for source exists in setup.log.full when
185 installing from local directories.
186
97312777
CF
187Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
188
5f9f0d8d
CF
189 * choose.cc (set_action): Only clear srcpicked when moving to next
190 state. Allow source installation if it exists in the current "trust"
191 state. Don't move to skip state when package is installed.
97312777
CF
192 (list_click): Don't allow source clicking when no source is available.
193 (set_full_list): Display package when not is_full_action.
194 * ini.h (is_full_action): Define.
195
72fd1d1e
CF
196Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
197
198 * install.cc (check_for_old_cygwin): New function. First stab at
199 checking for old cygwin versions.
200 (do_install): Call check_for_old_cygwin if there were no errors during
201 the install.
202
41ac91b5 203Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
86202506
CF
204
205 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
206 than zeroed "source" element.
207
80429b97
CF
208Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
209
210 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
211 the highest available "hole" in the trust array.
212
654ea642
CF
213Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
214
215 * choose.cc (set_existence): Use pointer method for indexing in trust
216 array.
217 (create_listview): Ditto.
218 (scan2): Ditto. Also, use consistent variable name for indexing into
219 trust array.
220 * ini.h (Package): Reorganize info array for easier scanning.
221
e98d90bd
CF
222Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
223
224 * choose.cc (isinstalled): Eliminate special download only test.
225 (set_action): Don't move to next state if in ACTION_SAME range and not
226 incrementing.
227 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
228 downloading.
229 (do_choose): Sort packages after all packages have been read.
230 Accomodate the fact that first element in trust array is empty so that
231 log files don't report the wrong trust value.
232 * iniparse.y (new_package): Malloc space for package name or suffer
233 memory corruption.
234
38c97581
CF
235Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
236
237 * ini.h (Dependency): New structure. Declare new function.
238 * inilex.l (yylex): Detect new setup.ini options - category and requires.
239 * iniparse.y: Declare new setup.ini token values.
240 (yyparse): Parse new token values.
241 (new_requirement): New function.
242
243Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
244
245 * choose.cc (read_installed_db): Eliminate obsolete code.
246
3ae6c15c
CF
247Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
248
249 * choose.cc (set_action): Set trust on "redo".
250 (_Info::_Info): New constructor.
251 (read_installed_db): Use new constructor. Use trusts type for
252 iterator.
253 * ini.h (struct _Info): Label struct, add constructor.
254 (Package): Make installed_ix a type 'trusts.'
255 * install.cc (uninstall_one): Unset any installed info for current
256 package.
257 (install_one): Allocate new Info struct for installed reflecting new
258 installed info.
259 (do_install): Don't output line to installed.db if package is being
260 uninstalled.
261
9c0a9876
CF
262Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
263
264 * choose.cc (getpkgbyname): Use consistent method for scanning package
265 array.
266
68b27c12
CF
267Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
268
269 * choose.cc: Add some comments.
270 (getpkgbyname): Use strcasecmp for comparisons.
271
07108cc2
CF
272Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
273
f0984dcb 274 * install.cc (do_install): Avoid checking for download action if
07108cc2
CF
275 package wasn't currently retrieved.
276
c46a33a9
CF
277Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
278
279 * choose.cc: Eliminate extra array throughout. Use element in package
280 structure instead. Use pointers rather than array indexes where
281 appropriate.
282 (set_action): New function to set next action based on current.
283 (choose_caption): New function. Returns display caption.
284 (check_existence): Change arguments. Use pointer to 'info' structure.
285 (set_existence): Use pointer rather than array index.
286 (default_trust): Use trusts enum for second argument.
287 (set_full_list): Honor exclude element in package structure.
288 (build_labels): Eliminate.
289 (base): Make global. Use const char * argument.
290 (get_package_version): Eliminate.
291 (getpkgbyname): New function.
292 (read_installed_db): Use parse_filename to get version info.
293 * desktop.cc (make_passwd_group): Use getpkgbyname function.
294 * download.cc (get_file_size): const argument.
295 (do_download): Use is_download_action to determine when something
296 should be downloaded.
297 * filemanip.h: Add some functions.
298 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
299 * ini.h: Use enums for actions and trusts.
300 (is_download_action): New macro.
301 (is_upgrade_action): Ditto.
302 (is_uninstall_action): Ditto.
303 (struct Package): Add new fields.
304 * inilex.l (yylex): Detect new setup.ini options.
305 * iniparse.y: Declare new tokens.
306 (yyparse): Detect exclude keyword. Fill out version field even if
307 version == 0.
308 (new_package): Use greater granularity when allocating package array to
309 avoid repeated calls to realloc.
310 * install.cc (exists): const argument.
311 (uninstall_one): Take pkg argument.
312 (install_one): Ditto. Eliminate unneeded arguments which can be
313 derived from package info.
314 (do_install): Iterate over package array using a pointer. Use
315 is_download_action to control when package should be downloaded.
316 * tar.cc (tar_open): const argument.
317 * tar.h: Refloect const argument.
318
7cc06fd3
CF
3192001-05-31 Michael Chase mchase@ix.netcom.com
320
321 * main.cc (WinMain): Add setup version to starting setup.log entry
322
9522028b
CF
323Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
324
325 * inilex.l: Add + to list of valid string characters.
326
e9b1aaa7
CF
327Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
328
329 * Makefile.in: Remove more stuff in the clean target.
330
8e1299fa
CF
331Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
332
333 * Makefile.in: Correctly generate iniparse.h.
334
85553593
CV
335Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
336
337 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
338 * geturl.h: Change declaration of `get_url_to_file' accordingly.
339 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
340 Set member `ftp_auth'.
341 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
342 to constructors of derived classes.
343 (NetIO::get_ftp_auth): New method.
344 * netio.h: Change class definition accordingly.
345 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
346 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
347 Add code for ftp authentication retry.
348 * nio-ftp.h: Change class definition accordingly.
349 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
350 Add code for ftp authentication retry in case of proxy connection.
351 * nio-http.h: Change class definition accordingly.
352 * res.rc: Add FTP authentication dialog.
353 * resource.h: Add new constants used in res.rc.
354 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
355
c4174b9c
CF
356Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
357
358 * res.rc (IDD_SPLASH): Add a copyright year.
359
0af2d779
CF
360Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
361
362 * Makefile.in: Make iniparse.y produce a c++ file.
363 * choose.cc (set_existence): Revert 2001-05-27 change.
364 * ini.cc: Remove "C" from declaration of yyparse.
365 * iniparse.y (yyparse): Fill out version field by default when a binary
366 install is detected and no version has been set yet.
367 * install.cc (do_install): Mount things earlier so that we can use
368 proper mount table settings. Don't remove mounts since they are now
369 honored.
370 * mount.cc (create_mount): Reread the mount table after establishing a
371 new mount.
372 (read_mounts): Explicitly clear root_here to allow multiple uses of
373 this function. Ensure that there is no garbage in the table when we've
374 exhausted all of the mounts in the registry.
375 (cygpath): Accomodate ./ in path.
376
85b43844
CF
377Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
378
0af2d779
CF
379 Use parse_filename method to parse filenames throughout. Use
380 get_root_dir to retrieve the current root directory throughout. Set
381 const in argument list, where appropriate, throughout.
382 * choose.cc (set_existence): Detect case of uninstalled package with no
383 version.
85b43844
CF
384 (parse_filename): New function.
385 * filemanip.h (fileparse): New structure.
386 * mount.cc (read_mounts): Remember where we found the root mount.
387 (set_root_dir): New function.
388 (get_root_dir): Ditto.
389 * mount.h: Declare new functions.
390 * site.cc (get_root_dir_now): Renamed from get_root_dir.
391 (save_site_url): Use new function name.
392 (get_initial_list_idx): Ditto.
393
08f8c762
CF
394Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
395
396 * choose.cc: Use a constant throughout to deal with chooser icon
397 length.
398 * res.rc (IDD_CHOOSE): Increase size of chooser box.
399
47f8d8b3
CF
4002001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
401
402 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
403 use when Redownload or Sources Only selected.
404
6a748750
CF
405Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
406
407 Reformat file after botched patch formatting.
408 * choose.cc (which_trust): Eliminate variable.
409 (default_trust): Don't set which_trust.
410 (do_choose): Use selected trust when reinstalling or installing source.
411
a351e48c
CF
412Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
413
414 Change concat to cygpath throughout.
415 Change map_filename to cygpath throughout.
416 * concat.cc (vconcat): New function.
417 (concat): Use vconcat.
418 * concat.h: Reflect above.
419 * install.cc (map_filename): Eliminate.
420 (install_one): Free dest_file.
421 * mount.cc (find2): Expect input key to be pointing to mount record.
422 (in_table): New function.
423 (is_admin): Move from root.cc.
424 (read_mounts): New function.
425 (path_prefix_p): New function.
426 (cygpath): New function.
427 * mount.h: Define new functions and structure.
428 * root.cc (in_table): Move to mount.cc.
429 (do_root): Call read_mounts to initialize root stuff and mount table.
430 * site.cc (get_root_dir): Ditto.
431
e227ee24
CF
4322001-05-09 Matt Hargett <matt@use.net>
433
434 * Makefile.in: Remove *.rc from clean.
435
25fd2965
CF
436Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
437
438 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
439 TRUST_PREV which produced "0" versions.
440
42bf5b92
CF
4412001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
442
443 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
444 _APS_NEXT_CONTROL_VALUE to account for addition of
445 IDC_CHOOSE_INST_TEXT.
446 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
447 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
448 hot keys to select Prev, Curr, Exp.
449 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
450 define for LOOP_PACKAGES to include new actions ACTION_REDO and
451 ACTION_SRC_ONLY.
452 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
453 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
454 source Checkbox to use.
455 (build_labels): Add logic to allow for selection of Source only
456 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
457 current version binary.
458 (dialog_proc): Add conditional display for file selection prompt based
459 on download vs install using IDC_CHOOSE_INST_TEXT.
460 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
461 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
462 handle the instance where Source Download/Install was selected. Modify
463 log file to store appropriate information regarding Action selected and
464 the new actions that were added (I.E.: ACTION_REDO and
465 ACTION_SRC_ONLY).
466 * download.cc: Add include for <unistd.h> and "port.h".
467 (download_one): Modify parameter list to include the selected action
468 for the file to be downloaded. Modify size check against expected size
469 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
470 .tmp file to also remove the destination file if exists due to ability
471 to redownload source and binary now.
472 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
473 calculation of Download Bytes. Modify to also use ACTION_REDO and
474 ACTION_SRC_ONLY in determining files selected for download.
475 * install.cc (uninstall_one): Add check to treat a Reinstall like an
476 upgrade so current version will be uninstalled prior to reinstall.
477 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
478 uninstalling and installing binary and source packages.
479 * desktop.cc (make_passwd_group): Modify logic to account for a Source
480 only cygwin install when checking for cygwin to determine need for
481 mkpasswd and mkgroup.
482
483Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
8a09aa99
CF
484
485 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
486 Removed WS_DISABLED from "OK" buttons to accomodate default focus
487 changes in net.cc and source.cc.
488 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
489 a default is selected.
490 * winsup/cinstall/source.cc (dialog_proc): Ditto.
491 (check_if_enable_next): Removed. No longer needed since a radio button
492 will always be selected.
493 (load_dialog): Removed call to check_if_enable_next.
494 (dialog_cmd): Ditto. Also added default to switch.
495
87bdba0c
CF
496Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
497
498 * res.rc: Resize affected text.
499
8293fc16
CF
500Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
501
502 * net.cc (do_net): Default to direct download.
87bdba0c 503 * res.rc: Move default selections to the top.
8293fc16 504
ed96c6da
EB
5052001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
506
507 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
508 Must now include <windows.h> and not the pieces.
509 * choose.cc (create_listview): Clean up type mismatch problems.
510 * dialog.h (NEXT(id)): Ditto.
511 * geturl.cc (dialog): Ditto.
512 * install.cc (dialog): Ditto.
513 * splash.cc (load_dialog): Ditto.
514
fe94cc29
CF
515Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
516
517 * tar.cc (class gzbz): Define dummy virtual functions.
518
fb087b80
CF
519Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
520
521 * Makefile.in: Add bz2 include/library support.
522 * filemanip.h: New file.
fe94cc29
CF
523 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
524 .tar.bz2 found.
fb087b80
CF
525 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
526 (read_installed_db): Ditto.
527 (do_choose): Ditto.
528 * fromcwd.cc (found_file): Ditto.
529 (do_fromcwd): Ditto.
530 * tar.cc (class gzbz): New super class for uncompression support.
531 (gz): New class for gzip support.
532 (bz): New class for bzip2 support.
533 (tar_open): Use gzbz class to control file opening.
534 (tar_ftell): Ditto for returning position in file.
535 (skip_file): Ditto for reading file.
536 (tar_next_file): Ditto.
537 (tar_read_file): Ditto.
538 (tar_close): Ditto for close.
539
540 * zlib/configure.in: Force NM substitution.
541
542 * source.cc (do_source): Default to "Install from Internet".
543
88bcaf07
CF
5442001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
545
546 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
547 `stat'.
548 * choose.cc (list_click): Correct inability to select source code for
549 download.
550 (scan2): Modify to skip source tarballs when scanning disk for
551 installable packages.
552
ef45c299
CV
5532001-03-10 Chris Abbey <chris_abbey@yahoo.com>
554
555 * install.cc: install sources into /usr/src instead
556 of /, also include the sizes of source tarballs
557 in total_bytes.
558 * download.cc: include sizes of source tarballs in
559 total_download_bytes.
560
9fe1181b
CV
561Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
562
563 * download.cc (get_file_size): Remove `static'.
564
2bfdb848
CV
565Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
566
567 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
568
60c632b3
CV
5692001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
570
571 * choose.cc (paint): Modify message for nothing to download vs
572 nothing to install/update based on installation method.
573 (list_click): Modify to skip versions in selection process if
88bcaf07 574 installing from local directory and installation file does not exist.
60c632b3
CV
575 Also leaves Source Action set to N/A if the source file does not exist
576 and installing from local directory.
577 (check_existence): New method to check current existence of installation
578 files based on selected installation method.
579 (set_existence): New method to set the current existence of installation
580 files based on selected installation method.
581 (best_trust): Modify decision process for best trust to base decision on
582 current trust selected (IE: Prev, Curr, or Test), existence of file and
583 installation method selected.
584 (default_trust): Add logic to capture the current trust level and the
585 trust selected for the given package.
88bcaf07 586 (set_full_list): Expand decision criteria for displaying a package in
60c632b3
CV
587 the selection list to include file existence/non-existence and selected
588 installation method.
589 (build_labels): Modify criteria for label addition to include
590 installation method and file existence/non-existence.
88bcaf07 591 (create_listview): Modify to establish package trust level for each
60c632b3
CV
592 package before setting up the display list. Also modification to set
593 current trust button as the default.
88bcaf07 594 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
60c632b3
CV
595 a reset of the selection list in addition to setting the default trust.
596 (get_package_version): New method to provide reusable code for
597 determining the package version from the file name for a specified
598 trust.
599 (scan2): Modify to use new method get_package_version and
600 also enhance handling of the build for the structures package and
601 extra.
602 (read_installed_db): Modify to use the new method
603 get_package_version and also enhance handling of the build for the
604 structures package and extra.
88bcaf07 605 (do_choose): Add additional initialization of package and extra
60c632b3
CV
606 structures. Modify to use read_installed_db all the time despite
607 install method. Modify output to setup.log.full log file to increase
608 readability by adding additional spacing, expanded code and available
609 versions.
610 * ini.h: Add new fields install_exists, source_exists and
88bcaf07 611 partial_list_display to the structure definition for package.
60c632b3
CV
612 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
613 pushbuttons by replacing with Radio Buttons thus allowing the
614 operator to better determine which is selected.
615
2f9645a1
CV
6162001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
617
88bcaf07 618 * download.cc (do_download): Add new variables total_download_bytes and
2f9645a1
CV
619 total_download_bytes_sofar for download progress meter. Add loop
620 to accumulate the total bytes to download from the selected packages.
621 * geturl.cc: Add state.h and diskfull.h to include list. Add new
622 variables gw_iprogress, gw_pprogress, gw_progress_text,
623 gw_pprogress_text, and gw_iprogress_text to allow for addition of
624 total packages download progress meter and disk full percent
625 progress meter. Add variables total_download_bytes and
626 total_download_bytes_sofar for use by progress meters.
88bcaf07
CF
627 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
628 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
629 allow for addition of total packages download progress meter and disk
630 full percent progress meter.
2f9645a1
CV
631 (init_dialog): Ditto.
632 (progress): Ditto.
633 (get_url_to_file): Ditto.
634 * geturl.h: Add external definition for total_download_bytes and
635 total_download_bytes_sofar.
88bcaf07 636 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2f9645a1
CV
637 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
638 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
639 download meters.
88bcaf07 640 * resource.h: Add new fields for progress meters and text and update
2f9645a1
CV
641 _APS_NEXT_CONTROL_VALUE.
642
b41962a3
CV
643Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
644
645 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
646 for NULL.
647
648Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
01954c34
CV
649
650 * download.cc (download_one): Add missing parenthesis.
651
88a77116
CV
652Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
653
654 * download.cc (get_file_size): New function. Eliminates the need
655 to call `stat'.
656 (download_one): Call `get_file_size' instead of `stat'. This
657 workarounds a problem with mingw's `stat' call.
658
577f35ed
EB
6592001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
660
661 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
662 This is to allow cinstall to build with 2.95.2-7 and to make the
663 use of headers consistent.
664
38f5563e
DD
6652000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
666
667 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
668
c0a7e0f2
DD
669Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
670
671 * winsup/cinstall/res.rc: Added accelerators and improved focus
672 order.
673
72826a5b
CF
6742000-12-10 Egor Duda <deo@logos-m.ru>
675
676 * choose.cc (paint): Use system background color for text output.
677
678Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
679
680 * Makefile.in: Use CXX for linking and for compiling .cc files.
681 * configure.in: Find correct c++ compiler.
682 * configure: Regenerate.
683
67bebcb5
DD
6842000-11-17 DJ Delorie <dj@redhat.com>
685
686 * splash.cc (load_dialog): Make message more obvious.
687 * res.rc: Ditto.
688
25fb9139
CF
689Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
690
691 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
692 necessary for newer compilers.
693
ef2007fd
CV
694Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
695
696 * desktop.cc: Include "ini.h" and "version.h".
697 (make_passwd_group): Skip the function on 9x/ME boxes when an
698 older version of Cygwin has been installed which doesn't
699 support mkpasswd/mkgroup on 9x/ME.
700 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
701 * ini.h: ...here.
702
277b4d56
CV
703Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
704
705 * desktop.cc (make_passwd_group): Don't exit when started
706 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
707
f8a6415f
DD
708Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
709
710 * install.cc (do_install): Add call to set_cygdrive_flags to sync
711 the mount modes.
712 * mount.cc (set_cygdrive_flags): New function.
713 (get_cygdrive_flags): Ditto.
714 (default_cygdrive): Ditto.
715 (set_cygdrive_flags): Ditto.
716 * mount.h: Add prototype for set_cygdrive_flags.
717
3b9077d4
DD
7182000-10-23 DJ Delorie <dj@redhat.com>
719
720 * ini.h: add source actions
721 * fromcwd.cc: check for available sources
722 * res.rc: add checkbox bitmaps
723 * resource.h: ditto
724 * check-*.bmp: new
725 * choose.cc: add source column
726 * download.cc: download sources if called for
727 * install.cc: [un]install sources too
728
1b1b33ac
DD
7292000-10-22 DJ Delorie <dj@redhat.com>
730
731 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
732 ignore it wrt full_list if there's already a version installed.
733 (do_choose): Sort the list.
734 (package_sort): New.
735
2a1a01e0
DD
7362000-10-12 DJ Delorie <dj@redhat.com>
737
738 * res.rc: Add more error strings.
739 * resource.h: Ditto.
740 * iniparse.y (new_package): re-initialize if needed.
741 * download.cc (do_download): Keep track of errors; notify and
742 allow retry.
743 * install.cc (do_install): Ditto.
744
1a9886fe
DD
7452000-10-05 DJ Delorie <dj@redhat.com>
746
747 * Makefile.in: fix %.cc rule
748
40aef45e
DD
7492000-10-04 DJ Delorie <dj@redhat.com>
750
751 * desktop.cc: quote HOME and USER, don't . ./.profile
752
753 * choose.cc (build_labels): don't include in partial list just
754 because there's a *previous* version available.
755
756 * install.cc (do_install): if installing from local directory with
757 setup.ini and the file isn't found, look in "." also. Note errors.
758
dd3f7f9b
DD
7592000-10-02 DJ Delorie <dj@redhat.com>
760
761 * ini.cc (do_ini): save setup.ini locally
762
7632000-10-02 Chris Abbey <cabbey@bresnanlink.net>
764
765 * desktop.cc: quote escapes in prompt
766
fee2a8d0
DD
7672000-10-02 Jason Tishler <jt@dothill.com>
768
769 * root.cc (is_admin): New function.
770 (read_mount_table): Check for administrative priviledges and set
771 installation scope as appropriate.
772
a03db251
DD
7732000-09-28 DJ Delorie <dj@redhat.com>
774
775 * nio-ftp.cc (ftp_line): handle continuations more robustly
776
b151e01e 7772000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
0b758d4c
DD
778
779 * res.rc: increased the size of the site dialog (IDD_SITE) & the
780 corresponding list box to provide for more URL's to be listed.
781 Modified the position of the Back, Next and Cancel buttons to
782 correspond to the new size of the dialog.
783
d07591a3
DD
7842000-09-13 DJ Delorie <dj@redhat.com>
785
786 * install.cc (do_install): update disk fullness once per package
787 to improve performance
788
789 * choose.cc (create_listview): call ReleaseDC
790
89725f30
DD
791Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
792
793 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
794 returned, as it seems Samba 2.0.6+ returns this instead of
795 ERROR_PATH_NOT_FOUND
88bcaf07 796
6fbc690d
CF
797Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
798
799 * site.cc (get_initial_list_idx): Don't default to saved URL if it
800 refers to sources.
801
13d27274
DD
8022000-09-07 DJ Delorie <dj@redhat.com>
803
804 * splash.cc: use version.h, not local decl
805 * res.rc: add "old version" message
806 * resource.h: ditto
807 * version.h: new
808 * fromcwd.cc (canonicalize_version): make global
89725f30
DD
809 * iniparse.y: add setup-version support, fix bug in blank line
810 handling
811
13d27274
DD
812 * inilex.l: add [exp] as alias for [test], add setup-version
813 * Makefile.in (version.c): add setup-version tag
814
815 * desktop.cc (do_desktop): remove 1.1 version number
816 (do_desktop_setup): ditto
817
818 * ini.cc (do_ini): zero out package list just in case we redo it.
819
8cfbc487
DD
8202000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
821
822 * choose.cc (list_click): Check for nindexes==0; if so, return.
823
c92e1307
DD
8242000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
825
826 * localdir.cc: new, local package directory selection dialog; cd
827 into selected directory
828 * Makefile.in (OBJS): add localdir.o
829 * dialog.h: add prototype for do_local_dir
830 * main.cc (WinMain): initialize local_dir to cwd; add call to
831 do_local_dir
832 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
833 * source.cc (dialog_cmd): ditto
834 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
835 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
836 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
837 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
838 * state.h: add local_dir variable
839
8402000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
50225eae
DD
841
842 * desktop.cc: added logic to handle to the new dialog and to
843 default the setting for the new checkboxes based on whether the
844 desktop icon or start menu link already exist.
845 (desktop_icon): correction to desktop directories for desktop icon
846 creation. Additional logic added for Win95 which does not appear
847 to have Common Directories so if Common selected and null uses
848 normal directory.
849 (start_menu): Additional logic added for Win95 which does not
850 appear to have Common Directories so if Common selected and null
851 uses normal directory.
852 (do_desktop_setup): moved the saving of the icon, creation of the
853 bat file, profile, passwd, Start Menu link and desktop shortcut to
854 this method from do_desktop. Made the creation of the desktop
855 icon and start menu link conditional on settings of new dialog
856 created for desktop.
857 * install.cc (do_install): changed next from IDD_S_DESKTOP to
858 IDD_DESKTOP.
859 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
860 * res.rc: added new resource to create a desktop dialog with 2
861 checkboxes for creating the desktop icon and start menu link.
862 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
863 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
864 * state.h: added root_menu and root_desktop for use in dialog.
865
4a83b7b0
DD
8662000-08-29 DJ Delorie <dj@redhat.com>
867
868 * choose.cc (scan_downloaded_files): scan for existing files, so
869 that the user only sees new downloads.
870
871 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
872 * site.cc (do_site): if we can't download the mirror list, go back
873 to the net setup box to choose another transport.
874 * autoload.c: add more functions
875 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
876 * resource.h: add WININET message
877
878 * net.cc (do_net): no longer default to IE5
879 * simpsock.h (class SimpleSocket): new, simplify socket operations
880 * simpsock.cc: ditto
881 * nio-http.h: new, for direct http protocol
882 * nio-http.cc: ditto
883 * nio-ftp.h: new, for direct http protocol
884 * nio-ftp.cc: ditto
885 * netio.cc (set_url): move initialization here to handle redirections
886 (open): add direct http/ftp
887 * netio.h (NetIO::set_url): new
888
889 * log.cc (log_save): create directory for log if needed
890
891 * hash.cc, hash.h: new
892 * Makefile: add hash.o
893 * choose.cc: enable "uninstall" option
894 * download.cc: invert action test to accomodate uninstalling
895 * ini.h: add ACTION_UNINSTALL
896 * install.cc: add uninstall functionality
897 * res.rc: make install tag changeable
898 * resource.h: add uninstall resources
899
900 * res.rc: update mirror list URL
88bcaf07 901
50f64a4b
DD
9022000-08-24 DJ Delorie <dj@redhat.com>
903
89b1a15b
DD
904 * log.cc, log.h: new files
905 * Makefile.in (OBJS): add log.o
906 * tar.cc: use exit_setup instead of exit
907 * dialog.cc (fatal): use exit_setup instead of ExitProcess
908 * msg.cc (fatal): ditto
909 * install.cc (dialog_cmd): ditto
910 * ini.cc (do_ini): ditto
911 * main.cc (main): add logging
912 * source.cc (do_source): ditto
913 * root.cc (do_source): ditto
914 * site.cc (do_site): ditto
915 * other.cc (do_other): ditto
916 * net.cc (do_net): ditto
917 * choose.cc (do_choose): ditto
918 * download.cc (do_download): ditto
919 * install.cc (do_install): ditto
920 * msg.cc (fatal): ditto
921
922 * res.rc: mark password boxes as *being* password boxes.
923
50f64a4b
DD
924 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
925 calls won't use the same buffer.
926 * choose.cc (create_listview): don't default to full list if no changes
927 (base): return computed value, not temporary :-(
928 (do_choose): don't use installed.db if we're only downloading.
929
348860fa
DD
9302000-08-23 DJ Delorie <dj@redhat.com>
931
932 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
933 * nio-ie5.h (flush_io): new
934 * netio.cc (load_dialog): note when we're initializing the dialog
935 box, and ignore changes to the edit fields then.
936
5f48f258
DD
9372000-08-21 DJ Delorie <dj@redhat.com>
938
939 * README: Update
940
941 * fromcwd.cc (found_file): don't remember the canonicalized version
942
943 * choose.cc (paint): print "nothing to do" message when list is empty.
944 (build_labels): Use version "0.0" if no version is available.
945 (create_listview): default to full list if nothing to install/update.
946 (base): new, returns basename of file
947 (read_installed_db): compare base names, not full paths
948
713bbe5f
DD
9492000-08-11 DJ Delorie <dj@redhat.com>
950
951 * choose.cc: add new chooser dialog
952 * fromcwd.cc: use IDD_CHOOSE
953 * ini.cc: use IDD_CHOOSE
954 * main.cc: use IDD_CHOOSE
955 * ini.h: cosmetic changes
956 * res.rc: add choose dialog, bitmaps
957 * choose-spin.bmp: new
958 * choose-rtarrow.bmp: new
959 * resource.h: add choose dialog controls
960
961 * mount.cc: remove debug statement
88bcaf07 962
2e9cbac5
DD
9632000-08-08 DJ Delorie <dj@redhat.com>
964
965 * Makefile.in (version.c): make version checking more robust
966 * splash.cc (load_dialog): handle case where there's no version
967
8507f105
DD
9682000-08-07 DJ Delorie <dj@redhat.com>
969
970 * (all): add cvsid tags
971 * Makefile.in: generate version.c from ChangeLog, add splash.o
972 * splash.o: new
973 * res.rc: add splash screen
88bcaf07 974
f5d0464b
DD
9752000-08-02 DJ Delorie <dj@redhat.com>
976
4e8ff53f
DD
977 * net.cc: remove proxy password code
978 * res.rc: remove proxy user/pass from net, add auth dialogs
979 * netio.cc,h: add sys/proxy auth methods
980 * nio-ie5: use them, check for http status codes
981 * state.h: add system authorization
982
f5d0464b
DD
983 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
984 meaning an url)
985
76cbfa85
DD
9862000-08-02 Norman Vine <nhv@yahoo,com>
987
988 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
989
e92c4436
DD
9902000-08-01 DJ Delorie <dj@redhat.com>
991
bf74c544
DD
992 * postinstall.cc (each): don't rename files we ignore
993 (do_postinstall): set CYGWINROOT to root_dir, chdir there
994
e92c4436
DD
995 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
996
a6100861
DD
9972000-07-31 DJ Delorie <dj@redhat.com>
998
999 * desktop.cc: reverse PATH so /usr/bin precedes /bin
1000
b11b49f3
DD
10012000-07-18 DJ Delorie <dj@redhat.com>
1002
a99bdfd8
DD
1003 * autoload.c: new, autoload dlls that might not be available.
1004 * Makefile.in (OBJS): add autoload.o
1005
1006 * res.rc: rewrite root options (text/binary, system/user) to be
1007 more obvious.
1008
b5b282c4
DD
1009 * site.cc (get_site_list): trim displayed URL, sort by domain
1010
1011 * net.cc (do_net): make IE5 default to checked, for now
1012
b11b49f3
DD
1013 * choose.cc (do_choose): sort packages correctly
1014 * ini.cc (do_ini): handle parse errors more gracefully
1015 (yyerror): ditto
1016 (fprintf): line buffer output
b5b282c4 1017 (do_ini): if we can't load setup.ini, go back to the site list.
b11b49f3
DD
1018 * ini.h: add "unknown" trust level
1019 * inilex.l: absorb unknown trust levels and key/value pairs,
1020 add line number logic
1021 * iniparse.y: handle parse errors more gracefully.
1022 * install.cc: skip packages with no valid install entry
1023
1fd6d0a2
DD
10242000-07-17 DJ Delorie <dj@cygnus.com>
1025
1026 * coding standards fixups, many files
1027 * mkdir.cc: warn about deletions *before* deleting them
1028
ed3e8b9b
DD
10292000-07-17 Jeff Juliano <juliano@cs.unc.edu>
1030
1031 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
1032
1033 * other.cc (dialog_cmd): save download site URL
1034 * site.cc (get_root_dir): new
1035 (save_mirror_site): new
1036 (dialog_cmd): save download site URL
1037 (get_site_list): make list big enough to add prev site
1038 (get_initial_list_idx): new, read last-used URL from file and
1039 append it to site_list
1040 (do_site): call get_initial_list_idx
1041
1042 * concat.cc (concat): avoid segfault when first parm is null
88bcaf07 1043
f57c332f
DD
10442000-07-13 DJ Delorie <dj@cygnus.com>
1045
1046 * postinstall.cc: new
1047 * Makefile.in: add postinstall.o
1048 * concat.h: add backslash ()
1049 * concat.cc: ditto
1050 * desktop.cc (etc_profile): don't do postinstall
1051 (backslash): moved to concat.cc
1052 (uexists): new
1053 (make_postinstall_script): run directly
1054 (do_desktop): chain to do_postinstall
1055 * dialog.h: add exit_msg, do_postinstall
1056 * download.cc: use exit_msg
1057 * install.cc: ditto
1058 * main.cc: add postinstall, exit_msg
1059 * resource.h: add postinstall
d6cda811 1060 * README: add more to-do items
f57c332f 1061
3a8e3956
DD
10622000-07-12 DJ Delorie <dj@cygnus.com>
1063
1064 * desktop.cc: add /etc/postinstall/ support
1a18aed7 1065 * install.cc: add more "standard" directories
3a8e3956 1066
e0c3d906
DD
10672000-07-11 DJ Delorie <dj@cygnus.com>
1068
1069 * desktop.cc: create /etc/profile
ad09bcd9
DD
1070 * desktop.cc: fix include syntax
1071 * Makefile.in: add auto-dependencies
24e259bb
DD
1072 * root.cc: support system vs user
1073 * desktop.cc: ditto
1074 * mount.h: ditto
1075 * mount.cc: ditto
1076 * install.cc: ditto
1077 * res.rc: ditto
1078 * resource.h: ditto
1079 * state.h: ditto
84d58d4c 1080 * desktop.cc: make sure we use backslashes, not slashes.
bf1d5889
DD
1081 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
1082 * geturl.cc: change math for percentage to avoid overflow
1083 * install.cc: ditto
1084 * download.cc: post "download complete" message.
1085 * root.cc: pre-fill in defaults if needed, don't start
1086 browse at root_dir unless it's set.
a3f48e18 1087 * desktop.cc: quote $PATH in case it has spaces in it
88bcaf07 1088
904d24fe
DD
10892000-07-10 DJ Delorie <dj@cygnus.com>
1090
1091 * Makefile.in: add desktop.o and mklink2.o
1092 * dialog.h: add do_desktop
1093 * install.cc: create standard directories, call do_desktop
1094 * res.rc: add cygwin.ico as a file also
1095 * desktop.cc: new, do shortcuts, batch files, and icons
1096 * mklink2.c: new, for COM
1ab805b8 1097 * README: update to-do list
904d24fe 1098
04d6e06b
DD
10992000-07-10 DJ Delorie <dj@cygnus.com>
1100
1101 * ini.cc (do_ini): don't worry about timestamps if we're not
88bcaf07 1102 actually installing.
04d6e06b 1103
5601a13d
DD
11042000-07-09 DJ Delorie <dj@cygnus.com>
1105
1106 * Makefile.in: add -I$(srcdir) for ini.h
1107
23c9e63c
DD
11082000-07-06 DJ Delorie <dj@cygnus.com>
1109
1110 * Replace everything with a new GUI version
1111 * zlib/gzio.c: add gzctell() for progress displays
1112
11132000-06-22 DJ Delorie <dj@cygnus.com>
1114
1115 * setup.c (tarx): re-add call to write_pkg()
1116
aa32874b
DD
11172000-06-07 DJ Delorie <dj@cygnus.com>
1118
1119 * cygcalls.c: new, call cygwin1.dll functions directly
1120 * cygcalls.h: header for same
1121 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
1122 exes, fix cinstall.rc dependencies.
1123 * path.c: remove unneeded code
1124 * setup.c: use cygcalls instead of xcreate_process.
1125 uncompress embedded files with zlib
1126 add "-d" for "download only"
1127 add "-h" for help
1128 postpone mount changes until very end
1129 add download progress indicators
1130 pack multi-column listings more
1131 auto-delete temp files
1132 customize banner message according to options
1133 prompt user for text/binary mounts
1134 add warnings about empty setup directory, root installs, etc
1135
99d1bf2d
DD
11362000-05-24 DJ Delorie <dj@cygnus.com>
1137
1138 * tar.c: New file; built-in tar using zlib.
1139 * tar.h: New file; header for same.
1140 * ctar.c: New file; test program for same.
1141 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
1142 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
1143 * setup.c (tarx): add support for built-in tar
1144 (main): accept unix-style slashes, check root dir for drive letters,
1145 warn about installing in /, make sure cwd is empty for internet installs,
1146 defer mounts to end of install, support built-in tar.
1147
55650749
CF
1148Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
1149
1150 Fix compiler warnings throughout.
1151 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
1152 get_pkg_stuff.
1153 * setup.c: Make 'root' global.
1154 (istargz): Return pointer to "stem" of matched .tar.gz file.
1155 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
1156 bogus check_for_installed check.
1157 (recurse_dirs): Add preliminary support for .bat file execution.
1158 (create_uninstall): Eliminate unneeded parameter.
1159 (do_start_menu): Ditto.
1160 (mkmount): Ditto.
1161 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
1162 scanning for the version number. Eliminate unneeded argument to
1163 create_uninstall.
1164 (getdownloadsource): Add 'name' to list of names rather than url.
1165 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
1166 unneeded argument in mkmount and do_start_menu.
1167
f4dda8f0
DD
11682000-05-18 DJ Delorie <dj@cygnus.com>
1169
1170 * setup.c (optionprompt): allow multi-column, clean up message
1171 about more options, be more robust about user input.
1172 (getdownloadsource): make the mirror URL a macro.
1173 (main): do mounts after done prompting user.
1174
62844d84
CF
1175Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
1176
1177 * setup.c (cleanup): Inverse order of deletion stands a better chance
1178 of deleting cygpath.exe. Still seems to suffer from occasional races,
1179 though.
1180 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
1181 w2k.
1182 (output_file): Defend against an unlikely handle leak.
1183 (main): Don't set up signal handling until we have something special to
1184 do.
1185
ad6749c8
CF
1186Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
1187
1188 * path.c (kill_cygpath): Delete function.
1189 (exit_cygpath): Make more defensive so that it can be called at any
1190 time.
1191 (cygpath_pipe): Don't set up signal here. Do it in main().
1192 * setup.c (istargz): New function.
1193 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
1194 inexplicably fails on samba mounted partitions. Use istargz to match
1195 tar.gz tail.
1196 (processdirlisting) Use istargz to match tar.gz tail.
1197 (cleanup): Renamed from filedel.
1198 (cleanup_on_signal): New function. Called on CTRL-C.
1199 (main): Record handle of main thread so that it can be suspended when
1200 CTRL-C occurs. Set up cleanup_on_signal signal handler.
1201
460cf7b6
CF
1202Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
1203
1204 * setup.c (do_start_menu): Don't concatenate paths to already built
1205 paths.
1206
9e76799c
CF
1207Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
1208
1209 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
1210 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
1211 that.
1212 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
1213 root"-specific.
1214 * setup.c (filedel): Call exit_cygpath here so that we can be assured
1215 that cygpath subprocess has died. This allows us to delete cygpath.exe
1216 and cygwin1.dll.
1217 (optionprompt): Initialize response to -1 so that second screen of
1218 mirrors will appear.
1219 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
1220 * setup.h: Reflect init_pkgs prototype change.
1221
2cf65e6e
CF
1222Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
1223
1224 * pkg.c (init_pkgs): Accept an argument to control what root registry
1225 key should be used.
1226 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
1227 * setup.h: Reflect init_pkgs prototype change.
1228
1229Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
1230
1231 * error.c (winerror): Respond to gcc warning.
1232 * path.c (cygpath_pipe): Ditto.
1233 * setup.c (filedel): Call sa_cleanup on deleteme.
1234 (create_shortcut): Coerce argument to eliminate compiler warning.
1235 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
1236 (refmatches): New function. Tests if ref is contained in a list of
1237 packages to install.
1238 (filematches): New function. Tests if filename matches one of a list
1239 of packages to install.
1240 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
1241 test to accomodate _tar.gz.
1242 (prompt): Ensure that stdout is flushed prior to asking for input.
1243 (findhref): Initialize variables to quiet a compiler warning.
1244 (processdirlisting): Accept list of packages to install. Special case
1245 cygwin tar file version number.
1246 (downloaddir): Accept list of packages to install.
1247 (downloadfrom): Ditto.
1248 (create_uninstall): Eliminate unneeded variables. Quote arguments to
1249 regtool.
1250 (do_start_menu): Don't create uninstall bat file if updating or user
1251 specified a list of packages.
1252 (mkmount): Eliminate unneeded variables.
1253 (get_pkg_stuff): New function. Checks for previous unversioned
1254 installation.
1255 (main): Accept -u and -f options and package names on the command line.
1256 Use get_pkg_stuff to initialize package information. Umount /etc.
1257 Call recurse_dirs and downloadfrom with list of package to install.
1258 Ensure that all /usr/local directories are created. Output
1259 installation time to setup.log.
1260 * setup.h: Add some prototypes.
1261 * xsystem.c (xcreate_process): Eliminate unneeded variable.
1262
4cf88dd9
CF
1263Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
1264
1265 * setup.c (optionprompt): Don't overlap display of already seen options
1266 on next page.
1267 (geturl): Print name of site which we're connecting to rather than "ftp
1268 site".
1269 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
1270 test too simplistic?
1271 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
1272 problems when user chooses x:\ as their root.
1273 (main): For now, default to "non-update" mode. Allow -u option to
1274 signify an update.
1275
36591a07
CF
1276Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
1277
1278 * pkg.c: New file.
1279 * setup.c (tarx): Skip already installed or older packages. Report
1280 when a package has been updated.
1281 (processdirlisting): Skip already installed or older packages.
1282 (main): Detect -f option for forced installation. Initialize pkg stuff
1283 if appropriate.
1284 * setup.h: Add pkg definitions.
1285
c298ea4a
CF
1286Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
1287
1288 * setup.c (findhref): Return NULL on empty string. Eat any trailing
1289 ";something".
1290 (processdirlisting): Attempt to limit recursively processing the same
1291 directory.
1292
f4cafa7e
CF
1293Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
1294
1295 * setup.c (filedel): New function.
1296 (output_file): Keep track of files extracted from setup.exe for
1297 subsequent deletion.
1298 (tarx): Close process handle of child tar process or suffer handle
1299 leak.
1300 (getdownloadsource): Close mirror file so that it can be unlinked.
1301 (processdirlisting): Return total number of files extracted.
1302 (main): Initialize array of files to delete. Ensure that files are
1303 closed on exit. Make the directory that setup.exe is started from ==
1304 the directory where temporary files are placed. Issue an error if no
1305 files were found to download.
1306 * xsystem.c (xcreate_process): Close the thread handle. Close the
1307 process handle if we waited for it to exit.
1308
cd475210
CF
1309Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
1310
1311 * setup.c (main): Change version number output.
1312
7dff5e71
CF
1313Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
1314
1315 * setup.c (tarx): Use full path name to tar executable.
1316 (main): Build full pathname to tar executable. Create /usr/local/etc
1317 by default.
1318
99437fdb
CF
1319Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
1320
1321 * setup.c (findhref): Change method for scanning for href= to choose
1322 the last one on the line. This is still not foolproof and probably
1323 will need to be changed eventually. Don't abort if no "size" field is
1324 evident.
1325 (processdirlisting): Fix boolean algebra.
1326
0f562d55
CF
1327Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
1328
1329 * main.c (tarx): Add some code for future task of unmounting
1330 directories encountered in tar file.
1331
4356382d
CF
1332Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
1333
1334 * setup.c (findhref): Decode file size, when appropriate.
1335 (needfile): New function. Returns 1 when file should be
1336 downloaded.
1337 (processdirlisting): Always download if file size does not
1338 match. Prompt when download fails for some reason.
1339 (getdownloadsource): Accomodate findhref argument changes.
1340
6ab1ce6c
CF
1341Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
1342
1343 Throughout, use global session handle rather than reinitializing for
1344 each connect. Don't pass session as an argument to setup.c functions.
1345 * setup.c (geturl): Only issue "Connecting to.." message when using
1346 http or first time for ftp since subsequent connections will be fast.
1347 (processdirlisting): Allocate space for "N" when user has specified
1348 "N"ever option so that it can be subsequently freed.
1349 (main): Abort if we can't get the list of mirrors.
1350
37ee316b
CF
1351Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
1352
1353 * setup.c (main): Umount /bin and /lib.
1354
a59fb4fa
CF
1355Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
1356
1357 * setup.c (main): Create an empty /var/run/utmp.
1358
75f4b861
CF
1359Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
1360
1361 * Makefile.in: Add umount to list of files to include in setup.exe.
1362 * setup.c (xumount): New function for unmounting directories.
1363 (main): Unmount /usr.
1364 (mkmount): Unmount "unix directory" before trying to figure out where
1365 to create the directory.
1366
d4a66789
CF
1367Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
1368
1369 * setup.c (mkmount): Use xcreate_process to start mount process,
1370 avoiding the shell.
1371 (main): Don't do buffering on stdout or prompts won't be displayed
1372 correctly if running in a cygwin shell with CYGWIN=tty.
1373
a6c3982d
CF
1374Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
1375
1376 * setup.c (main): Remove the CYGWIN environment variable before
1377 starting any cygwin programs.
1378
0ffd5e3b
CF
1379Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
1380
1381 * setup.c (geturl): Use alternative method for finding filename part of
1382 a URL.
1383 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
1384 (downloaddir): Unlink file containing dir listing.
1385 (downloadfrom): Ditto.
1386
3e54bcf9
CF
1387Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
1388
1389 * setup.c (main): Disallow running setup.exe from the "root".
1390
005b73c4
CF
1391Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
1392
2cf65e6e 1393 Use "warning" function, where appropriate, to output warnings.
005b73c4
CF
1394 * setup.c (warning): New function -- outputs warning to console and log
1395 file.
1396 (tarx): Fix index used to reset file protection.
1397 (main): Open the log file earlier so that more stuff can be sent to it.
1398
36dc5fc8
CF
1399Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
1400
1401 * setup.c (processdirlisting): Make "N" option a little less aggressive.
1402
c73320de
CF
1403Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
1404
1405 * setup.c (tarx): Wait to after tar has completed to reset protections
1406 or suffer races with tar process.
1407
68cdfc92
CF
1408Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
1409
1410 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
1411 * setup.c (create_uninstall): Create the uninstall .bat file in the
1412 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
1413 list of files to be deleted. Fix directory detection for determining
1414 when to use 'rmdir'.
1415 (do_start_menu): Add /usr/local/bin to the path.
1416 (main): Add slop to files.array allocation so that we don't have to
1417 worry about reallocating the array when it grows too large when doing
1418 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
1419 files.
1420
35d18861
CF
1421Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
1422
1423 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
1424 download.
1425
20904de1
CF
1426Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
1427
1428 * path.c (kill_cygpath): New cleanup function.
1429 (exit_cygpath): New cleanup function.
1430 (cygpath_pipe): New function. Sets up cygpath in the background for
1431 translating filenames.
1432 (pathcvt): Use background cygpath for file translation.
1433 * setup.c (tarx): New function. Called to extract tar files, capture
1434 logging output, and translate it to Windows format.
1435 (recurse_dirs): Use 'tarx' function to extract files.
1436 (create_uninstall): Use file list built up by tarx rather than reading
1437 the log file.
1438 (mkmount): Add ability to mount root.
1439 (main): Track elapsed install time. Mount root.
1440 * starry.h: Add index field to strarry for tracking of tarx's usage of
1441 this structure.
1442 * xsystem.c (xcreate_process): Return proces handle when not waiting.
1443
c1246750
CF
1444Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
1445
1446 * path.c: New file.
1447 (pathfp): New function. Preliminary work for new -f cygpath
1448 functionality.
1449 * Makefile.in: Add new file.
1450 (pathcvt): Move to new file.
1451 (dtoupath): Ditto.
1452 (utodpath): Ditto.
1453 (pathcat): Ditto.
1454 * setup.c (processdirlisting): Always open file in text mode.
1455 (create_uninstall): Ditto.
1456 (getdownloadsource): Ditto.
1457 (main): Ditto.
1458
4b40edd0
CF
1459Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
1460
1461 * xsystem.c: New file.
1462 * Makefile.in: Accomodate new file.
1463 * setup.c (xsystem): Move to new file.
1464 (recurse_dirs): Accept handle to output log file. Don't use ">"
1465 redirection to trap tar output. Use supplied handle instead.
1466 (create_uninstall): Accept FILE pointer to opened log file. Don't
1467 unlink log file here.
1468 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
1469 (main): Open log file here and pass it to various functions. Unlink
1470 when done.
1471
6f8e3b45
CF
1472Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
1473
1474 Change occurrences of .usr.bin to .bin throughout.
1475 * setup.c (geturl): Increase number of retries to 20. Let user know
1476 what's going on during long connects.
1477 (processdirlisting): Accept "A"lways and "N"ever as update options.
1478 (create_uninstall): Load cygwin1.dll from the current directory rather
1479 than \bin.
1480 (main): Add some expository text.
1481
2a907b70
CF
1482Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
1483
1484 * Makefile.in: Change method for compressing cygwin1.dll to avoid
1485 creating a cygwin1.dll in the current directory. Ensure the addition
1486 of -nostdinc to MINGW_CFLAGS.
1487
c4285a3c
CF
1488Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
1489
1490 * Makefile.in: Augment clean target.
1491
ea615d51
RP
1492Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
1493
1494 * README: Added info about non-working mingw implementation
c1246750 1495 * gzip.exe.gz: Replace with a version from the same build as the other
ea615d51 1496 tools.
c1246750 1497 * tar.exe.gz: Replace with a version from the same build as the other
ea615d51 1498 tools.
c1246750 1499 * mount.exe.gz: Add to repository until, mingw can build setup.
ea615d51
RP
1500 * cygpath.exe.gz: ditto
1501 * cygwin1.dll.gz: ditto
c1246750
CF
1502 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
1503 for Win9x. Display only a screenfull of options at a time. Call all
1504 tools with an absolute path.
1505 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
1506 them.
ea615d51
RP
1507 * setup.dsw: ditto
1508 * zlib.dsw: ditto
1509
51954e74
CF
1510Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
1511
c1246750
CF
1512 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
1513 cygwin1.dll from ../cygwin subdirectory.
51954e74
CF
1514 * gzip.exe.gz: Update.
1515 * tar.exe.gz: Update.
1516
7b777418
CF
1517Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
1518
1519 * Makefile.in: Use ZLIB variable as a target.
1520
4306b490
CF
1521Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
1522
5e7eb909
CF
1523 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
1524 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
1525 sources.
4306b490
CF
1526 * configure.in: Locate correct objcopy.
1527 * configure: Regenerate.
1528
739457f4
CF
1529Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
1530
1531 * Makefile.in: New file.
1532 * configure.in: New file.
1533 * configure: New file.
1534 * zlib/Makefile.am: New file.
1535 * zlib/configure.in: New file.
1536 * zlib/aclocal.m4: New file.
1537 * zlib/acinclude.m4: New file.
1538 * zlib/configure: Regenerate from configure.in.
1539 * zlib/Makefile.in: Regenerate from Makefile.am
8507f105
DD
1540
1541%%% $Id$
1542$Revision$
This page took 0.211257 seconds and 5 git commands to generate.