]> cygwin.com Git - cygwin-apps/setup.git/log
cygwin-apps/setup.git
11 years ago * configure.ac: Update for aclocal-1.13 by replacing obsolete macro
Jon TURNEY [Thu, 25 Jul 2013 17:01:38 +0000 (17:01 +0000)]
    * configure.ac: Update for aclocal-1.13 by replacing obsolete macro
AM_CONFIG_HEADER with AC_CONFIG_HEADERS.

11 years ago * bootstrap.sh : Add support for x86_64-w64-mingw32 toolchain.
Jon TURNEY [Thu, 25 Jul 2013 16:59:01 +0000 (16:59 +0000)]
    * bootstrap.sh : Add support for x86_64-w64-mingw32 toolchain.

11 years ago * package_db.h (packagedb::addCommandLinePackages): Remove declaration.
Corinna Vinschen [Thu, 25 Jul 2013 12:05:36 +0000 (12:05 +0000)]
* package_db.h (packagedb::addCommandLinePackages): Remove declaration.
* package_db.cc (packagedb::addCommandLinePackages): Remove.

11 years ago * choose.h (hasManualSelections): Declare new variable.
Corinna Vinschen [Thu, 25 Jul 2013 12:03:49 +0000 (12:03 +0000)]
* choose.h (hasManualSelections): Declare new variable.
* choose.cc (ChooserPage::OnInit): Re-implement package handling
depending on options given on CLI using package actions instead of
package_meta low-level functions.  When no CLI package or category
options have been given, upgrade installed packages.  Do not check for
updates when packages are to be added or removed from the CLI, but this
behaviour can be requested with --upgrade-also.  A package that is
requested to be removed and also added at the same time gets reinstalled
or upgraded (when version curr != installed).  Uninstalled packages in
categories "Base" or "Misc" are always selected for installation;
installed packages in these categories are not eligible for deletion
and will be reinstalled or upgraded instead.
* package_meta.h (packagemeta::ismanuallyDeleted): Declare new method.
* package_meta.cc (DeletePackageOption): Add new CLI option
-x/--remove-packages, packages listed here are considered candidates
for deletion.
(DeleteCategoryOption): Add new CLI option -c/--remove-categories,
packages belonging to categories listed here are considered candidates
for deletion.
(hasManualSelections): Additional boolean to record if any manual
installations or deletions have been requested.
(packagemeta::isManuallyDeleted): Implement along the same lines as
isManuallyWanted, but for deletion candidates.

11 years ago * choose.cc (ChooserPage::createListview): Remove superflous and
Corinna Vinschen [Thu, 25 Jul 2013 09:46:55 +0000 (09:46 +0000)]
* choose.cc (ChooserPage::createListview): Remove superflous and
detrimental default trust setting.  This has already been set correctly
in OnInit.

11 years ago* configure.ac: Change setup64.exe -> setup.exe.
Christopher Faylor [Wed, 24 Jul 2013 23:23:54 +0000 (23:23 +0000)]
* configure.ac: Change setup64.exe -> setup.exe.

11 years ago* install.cc (_custom_MessageBox): Restore custom message box.
Jon TURNEY [Wed, 24 Jul 2013 08:26:06 +0000 (08:26 +0000)]
* install.cc (_custom_MessageBox): Restore custom message box.
(installOne): If processList is empty, use the custom message box
to ask if we should retry or continue.
* res.rc (IDD_FILE_INUSE): Use IDCONTINUE for continue buttom, to be
the same custom message box.

11 years agoFix typo
Corinna Vinschen [Mon, 22 Jul 2013 20:39:56 +0000 (20:39 +0000)]
Fix typo

11 years ago * root.cc (directory_contains_wrong_version): Check cygwin1.dll's
Corinna Vinschen [Mon, 22 Jul 2013 20:36:24 +0000 (20:36 +0000)]
* root.cc (directory_contains_wrong_version): Check cygwin1.dll's
machine type.  If that fails, fall back to testing of cygcheck.exe's
binary type.  Tweak message text slightly for clearness.  Add comment
to explain wht this function does.

11 years ago * root.cc (directory_contains_wrong_version): New function to check
Corinna Vinschen [Mon, 22 Jul 2013 17:26:26 +0000 (17:26 +0000)]
* root.cc (directory_contains_wrong_version): New function to check
setup machine type against installation machine type.
(RootPage::OnNext): Call directory_contains_wrong_version and refuse to
continue if it returns != 0.

11 years ago* IniParseFindVisitor.cc (iniParseFindVisitor::visitFile): Relax check for
Christopher Faylor [Mon, 22 Jul 2013 05:46:26 +0000 (05:46 +0000)]
* IniParseFindVisitor.cc (iniParseFindVisitor::visitFile): Relax check for
SETUP_INI_DIR slightly.  Remove trailing SETUP_INI_DIR from mirror directory or
local downloaded packages will never be found.
* choose.cc (ChooserPage::OnInit): Fix some formatting.
* fromcwd.cc (SetupFindVisitor::visitFile): Relax check for SETUP_INI_DIR
slightly.
(ChooserPage::OnInit): Fix some formatting.
* ini.cc (do_local_ini): Remove name from unused parameter.  Fix some
formatting.
(do_ini_thread): Fix some formatting.
* package_version.cc (dumpAndList): Temporarily (?) just return from this
debugging function since it SEGVs otherwise.

11 years agowhitespace
Christopher Faylor [Wed, 17 Jul 2013 20:24:37 +0000 (20:24 +0000)]
whitespace

