]> cygwin.com Git - cygwin-apps/setup.git/log
cygwin-apps/setup.git
9 years ago * package_meta.h (packagemeta::trustp): Make sure that curr and
Corinna Vinschen [Fri, 6 Feb 2015 16:20:01 +0000 (16:20 +0000)]
* package_meta.h (packagemeta::trustp): Make sure that curr and
installed exist before using them in version comparisons.  Install exp
over installed only if exp has a higher version number than installed.

9 years ago Throughout, change preceeding patch from SHA256 to SHA512.
Corinna Vinschen [Thu, 5 Feb 2015 16:56:17 +0000 (16:56 +0000)]
Throughout, change preceeding patch from SHA256 to SHA512.
* Makefile.am (BASECXXFLAGS): Add -Wno-attributes for the sake of
sha2.c.

9 years ago Prepare for changing from MD5 to SHA256 checksums.
Corinna Vinschen [Thu, 5 Feb 2015 14:46:27 +0000 (14:46 +0000)]
Prepare for changing from MD5 to SHA256 checksums.
* IniDBBuilder.h (IniDBBuilder::buildInstallSHA256): Declare as pure
virtual method.
(IniDBBuilder::buildSourceSHA256): Ditto.
* IniDBBuilderPackage.h (IniDBBuilderPackage::buildInstallSHA256):
Declare.
(IniDBBuilderPackage::buildSourceSHA256): Ditto.
* IniDBBuilderPackage.cc: Formatting changes.
(IniDBBuilderPackage::buildInstallSHA256): New method to store SHA256
sum for binary package.
(IniDBBuilderPackage::buildSourceSHA256): Ditto for source package.
* Makefile.am (@SETUP@_SOURCES): Add sha256sum.c and sha256sum.h.
* inilex.ll: Formatting changes.  Implement string recognition for
SHA256 sums.
* iniparse.yy: Define new token.  Allow SHA256 as well as MD5 checksums.
* install.cc (do_install_thread): Call chksum_one instead of md5sum.
(sha256_str): New static function to create SHA256 checksum string for
log output.
(sha256_one): New function to compute SHA256 checksum for file.
(md5_one): Move validity tests into chksum_one.
(chksum_one): New static function.  Call either sha256_one
or md5_one depending on checksum read from ini file.
* package_source.h (packagesource::packagesource): Initialize sha256sum.
(packagesource::sha256sum): New member.
* sha2.c: New file, taken from OpenBSD.
* sha2.h: New file, taken from OpenBSD.

9 years ago * Throughout, include LogFile.h instead of LogSingleton.h where
Corinna Vinschen [Wed, 4 Feb 2015 10:10:42 +0000 (10:10 +0000)]
* Throughout, include LogFile.h instead of LogSingleton.h where
required.
* LogFile.cc (LogFile::exit_msg): Convert globally available variable
to protected, static LogFile member.
(LogFile::exit): Accept second parameter to decide if the end of install
message is  to be printed.  Revert to using the exit_code as is.
* LogFile.h (LogFile::setExitMsg): New static method.  Use throughout
rather than setting exit_msg directly.
(LogFile::getExitMsg): Ditto.
(LogFile::exit): Add second parameter to prototype.
(LogFile::exit_msg): New static member.
(Logger): New macro defining simplified access th logger instance.
Use throughout in place of LogSingleton::GetInstance and direct access
to theLog.
* LogSingleton.h (LogSingleton::exit): Add second parameter to
prototype.
* desktop.cc (theLog): Remove extern declaration.
(set_status): Call Logger ().getExitMsg () instead of
accessing exit_msg directly.
* localdir.cc (theLog): Remove extern declaration.
* main.cc (theLog): Remove.
(WinMain): Introduce local variables to store requirement to print
help output and if command line options were used incorrectly.  Use
throughout function.

9 years ago * LogFile.cc (LogFile::exit): Deconstify exit_code. Handle
Corinna Vinschen [Tue, 3 Feb 2015 19:51:49 +0000 (19:51 +0000)]
* LogFile.cc (LogFile::exit): Deconstify exit_code.  Handle
exit_code -1 special (instead of IDS_ELEVATED).  Add comments to
explain.
* LogFile.h (LogFile::exit): Deconstify exit_code in prototype.
* main.cc (WinMain): Restructure code.  Revert to always initializing
log output.  Don't generate log files if setup is going to elevate
itself, or if only help output is requested.  Set exit_code to -1 in
call to LogFile::exit in the cases we don't want a log (elevate/help).

