summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/apk-tools/APKBUILD2
-rw-r--r--system/apk-tools/deep.patch106
-rw-r--r--system/coreutils/APKBUILD1
-rw-r--r--system/easy-kernel/APKBUILD2
-rw-r--r--system/easy-kernel/config-ppc7
-rw-r--r--system/openrc/APKBUILD11
-rw-r--r--system/openrc/keymaps.initd20
-rw-r--r--system/util-linux/APKBUILD22
8 files changed, 59 insertions, 112 deletions
diff --git a/system/apk-tools/APKBUILD b/system/apk-tools/APKBUILD
index d9e29a241..78478e51e 100644
--- a/system/apk-tools/APKBUILD
+++ b/system/apk-tools/APKBUILD
@@ -70,6 +70,6 @@ static() {
}
sha512sums="1b190cfd04c69369bd4f2b708d4df0f8cf2937e1580c95138fd2c2257e7604d015deaca10a9fe0da6742981caadb6b067c15e417a1951866f781b8a5c71c98ee apk-tools-2.10.3.tar.xz
-a89007da158cbca67d5c18df2f117958604d69bf49251ccd11052457d5926eebe3d6573dfca238bd246e64661a7e373b1853fd226e4cca34c148195e688ae846 deep.patch
+059f0368b096c53357db567bf720f049cf19a88dbf10dc2496a739dfe332a6487b87f07056d7cf6f0c8a385782821547d4aba8c393591c4070838f1c98819dda deep.patch
53d446734d32341cbd9ca00aedcd65d4d99220da354a9339837a6c79609a321f61ae917fb3cd9d4bffebcfc171d06c0f0d315e29a2d16285545c4fa085a75639 list.patch
746d00ce2af554a25db7ecea2b0a4d8f7399d2560efb6bf59ea144012d0163d3e0bad84c799bd706e8be6c0a543d4e35728d6beb269fddbbea626384009129cb pmmx.patch"
diff --git a/system/apk-tools/deep.patch b/system/apk-tools/deep.patch
index f315339cc..b9e361717 100644
--- a/system/apk-tools/deep.patch
+++ b/system/apk-tools/deep.patch
@@ -1,84 +1,50 @@
-From e61635ada7901763919caeaa01fa62ead3f6e97f Mon Sep 17 00:00:00 2001
-From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
-Date: Fri, 31 May 2019 21:32:02 -0500
-Subject: [PATCH 1/1] upgrade: add --deep option to upgrade everything
+From b0be9f610c02bb2d5e681a3904940d311e9de298 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
+Date: Mon, 3 Jun 2019 14:53:46 +0300
+Subject: solver: fix common dependency merging to inherit pinning and flags
+Notably this fixes occasional issues when doing upgrade with multiple
+versions of same packages. Without this the upgrade flag is not always
+propagated properly down the dependency chain.
---
- src/apk_solver.h | 1 +
- src/solver.c | 10 ++++++++++
- src/upgrade.c | 5 +++++
- 3 files changed, 16 insertions(+)
+ src/solver.c | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
-diff --git a/src/apk_solver.h b/src/apk_solver.h
-index b8b072d..908b3fd 100644
---- a/src/apk_solver.h
-+++ b/src/apk_solver.h
-@@ -35,6 +35,7 @@ struct apk_changeset {
- #define APK_SOLVERF_REINSTALL 0x0004
- #define APK_SOLVERF_LATEST 0x0008
- #define APK_SOLVERF_IGNORE_CONFLICT 0x0010
-+#define APK_SOLVERF_DEEP 0x0020
-
- void apk_solver_set_name_flags(struct apk_name *name,
- unsigned short solver_flags,
diff --git a/src/solver.c b/src/solver.c
-index e10cf8b..8437d61 100644
+index e10cf8b..2121dd9 100644
--- a/src/solver.c
+++ b/src/solver.c
-@@ -40,6 +40,7 @@ struct apk_solver_state {
- unsigned int pinning_inherit;
- unsigned int default_repos;
- unsigned ignore_conflict : 1;
-+ unsigned deep_upgrade : 1;
- };
-
- static struct apk_provider provider_none = {
-@@ -510,6 +511,14 @@ static int compare_providers(struct apk_solver_state *ss,
+@@ -462,6 +462,8 @@ static void reconsider_name(struct apk_solver_state *ss, struct apk_name *name)
+ name->name, name0->name);
+ name0->ss.requirers++;
+ name_requirers_changed(ss, name0);
++ foreach_array_item(p, name0->providers)
++ inherit_pinning_and_flags(ss, p->pkg, pkg);
+ }
+ }
+ }
+@@ -510,7 +512,6 @@ static int compare_providers(struct apk_solver_state *ss,
unsigned int solver_flags;
int r;
-+ /* In deep upgrades, always return the greater version */
-+ if (ss->deep_upgrade)
-+ switch (apk_version_compare_blob(*pA->version, *pB->version)) {
-+ case APK_VERSION_LESS:
-+ return -1;
-+ case APK_VERSION_GREATER:
-+ return 1;
-+ }
-
+-
/* Prefer existing package */
if (pkgA == NULL || pkgB == NULL)
-@@ -1006,6 +1015,7 @@ restart:
- ss->changeset = changeset;
- ss->default_repos = apk_db_get_pinning_mask_repos(db, APK_DEFAULT_PINNING_MASK);
- ss->ignore_conflict = !!(solver_flags & APK_SOLVERF_IGNORE_CONFLICT);
-+ ss->deep_upgrade = !!(solver_flags & APK_SOLVERF_DEEP);
- list_init(&ss->dirty_head);
- list_init(&ss->unresolved_head);
-
-diff --git a/src/upgrade.c b/src/upgrade.c
-index 14457b5..e48d8e3 100644
---- a/src/upgrade.c
-+++ b/src/upgrade.c
-@@ -38,6 +38,9 @@ static int option_parse_applet(void *ctx, struct apk_db_options *dbopts, int opt
- case 'a':
- uctx->solver_flags |= APK_SOLVERF_AVAILABLE;
- break;
-+ case 'd':
-+ uctx->solver_flags |= APK_SOLVERF_DEEP;
-+ break;
- case 'l':
- uctx->solver_flags |= APK_SOLVERF_LATEST;
- break;
-@@ -59,6 +62,8 @@ static const struct apk_option options_applet[] = {
- { 0x10000, "no-self-upgrade",
- "Do not do early upgrade of 'apk-tools' package" },
- { 0x10001, "self-upgrade-only", "Only do self-upgrade" },
-+ { 'd', "deep",
-+ "Include dependencies when upgrading world" },
- };
+ return (pkgA != NULL) - (pkgB != NULL);
+@@ -675,8 +676,11 @@ static void select_package(struct apk_solver_state *ss, struct apk_name *name)
- static const struct apk_option_group optgroup_applet = {
+ if (name->ss.requirers || name->ss.has_iif) {
+ foreach_array_item(p, name->providers) {
+- dbg_printf(" consider "PKG_VER_FMT" iif_triggered=%d, tag_ok=%d, selectable=%d, provider_priority=%d, installed=%d\n",
+- PKG_VER_PRINTF(p->pkg), p->pkg->ss.iif_triggered, p->pkg->ss.tag_ok, p->pkg->ss.pkg_selectable,
++ dbg_printf(" consider "PKG_VER_FMT" iif_triggered=%d, tag_ok=%d, selectable=%d, available=%d, flags=0x%x, provider_priority=%d, installed=%d\n",
++ PKG_VER_PRINTF(p->pkg),
++ p->pkg->ss.iif_triggered, p->pkg->ss.tag_ok,
++ p->pkg->ss.pkg_selectable, p->pkg->ss.pkg_available,
++ p->pkg->ss.solver_flags,
+ p->pkg->provider_priority, p->pkg->ipkg != NULL);
+ /* Ensure valid pinning and install-if trigger */
+ if (name->ss.requirers == 0 &&
--
-2.21.0
+cgit v1.2.1
diff --git a/system/coreutils/APKBUILD b/system/coreutils/APKBUILD
index 061d2bc26..e8819ca27 100644
--- a/system/coreutils/APKBUILD
+++ b/system/coreutils/APKBUILD
@@ -37,6 +37,7 @@ build() {
--enable-nls \
--without-gmp \
--enable-no-install-program=hostname,su,kill,uptime \
+ --enable-install-program=arch \
--with-packager="Adélie" \
--with-packager-bug-reports="https://bts.adelielinux.org/" \
--enable-single-binary=symlinks
diff --git a/system/easy-kernel/APKBUILD b/system/easy-kernel/APKBUILD
index c4db68544..8180307f5 100644
--- a/system/easy-kernel/APKBUILD
+++ b/system/easy-kernel/APKBUILD
@@ -137,7 +137,7 @@ bfe606f208894cc572fb98f323e26956c69b4f75febd4a9b500514cbb2aa70bddb2aba05b3f16a5f
6ede43cf169e79d8a08f7a9d79bb4bdf15618ec450b42a67a53a75bc5f5cb4d5a8c82d2b95c27a80567999876d103091bc104104f0494ca34707b5ccae5da725 0502-muqss-smt-fix.patch
e41d9111219342ad13367902242444ecdd847a93575c3f9709d6c6a075bc650f4a15be9db1a8798435fc0a0b56d41705829bfe0d2c2d88f8d1c28931e27ef5be ast-endianness.patch
19be54c3f635cca893b668987e5db6931e48ea8ee55fe8ba2fc9103f3f116346f2227d3dadb9fbf13b3444c7085e5db5785d3161a1544d37254403ca90bc757a config-ppc64
-b68ccd10b767dc9d68bae4bdc9939d3132198fa03dc94b8bb815c305825880a353f04cdfad2f2478e5f1682a506506c51e2e4a298dd2db40eae132b238de127d config-ppc
+e9ad73259f2138c1c1506c1627b8f42a525505a1d16ca4cdc1dad4a381a462d9946f2a8191c40ee18fe5010fb8465316d665f60231fb79f0be9cc064eeb82b60 config-ppc
124baf02726630f8ad3c066cdcb5b0273b6c0ce796af70a0913cb447cd452f4dde34b2070c5fe87c312cbe019cb1c1b334ae3049f429cfb3bcdec7267aba89fd config-x86_64
bb7debbed592c27fd6aceeeab0f92fb878740b34f3c65b7968008c3209924d0daf484509572d350ce2ec757d3a541c50812b30c1a8c3010eaeeac5e560546927 config-pmmx
20d0e09d339d534ce93c156e1e2c630da2bc55e88467481b8e89074773a3ebabba76503a05c51ad07ffa0219953b49f5849f0d9839bfe040dc006506c8adb3bb config-aarch64
diff --git a/system/easy-kernel/config-ppc b/system/easy-kernel/config-ppc
index fcc0086a6..8ae4b0701 100644
--- a/system/easy-kernel/config-ppc
+++ b/system/easy-kernel/config-ppc
@@ -1594,7 +1594,7 @@ CONFIG_SATA_ULI=y
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
-# CONFIG_PATA_CMD64X is not set
+CONFIG_PATA_CMD64X=m
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
@@ -1627,12 +1627,13 @@ CONFIG_PATA_WINBOND=y
#
# PIO-only SFF controllers
#
-# CONFIG_PATA_CMD640_PCI is not set
+CONFIG_PATA_CMD640_PCI=m
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
CONFIG_PATA_PCMCIA=y
-# CONFIG_PATA_PLATFORM is not set
+CONFIG_PATA_PLATFORM=m
+CONFIG_PATA_OF_PLATFORM=m
# CONFIG_PATA_RZ1000 is not set
#
diff --git a/system/openrc/APKBUILD b/system/openrc/APKBUILD
index d48ee52f6..fcec2abeb 100644
--- a/system/openrc/APKBUILD
+++ b/system/openrc/APKBUILD
@@ -2,7 +2,7 @@
pkgname=openrc
pkgver=0.24.1
_ver=${pkgver/_git*/}
-pkgrel=6
+pkgrel=7
pkgdesc="OpenRC manages the services, startup and shutdown of a host"
url="https://github.com/OpenRC/openrc"
arch="all"
@@ -27,7 +27,6 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/OpenRC/openrc/archive/$pkgve
openrc.logrotate
hostname.initd
hwdrivers.initd
- keymaps.initd
modules.initd
modloop.initd
modloop.confd
@@ -73,6 +72,13 @@ package() {
# we do not use their default networking stuff
rm "$pkgdir"/etc/conf.d/network
+ rm "$pkgdir"/etc/init.d/network
+
+ # we use console-setup for keymaps
+ rm "$pkgdir"/etc/init.d/keymaps
+
+ # we use gettys-openrc for TTY
+ rm "$pkgdir"/etc/init.d/agetty
install -Dm644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname"
install -d "$pkgdir"/etc/local.d "$pkgdir"/run
@@ -90,7 +96,6 @@ d54630d40a2d6b10a325cb012d4efcda997a60c008ca953ce5d60059d3f267308a59dabddf93a5fc
12bb6354e808fbf47bbab963de55ee7901738b4a912659982c57ef2777fff9a670e867fcb8ec316a76b151032c92dc89a950d7d1d835ef53f753a8f3b41d2cec openrc.logrotate
99b542c0903ad6874b8c308b2e0660a4fe2ff9db962dfec65325cd12c368873a2ae800d5e6d42dc4deff775e1d5c0068869eb72581f7ab16e88d5738afe1d3dd hostname.initd
c06eac7264f6cc6888563feeae5ca745aae538323077903de1b19102e4f16baa34c18b8c27af5dd5423e7670834e2261e9aa55f2b1ec8d8fdc2be105fe894d55 hwdrivers.initd
-584ecbbcecb284527d7616790b6e337ace610e4b3cedf2993eca294bfbef54674aeaee3078b6c17d746a0c48b5a64a813c3534136915947e6f62a6fa206cd3ca keymaps.initd
b04058ec630e19de0bafefe06198dc1bff8c8d5d2c89e4660dd83dda8bb82a76cdb1d8661cce88e4a406aa6b4152e17efff52d3eb18ffaec0751d0b6cdbcc48a modules.initd
92c0245ba4d7cc6828a9b68510fb541cf3b21b9b844a858336af60e84d1db62ddb4471aad0d82ef05d639335a81014f8350a71a746c2bcd90697daa6a8c03408 modloop.initd
aa702a7da8e6c0e5d8738febaf6b4e4cb021b30ce5c1809b530abf2b36739079446b16fc054740da8d86ed099942cf5deed6597cedb64c058f3def587a8b4689 modloop.confd
diff --git a/system/openrc/keymaps.initd b/system/openrc/keymaps.initd
deleted file mode 100644
index 24d1e8777..000000000
--- a/system/openrc/keymaps.initd
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/sbin/openrc-run
-
-description="Applies a keymap for the consoles."
-
-depend()
-{
- need localmount
- keyword -openvz -prefix -uml -vserver -xenu -lxc
-}
-
-start() {
- [ -z "$KEYMAP" ] && return
- ebegin "Setting keymap"
- zcat "$KEYMAP" | loadkmap
- eend $?
-}
-
-stop() {
- return
-}
diff --git a/system/util-linux/APKBUILD b/system/util-linux/APKBUILD
index f12fb48dc..fb2a5f734 100644
--- a/system/util-linux/APKBUILD
+++ b/system/util-linux/APKBUILD
@@ -9,7 +9,7 @@ case $pkgver in
*.*) _v=$pkgver;;
esac
-pkgrel=0
+pkgrel=1
pkgdesc="Official Linux system management utilities"
url="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
arch="all"
@@ -19,13 +19,15 @@ depends=""
makedepends_build="autoconf automake libtool"
makedepends_host="zlib-dev ncurses-dev linux-headers libcap-ng-dev utmps-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion:bashcomp:noarch
- libuuid libfdisk $pkgname-lang"
+ libuuid $pkgname-lang"
makedepends="$makedepends_build $makedepends_host"
replaces="e2fsprogs util-linux-ng sfdisk cfdisk findmnt mcookie blkid setpriv
- libblkid libsmartcols libmount"
-provides="sfdisk=$pkgver-$pkgrel cfdisk=$pkgver-$pkgrel findmnt=$pkgver-$pkgrel
- mcookie=$pkgver-$pkgrel blkid=$pkgver-$pkgrel libblkid=$pkgver-$pkgrel
- libmount=$pkgver-$pkgrel libsmartcols=$pkgver-$pkgrel"
+ libblkid libsmartcols libmount libfdisk"
+provides="sfdisk=$pkgver-r$pkgrel cfdisk=$pkgver-r$pkgrel
+ findmnt=$pkgver-r$pkgrel mcookie=$pkgver-r$pkgrel
+ blkid=$pkgver-r$pkgrel libblkid=$pkgver-r$pkgrel
+ libmount=$pkgver-r$pkgrel libsmartcols=$pkgver-r$pkgrel
+ libfdisk=$pkgver-r$pkgrel"
source="https://www.kernel.org/pub/linux/utils/$pkgname/v${_v}/$pkgname-$pkgver.tar.xz
ttydefaults.h
"
@@ -92,13 +94,5 @@ libmount() {
mv "$pkgdir"/lib/libmount.so.* "$subpkgdir"/lib/
}
-libfdisk() {
- pkgdesc="Partitioning library for fdisk-like programs"
- license="LGPL.2.1+"
- depends=""
- mkdir -p "$subpkgdir"/lib
- mv "$pkgdir"/lib/libfdisk.so.* "$subpkgdir"/lib/
-}
-
sha512sums="ac88790a0272366b384b54df19cb28318014d98819d5d96aa05528ff17ab57a8c66d012a2f1b59caca4c5d4ea669e8c041e1123517c1f1c2d9960ef701aaf749 util-linux-2.33.2.tar.xz
876bb9041eca1b2cca1e9aac898f282db576f7860aba690a95c0ac629d7c5b2cdeccba504dda87ff55c2a10b67165985ce16ca41a0694a267507e1e0cafd46d9 ttydefaults.h"