11 years ago* iniparse.yy: Move ARCH and RELEASE to the header processing, where they
Christopher Faylor [Fri, 12 Jul 2013 22:39:36 +0000 (22:39 +0000)]
* iniparse.yy: Move ARCH and RELEASE to the header processing, where they
belong.

11 years ago* IniDBBuilder.h (IniDBBuilder::set_arch): New function.
Christopher Faylor [Fri, 12 Jul 2013 20:23:07 +0000 (20:23 +0000)]
* IniDBBuilder.h (IniDBBuilder::set_arch): New function.
(IniDBBuilder::set_release): New function.
(IniDBBuilder::arch): New storage for arch:.
(IniDBBuilder::arch): New storage for release:.
* IniDBBuilderPackage.cc (IniDBBuilderPackage::autodep): Fix cut/paste error
which ended up calling the wrong thing.
* ScanFindVisitor.cc (ScanFindVisitor::visitFile): Remove old code.
* cygpackage.cc (cygpackage::set_autodep): Implement to satisfy setup's insane
class hierarchy.
* cygpackage.h (cygpackage::set_autodep): See above.
(std::string autodep_regex): Ditto.
* package_version.cc (packageversion::set_autodep): Ditto.
* package_version.h (packageversion::set_autodep): Ditto.
* inilex.ll: Tokenize "arch:" and "release:".
* iniparse.yy: Parse ARCH and RELEASE.

11 years ago * win32.h (struct acl_t): Just enforce alignment using attribute.
Corinna Vinschen [Wed, 3 Jul 2013 19:47:48 +0000 (19:47 +0000)]
* win32.h (struct acl_t): Just enforce alignment using attribute.

11 years ago * FindVisitor.cc (FindVisitor::visitDirectory): Check tracking level
Corinna Vinschen [Wed, 3 Jul 2013 19:31:11 +0000 (19:31 +0000)]
* FindVisitor.cc (FindVisitor::visitDirectory): Check tracking level
argument to limit the search depth.
* FindVisitor.h (FindVisitor::visitDirectory): Add tracking level
argument to declaration.
* IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Check
found file's basePath to end in SETUP_INI_DIR.
* find.cc (Find::accept): Accept additional tracking level argument
and submit to FindVisitor::visitDirectory.
* find.h (Find::accept): Add tracking level argument to declaration.
* fromcwd.cc (SetupFindVisitor::visitFile): Check found file's basePath
to end in SETUP_INI_DIR.
(do_fromcwd): Only search ini file two directory levels deep.
* ini.cc (do_local_ini): Ditto.
(do_remote_ini): Add SETUP_INI_DIR to current_ini_name.
* ini.h (SETUP_INI_DIR): New macro.
(SETUP_INI_FILENAME): Just define filename.
(SETUP_BZ2_FILENAME): Ditto.

11 years ago* win32.h (struct acl_t): Make sure struct is 4 byte aligned.
Corinna Vinschen [Wed, 3 Jul 2013 12:30:04 +0000 (12:30 +0000)]
* win32.h (struct acl_t): Make sure struct is 4 byte aligned.

11 years ago * win32.h (struct acl_t): Make sure struct is 4 byte aligned.
Corinna Vinschen [Tue, 2 Jul 2013 16:10:48 +0000 (16:10 +0000)]
* win32.h (struct acl_t): Make sure struct is 4 byte aligned.

11 years ago* archive.cc (archive::extract_file): Reformat. Always return at the bottom.
Christopher Faylor [Tue, 2 Jul 2013 04:59:48 +0000 (04:59 +0000)]
* archive.cc (archive::extract_file): Reformat.  Always return at the bottom.

11 years ago* archive.cc (archive::extract_file): Fix recently introduced bug: don't fall
Christopher Faylor [Tue, 2 Jul 2013 04:23:36 +0000 (04:23 +0000)]
* archive.cc (archive::extract_file): Fix recently introduced bug: don't fall
through to next case.  break is your friend.

11 years agofix dates
Christopher Faylor [Tue, 2 Jul 2013 02:46:31 +0000 (02:46 +0000)]
fix dates

11 years ago* mount.cc (LFSTAB): Define.
Christopher Faylor [Sun, 30 Jun 2013 22:26:41 +0000 (22:26 +0000)]
* mount.cc (LFSTAB): Define.
(from_fstab): Use LFSTAB constant where appropriate.  Properly size path array
to include \etc\fstab.  Change len argument of mklongpath to reflect the actual
size of the destination argument.

11 years agoRemove useless comment.
Christopher Faylor [Sat, 29 Jun 2013 20:52:02 +0000 (20:52 +0000)]
Remove useless comment.

11 years ago* archive.cc (archive::extract_file): Use named constants for return values.
Christopher Faylor [Sat, 29 Jun 2013 20:48:58 +0000 (20:48 +0000)]
* archive.cc (archive::extract_file): Use named constants for return values.
* archive.h (archive::extract_results): New enum.
(archive::extract_file): Use extract_results for return value.
* install.cc (Installer::installOne): Use archive::extract_results to make
decisions about archive::extract_file return.
* io_stream_cygfile.cc: Add a comment making return value clear.
* mkdir.cc: Ditto.

11 years ago * io_stream_cygfile.cc: Rearrange inclusion of headers to workaround
Corinna Vinschen [Wed, 26 Jun 2013 12:39:17 +0000 (12:39 +0000)]
* io_stream_cygfile.cc: Rearrange inclusion of headers to workaround
bug in older mingw-w64 system headers.  Drop unneeded include files.
* io_stream_file.cc: Drop unneeded include files.