9 years ago * choose.cc (MirrorOption): Add experimental local mirror option.
Corinna Vinschen [Wed, 28 Jan 2015 20:05:48 +0000 (20:05 +0000)]
* choose.cc (MirrorOption): Add experimental local mirror option.
(ChooserPage::OnInit): Call packagemeta::ScanDownloadedFiles with
value of MirrorOption as argument.
* download.cc (check_for_cached): Add bool parameter.  If true, assume
correctness of download (==mirror) directory without checking files.
* download.h (check_for_cached): Add bool parameter to prototype,
default to false.
* package_meta.cc (packagemeta::ScanDownloadedFiles): Add bool
parameter.  Use to compute flag to call packageversion::scan with.
* package_meta.h (packagemeta::ScanDownloadedFiles): Align prototype.
* package_version.cc (packageversion::scan): Add bool parameter.  Call
check_for_cached with value of this parameter.
* package_version.h (packageversion::scan): Align prototype.

9 years ago * PickPackageLine.cc (PickPackageLine::click): Rearrange code. Switch
Corinna Vinschen [Wed, 28 Jan 2015 15:23:52 +0000 (15:23 +0000)]
* PickPackageLine.cc (PickPackageLine::click): Rearrange code.  Switch
package to "Uninstall" if neither binary, nor source package are picked.
Explain why.
* choose.cc (ChooserPage::OnInit): Fix CleanOrphansOption broken with
latest patch.  Reformat slightly.
* package_meta.cc (packagemeta::set_action): Rearrange and further
simplify code.  Make sure to have binary and source version never
unpicked at the same time to avoid spurious uninstallation of package.
Try to comment thoroughly.

9 years ago * PickPackageLine.cc (PickPackageLine::paint): Call trustp with default
Corinna Vinschen [Mon, 26 Jan 2015 21:05:46 +0000 (21:05 +0000)]
* PickPackageLine.cc (PickPackageLine::paint): Call trustp with default
flag set to false.
(PickPackageLine::click): Drop parameter from packagemeta::set_action
call.
(PickPackageLine::set_action): Call trustp with default flag set to
true.
* choose.cc (ChooserPage::OnInit): Call trustp with default flag set to
true to fetch default package version, rather than defaulting to curr.
* package_db.cc (packagedb::defaultTrust): Call trustp with default
flag set to true.
* package_meta.cc (packagemeta::set_action): Drop default_version
parameter.  Rewrite to simplify mechanism, and to account for correct
stepping through versions if installed version is not available anymore.
* package_meta.h (packagemeta::set_action): Align prototype.
(packagemeta::trustp): Add bool to request default package handling.
Add code to make sure not to downgrade packages by default.
* package_version.cc (processOneDependency): Call trustp with default
flag set to false.
* prereq.cc (PrereqChecker::getUnmetString): Ditto.
(PrereqChecker::selectMissing): Ditto.

9 years ago * package_version.cc (packageversion::compareVersions): Get arguments
Corinna Vinschen [Sun, 25 Jan 2015 16:38:46 +0000 (16:38 +0000)]
* package_version.cc (packageversion::compareVersions): Get arguments
by const references instead of by value.
* package_version.h (packageversion::compareVersions): Match prototype.
* res.rc: Bump version date.

9 years ago* package_source.cc (packagesource::set_canonical): Fix handling
Yaakov Selkowitz [Tue, 9 Dec 2014 18:42:35 +0000 (18:42 +0000)]
* package_source.cc (packagesource::set_canonical): Fix handling
of package release number containing a period.

9 years agoadd dash as a usable script type and shell, add ".cmd" as an alias for ".bat"
Achim Gratz [Sat, 6 Dec 2014 13:52:49 +0000 (13:52 +0000)]
add dash as a usable script type and shell, add ".cmd" as an alias for ".bat"

     * script.cc: New static string dash.
     (init_run_script): Initialize dash.
     (run): Implement dash as an extra shell type that is invoked for
     suffix ".dash".  Implement suffix ".cmd" as an alias for ".bat".

