From c90f8aa823c55cc6ac6758733e6383c7fc168cfe Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 8 Aug 2020 21:25:42 +0000 Subject: user/horizon: Update to latest git --- user/horizon/APKBUILD | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'user/horizon/APKBUILD') diff --git a/user/horizon/APKBUILD b/user/horizon/APKBUILD index dcc9d9bf7..3a7e89a8e 100644 --- a/user/horizon/APKBUILD +++ b/user/horizon/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: A. Wilcox pkgname=horizon pkgver=0.9.3 -pkgrel=0 +pkgrel=1 pkgdesc="Installation tools for Adélie Linux" url="https://horizon.adelielinux.org/" arch="all" @@ -17,7 +17,9 @@ makedepends="bcnm-dev boost-dev cmake curl-dev eudev-dev libarchive-dev libcap-dev libx11-dev libxkbfile-dev qt5-qtbase-dev" subpackages="$pkgname-image $pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-qt5 $pkgname-tools $pkgname-wizard $pkgname-boot" -source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz" +source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz + git.patch + " build() { if [ "$CBUILD" != "$CHOST" ]; then @@ -146,4 +148,5 @@ GLOBALS "$subpkgdir"/usr/share/xsessions/horizon.desktop } -sha512sums="99c1d939abc33c4a072712e75c6c8ada16deb1fe59b9da839dffd695a0d40dbf48499cc00751285300127a7fc701e8e1c434e9f8a222f1981ccbebd6ee72e43e horizon-0.9.3.tar.xz" +sha512sums="99c1d939abc33c4a072712e75c6c8ada16deb1fe59b9da839dffd695a0d40dbf48499cc00751285300127a7fc701e8e1c434e9f8a222f1981ccbebd6ee72e43e horizon-0.9.3.tar.xz +7c7c4297ae8d0d879a01ac38c0699dd9338e9b9675a0804dc3ec915e98900343e001d0a0558fcaccbf9f5cfafbf9ae869c7ec194d1529683b5874941a77b0125 git.patch" -- cgit v1.2.3-70-g09d2 From 69d652b58d00105169141bb3102d3b173d65dccb Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 13 Aug 2020 19:00:36 +0000 Subject: user/horizon: Allow the user to decide firmware or not --- user/horizon/APKBUILD | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'user/horizon/APKBUILD') diff --git a/user/horizon/APKBUILD b/user/horizon/APKBUILD index 3a7e89a8e..8fc42436a 100644 --- a/user/horizon/APKBUILD +++ b/user/horizon/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: A. Wilcox pkgname=horizon pkgver=0.9.3 -pkgrel=1 +pkgrel=2 pkgdesc="Installation tools for Adélie Linux" url="https://horizon.adelielinux.org/" arch="all" @@ -32,6 +32,7 @@ build() { -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-format-truncation" \ -DCMAKE_C_FLAGS="$CFLAGS" \ + -DUNSUPPORTED_NONFREE_FIRMWARE=ON \ -DINSTALL=ON \ ${CMAKE_CROSSOPTS} \ -Bbuild @@ -45,6 +46,7 @@ build() { -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-format-truncation" \ -DCMAKE_C_FLAGS="$CFLAGS" \ + -DUNSUPPORTED_NONFREE_FIRMWARE=ON \ -DINSTALL=OFF \ ${CMAKE_CROSSOPTS} \ -Bbuild-wizard -- cgit v1.2.3-70-g09d2 From a5639754b86fcc26dae0f91b8f644c4a81975ef9 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 30 Aug 2020 19:14:11 +0000 Subject: user/horizon: Update to 0.9.4 --- user/horizon/APKBUILD | 21 +- user/horizon/fix-qt-runner.patch | 25 -- user/horizon/git.patch | 660 --------------------------------------- 3 files changed, 13 insertions(+), 693 deletions(-) delete mode 100644 user/horizon/fix-qt-runner.patch delete mode 100644 user/horizon/git.patch (limited to 'user/horizon/APKBUILD') diff --git a/user/horizon/APKBUILD b/user/horizon/APKBUILD index 8fc42436a..4fb711bbb 100644 --- a/user/horizon/APKBUILD +++ b/user/horizon/APKBUILD @@ -1,8 +1,8 @@ # Contributor: A. Wilcox # Maintainer: A. Wilcox pkgname=horizon -pkgver=0.9.3 -pkgrel=2 +pkgver=0.9.4 +pkgrel=0 pkgdesc="Installation tools for Adélie Linux" url="https://horizon.adelielinux.org/" arch="all" @@ -17,9 +17,7 @@ makedepends="bcnm-dev boost-dev cmake curl-dev eudev-dev libarchive-dev libcap-dev libx11-dev libxkbfile-dev qt5-qtbase-dev" subpackages="$pkgname-image $pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-qt5 $pkgname-tools $pkgname-wizard $pkgname-boot" -source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz - git.patch - " +source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz" build() { if [ "$CBUILD" != "$CHOST" ]; then @@ -63,7 +61,7 @@ package() { image() { pkgdesc="Tools for generating images using HorizonScript" - depends="mtools" + depends="dracut mtools" mkdir -p "$subpkgdir"/usr/bin mkdir -p "$subpkgdir"/usr/lib mkdir -p "$subpkgdir"/usr/share/horizon @@ -108,7 +106,9 @@ boot() { depends="horizon-qt5 horizon kwin qt5ct sddm netsurf partitionmanager xterm" + mkdir -p "$subpkgdir"/etc/init.d mkdir -p "$subpkgdir"/etc/profile.d + mkdir -p "$subpkgdir"/etc/runlevels/default mkdir -p "$subpkgdir"/etc/sddm.conf.d mkdir -p "$subpkgdir"/etc/xdg/qt5ct mkdir -p "$subpkgdir"/usr/bin @@ -135,6 +135,12 @@ GLOBALS install -D -m644 "$builddir"/boot/horizon.sddm.conf \ "$subpkgdir"/etc/sddm.conf.d/horizon.conf + install -D -m755 "$builddir"/boot/gfxdetect \ + "$subpkgdir"/etc/init.d/gfxdetect + + ln -s ../../init.d/gfxdetect \ + "$subpkgdir"/etc/runlevels/default/gfxdetect + install -D -m755 "$builddir"/boot/start-horizon-qt5 \ "$subpkgdir"/usr/bin/start-horizon-qt5 @@ -150,5 +156,4 @@ GLOBALS "$subpkgdir"/usr/share/xsessions/horizon.desktop } -sha512sums="99c1d939abc33c4a072712e75c6c8ada16deb1fe59b9da839dffd695a0d40dbf48499cc00751285300127a7fc701e8e1c434e9f8a222f1981ccbebd6ee72e43e horizon-0.9.3.tar.xz -7c7c4297ae8d0d879a01ac38c0699dd9338e9b9675a0804dc3ec915e98900343e001d0a0558fcaccbf9f5cfafbf9ae869c7ec194d1529683b5874941a77b0125 git.patch" +sha512sums="202830a4e1313d0761484aeb65bef1e2a109917d4bec8f963672f4017a5fda2dac1383be6dfe2ed9aa3daa913cc62f816e88d2e760824957dbc18070ca901f76 horizon-0.9.4.tar.xz" diff --git a/user/horizon/fix-qt-runner.patch b/user/horizon/fix-qt-runner.patch deleted file mode 100644 index 39cab1181..000000000 --- a/user/horizon/fix-qt-runner.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 9f737dbab8b9ed9fa57bdf15542cc00a8363d98b Mon Sep 17 00:00:00 2001 -From: "A. Wilcox" -Date: Thu, 4 Jun 2020 21:29:37 -0500 -Subject: [PATCH] Qt UI: Ensure log is opened when built in release modes - ---- - ui/qt5/runner/executepage.cc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/ui/qt5/runner/executepage.cc b/ui/qt5/runner/executepage.cc -index 999731a..d5788df 100644 ---- a/ui/qt5/runner/executepage.cc -+++ b/ui/qt5/runner/executepage.cc -@@ -48,7 +48,7 @@ ExecutePage::ExecutePage(QWidget *parent) : HorizonWizardPage(parent) { - }); - - log.setFileName("/var/log/horizon/executor.log"); -- Q_ASSERT(log.open(QFile::Append)); -+ log.open(QFile::Append); - - this->current = Prepare; - markRunning(this->current); --- -2.25.4 - diff --git a/user/horizon/git.patch b/user/horizon/git.patch deleted file mode 100644 index 3f15448bf..000000000 --- a/user/horizon/git.patch +++ /dev/null @@ -1,660 +0,0 @@ -diff --git a/devel/script/2_keys.xml b/devel/script/2_keys.xml -index 4438881..9ffeba8 100644 ---- a/devel/script/2_keys.xml -+++ b/devel/script/2_keys.xml -@@ -655,7 +655,7 @@ svcenable udev-trigger boot - The <literal>svcenable</literal> Key — Typical Desktop - - svcenable dbus --svcenable consolekit -+svcenable elogind - svcenable sddm - - This configures the target computer to start up a display manager and its required daemons during system boot, enabling graphical logins. -diff --git a/devel/script/4_json.xml b/devel/script/4_json.xml -new file mode 100644 -index 0000000..b0234a4 ---- /dev/null -+++ b/devel/script/4_json.xml -@@ -0,0 +1,451 @@ -+ -+ -+ JSON Schema -+ The Horizon system supports converting JSON files to HorizonScript. This chapter describes the JSON schema supported by the Horizon JSON tooling. -+ It is important to note that not all features of Horizon are available from JSON. For more advanced use cases, consider writing HorizonScript files directly. However, it is felt that supporting JSON interchange is important for interoperability with external systems. -+
-+ Overall document structure -+ There are two document formats supported by the Horizon JSON tooling. The most common is a simple structure where a single root object contains the Horizon JSON keys. The second, and less common, describes multiple configurations called "images" in a single JSON file. The root object contains a single key/value pair, images, which is an array of objects containing Horizon JSON keys. See for more information. -+
-+
-+ Supported keys -+ -+
-+ <literal>hostname</literal> -+ -+ Format -+ String -+ -+ -+ Short Description -+ The device's host name. -+ -+ -+ Corresponding HorizonScript key -+ hostname -+ -+
-+
-+ <literal>packages</literal> -+ -+ Format -+ Array of String -+ -+ -+ Short Description -+ A list of packages to install to the device. -+ -+ -+ Corresponding HorizonScript key -+ pkginstall -+ -+
-+
-+ <literal>rootpw</literal> -+ -+ Format -+ String -+ -+ -+ Short Description -+ The encrypted root password for the device. -+ -+ -+ Corresponding HorizonScript key -+ rootpw -+ -+
-+
-+ <literal>arch</literal> -+ -+ Format -+ String -+ -+ -+ Short Description -+ The device's CPU architecture. -+ -+ -+ Corresponding HorizonScript key -+ arch -+ -+
-+
-+ <literal>language</literal> -+ -+ Format -+ String -+ -+ -+ Short Description -+ The language to use for the device's interface. -+ -+ -+ Corresponding HorizonScript key -+ language -+ -+
-+
-+ <literal>keymap</literal> -+ -+ Format -+ String -+ -+ -+ Short Description -+ The keyboard map to use for the device's hardware inputs. -+ -+ -+ Corresponding HorizonScript key -+ keymap -+ -+
-+
-+ <literal>firmware</literal> -+ -+ Format -+ String or Boolean -+ -+ -+ Short Description -+ Determines whether or not the device will have non-free firmware installed. -+ -+ -+ Corresponding HorizonScript key -+ firmware -+ -+
-+
-+ <literal>services</literal> -+ -+ Format -+ Array of Object -+ -+ -+ Short Description -+ Specifies additional services to start on device boot. -+ -+ -+ Object Structure -+ -+ -+ -+ service -+ (String) The name of the service to start. -+ -+ -+ runlevel -+ (String) The runlevel that the service should start under. If no runlevel is specified, default is used. -+ -+ -+ -+ -+ -+ Corresponding HorizonScript key -+ svcenable -+ -+
-+
-+ <literal>netconfig</literal> -+ -+ Format -+ String -+ -+ -+ Short Description -+ Determines the network configuration system used on the device. -+ -+ -+ Corresponding HorizonScript key -+ netconfigtype -+ -+
-+
-+ <literal>netaddresses</literal> -+ -+ Format -+ Array of Object -+ -+ -+ Short Description -+ Specifies the device's network addressing configuration. -+ -+ -+ Object Structure -+ -+ -+ -+ id -+ (String) This connection's identifier. This field is for operator reference only - it will not appear in the HorizonScript or in the device's configuration. -+ -+ -+ interface -+ (String) The network interface to use for this address. -+ -+ -+ addr-type -+ (String) The type of this address: none to bring up the interface without an address (common for bridging), dhcp for DHCP, or static for static addressing. -+ -+ -+ address -+ (Object) The network address. Only valid if addr-type is static. -+ -+ -+ If static addressing is desired, the address object is described below. -+ -+ -+ ip-address -+ (String) The IPv4 or IPv6 address for this connection. -+ -+ -+ net-prefix -+ (Number) The network prefix for this connection. Valid values are 1-32 for IPv4, and 1-128 for IPv6. -+ -+ -+ gateway -+ (String) The IPv4 or IPv6 address for the gateway for this connection. -+ -+ -+ -+ -+ -+ Corresponding HorizonScript key -+ netaddress -+ -+
-+ -+
-+ <literal>nameservers</literal> -+ -+ Format -+ Array of String -+ -+ -+ Short Description -+ IP addresses used for Domain Name System (DNS) resolution. -+ -+ -+ Corresponding HorizonScript key -+ nameserver -+ -+
-+
-+ <literal>access-points</literal> -+ -+ Format -+ Array of Object -+ -+ -+ Short Description -+ Specifies the device's wireless networking configuration. -+ -+ -+ Object Structure -+ -+ -+ -+ interface -+ (String) The wireless network interface to use for this access point. -+ -+ -+ ssid -+ (String) The SSID for this access point. -+ -+ -+ security -+ (String) The security type to use for this access point: none, wep, or wpa. -+ -+ -+ password -+ (String) The shared secret to use for authenticating this wireless link. -+ -+ -+ -+ -+ -+ Corresponding HorizonScript key -+ netssid -+ -+
-+
-+ <literal>timezone</literal> -+ -+ Format -+ String -+ -+ -+ Short Description -+ The time zone to use on the device. -+ -+ -+ Corresponding HorizonScript key -+ timezone -+ -+
-+
-+ <literal>repositories</literal> -+ -+ Format -+ Array of String -+ -+ -+ Short Description -+ The APK repositories to use for package installation on the device. -+ -+ -+ Corresponding HorizonScript key -+ repository -+ -+
-+
-+ <literal>signingkeys</literal> -+ -+ Format -+ Array of String -+ -+ -+ Short Description -+ The location of the signing key(s) used by the device's APK repositories. -+ -+ -+ Corresponding HorizonScript key -+ signingkey -+ -+
-+
-+ <literal>users</literal> -+ -+ Format -+ Array of Object -+ -+ -+ Short Description -+ Specifies the device's user accounts. -+ -+ -+ Object Structure -+ -+ -+ -+ username -+ (String) The login name of this account. -+ -+ -+ alias -+ (String) The friendly name/GECOS of this account. -+ -+ -+ passphrase -+ (String) The encrypted passphrase to use to authenticate to this account. See for information about the format of passphrase. -+ -+ -+ groups -+ (String) Comma-separated list of this account's member groups. -+ -+ -+ -+ -+ -+ Corresponding HorizonScript keys -+ username, useralias, userpw, usergroups -+ -+
-+
-+
-+ Examples -+ -+ -+ Basic example of Horizon JSON file -+ -+{ -+ "hostname": "horizon-json-testmachine.adelielinux.org", -+ "packages": ["adelie-base-posix", "easy-kernel", "easy-kernel-modules", -+ "netifrc", "openrc", "s6-linux-init"], -+ "rootpw": "...", -+ "root": "/dev/sda1", -+ "netaddresses": [{"id":"eth0", "interface":"eth0", "addr-type":"dhcp"}], -+ "nameservers": ["9.9.9.9"], -+ "timezone": "America/Chicago", -+ "repositories": ["https://distfiles.adelielinux.org/adelie/1.0/system", -+ "https://distfiles.adelielinux.org/adelie/1.0/user"], -+ "signingkeys": ["/etc/apk/keys/powerpc-1@packages.adelielinux.org.pub", -+ "/etc/apk/keys/powerpc-2@packages.adelielinux.org.pub"] -+} -+ -+ -+ -+ Example of multi-configuration Horizon JSON file -+ -+{"images": -+ [ -+ {"name": "Test Image", -+ "hostname": "horizon-json-testmachine.adelielinux.org", -+ "packages": ["adelie-base-posix", "easy-kernel", "easy-kernel-modules", -+ "netifrc", "openrc", "s6-linux-init"], -+ "rootpw": "...", -+ "root": "/dev/sda1", -+ "arch": "ppc64", -+ "language": "en_GB.UTF-8", -+ "keymap": "us", -+ "firmware": false, -+ "netconfig": "netifrc", -+ "netaddresses": [{"id":"eth0", "interface":"eth0", "addr-type":"dhcp"}], -+ "nameservers": ["9.9.9.9"], -+ "timezone": "America/Chicago", -+ "repositories": ["https://distfiles.adelielinux.org/adelie/1.0/system", -+ "https://distfiles.adelielinux.org/adelie/1.0/user"], -+ "signingkeys": ["/etc/apk/keys/powerpc-1@packages.adelielinux.org.pub", -+ "/etc/apk/keys/powerpc-2@packages.adelielinux.org.pub"] -+ } -+ ] -+} -+ -+ -+ -+
-+
-diff --git a/devel/script/script.xml b/devel/script/script.xml -index f8c1a65..bf82a06 100644 ---- a/devel/script/script.xml -+++ b/devel/script/script.xml -@@ -4,6 +4,7 @@ - - - -+ - ]> - - -@@ -11,8 +12,8 @@ - - A.WilcoxAdélie Linux - -- Specification for HorizonScript (Horizon release 1.0) -- 2020-06-13 -+ Specification for HorizonScript (Horizon release 1.0) + JSON specification 1.0 -+ 2020-07-20 - - 20192020 - Adélie Linux -@@ -26,4 +27,5 @@ - &chap1; - &chap2; - &chap3; -+ &chap4; - -diff --git a/hscript/meta.cc b/hscript/meta.cc -index d79f3f5..1227e60 100644 ---- a/hscript/meta.cc -+++ b/hscript/meta.cc -@@ -722,6 +722,18 @@ const std::string my_arch(const Horizon::Script *script) { - return "pmmx"; - # elif defined(__x86_64__) - return "x86_64"; -+# elif defined(__mips64) -+# if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -+ return "mips64el"; -+# else /* If byte order is not defined, default to big endian. */ -+ return "mips64"; -+# endif -+# elif defined(__mips__) -+# if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -+ return "mipsel"; -+# else /* If byte order is not defined, default to big endian. */ -+ return "mips"; -+# endif - # else - # error Unknown architecture. - # endif -@@ -755,6 +767,10 @@ bool Bootloader::validate() const { - const static std::set valid_x86 = {"grub-bios", - "grub-efi"}; - return valid_x86.find(this->value()) != valid_x86.end(); -+ } else if(arch == "mips64" || arch == "mips" || -+ arch == "mips64el" || arch == "mipsel") { -+ const static std::set valid_mips = {}; -+ return valid_mips.find(this->value()) != valid_mips.end(); - } else { - output_error(pos, "bootloader: unknown architecture", arch); - return false; -diff --git a/hscript/script.cc b/hscript/script.cc -index 20ccbe5..6e436b7 100644 ---- a/hscript/script.cc -+++ b/hscript/script.cc -@@ -225,7 +225,12 @@ Script *Script::load(std::istream &sstream, const ScriptOptions &opts, - char nextline[SCRIPT_LINE_MAX]; - const std::string delim(" \t"); - int errors = 0, warnings = 0; -- std::string curr_name = fs::canonical(fs::path(name)); -+ std::string curr_name; -+ if(name == "/dev/stdin") { -+ curr_name = ""; -+ } else { -+ curr_name = fs::canonical(fs::path(name)); -+ } - std::set seen = {curr_name}; - bool inherit = false; - std::istream *my_stream = &sstream; -@@ -311,7 +316,7 @@ Script *Script::load(std::istream &sstream, const ScriptOptions &opts, - } - - if(my_stream->fail() && !my_stream->eof()) { -- output_error("installfile:" + std::to_string(lineno + 1), -+ output_error(curr_name + ":" + std::to_string(lineno + 1), - "line exceeds maximum length", - "Maximum line length is " + - std::to_string(SCRIPT_LINE_MAX)); -@@ -319,14 +324,14 @@ Script *Script::load(std::istream &sstream, const ScriptOptions &opts, - } - - if(my_stream->bad() && !my_stream->eof()) { -- output_error("installfile:" + std::to_string(lineno), -+ output_error(curr_name + ":" + std::to_string(lineno), - "I/O error while reading installfile", ""); - errors++; - } - - /* Ensure all required keys are present. */ - #define MISSING_ERROR(key) \ -- output_error(name, "expected value for key '" + std::string(key) + "'",\ -+ output_error(curr_name, "expected value for key '" + std::string(key) + "'",\ - "this key is required");\ - errors++; - -@@ -349,7 +354,7 @@ Script *Script::load(std::istream &sstream, const ScriptOptions &opts, - } - #undef MISSING_ERROR - -- output_log("parser", "0", name, -+ output_log("parser", "0", curr_name, - std::to_string(errors) + " error(s), " + - std::to_string(warnings) + " warning(s).", ""); - -diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc -index 6c2ea9e..92b81db 100644 ---- a/ui/qt5/horizonwizard.cc -+++ b/ui/qt5/horizonwizard.cc -@@ -352,6 +352,18 @@ HorizonWizard::HorizonWizard(QWidget *parent) : QWizard(parent) { - arch = pmmx; - # elif defined(__x86_64__) - arch = x86_64; -+# elif defined(__mips64) -+# if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -+ arch = mips64el; -+# else /* If byte order is not defined, default to big endian. */ -+ arch = mips64; -+# endif -+# elif defined(__mips__) -+# if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -+ arch = mipsel; -+# else /* If byte order is not defined, default to big endian. */ -+ arch = mips; -+# endif - # else - # error You are attempting to compile the Installation Environment UI \ - on an unknown architecture. Please add a definition to horizonwizard.hh, a \ -@@ -551,6 +563,19 @@ QString HorizonWizard::toHScript() { - lines << "signingkey https://distfiles.adelielinux.org/adelie/keys/x86-1@packages.adelielinux.org.pub"; - lines << "signingkey https://distfiles.adelielinux.org/adelie/keys/x86-2@packages.adelielinux.org.pub"; - break; -+ case mips64: -+ lines << "arch mips64"; -+ /* XXX: MIPS signing keys are needed before we ship anything. */ -+ break; -+ case mips: -+ lines << "arch mips"; -+ break; -+ case mips64el: -+ lines << "arch mips64el"; -+ break; -+ case mipsel: -+ lines << "arch mipsel"; -+ break; - case UnknownCPU: - /* no arch line. hopefully it's run on the target. */ - break; -@@ -608,13 +633,13 @@ QString HorizonWizard::toHScript() { - lines << "pkginstall adelie-base-posix firefox-esr libreoffice " - "thunderbird vlc kde x11 bluez sddm"; - lines << "svcenable bluetooth"; -- lines << "svcenable consolekit"; -+ lines << "svcenable elogind"; - lines << "svcenable sddm"; - break; - case Compact: - lines << "pkginstall adelie-base netsurf featherpad lxqt-desktop " - "abiword gnumeric sddm xorg-apps xorg-drivers xorg-server"; -- lines << "svcenable consolekit"; -+ lines << "svcenable elogind"; - lines << "svcenable sddm"; - break; - case TextOnly: -diff --git a/ui/qt5/horizonwizard.hh b/ui/qt5/horizonwizard.hh -index bf53ae0..8af9df7 100644 ---- a/ui/qt5/horizonwizard.hh -+++ b/ui/qt5/horizonwizard.hh -@@ -96,6 +96,10 @@ public: - enum Arch { - aarch64, - armv7, -+ mips, -+ mips64, -+ mipsel, -+ mips64el, - pmmx, - ppc, - ppc64, -- cgit v1.2.3-70-g09d2 From f856660ba48fa5244b82ad7481b0fe86e8cb0283 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 27 Sep 2020 06:23:19 +0000 Subject: user/horizon: Update to 0.9.5 --- user/horizon/APKBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user/horizon/APKBUILD') diff --git a/user/horizon/APKBUILD b/user/horizon/APKBUILD index 4fb711bbb..b17cf786e 100644 --- a/user/horizon/APKBUILD +++ b/user/horizon/APKBUILD @@ -1,7 +1,7 @@ # Contributor: A. Wilcox # Maintainer: A. Wilcox pkgname=horizon -pkgver=0.9.4 +pkgver=0.9.5 pkgrel=0 pkgdesc="Installation tools for Adélie Linux" url="https://horizon.adelielinux.org/" @@ -156,4 +156,4 @@ GLOBALS "$subpkgdir"/usr/share/xsessions/horizon.desktop } -sha512sums="202830a4e1313d0761484aeb65bef1e2a109917d4bec8f963672f4017a5fda2dac1383be6dfe2ed9aa3daa913cc62f816e88d2e760824957dbc18070ca901f76 horizon-0.9.4.tar.xz" +sha512sums="373cbf87aa468d0ea41abad07f61cdaa6088cfdcba13c0beff245dbd8e270aa42c3e301a22913299d148e829114bd0b5aa746541c4b4b0c7286da35015c54d88 horizon-0.9.5.tar.xz" -- cgit v1.2.3-70-g09d2 From c74cfa261ae990f848f79f1d00517d7cbba9395e Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 1 Oct 2020 00:27:01 +0000 Subject: user/horizon: Run update-boot when appropriate --- user/horizon/APKBUILD | 9 +++-- user/horizon/bootloader.patch | 94 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+), 3 deletions(-) create mode 100644 user/horizon/bootloader.patch (limited to 'user/horizon/APKBUILD') diff --git a/user/horizon/APKBUILD b/user/horizon/APKBUILD index b17cf786e..b49640561 100644 --- a/user/horizon/APKBUILD +++ b/user/horizon/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: A. Wilcox pkgname=horizon pkgver=0.9.5 -pkgrel=0 +pkgrel=1 pkgdesc="Installation tools for Adélie Linux" url="https://horizon.adelielinux.org/" arch="all" @@ -17,7 +17,9 @@ makedepends="bcnm-dev boost-dev cmake curl-dev eudev-dev libarchive-dev libcap-dev libx11-dev libxkbfile-dev qt5-qtbase-dev" subpackages="$pkgname-image $pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-qt5 $pkgname-tools $pkgname-wizard $pkgname-boot" -source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz" +source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz + bootloader.patch + " build() { if [ "$CBUILD" != "$CHOST" ]; then @@ -156,4 +158,5 @@ GLOBALS "$subpkgdir"/usr/share/xsessions/horizon.desktop } -sha512sums="373cbf87aa468d0ea41abad07f61cdaa6088cfdcba13c0beff245dbd8e270aa42c3e301a22913299d148e829114bd0b5aa746541c4b4b0c7286da35015c54d88 horizon-0.9.5.tar.xz" +sha512sums="373cbf87aa468d0ea41abad07f61cdaa6088cfdcba13c0beff245dbd8e270aa42c3e301a22913299d148e829114bd0b5aa746541c4b4b0c7286da35015c54d88 horizon-0.9.5.tar.xz +88e7c6df4dc2c8c7f6befd5f96f82267fefccb98d0c5e6c26c611323e505f7ee964dcfd2128dbe165c064d953e7afef2787ab49a6c4a834ffe8fd50c00eb26ae bootloader.patch" diff --git a/user/horizon/bootloader.patch b/user/horizon/bootloader.patch new file mode 100644 index 000000000..a09b4a603 --- /dev/null +++ b/user/horizon/bootloader.patch @@ -0,0 +1,94 @@ +From 3658104dcc622e69a64cf97fbc9ed477f3faed6c Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" +Date: Wed, 30 Sep 2020 19:19:59 -0500 +Subject: [PATCH] meta: Run update-boot when bootloader requested +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +If the user chooses no-boot or isn't installing Adélie, this will fail +quietly. But if the user is installing Adélie, this is necessary to +generate bootloader configuration. +--- + hscript/meta.cc | 26 ++++++++++++++++++++------ + 1 file changed, 20 insertions(+), 6 deletions(-) + +diff --git a/hscript/meta.cc b/hscript/meta.cc +index 4efdc80..84e851a 100644 +--- a/hscript/meta.cc ++++ b/hscript/meta.cc +@@ -823,7 +823,7 @@ bool Bootloader::execute() const { + << std::endl + << "chroot " << script->targetDirectory() + << " grub-install " << _device << std::endl; +- return true; ++ goto updateboot; + } + #ifdef HAS_INSTALL_ENV + if(run_command("/sbin/apk", +@@ -851,8 +851,8 @@ bool Bootloader::execute() const { + mount(nullptr, efipath.c_str(), nullptr, + MS_REMOUNT | MS_BIND | MS_RDONLY | MS_NOEXEC | MS_NODEV | + MS_NOSUID | MS_RELATIME, nullptr); ++ goto updateboot; + #endif /* HAS_INSTALL_ENV */ +- return true; /* LCOV_EXCL_LINE */ + } + else if(method == "grub-bios") { + if(script->options().test(Simulate)) { +@@ -861,7 +861,7 @@ bool Bootloader::execute() const { + << std::endl + << "chroot " << script->targetDirectory() + << " grub-install " << _device << std::endl; +- return true; ++ goto updateboot; + } + #ifdef HAS_INSTALL_ENV + if(run_command("/sbin/apk", +@@ -876,8 +876,8 @@ bool Bootloader::execute() const { + output_error(pos, "bootloader: failed to install GRUB"); + return false; + } ++ goto updateboot; + #endif /* HAS_INSTALL_ENV */ +- return true; /* LCOV_EXCL_LINE */ + } + else if(method == "iquik") { + output_error(pos, "bootloader: iQUIK is not yet supported"); +@@ -891,7 +891,7 @@ bool Bootloader::execute() const { + << "chroot " << script->targetDirectory() + << " grub-install --macppc-directory=/boot/grub " + << _device << std::endl; +- return true; ++ goto updateboot; + } + #ifdef HAS_INSTALL_ENV + if(run_command("/sbin/apk", +@@ -907,9 +907,23 @@ bool Bootloader::execute() const { + output_error(pos, "bootloader: failed to install GRUB"); + return false; + } ++ goto updateboot; + #endif /* HAS_INSTALL_ENV */ +- return true; /* LCOV_EXCL_LINE */ + } + + return false; /* LCOV_EXCL_LINE */ ++ ++updateboot: ++ /* We ignore if update-boot fails, in case the user has chosen no-boot. */ ++ if(script->options().test(Simulate)) { ++ std::cout << "chroot " << script->targetDirectory() ++ << " /usr/sbin/update-boot || true" << std::endl; ++ } ++#ifdef HAS_INSTALL_ENV ++ else { ++ run_command("chroot", ++ {script->targetDirectory(), "/usr/sbin/update-boot"}); ++ } ++#endif /* HAS_INSTALL_ENV */ ++ return true; + } +-- +2.25.4 + -- cgit v1.2.3-70-g09d2 From 6158245fe30195534a262bb8168425748774c5ca Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 8 Nov 2020 02:53:56 +0000 Subject: user/horizon: Update to 0.9.6 --- user/horizon/APKBUILD | 11 ++--- user/horizon/bootloader.patch | 94 ------------------------------------------- 2 files changed, 4 insertions(+), 101 deletions(-) delete mode 100644 user/horizon/bootloader.patch (limited to 'user/horizon/APKBUILD') diff --git a/user/horizon/APKBUILD b/user/horizon/APKBUILD index b49640561..8d2e480c2 100644 --- a/user/horizon/APKBUILD +++ b/user/horizon/APKBUILD @@ -1,8 +1,8 @@ # Contributor: A. Wilcox # Maintainer: A. Wilcox pkgname=horizon -pkgver=0.9.5 -pkgrel=1 +pkgver=0.9.6 +pkgrel=0 pkgdesc="Installation tools for Adélie Linux" url="https://horizon.adelielinux.org/" arch="all" @@ -17,9 +17,7 @@ makedepends="bcnm-dev boost-dev cmake curl-dev eudev-dev libarchive-dev libcap-dev libx11-dev libxkbfile-dev qt5-qtbase-dev" subpackages="$pkgname-image $pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-qt5 $pkgname-tools $pkgname-wizard $pkgname-boot" -source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz - bootloader.patch - " +source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz" build() { if [ "$CBUILD" != "$CHOST" ]; then @@ -158,5 +156,4 @@ GLOBALS "$subpkgdir"/usr/share/xsessions/horizon.desktop } -sha512sums="373cbf87aa468d0ea41abad07f61cdaa6088cfdcba13c0beff245dbd8e270aa42c3e301a22913299d148e829114bd0b5aa746541c4b4b0c7286da35015c54d88 horizon-0.9.5.tar.xz -88e7c6df4dc2c8c7f6befd5f96f82267fefccb98d0c5e6c26c611323e505f7ee964dcfd2128dbe165c064d953e7afef2787ab49a6c4a834ffe8fd50c00eb26ae bootloader.patch" +sha512sums="d5ffe9bd423e98272ca780c59e6e32c42b284c68f3a0bace07bd693d457e2edcd68d7fc03f638b545960154ea26b7c09feee083dbffa986da2a7cd418be9500f horizon-0.9.6.tar.xz" diff --git a/user/horizon/bootloader.patch b/user/horizon/bootloader.patch deleted file mode 100644 index a09b4a603..000000000 --- a/user/horizon/bootloader.patch +++ /dev/null @@ -1,94 +0,0 @@ -From 3658104dcc622e69a64cf97fbc9ed477f3faed6c Mon Sep 17 00:00:00 2001 -From: "A. Wilcox" -Date: Wed, 30 Sep 2020 19:19:59 -0500 -Subject: [PATCH] meta: Run update-boot when bootloader requested -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -If the user chooses no-boot or isn't installing Adélie, this will fail -quietly. But if the user is installing Adélie, this is necessary to -generate bootloader configuration. ---- - hscript/meta.cc | 26 ++++++++++++++++++++------ - 1 file changed, 20 insertions(+), 6 deletions(-) - -diff --git a/hscript/meta.cc b/hscript/meta.cc -index 4efdc80..84e851a 100644 ---- a/hscript/meta.cc -+++ b/hscript/meta.cc -@@ -823,7 +823,7 @@ bool Bootloader::execute() const { - << std::endl - << "chroot " << script->targetDirectory() - << " grub-install " << _device << std::endl; -- return true; -+ goto updateboot; - } - #ifdef HAS_INSTALL_ENV - if(run_command("/sbin/apk", -@@ -851,8 +851,8 @@ bool Bootloader::execute() const { - mount(nullptr, efipath.c_str(), nullptr, - MS_REMOUNT | MS_BIND | MS_RDONLY | MS_NOEXEC | MS_NODEV | - MS_NOSUID | MS_RELATIME, nullptr); -+ goto updateboot; - #endif /* HAS_INSTALL_ENV */ -- return true; /* LCOV_EXCL_LINE */ - } - else if(method == "grub-bios") { - if(script->options().test(Simulate)) { -@@ -861,7 +861,7 @@ bool Bootloader::execute() const { - << std::endl - << "chroot " << script->targetDirectory() - << " grub-install " << _device << std::endl; -- return true; -+ goto updateboot; - } - #ifdef HAS_INSTALL_ENV - if(run_command("/sbin/apk", -@@ -876,8 +876,8 @@ bool Bootloader::execute() const { - output_error(pos, "bootloader: failed to install GRUB"); - return false; - } -+ goto updateboot; - #endif /* HAS_INSTALL_ENV */ -- return true; /* LCOV_EXCL_LINE */ - } - else if(method == "iquik") { - output_error(pos, "bootloader: iQUIK is not yet supported"); -@@ -891,7 +891,7 @@ bool Bootloader::execute() const { - << "chroot " << script->targetDirectory() - << " grub-install --macppc-directory=/boot/grub " - << _device << std::endl; -- return true; -+ goto updateboot; - } - #ifdef HAS_INSTALL_ENV - if(run_command("/sbin/apk", -@@ -907,9 +907,23 @@ bool Bootloader::execute() const { - output_error(pos, "bootloader: failed to install GRUB"); - return false; - } -+ goto updateboot; - #endif /* HAS_INSTALL_ENV */ -- return true; /* LCOV_EXCL_LINE */ - } - - return false; /* LCOV_EXCL_LINE */ -+ -+updateboot: -+ /* We ignore if update-boot fails, in case the user has chosen no-boot. */ -+ if(script->options().test(Simulate)) { -+ std::cout << "chroot " << script->targetDirectory() -+ << " /usr/sbin/update-boot || true" << std::endl; -+ } -+#ifdef HAS_INSTALL_ENV -+ else { -+ run_command("chroot", -+ {script->targetDirectory(), "/usr/sbin/update-boot"}); -+ } -+#endif /* HAS_INSTALL_ENV */ -+ return true; - } --- -2.25.4 - -- cgit v1.2.3-70-g09d2