From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-041.btinternet.com (mailomta31-re.btinternet.com [213.120.69.124]) by sourceware.org (Postfix) with ESMTPS id EFEC33858D33 for ; Fri, 8 Mar 2024 18:35:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EFEC33858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dronecode.org.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EFEC33858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=213.120.69.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709922904; cv=none; b=NCFcfHbHECX/v7inH1w83W5lxAUuvFCb41tNioDo/mdGfPYBkBPy3ClrNJX1PqPMGr7X3VgKqV2dc+dtjDIV5jImo9i29NLEQerHlDU4rwJrEdJ8Q4H8by7yJJagy9fFpd6ZiRfZeqnlu3JHt3qDnZBr9oqOWqGSMa5Soxwzh0k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709922904; c=relaxed/simple; bh=F9KLXkXsGvkpzGHcqjhpK/FaGStswRspkohIj/M2uUY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=GxmiPZcYMvwDugvJV87eF6v92QgT3MjBCxxgjH1zE58F4cXkSgGH+uM22cnkvy1WGBCWbd38ChBRkKuOdxaiShJIX2lUPFJifhl28SBMUgQDIdB8FFWjQLkLwGDOi7InhNwYGr4CRfEIXe0yM424fYvSsDmDpGF4JCIFZt1yS5I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from re-prd-rgout-004.btmx-prd.synchronoss.net ([10.2.54.7]) by re-prd-fep-041.btinternet.com with ESMTP id <20240308183500.UJLT21578.re-prd-fep-041.btinternet.com@re-prd-rgout-004.btmx-prd.synchronoss.net>; Fri, 8 Mar 2024 18:35:00 +0000 Authentication-Results: btinternet.com; auth=pass (LOGIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 6577B87C0AB062C1 X-Originating-IP: [81.153.98.185] X-OWM-Source-IP: 81.153.98.185 X-OWM-Env-Sender: jon.turney@dronecode.org.uk X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvledrieehgdduudefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepheeuuddthefhueetgfeifefgleeitedtiefgtdffhfdvveeggeetjeeffedthefgnecukfhppeekuddrudehfedrleekrddukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplhhotggrlhhhohhsthdrlhhotggrlhguohhmrghinhdpihhnvghtpeekuddrudehfedrleekrddukeehpdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdpnhgspghrtghpthhtohepvddprhgtphhtthhopegthihgfihinhdqrghpphhssegthihgfihinhdrtghomhdprhgtphhtthhopehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhrvghvkffrpehhohhsthekuddqudehfedqleekqddukeehrdhrrghnghgvkeduqdduheefrdgsthgtvghnthhrrghlphhluhhsrdgtohhmpdgruhhthhgpuhhsvghrpehjohhnthhurhhnvgihsegsthhinhhtvghrnhgvthdrtghomhdpghgvohfkrfep ifeupdfovfetjfhoshhtpehrvgdqphhrugdqrhhgohhuthdqtddtge X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from localhost.localdomain (81.153.98.185) by re-prd-rgout-004.btmx-prd.synchronoss.net (authenticated as jonturney@btinternet.com) id 6577B87C0AB062C1; Fri, 8 Mar 2024 18:35:00 +0000 From: Jon Turney To: cygwin-apps@cygwin.com Cc: Jon Turney Subject: [PATCH setup 00/16] Groundwork for a GUI-less installation tool Date: Fri, 8 Mar 2024 18:34:19 +0000 Message-ID: <20240308183440.4263-1-jon.turney@dronecode.org.uk> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This is patch sequence I started sometime in 2020, but only got around to finishing off recently. This includes various small tidy-ups, and then lays some groundwork for a command line installation tool. At the moment, all this can do is retrieve a (compressed) setup.ini from a selected mirror and parse it. Package fetching and installation etc. remain to be looked at. Jon Turney (16): Drop forward declaration of non-existent class IniState Move setup_exts[] to the only place it's used Split GuiParseFeedback out from ini fetcher Split out site into SiteSettings and SitePage Don't call Antivirus::AtExit() directly from Logger::exit() Simplify invocation of UserSettings::open_settings() Split out URL fetching progress reporting Instantiate found_ini_list in ini.cc Move is_64bit to state Move setup.ini pathame components to ini.cc Drop hinstance global Spit out GetNetAuth from NetIO Split out hash checking progress reporting Push check_for_cached into package_source Put various shared subcomponents into a convenience library Add beginnings of a command line installation tool AntiVirus.cc | 4 +- CliParseFeedback.h | 28 -- Feedback.h | 58 ++++ GetNetAuth.h | 30 ++ IniDBBuilderPackage.cc | 4 +- IniDBBuilderPackage.h | 6 +- IniParseFeedback.h | 38 --- LogFile.cc | 18 +- LogFile.h | 8 +- Makefile.am | 284 ++++++++++-------- SiteSetting.cc | 193 ++++++++++++ site.h => SiteSetting.h | 57 +--- UserSettings.cc | 12 +- UserSettings.h | 4 +- choose.cc | 4 +- cli/CliFeedback.h | 60 ++++ cli/CliGetNetAuth.cc | 45 +++ cli/CliGetNetAuth.h | 32 ++ cli/CliGetUrlFeedback.cc | 91 ++++++ cli/CliHashCheckFeedback.cc | 30 ++ .../CliParseFeedback.cc | 28 +- cli/cyclops.cc | 186 ++++++++++++ crypto.cc | 18 +- crypto.h | 9 +- dialog.h | 3 - download.cc | 121 +------- download.h | 6 - fromcwd.cc | 11 +- geturl.cc | 130 ++------ geturl.h | 13 +- gui/GuiFeedback.h | 69 +++++ gui/GuiGetNetAuth.cc | 138 +++++++++ gui/GuiGetNetAuth.h | 38 +++ gui/GuiGetUrlFeedback.cc | 119 ++++++++ gui/GuiHashCheckFeedback.cc | 34 +++ gui/GuiParseFeedback.cc | 149 +++++++++ site.cc => gui/SitePage.cc | 191 +----------- gui/SitePage.h | 45 +++ ini.cc | 178 +++-------- ini.h | 19 +- inilex.ll | 6 +- inilintmain.cc | 10 +- install.cc | 6 +- main.cc | 50 ++- msg.cc | 5 +- net.cc | 5 + netio.cc | 125 +------- netio.h | 19 +- nio-ie5.cc | 4 +- package_db.cc | 6 +- package_db.h | 3 +- package_meta.cc | 11 +- package_meta.h | 5 +- package_source.cc | 126 ++++++-- package_source.h | 12 +- splash.cc | 2 +- state.cc | 6 + state.h | 2 + threebar.cc | 2 +- 59 files changed, 1853 insertions(+), 1063 deletions(-) delete mode 100644 CliParseFeedback.h create mode 100644 Feedback.h create mode 100644 GetNetAuth.h delete mode 100644 IniParseFeedback.h create mode 100644 SiteSetting.cc rename site.h => SiteSetting.h (74%) create mode 100644 cli/CliFeedback.h create mode 100644 cli/CliGetNetAuth.cc create mode 100644 cli/CliGetNetAuth.h create mode 100644 cli/CliGetUrlFeedback.cc create mode 100644 cli/CliHashCheckFeedback.cc rename CliParseFeedback.cc => cli/CliParseFeedback.cc (58%) create mode 100644 cli/cyclops.cc create mode 100644 gui/GuiFeedback.h create mode 100644 gui/GuiGetNetAuth.cc create mode 100644 gui/GuiGetNetAuth.h create mode 100644 gui/GuiGetUrlFeedback.cc create mode 100644 gui/GuiHashCheckFeedback.cc create mode 100644 gui/GuiParseFeedback.cc rename site.cc => gui/SitePage.cc (75%) create mode 100644 gui/SitePage.h -- 2.43.0