9 years agoimplement minimal stratified postinstall
Achim Gratz [Sat, 6 Dec 2014 13:50:41 +0000 (13:50 +0000)]
implement minimal stratified postinstall

     * install.cc (do_install_thread): Remove initialization for
     run_script.
     * postinstall.cc (do_postinstall_thread): Remove initialization
     for run_script.  Implement stratified postinstall (hardcode three
     strata for now).  For each stratum, run perpetual scripts first
     after sorting them as ASCII, then the postinstall scripts just
     installed, then check for dormant scripts in postinstall and try
     to run those.
     (PerpetualFindVisitor): New helper class to pick up perpetual
     scripts.
     (RunFindVisitor): Use new Script member function and pick up only
     runnable non-perpetual scripts.
     * script.h (Script::baseName): Add private variable.
     (Script::scriptExtension): Ditto.
     (Script::scriptStratum): Ditto
     (Script::scriptType): Ditto
     (Script::allowedStrata): Ditto
     (Script::allowedTypes): Ditto
     (Script::match): New private member function.
     (Script::not_p): New public member function to check for
     non-perpetual runnable script.
     (Script::is_p): Ditto, but for perpetual scripts.
     (Script::operator ==): Qualify as const.
     (Script::operator <): New const qualified, used for sorting as ASCII.
     * script.cc (class Script): Implement those additional members.
     (run): Implement using the new member variables and std::string
     functions instead of C string manipulations.
     (isAScript): Ditto.
     (fullName): Ditto.
     (baseName): Ditto.
     (Script): Extend initialization section and calculate values for
     member variables.  Move initialization for run_script into the constructor.

9 years agoRename log to Log to avoid collision with standard math function
Achim Gratz [Sat, 6 Dec 2014 13:38:55 +0000 (13:38 +0000)]
Rename log to Log to avoid collision with standard math function

     * LogSingleton.h: Rename log macro to Log to avoid collision with
     standard math function in some versions of g++.
     * AntiVirus.cc: Replace invocations of log with Log.
     * IniDBBuilderPackage.cc: Ditto.
     * LogFile.cc: Ditto.
     * PickView.cc: Ditto.
     * archive.cc: Ditto.
     * archive_tar.cc: Ditto.
     * choose.cc: Ditto.
     * cygpackage.cc: Ditto.
     * download.cc: Ditto.
     * geturl.cc: Ditto.
     * ini.cc: Ditto.
     * install.cc: Ditto.
     * io_stream.cc: Ditto.
     * io_stream_cygfile.cc: Ditto.
     * localdir.cc: Ditto.
     * main.cc: Ditto.
     * mount.cc: Ditto.
     * msg.cc: Ditto.
     * net.cc: Ditto.
     * nio-ftp.cc: Ditto.
     * package_db.cc: Ditto.
     * package_meta.cc: Ditto.
     * package_version.cc: Ditto.
     * prereq.cc: Ditto.
     * processlist.cc: Ditto.
     * proppage.cc: Ditto.
     * root.cc: Ditto.
     * script.cc: Ditto.
     * site.cc: Ditto.
     * source.cc: Ditto.
     * threebar.cc: Ditto.
     * win32.cc: Ditto.
     * window.cc: Ditto.

9 years agoshow parameter usage when option processing was unsuccessful
Achim Gratz [Sat, 6 Dec 2014 13:22:51 +0000 (13:22 +0000)]
show parameter usage when option processing was unsuccessful

         * main.cc (WinMain): Show parameter usage before exiting when
         options processing was unsuccessful (this usually means that an
         unknown option was given on the command line).

9 years ago * install.cc (Installer::StandardDirs): Add /etc/fstab.d, /dev,
Corinna Vinschen [Thu, 20 Nov 2014 11:33:49 +0000 (11:33 +0000)]
* install.cc (Installer::StandardDirs): Add /etc/fstab.d, /dev,
/dev/mqueue, /dev/shm.  Sort array alphabetically.

9 years ago * Makefile.am: Provide new targets "strip" and "upx" to remove
Corinna Vinschen [Tue, 4 Nov 2014 09:15:06 +0000 (09:15 +0000)]
* Makefile.am: Provide new targets "strip" and "upx" to remove
debugging symbols and compress the executable using UPX.
* README: Change description of how to produce stripped and compressed
binaries to use the new make targets.