11 years ago Drop pre-1.7 mount point considerations.
Corinna Vinschen [Wed, 26 Jun 2013 09:16:52 +0000 (09:16 +0000)]
Drop pre-1.7 mount point considerations.
* mount.cc (find2): Remove.
(remove1): Remove.
(remove_mount): Remove.
(create_mount): Remove.
(set_cygdrive_flags): Remove.
(get_cygdrive_flags): Remove.
(default_cygdrive): Remove.
(in_table): Remove.
(is_admin): Fix comment.
(read_mounts_9x): Remove.
(read_mounts): Drop call to read_mounts_9x.
* mount.h (create_mount): Remove declaration.
(set_cygdrive_flags): Ditto.
* script.cc (run): Fix comment.

11 years ago * Makefile.am (AM_CXXFLAGS): Add source file specific CXXFLAGS.
Corinna Vinschen [Tue, 25 Jun 2013 11:25:54 +0000 (11:25 +0000)]
* Makefile.am (AM_CXXFLAGS): Add source file specific CXXFLAGS.
(inilex_CXXFLAGS): Add -Wno-sign-compare to workaround failing build
on Fedora 18 due to bison creating sign comparison mismatches in
generic yylex wrapper code.

11 years ago* ini.h (SETUP_BZ2_FILENAME): Reflect new architecture layout in ftp.
Christopher Faylor [Sat, 22 Jun 2013 20:02:01 +0000 (20:02 +0000)]
* ini.h (SETUP_BZ2_FILENAME): Reflect new architecture layout in ftp.
(SETUP_INI_FILENAME): Ditto.
* main.cc (Arch): New option.  Include StringOption.h for this.
(WinMain): Change is_64bit calculation to allow overriding from command-line.
Issue error if bad value provided.
* res.rc: Move some text closer together.
* splash.cc: Include ini.h.  Add architecture to opening screen.
* UserSettings.cc (UserSettings::get): Don't try to open a filename with the
name of the key.  That's old behavior.

11 years ago* res.rc: Update copyright.
Christopher Faylor [Thu, 20 Jun 2013 15:27:42 +0000 (15:27 +0000)]
* res.rc: Update copyright.

11 years ago* Makefile.am (EXTRA_DIST): Add setup64.exe.manifest.
Yaakov Selkowitz [Fri, 5 Apr 2013 08:42:48 +0000 (08:42 +0000)]
* Makefile.am (EXTRA_DIST): Add setup64.exe.manifest.
(res.o): Depend on arch-specific manifest file.
* res.rc (CREATEPROCESS_MANIFEST_RESOURCE_ID): Add separate
definition for x86-64.
* setup.exe.manifest: Throughout, set processorArchitecture to x86.
Remove trustInfo section.
* setup64.exe.manifest: New file.

11 years ago * desktop.cc (do_desktop_setup): Install "Cygwin64 Terminal" link on
Corinna Vinschen [Fri, 22 Mar 2013 13:05:06 +0000 (13:05 +0000)]
* desktop.cc (do_desktop_setup): Install "Cygwin64 Terminal" link on
64 bit.
(DesktopSetupPage::OnActivate): Check for "Cygwin64 Terminal" link on
64 bit.
* main.cc (main_display): Avoid compiler warning on 64 bit.
* mount.cc (from_fstab): Take 2nd parameter as const by reference to
avoid potential crash due to scope issue.

11 years ago* configure.ac: Remove check for libmingw32.
Yaakov Selkowitz [Thu, 14 Mar 2013 09:21:06 +0000 (09:21 +0000)]
* configure.ac: Remove check for libmingw32.
(SETUP): Define EXE name based on host_cpu.
(MINGWTARGET): Remove.
* Makefile.am: Use SETUP throughout.  Remove MINGWTARGET conditional.
Add -lmingw32 to LDFLAGS.
* ini.h (is_64bit): Declare.
(SETUP_INI_FILENAME): Make dependent on value of is_64bit.
(SETUP_BZ2_FILENAME): Ditto.
* main.cc (is_64bit): Define based on compiler target.
* mount.h (SETUP_KEY_WOW64): Define based on value of is_64bit.
* install.cc (create_allow_protected_renames): Add SETUP_KEY_WOW64
flag to RegOpenKeyEx call.
* mount.cc: Throughout, add SETUP_KEY_WOW64 flag to all RegOpenKeyEx
and RegCreateKeyEx calls.
(read_mounts): Change default Cygwin root depending on is_64bit.

11 years agoThroughout, drop support for Cygwin 1.5 and Windows pre-2000.
Yaakov Selkowitz [Tue, 5 Mar 2013 10:47:10 +0000 (10:47 +0000)]
Throughout, drop support for Cygwin 1.5 and Windows pre-2000.

11 years ago* install.cc (FileInuseDlgProc): Fix return type.
Yaakov Selkowitz [Mon, 4 Mar 2013 12:13:51 +0000 (12:13 +0000)]
* install.cc (FileInuseDlgProc): Fix return type.
* regex/regcomp.c (parse_dup_op): Fix invalid cast warning.
(create_token_tree): Ditto.
* setup.exe.manifest: Set processorArchitecture to "*".
Add explicit requestedExecutionLevel for 64-bit compatibility.

11 years ago* Makefile.am (inilint_extras): Remove autoload.c.
Yaakov Selkowitz [Mon, 4 Mar 2013 10:59:02 +0000 (10:59 +0000)]
* Makefile.am (inilint_extras): Remove autoload.c.
(setup_SOURCES): Ditto.
(setup_LDADD): Add ntdll and wininet.
(autoload.o): Remove rule.
* autoload.c: Remove file.

11 years ago* Makefile.am (res.o): Add rule to force rebuild upon change
Yaakov Selkowitz [Sun, 3 Mar 2013 10:09:10 +0000 (10:09 +0000)]
* Makefile.am (res.o): Add rule to force rebuild upon change
to setup.exe.manifest, which is included by res.rc.