9 years ago * setup.exe.manifest: Add Windows 10 OS GUID.
Corinna Vinschen [Sun, 26 Oct 2014 08:04:53 +0000 (08:04 +0000)]
* setup.exe.manifest: Add Windows 10 OS GUID.
* setup64.exe.manifest: Ditto.

9 years ago* res.rc: Fix missing space.
Eric Blake [Mon, 13 Oct 2014 15:59:52 +0000 (15:59 +0000)]
* res.rc: Fix missing space.

10 years ago * site.cc (init): Handle sitenames which aren't FQDNs correctly.
Jon TURNEY [Tue, 22 Apr 2014 17:41:55 +0000 (17:41 +0000)]
* site.cc (init): Handle sitenames which aren't FQDNs correctly.

10 years ago * site.cc (PopulateListBox): Select listbox items by finding the
Jon TURNEY [Tue, 22 Apr 2014 17:40:03 +0000 (17:40 +0000)]
* site.cc (PopulateListBox): Select listbox items by finding the
index of the item with a matching full URL, not by LB_FINDSTRING
which does an inexact match on the displayed URL.

10 years ago * msg.cc (mbox): Generalize to a MessageBox wrapper which knows
Jon TURNEY [Tue, 22 Apr 2014 17:35:50 +0000 (17:35 +0000)]
* msg.cc (mbox): Generalize to a MessageBox wrapper which knows
what to do in unattended mode.
* msg.h: Add prototype.
* ini.cc (IniParseFeedback): Use here rather than MessageBox.

10 years ago * mount.cc (read_mounts): Don't create rootdir key when just fetching
Corinna Vinschen [Tue, 22 Apr 2014 12:41:31 +0000 (12:41 +0000)]
* mount.cc (read_mounts): Don't create rootdir key when just fetching
info from registry.

10 years ago * mount.cc (is_admin): Drop function. It's incorrectly implemented
Corinna Vinschen [Tue, 22 Apr 2014 11:49:58 +0000 (11:49 +0000)]
* mount.cc (is_admin): Drop function.  It's incorrectly implemented
and redundant.
(create_install_root): If installing the setup rootdir entry to HKLM
results in ERROR_ACCESS_DENIED, fall back to installing into HKCU.
Don't exit with a fatal error if writing the registry key fails.  Just
pop up an informative message box instead.  Also log access denied.
(read_mounts): call nt_sec.isRunAsAdmin instead of removed is_admin.
(NTSecurity::isRunAsAdmin): Fix formatting.

10 years ago * main.cc (WaitOption): New -W/--wait option.
Corinna Vinschen [Mon, 10 Mar 2014 11:10:35 +0000 (11:10 +0000)]
* main.cc (WaitOption): New -W/--wait option.
(WinMain): Rearrange code to make sure only the actual worker
instance of setup logs into the setup.log and setup.log.full files.
Call NTSecurity::initialiseWellKnownSIDs explicitely.  Explain why.
If WaitOption is given, let the parent process wait for the elevated
child process.
* win32.cc (NTSecurity::initialiseWellKnownSIDs): Drop generating
log messages.
(NTSecurity::setDefaultSecurity): Drop call to initialiseWellKnownSIDs.
* win32.h (NTSecurity::initialiseWellKnownSIDs): Make public.

10 years ago * setup.exe.manifest: Add Windows 8.1 GUID.
Corinna Vinschen [Tue, 19 Nov 2013 21:52:55 +0000 (21:52 +0000)]
* setup.exe.manifest: Add Windows 8.1 GUID.
* setup64.exe.manifest: Ditto.

10 years ago * filemanip.cc (nt_fopen): Rename from fopen. Add permission parameter.
Corinna Vinschen [Mon, 18 Nov 2013 11:16:15 +0000 (11:16 +0000)]
* filemanip.cc (nt_fopen): Rename from fopen.  Add permission parameter.
Drop C binding.  Move comment.
* filemanip.h (nt_fopen): Declare.
* geturl.cc (get_url_to_file): Call nt_fopen instead of fopen.
* nio-file.cc (NetIO_File::NetIO_File): Ditto.
* main.cc (dyn_AttachConsole): Remove.
(dyn_GetLongPathName): Remove.
(set_dynaddr): Remove.
(set_cout): Just call AttachConsole directly.
(WinMain): Drop call to set_dynaddr.

10 years ago * resource.h (IDC_SOURCE_SUBTEXT): Define.
Corinna Vinschen [Fri, 15 Nov 2013 12:15:23 +0000 (12:15 +0000)]
* resource.h (IDC_SOURCE_SUBTEXT): Define.
* res.rc: Define text below header as IDC_SOURCE_SUBTEXT to allow
reconfiguration.

10 years ago * root.cc: Move inline definitions of GetDlgItemRect and
Corinna Vinschen [Fri, 15 Nov 2013 11:41:12 +0000 (11:41 +0000)]
* root.cc: Move inline definitions of GetDlgItemRect and
SetDlgItemRect from here...
* win32.h: ...to here, for potential usage in other dialogs.

10 years ago * res.rc: Fix size and position of rootdir textbox and button.
Corinna Vinschen [Fri, 15 Nov 2013 10:42:57 +0000 (10:42 +0000)]
* res.rc: Fix size and position of rootdir textbox and button.
Align size and position of localdir fields to rootdir fields for
optical reasons.

10 years ago * resource.h (IDC_ROOTDIR_SUBTEXT): Fix typo.
Corinna Vinschen [Fri, 15 Nov 2013 10:35:47 +0000 (10:35 +0000)]
* resource.h (IDC_ROOTDIR_SUBTEXT): Fix typo.

10 years ago * resource.h (IDC_ROOTDIR_SUBTEXT): Define.
Corinna Vinschen [Fri, 15 Nov 2013 10:34:59 +0000 (10:34 +0000)]
* resource.h (IDC_ROOTDIR_SUBTEXT): Define.
* res.rc: Define text below header as IDC_ROOTDIR_SUBTEXT to allow
reconfiguration.

10 years ago * mount.cc (read_mounts): Drop setting root_text.
Corinna Vinschen [Fri, 15 Nov 2013 10:22:16 +0000 (10:22 +0000)]
* mount.cc (read_mounts): Drop setting root_text.
* res.rc: Set content of root dir dialog correctly right from the start.
Remove unused items.
* resource.h (IDC_ROOT_TEXT): Remove.
(IDC_ROOT_BINARY): Ditto.
(IDC_FILEMODES_LINK): Ditto.
(IDC_MODE_GRP): Ditto.
(IDC_MODE_TEXT): Ditto.
(IDC_MODE_BIN): Ditto.
* root.cc (Root): Set "Install For" group items to CP_STRETCH.
Remove all "text/binary" items.
(rb): Remove.
(check_if_enable_next): Drop test for root_text.
(load_dialog): Remove all code setting items differently to what's
specified as default in the resources, in favor of setting this
correctly in the resources.
(save_dialog): Drop setting root_text.
(RootPage::OnMessageCmd): Drop IDC_ROOT_TEXT/IDC_ROOT_BINARY handling.
(RootPage::OnInit): Drop IDC_FILEMODES_LINK handling.
(RootPage::OnNext): Drop "text"/"binary" state from debug output.
* state.cc (root_text): Remove.