11 years ago* configure.ac: Rename from configure.in.
Christopher Faylor [Sun, 17 Feb 2013 22:16:23 +0000 (22:16 +0000)]
* configure.ac: Rename from configure.in.
* configure.in: Delete.
* libgetopt++/configure.ac: Rename from configure.in.
* libgetopt++/configure.in: Delete.
* Makefile.am: Remove ill-advised iniparse.hh change.
* libgetopt++/Makefile.am: Use "modern" AM_CPPFLAGS rather than INCLUDES.
* inilex.ll: Add autodep token recognition.
* iniparse.yy: Handle autodep.
* IniDBBuilder.h (autodep): Define for base class.
* IniDBBuilderPackage.cc (IniDBBuilderPackage::autodep): Define.
* IniDBBuilderPackage.h (IniDBBuilderPackage::autodep): Declare.

11 years ago* Makefile.am: Add regex.c to list of sources.
Christopher Faylor [Sun, 17 Feb 2013 21:40:40 +0000 (21:40 +0000)]
* Makefile.am: Add regex.c to list of sources.
(iniparse.hh): Rename if a iniparse.h has been created.
* regex/config.h: New file.
* regex/re_comp.h: New file.
* regex/regcomp.c: New file.
* regex/regex.c: New file.
* regex/regex.h: New file.
* regex/regex_internal.c: New file.
* regex/regex_internal.h: New file.
* regex/regexec.c: New file.
* processlist.cc (Process::isModuleLoadedInProcess): Avoid compiler warning by
changing 'i' to unsigned.

11 years ago2013-01-25 Achim Gratz <Stromeko@nexgo.de>
Jon TURNEY [Fri, 8 Feb 2013 16:57:34 +0000 (16:57 +0000)]
2013-01-25  Achim Gratz <Stromeko@nexgo.de>
        * README (HOW TO BUILD): Cross compiler package is now named
        mingw-gcc-g++, also mention package upx as an optional dependency.

11 years agoList and offer to kill processes preventing a file from being written
Jon TURNEY [Fri, 8 Feb 2013 15:55:01 +0000 (15:55 +0000)]
List and offer to kill processes preventing a file from being written

2013-02-01  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * install.cc ( _custom_MessageBox): Remove custom message box.
        (FileInuseDlgProc): Add file-in-use dialog box.
        (installOne): Use processlist to list processes using a file, and
        offer to kill them with the file-in-use dialog.
        * res.rc (IDD_FILE_INUSE) : New dialog.
        * resource.h (IDD_FILE_INUSE, IDC_FILE_INUSE_EDIT)
        (IDC_FILE_INUSE_MSG, IDC_FILE_INUSE_HELP): Define corresponding
        resource ID numbers.
        * processlist.h: New file.
        * processlist.cc: New file.
        * Makefile.am (setup_LDADD): Add -lpsapi.
        (setup_SOURCES): Add new files.

11 years agoRefactor ::run() so it's more generally useful
Jon TURNEY [Fri, 8 Feb 2013 15:38:50 +0000 (15:38 +0000)]
Refactor ::run() so it's more generally useful

2013-02-01  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * script.cc (::run, Script::run): Move the formatting of the command
        line used for postinstall script running out to Script::run. Move the
        logging of the command and it's output into ::run.
        * script.h: Add ::run() prototype.

11 years agoAdapt for the naming of generated file with automake 1.12, and require it.
Jon TURNEY [Thu, 17 Jan 2013 21:14:51 +0000 (21:14 +0000)]
Adapt for the naming of generated file with automake 1.12, and require it.

2013-01-17  Jon TURNEY  <jon.turney@dronecode.org.uk>

* configure.in: Require automake 1.12.
* Makefile.am (BUILT_SOURCES): Update iniparse.h to iniparse.hh.
* iniparse.yy: Ditto.
* inilex.ll: Ditto.

11 years agoReport progress correctly when amount of data is more than 2GB
Jon TURNEY [Thu, 17 Jan 2013 13:34:12 +0000 (13:34 +0000)]
Report progress correctly when amount of data is more than 2GB

2013-01-16  Jon TURNEY  <jon.turney@dronecode.org.uk>

* threebar.cc (ThreeBarProgressPage::SetBar2): Change from long int to
long long int to handle more than 2GB of data.
* threebar.h (ThreeBarProgressPage::SetBar2): Update prototype.
* install.cc: Change md5sum and install counters to long long int.
* geturl.cc: Change download counter to long long int.
* geturl.h: Ditto.