10 years ago * archive_tar.cc: Drop commented out static variable definitions.
Corinna Vinschen [Thu, 14 Nov 2013 21:36:15 +0000 (21:36 +0000)]
* archive_tar.cc: Drop commented out static variable definitions.
(archive_tar::next_file_name): Replace MAX_PATH with CYG_PATH_MAX.
* archive_tar.h (tar_state::filename): Ditto.
* cygpackage.cc (cygpackage::cygpackage): Ditto.
* cygpackage.h (cygpackage::getfilenamebuffer): Ditto.
* desktop.cc (start_menu): Add comment.  Drop Windows 9x considerations.
(desktop_icon): Ditto.
(check_desktop): Ditto.
(check_startmenu): Ditto.
* diskfull.cc (diskfull): Drop Windows 9x considerations.  Convert
incoming path to wide char and call GetDiskFreeSpaceExW.
* filemanip.cc (fopen): New function, overriding MSVCRT function.
Explain why.
(remove): Ditto.
(rename): Ditto.
(_access): Ditto.
* install.cc (check_for_old_cygwin): Add comment.
* localdir.cc (browse): Add comment.
(LocalDirPage::OnNext): Don't rely on being able to change CWD.
Call GetFileAttributesW instead and change conditional expressions
accordingly.  Explain why.  Rename trySetCurDir to tryLocalDir to
avoid confusion.  Call do_from_local_dir rather than do_fromcwd.
* mount.cc (read_mounts): Add comments.  Call GetSystemWindowsDirectory
rather than GetWindowsDirectory since that's what we're really want.
* postinstall.cc (do_postinstall_thread): Drop setting CWD.  Scripts
are called with CWD set to Cygwin root dir anyway.
* processlist.cc (Process::getName): Allow CYG_PATH_MAX sized module
names.
(Process::isModuleLoadedInProcess): Allow CYG_PATH_MAX sized module
names.
* root.cc (browse): Add comment.
* script.cc (sanitize_PATH): Call GetSystemWindowsDirectory rather than
GetWindowsDirectory since that's what we're really want.
(Script::run): Allow cmdline up to CYG_PATH_MAX chars to allow longer
script paths.
* win32.h (CYG_PATH_MAX): Define as 4096 as Cygwin's PATH_MAX.

10 years ago * desktop.cc (STARTMENUDIR): Define.
Corinna Vinschen [Wed, 13 Nov 2013 20:57:16 +0000 (20:57 +0000)]
* desktop.cc (STARTMENUDIR): Define.
(check_startmenu): Use STARTMENUDIR instead of constant string.
(DesktopSetupPage::OnActivate): Use TARGET and TERMINALTITLE defines
to simplify calls to check_startmenu and check_desktop.

10 years ago * desktop.cc: Drop dependency on static variable and order of
Corinna Vinschen [Wed, 13 Nov 2013 20:47:50 +0000 (20:47 +0000)]
* desktop.cc: Drop dependency on static variable and order of
initialization.  Allow easier reconfiguration.
(iconname): Drop static variable.
(make_link): Add parameter to specify icon path.
(start_menu): Ditto.  Call make_link accordingly.
(desktop_icon): Ditto.
(save_icon): Take windows path as first parameter.  Drop setting
global iconname variable.
(TARGET): Define.
(DEFAULTICON): Define.
(TERMINALICON): Define.
(TERMINALTITLE): Define.
(do_desktop_setup): Rearrange code to use aforementioned defines and
align function calls to aforementioned changes.

10 years ago * mount.cc (CYGWIN_INFO_CYGNUS_REGISTRY_NAME): Remove now unused
Corinna Vinschen [Wed, 13 Nov 2013 14:42:33 +0000 (14:42 +0000)]
* mount.cc (CYGWIN_INFO_CYGNUS_REGISTRY_NAME): Remove now unused
pre-1.7 registry key name.
(CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME): Ditto.
(CYGWIN_INFO_CYGDRIVE_FLAGS): Ditto.
(CYGWIN_INFO_CYGDRIVE_PREFIX): Ditto.
(CYGWIN_INFO_CYGDRIVE_DEFAULT_PREFIX): Ditto.

10 years ago * Makefile.am (EXTRA_DIST): Add cygwin-setup.ico and
Corinna Vinschen [Wed, 13 Nov 2013 14:36:18 +0000 (14:36 +0000)]
* Makefile.am (EXTRA_DIST): Add cygwin-setup.ico and
cygwin-terminal.ico.

10 years ago * LogFile.cc (LogFile::exit): Don't print ending message after
Corinna Vinschen [Thu, 7 Nov 2013 13:14:19 +0000 (13:14 +0000)]
* LogFile.cc (LogFile::exit): Don't print ending message after
successful elevation.
* res.rc (IDS_ELEVATED): New string.
* resource.h (IDS_ELEVATED): New string resource number.