11 years ago * Makefile.am (EXTRA_DIST): Remove libmd5-rfc files.
Yaakov Selkowitz [Thu, 8 Nov 2012 19:12:17 +0000 (19:12 +0000)]
* Makefile.am (EXTRA_DIST): Remove libmd5-rfc files.
(setup_SOURCES): Ditto.
* download.cc: Remove unused include.
* csu_util/MD5Sum.cc: Port from libmd5-rfc to libgcrypt.
* csu_util/MD5Sum.h: Ditto.
* libmd5-rfc/*: Remove.

11 years ago* bootstrap.sh: Add support for i686-w64-mingw32 toolchain.
Yaakov Selkowitz [Fri, 19 Oct 2012 16:40:29 +0000 (16:40 +0000)]
* bootstrap.sh: Add support for i686-w64-mingw32 toolchain.
Remove support for gcc-3 -mno-cygwin.

11 years ago* README: Modernize.
Christopher Faylor [Thu, 13 Sep 2012 03:45:01 +0000 (03:45 +0000)]
* README: Modernize.
* bootstrap.sh: Remove outdated options from configure.  Use mingw compiler.
* configure.in: Remove AM_MAINTAINER_MODE.

11 years ago Fix build with mingw-w64 headers.
Yaakov Selkowitz [Tue, 4 Sep 2012 13:55:17 +0000 (13:55 +0000)]
Fix build with mingw-w64 headers.
* autoload.c: Define DECLSPEC_IMPORT for mingw-w64 headers.
* filemanip.h: Include <sys/types.h> to fix missing mode_t typedef
error with mingw-w64 headers.
* gpg-packet.cc: Include "win32.h" to avoid macro redefinition
errors with mingw-w64 headers.
(ARRAYSIZE): Do not redefine.
* main.cc (_argv): Declare if using mingw-w64 headers.
(WinMain): Move up _argv definition to before it is first used.
* ntdll.h: Include PSDK headers with mingw-w64 instead of DDK.
* package_message.h: Include "win32.h" instead of <windows.h>.
* propsheet.cc (PROPSHEETHEADER_V1_SIZE): Do not redefine.
* win32.h: Include <sys/types.h> to fix missing mode_t typedef
error with mingw-w64 headers.
Define DECLSPEC_IMPORT for mingw-w64 headers.

12 years ago First step towards X86-64 compatibility.
Yaakov Selkowitz [Thu, 30 Aug 2012 22:32:14 +0000 (22:32 +0000)]
First step towards X86-64 compatibility.
* archive_tar.cc (archive_tar::next_file_name): Fix sscanf formats
for 64-bit size_t.
* choose.cc (ChooserPage::OnMouseWheel): Fix return type.
* choose.h (ChooserPage::OnMouseWheel): Ditto.
* filemanip.cc (nt_wfopen): Fix argument cast for _open_osfhandle.
* netio.cc (auth_proc): Fix return type.
* proppage.cc (PropertyPage::FirstDialogProcReflector): Fix return type.
Use SetWindowLongPtr and DWLP_* instead of SetWindowLong and DWL_*.
(PropertyPage::DialogProcReflector): Ditto.
(PropertyPage::DialogProc): Ditto.
(PropertyPage::OnMouseWheel): Ditto.
* proppage.h (PropertyPage::FirstDialogProcReflector): Fix return type.
(PropertyPage::DialogProcReflector): Ditto.
(PropertyPage::DialogProc): Ditto.
(PropertyPage::OnMouseWheel): Ditto.
* site.cc (drop_proc): Fix return type.
* window.cc (Window::FirstWindowProcReflector): Use GWLP_* with
SetWindowLongPtr calls.
(Window::WindowProcReflector): Ditto.

12 years ago * main.cc: Remove CINTERFACE define.
Yaakov Selkowitz [Thu, 30 Aug 2012 22:23:02 +0000 (22:23 +0000)]
* main.cc: Remove CINTERFACE define.
(main_display): Use C++ syntax for COM.
* mklink2.cc: Remove CINTERFACE define.
(make_link_2): Use C++ syntax for COM.

12 years ago* setup.exe.manifest: Reorder "supportedOS" entries and add entry for Windows
Christopher Faylor [Tue, 21 Aug 2012 14:43:41 +0000 (14:43 +0000)]
* setup.exe.manifest: Reorder "supportedOS" entries and add entry for Windows
8.

12 years ago* main.cc: Remove __CYGWIN__ ifdefs.
Christopher Faylor [Sun, 3 Jun 2012 15:00:06 +0000 (15:00 +0000)]
* main.cc: Remove __CYGWIN__ ifdefs.
(main): Ditto.

12 years ago * Makefile.am (setup_version.c): Respect silent rules.
Yaakov Selkowitz [Fri, 1 Jun 2012 15:51:56 +0000 (15:51 +0000)]
* Makefile.am (setup_version.c): Respect silent rules.
(.rc.o): Ditto.
* configure.in: Enable silent rules with automake-1.11.
* libgetopt++/configure.in: Ditto.

12 years ago* window.cc: Remove trailing whitespace.
Christopher Faylor [Sun, 29 Apr 2012 06:26:54 +0000 (06:26 +0000)]
* window.cc: Remove trailing whitespace.

12 years ago* io_stream_file.cc (io_stream_file::exists): Properly treat return from
Christopher Faylor [Sat, 28 Apr 2012 20:31:19 +0000 (20:31 +0000)]
* io_stream_file.cc (io_stream_file::exists): Properly treat return from
GetFileAttributesW as a bit field so that a directory will not be seen as
"existing".

12 years ago * script.cc (run): Add quotes around file to allow spaces in path.
Corinna Vinschen [Thu, 26 Apr 2012 19:45:20 +0000 (19:45 +0000)]
* script.cc (run): Add quotes around file to allow spaces in path.
(Script::run): Add aforementioned quotes to log output as well.

12 years ago * win32.h (FACTOR): Define, use correct value.
Corinna Vinschen [Thu, 8 Mar 2012 09:20:03 +0000 (09:20 +0000)]
* win32.h (FACTOR): Define, use correct value.
(NSPERSEC): Ditto.
* archive_tar.cc: Drop FACTOR and NSPERSEC definitions here.
* io_stream_cygfile.cc: Ditto.
* io_stream_file.cc: Ditto.

12 years ago * win32.cc (NTSecurity::GetPosixPerms): Don't allow write permissions
Corinna Vinschen [Wed, 29 Feb 2012 09:00:39 +0000 (09:00 +0000)]
* win32.cc (NTSecurity::GetPosixPerms): Don't allow write permissions
in inheritable default permission ACEs for group and other if the
directory is an S_ISVTX dir.

12 years ago* bootstrap.sh: Don't assume that libgetopt++ exists in source directory.
Christopher Faylor [Fri, 24 Feb 2012 20:21:43 +0000 (20:21 +0000)]
* bootstrap.sh: Don't assume that libgetopt++ exists in source directory.
* configure.in: Remove some old options.
* Makefile.am: Ditto.
* libgetopt++/Makefile.am: Ditto.
* libgetopt++/configure.in: Ditto.

12 years ago * main.cc (WinMain): Move call to nt_sec.setDefaultSecurity here so
Corinna Vinschen [Fri, 24 Feb 2012 20:04:13 +0000 (20:04 +0000)]
* main.cc (WinMain): Move call to nt_sec.setDefaultSecurity here so
it's called earlier in the process.  This avoids spurious error
messages in --help output.

Fix ChangeLog formatting.

12 years ago2012-02-23 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Fri, 24 Feb 2012 18:48:30 +0000 (18:48 +0000)]
2012-02-23  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * main.cc (main_display): Move --help output from here ...
        (WinMain): ... to here, so we don't logging of the current directory and
        any errors from constructing a UserSettings object preceding the --help output.

12 years agoCorrectly handle multiple --site, --pubkey, --sexpr-pubkey, --packages and --categori...
Jon TURNEY [Thu, 23 Feb 2012 14:34:07 +0000 (14:34 +0000)]
Correctly handle multiple --site, --pubkey, --sexpr-pubkey, --packages and --categories options.

2011-05-30 SZAVAI Gyula <szgyg@ludens.elte.hu>

        * site.cc (SiteSetting::SiteSetting): Handle multiple
        --site options.
        * crypto.cc (verify_ini_file_sig): Handle multiple
        --pubkey and --sexpr-pubkey options.
        * package_meta.cc (packagemeta::isManuallyWanted): Handle
        multiple --packages and --categories options.

12 years agoAdd infrastructure for handling string options which are repeated
Jon TURNEY [Thu, 23 Feb 2012 14:31:23 +0000 (14:31 +0000)]
Add infrastructure for handling string options which are repeated

2011-05-30 SZAVAI Gyula <szgyg@ludens.elte.hu>
        * libgetopt++/src/StringArrayOption.cc: New file.
        * libgetopt++/include/getopt++/StringArrayOption.h: New file.
        * libgetopt++/Makefile.am: Add new files.

12 years ago* res.rc: Change copyright notice to -2012.
Christopher Faylor [Wed, 22 Feb 2012 06:49:19 +0000 (06:49 +0000)]
* res.rc: Change copyright notice to -2012.

12 years ago * PickView.cc (PickView::list_click): Mark variable refresh as unused
Corinna Vinschen [Sun, 19 Feb 2012 13:57:03 +0000 (13:57 +0000)]
* PickView.cc (PickView::list_click): Mark variable refresh as unused
to avoid compiler warning.
* nio-ftp.cc (NetIO_FTP::ok): Remove variable code to avoid compiler
warning.
* proppage.cc (PropertyPage::DialogProc): Ditto for retval.

12 years ago* compress.cc: Explicitly include needed header.
Christopher Faylor [Thu, 22 Dec 2011 21:40:28 +0000 (21:40 +0000)]
* compress.cc: Explicitly include needed header.
* compress_bz.cc: Ditto.
* mkdir.h: Ditto.
* io_stream_cygfile.cc: Eliminate obsolete attempt to build as non-mingw.
* io_stream_file.cc: Ditto throughout.
* mkdir.cc: Ditto.

12 years ago2011-12-21 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Thu, 22 Dec 2011 17:54:26 +0000 (17:54 +0000)]
2011-12-21  Jon TURNEY  <jon.turney@dronecode.org.uk>

* choose.cc (OnInit): Properly mark packages which were selected on
command line in unattended mode for download and installation.

12 years ago* io_stream.h: Just call sys/types.h here rather than using our own version of
Christopher Faylor [Thu, 8 Sep 2011 14:14:23 +0000 (14:14 +0000)]
* io_stream.h: Just call sys/types.h here rather than using our own version of
ssize_t.

13 years ago * CONTRIBUTORS: Add Warren Young.
Corinna Vinschen [Thu, 1 Sep 2011 07:46:27 +0000 (07:46 +0000)]
* CONTRIBUTORS: Add Warren Young.

13 years ago * cygwin-setup.ico: Slightly modified.
Corinna Vinschen [Tue, 16 Aug 2011 09:09:34 +0000 (09:09 +0000)]
* cygwin-setup.ico: Slightly modified.
* cygwin-terminal.ico: Ditto.

13 years ago * cygwin.ico: New, smoother 152x152 icon.
Corinna Vinschen [Mon, 15 Aug 2011 15:53:18 +0000 (15:53 +0000)]
* cygwin.ico: New, smoother 152x152 icon.

Fix ChangeLog entries.

13 years agoFix date in ChangeLog entry.
Corinna Vinschen [Sun, 14 Aug 2011 10:40:26 +0000 (10:40 +0000)]
Fix date in ChangeLog entry.

13 years ago * choose.cc (OnInit, createListview): Build the initial list of packages
Jon TURNEY [Sat, 13 Aug 2011 14:43:31 +0000 (14:43 +0000)]
    * choose.cc (OnInit, createListview): Build the initial list of packages
        to install in OnInit() not in CreateListView().  If packages were selected
        on command line in unattended mode, just install those packages.
        * package_db.h (packagedb):Add addCommandLinePackages() method
        * package_db.cc (addCommandLinePackages): Add separate method to add these
        so we can indicate if packages were added on the command line

13 years ago * PickView.cc (defaultTrust): Move implementation which deals with
Jon TURNEY [Sat, 13 Aug 2011 14:22:17 +0000 (14:22 +0000)]
    * PickView.cc (defaultTrust): Move implementation which deals with
        package db from here...
        * package_db.cc (defaultTrust): ... to here.
        * package_db.h (packagedb): ... a new member function.

13 years ago * res.rc: Move spash icon slightly. Fix copyright.
Corinna Vinschen [Fri, 12 Aug 2011 20:39:41 +0000 (20:39 +0000)]
* res.rc: Move spash icon slightly.  Fix copyright.

13 years ago * cygwin-setup.ico: New file.
Corinna Vinschen [Fri, 12 Aug 2011 15:43:17 +0000 (15:43 +0000)]
* cygwin-setup.ico: New file.
* cygwin-terminal.ico: New file.
* cygwin.ico: New icons.
* desktop.cc (make_link): Take additional argument to take arguments
for shortcut.  Append arg to argbuf.
(start_menu): Take additional argument to take argments for shortcut.
Add to call to make_link.
(desktop_icon): Ditto.
(save_icon): Take path and name of resource as arguments.  Replace
Cygwin icon if it's the old one.
(do_desktop_setup): Save Cygwin standalone and Cygwin terminal icons.
Rename desktop and start menu shortcut name to "Cygwin Terminal", use
the cygwin terminal icon for them, and point them to mintty.
* res.rc: Change splash icon to keep size of original icon.
(IDI_CYGWIN_SETUP): New entry.
(IDI_CYGWIN_TERMINAL): New entry.
(CYGWIN-SETUP.ICON): New entry.
(CYGWIN-TERMINAL.ICON): New entry.
* resource.h (IDI_CYGWIN_SETUP): Define.
(IDI_CYGWIN_TERMINAL): Define.

13 years ago * install.cc (do_install_thread): Only set progress bar output if at least
Jon TURNEY [Mon, 25 Jul 2011 14:36:24 +0000 (14:36 +0000)]
* install.cc (do_install_thread): Only set progress bar output if at least
one package gets installed, to avoid a cosmetic issue.

13 years ago * desktop.cc (make_link): Create shortcuts to command.com only on 9x.
Corinna Vinschen [Mon, 25 Jul 2011 08:59:15 +0000 (08:59 +0000)]
* desktop.cc (make_link): Create shortcuts to command.com only on 9x.

13 years ago * res.rc: Remove Prev button from chooser page.
Andy Koppe [Wed, 20 Jul 2011 19:26:08 +0000 (19:26 +0000)]
* res.rc: Remove Prev button from chooser page.
* resource.h: Reflect removal of Prev button.
* package_meta.h (trustp): Ditto.
* choose.cc: Ditto.

13 years ago2011-04-24 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Fri, 29 Apr 2011 12:43:59 +0000 (12:43 +0000)]
2011-04-24  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * download.cc (do_download_thread): Update progress display
        when download phase starts

13 years ago2011-04-24 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Fri, 29 Apr 2011 12:42:47 +0000 (12:42 +0000)]
2011-04-24  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * install.cc (do_install_thread): Report overall progress while
        md5summing packages.

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Sun, 24 Apr 2011 11:19:48 +0000 (11:19 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * archive_tar_file.cc (read): Handle short reads

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Sun, 24 Apr 2011 11:18:50 +0000 (11:18 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * compress_bz.h (compress): Remove unused bufN member.
        * compress_bz.cc (read): Handle bzip2 files containing multiple
        streams

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Thu, 21 Apr 2011 09:42:15 +0000 (09:42 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * install.cc (extract_replace_on_reboot): New function containg code
        extracted from...
        (installOne): Report read errors differently to write errors
        * archive.cc (extract_file): Distinguish read errors from write errors

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Thu, 21 Apr 2011 09:31:37 +0000 (09:31 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * io_stream.cc (copy): Propagate errors.

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Thu, 21 Apr 2011 09:30:20 +0000 (09:30 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * compress_bz.cc (read, peek): Consistently return -1 and set lasterr
        on an error.
        * compress_gz.cc (read, write, peek): Ditto.

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Thu, 21 Apr 2011 09:29:07 +0000 (09:29 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * archive_tar_file.cc (read, write, peek, seek): Consistently return -1
        and set lasterr on an error.

13 years ago * crypto.c (ExtraKeyOption): Correct option description.
Jon TURNEY [Mon, 3 Jan 2011 16:18:33 +0000 (16:18 +0000)]
    * crypto.c (ExtraKeyOption): Correct option description.

13 years ago * prereq.cc (OnNext, whatNext, OnUnattended): Fix PrereqPage::OnUnattended()
Jon TURNEY [Thu, 16 Dec 2010 17:48:43 +0000 (17:48 +0000)]
* prereq.cc (OnNext, whatNext, OnUnattended): Fix PrereqPage::OnUnattended()
so PrereqPage behaves correctly in unattended modes.
* prereq.h (PrereqPage): Ditto
* proppage.cc (DialogProc): Update comment to clarify meaning of
OnUnattended() returning 0.

13 years ago * site.cc (init): Canonicalize mirror URLs to ensure the end
Jon TURNEY [Fri, 10 Dec 2010 18:57:05 +0000 (18:57 +0000)]
    * site.cc (init): Canonicalize mirror URLs to ensure the end
        with a '/'.

13 years agoChange package_db collection of packages from vector to a map so we can look things...
Jon TURNEY [Fri, 26 Nov 2010 14:21:43 +0000 (14:21 +0000)]
Change package_db collection of packages from vector to a map so we can look things up in it quickly

This allows packagedb::findBinary() and packagedb::findSource() to be re-written to locate packages
by name rather than searching the entire set, which makes a big difference to total execution time.

        * IniDBBuilderPackage.cc (IniDBBuilderPackage): Remove db.packages vector
        sorting.
        (buildPackage, buildPackageSource): Change package collection from vector
        to map.
        * PickView.cc (setViewMode, init_headers, defaultTrust): Ditto.
        * choose.cc (createListview, logResults, keepClicked)
        (changeTrust): Ditto
        * install.cc (do_install_thread): Ditto
        * download.cc (do_download_thread): Ditto
        * prereq.cc (isMet): Ditto
        * package_meta.cc (ScanDownloadedFiles): Ditto
        * package_db.h (packagedb): Ditto
        * package_db.cc (packagedb, flush, markUnVisited, setExistence)
        (fillMissingCategory): Ditto
        (findBinary, findSource): Rewrite to locate packages in map rather than
        searching the whole vector, for performance.
        (ConnectedLoopFinder, doIt, visit): Rewrite to refer to package using a
        packagemeta *, as an index into the vector of packages can no longer be
        used.

13 years ago * package_db.cc (ConnectedLoopFinder::doIt): Drop hardcoded base-cygwin
Corinna Vinschen [Fri, 26 Nov 2010 08:36:24 +0000 (08:36 +0000)]
* package_db.cc (ConnectedLoopFinder::doIt): Drop hardcoded base-cygwin
dependency setting.  Fix comment.

13 years ago * package_db.cc (ConnectedLoopFinder::doIt): Drop hardcoded base-passwd
Corinna Vinschen [Tue, 23 Nov 2010 12:03:24 +0000 (12:03 +0000)]
* package_db.cc (ConnectedLoopFinder::doIt): Drop hardcoded base-passwd
dependency setting.  Fix condition for base-cygwin string check.

13 years ago * package_meta.h (packagemeta): Remove unused member variables for
Jon TURNEY [Mon, 22 Nov 2010 12:53:06 +0000 (12:53 +0000)]
    * package_meta.h (packagemeta): Remove unused member variables for
        storing timestamp of the setup.ini that package version came from.
        * package_meta.cc (packagemeta): Ditto.

13 years ago * package_version.h (packageversion): Add compareVersion() utility
Jon TURNEY [Mon, 22 Nov 2010 12:49:50 +0000 (12:49 +0000)]
    * package_version.h (packageversion): Add compareVersion() utility
        function.
        * package_version.cc (Vendor_version, Package_version)
        (compareVersions): Implement the Vendor_version() and Package_version()
        accessor functions.  Add compareVersions() utility function.
        * cygpackage.cc (setCanonicalVersion): Fix to extract vendor version
        correctly.
        * IniDBBuilderPackage.cc (add_correct_version): When multiple setup.ini's
        offer different packages for the same stability level, use the package with
        the highest version number rather than the package coming from the setup.ini
        with the latest timestamp.

13 years ago * choose.cc (OnNext): Remove PrereqChecker call, instead use new
Jon TURNEY [Sat, 20 Nov 2010 13:15:50 +0000 (13:15 +0000)]
    * choose.cc (OnNext): Remove PrereqChecker call, instead use new
        WM_APP_PREREQ_CHECK state of Progress dialog.
        * threebar.h (WM_APP_PREREQ_CHECK)
        (WM_APP_PREREQ_CHECK_THREAD_COMPLETE): Add new messages.
        * threebar.cc (OnActivate, OnMessageApp): Use single bar mode for
        WM_APP_PREREQ_CHECK state.  Handle new messages.
        * dialog.h (do_prereq_check_thread): Add prototype.
        * prereq.cc (isMet, do_prereq_check_thread)
        (do_prereq_check_reflector, do_prereq_check): Add progress reporting
        during isMet, and thread containing moved PrereqChecker code.

13 years ago * package_meta.cc (set_action): Always set the binary tick box
Jon TURNEY [Sat, 20 Nov 2010 13:06:08 +0000 (13:06 +0000)]
    * package_meta.cc (set_action): Always set the binary tick box
        when selecting a specific version (if binary is available)

13 years ago * postinstall.cc (do_postinstall_thread): Refer to "Unknown package"
Jon TURNEY [Sat, 20 Nov 2010 13:03:58 +0000 (13:03 +0000)]
    * postinstall.cc (do_postinstall_thread): Refer to "Unknown package"
        rather than "No package"

13 years agoThroughout, change all occurrences of "PostMessage" to PostMessageNow. This
Christopher Faylor [Fri, 19 Nov 2010 15:49:54 +0000 (15:49 +0000)]
Throughout, change all occurrences of "PostMessage" to PostMessageNow.  This
works around problem where w32api uses a #define which calls the Windows API
version of PostMessage directly, confusing g++ 3.4.4.

13 years ago * propsheet.cc (PropSheetProc): Set the big icon for the propsheet
Jon TURNEY [Wed, 10 Nov 2010 20:25:27 +0000 (20:25 +0000)]
    * propsheet.cc (PropSheetProc): Set the big icon for the propsheet
        window

13 years ago * ini.cc (GuiParseFeedback::progress, GuiParseFeedback::iniName):
Jon TURNEY [Wed, 10 Nov 2010 20:23:43 +0000 (20:23 +0000)]
    * ini.cc (GuiParseFeedback::progress, GuiParseFeedback::iniName):
        Update all the text in the progress dialog whilst parsing .ini file,
        not just the top line.

This page took 0.072458 seconds and 5 git commands to generate.