* LogFile.cc (LogFile::flushAll): New function to flush log all logging
to files without exiting (as LogFile::exit does).
* LogFile.h: Declare new method closeAll.
* main.cc (NoAdminOption): Add new CLI options -B/--no-admin. This
option allows the user to suppress privilege elevation (in tandem with
"asInvoker" requestedExecutionLevel changes to exe manifests).
(WinMain): check if setup run with Administrator privilege and if the
NoAdminOption has not been specified, attempt to elevate privilege to an
Administrator via WINAPI ShellExecuteEx().
* setup.exe.manifest: Add requestedExecutionLevel of asInvoker to allow
suppression of privilege elevation.
* setup64.exe.manifest: Modify requestedExecutionLevel from
requireAdministrator to asInvoker to allow suppression of privilege
elevation. Continuity of privilege elevation attempt on startup is
implemented by main.cc changes to WinMain().
* win32.cc (NTSecurity::isRunAsAdmin): New function to allow main.cc to
check if setup.exe has been run with privilege elevated to Administrator
level.
* win32.h: Declare new method isRunAsAdmin.

10 years ago * prereq.cc (OnUnattended): Also select missing requirements in unattended
Jon TURNEY [Mon, 7 Oct 2013 18:04:03 +0000 (18:04 +0000)]
* prereq.cc (OnUnattended): Also select missing requirements in unattended
mode, since it's no longer a side effect of the chooser.

10 years ago* filemanip.cc (find_tar_ext): Generalize search for .tar extension,
Yaakov Selkowitz [Wed, 18 Sep 2013 00:30:08 +0000 (00:30 +0000)]
* filemanip.cc (find_tar_ext): Generalize search for .tar extension,
avoiding looking for specific compression types.

11 years ago * include/getopt++/DefaultFormatter.h (DefaultFormatter):
Corinna Vinschen [Mon, 12 Aug 2013 11:44:53 +0000 (11:44 +0000)]
* include/getopt++/DefaultFormatter.h (DefaultFormatter):
Introduce private data members and use them, adjust comment
accordingly.  Split the line 35/45 instead of 40/40 by default
to get less linebreaks.  Add default initializers for data
members to the constructor.  Add a second constructor that
offers parameters for initialization of the private data
members.
(DefaultFormatter::operator ()): Remove automatic variable
output and directly put the data on the output stream instead.
Use private data members to construct the output rather than

11 years ago * csu_util/MD5Sum.h (MD5Sum): Remove declaration for conversion
Corinna Vinschen [Mon, 12 Aug 2013 10:53:24 +0000 (10:53 +0000)]
* csu_util/MD5Sum.h (MD5Sum): Remove declaration for conversion
operator std::string().  Remove implementation of member
function str() using the conversion operator.
* csu_util/MD5Sum.cc (MD5Sum::str): Reuse implementation of conversion
operator std::String to implement member function str() with.

11 years ago * csu_util/MD5Sum.cc (MD5Sum::operator std::string() const):
Corinna Vinschen [Fri, 9 Aug 2013 09:02:47 +0000 (09:02 +0000)]
* csu_util/MD5Sum.cc (MD5Sum::operator std::string() const):
Reimplement using stringstream to avoid a SEGV.

11 years ago * localdir.cc (LocalDirPage::OnNext): Accommodate architecture parameter
Corinna Vinschen [Mon, 29 Jul 2013 10:54:13 +0000 (10:54 +0000)]
* localdir.cc (LocalDirPage::OnNext): Accommodate architecture parameter
in IDS_NO_CWD string.
(IDS_NO_CWD): Add string argument for architecture in setup name.

11 years ago * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildVersion): Align
Corinna Vinschen [Mon, 29 Jul 2013 10:42:18 +0000 (10:42 +0000)]
* IniDBBuilderPackage.cc (IniDBBuilderPackage::buildVersion): Align
warning string to target architecture.

11 years ago * choose.cc (UpgradeAlsoOption): Add new CLI option -g/--upgrade-also.
Corinna Vinschen [Fri, 26 Jul 2013 12:04:24 +0000 (12:04 +0000)]
* choose.cc (UpgradeAlsoOption): Add new CLI option -g/--upgrade-also.
(CleanOrphansOption): Add new CLI option -o/--delete-orphans.
(OnInit): Implement -g/--upgrade-also, considers all installed packages
as candidates for upgrades (the default when no CLI package or category
options have been given) also when manual additions or removals are
requested at the same time.  Implement -o/--delete-orphans, considers
installed packages that do not exist anymore in the package repositories
as candidates for deletion.

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".

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