Skip to content

Commit 84b5f00

Browse files
authored
Merge branch 'testing' into package/perf/initial
2 parents 4f85b60 + 715ca4b commit 84b5f00

36 files changed

Lines changed: 451 additions & 97 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ runs:
6767
sudo chown root:root shellcheck
6868
sudo mv shellcheck "$install_dir"
6969
fi
70+
- name: Setup Python
71+
uses: actions/setup-python@v4
72+
with:
73+
python-version: '3.10'
7074
- name: Cache Python environment
7175
uses: actions/cache@v3
7276
id: cache-python
@@ -80,5 +84,6 @@ runs:
8084
run: |
8185
if [[ "$CACHE_HIT" != 'true' ]]; then
8286
python -m pip install --upgrade pip
87+
pip install wheel
8388
pip install -r requirements.txt
8489
fi

.github/workflows/pr.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ jobs:
88
steps:
99
- name: Checkout the Git repository
1010
uses: actions/checkout@v3
11-
- name: Setup Python
12-
uses: actions/setup-python@v4
13-
with:
14-
python-version: '3.8'
1511
- name: Setup Toltec dependencies
1612
uses: ./.github/actions/setup
1713
- name: Check formatting
@@ -25,10 +21,6 @@ jobs:
2521
steps:
2622
- name: Checkout the Git repository
2723
uses: actions/checkout@v3
28-
- name: Setup Python
29-
uses: actions/setup-python@v4
30-
with:
31-
python-version: '3.8'
3224
- name: Setup Toltec dependencies
3325
uses: ./.github/actions/setup
3426
- name: Build packages

.github/workflows/stable.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ jobs:
1010
steps:
1111
- name: Checkout the Git repository
1212
uses: actions/checkout@v3
13-
- name: Setup Python
14-
uses: actions/setup-python@v4
15-
with:
16-
python-version: '3.8'
1713
- name: Setup Toltec dependencies
1814
uses: ./.github/actions/setup
1915
- name: Build packages

.github/workflows/testing.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ jobs:
1010
steps:
1111
- name: Checkout the Git repository
1212
uses: actions/checkout@v3
13-
- name: Setup Python
14-
uses: actions/setup-python@v4
15-
with:
16-
python-version: '3.8'
1713
- name: Setup Toltec dependencies
1814
uses: ./.github/actions/setup
1915
- name: Build packages

docs/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Before running the build, make sure you have all the required dependencies:
1818

1919
* Docker
2020
* bsdtar
21-
* Python ⩾ 3.8
21+
* Python 3.10
2222

2323
You’ll also need all the Python modules listed in [requirements.txt](../requirements.txt) (install them by running `pip install --user -r requirements.txt` or using a [virtual environment](https://docs.python.org/3/tutorial/venv.html)).
2424

package/7zip/package

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
# Copyright (c) 2021 The Toltec Contributors
3+
# SPDX-License-Identifier: MIT
4+
pkgnames=(7zip)
5+
pkgdesc="A file archiver with a high compression ratio."
6+
url="https://www.7-zip.org/"
7+
section="util"
8+
pkgver=22.01-1
9+
timestamp=2022-07-15T00:00:00Z
10+
maintainer="Eeems <eeems@eeems.email>"
11+
license=LGPL-2.1-or-later
12+
source=(
13+
https://www.7-zip.org/a/7z2201-linux-arm.tar.xz
14+
)
15+
sha256sums=(
16+
428c11efd91fe1809c4750e8cd5d6eddfbed2826d8a5399ffcacb849f0d21cf8
17+
)
18+
19+
package() {
20+
install -dm 755 "$pkgdir"/opt/usr/share/licenses/7zip
21+
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/7zz
22+
cp -dr --no-preserve='ownership' "$srcdir"/License.txt "$pkgdir"/opt/usr/share/licenses/7zip
23+
}

package/display/package

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
archs=(rm1 rm2)
66
pkgnames=(display rm2fb-client)
7-
timestamp=2022-10-28T15:36:16Z
7+
timestamp=2023-04-16T20:53:38Z
88
maintainer="raisjn <of.raisjn@gmail.com>"
99
license=MIT
1010
url="https://github.com/ddvk/remarkable2-framebuffer"
11-
pkgver=1:0.0.27-1
11+
pkgver=1:0.0.31-2
1212
_release="${pkgver%-*}"
1313
_release="v${_release#*:}"
1414
_libver=1.0.1
@@ -23,7 +23,7 @@ source=(
2323
rm2fb-preload.env
2424
)
2525
sha256sums=(
26-
f4bf553f2bc868a04452f67881d7a1053f791da7d29fecbb2c5fc4075facf282
26+
c27081be9b4fa000e41489b42d53fb8254bd8bf348a34756799488827dbc0f0b
2727
SKIP
2828
SKIP
2929
SKIP
@@ -64,12 +64,19 @@ display() {
6464
configure() {
6565
if [[ $arch = rm2 ]]; then
6666
systemctl daemon-reload
67-
systemctl enable rm2fb --now
68-
# Restart xochitl if it's running
69-
if systemctl --quiet is-active xochitl; then
70-
# Reset the crash count so we don't trigger remarkable-fail
71-
echo "0" > /tmp/crashnum
72-
systemctl restart xochitl
67+
if systemctl enable rm2fb --now; then
68+
# Restart xochitl if it's running
69+
if systemctl --quiet is-active xochitl; then
70+
# Reset the crash count so we don't trigger remarkable-fail
71+
echo "0" > /tmp/crashnum
72+
systemctl restart xochitl
73+
fi
74+
else
75+
systemctl disable rm2fb --now
76+
echo "Failed to start rm2fb. Keeping it disabled for now."
77+
echo "Please check the logs and open an issue:"
78+
echo " https://github.com/toltec-dev/toltec/issues/new"
79+
exit 1
7380
fi
7481
fi
7582
}

package/fbink/package

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
pkgnames=(fbink fbdepth fbink-doom)
66
url=https://github.com/NiLuJe/FBInk
7-
pkgver=1.24.0-1
8-
timestamp=2021-03-25T23:41:13Z
7+
pkgver=1.25.0-1
8+
timestamp=2022-12-05T02:50:38Z
99
maintainer="Mattéo Delabre <spam@delab.re>"
1010
license=GPL-3.0
1111
installdepends=(display)

package/kernelctl/package

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
pkgnames=(kernelctl)
66
pkgdesc="Manage aftermarket kernels"
77
url=https://toltec-dev.org/
8-
pkgver=0.1-5
8+
pkgver=0.1-6
99
timestamp=2022-11-12T00:00Z
1010
section="utils"
1111
maintainer="Salvatore Stella <etn45p4m@gmail.com>"
@@ -31,3 +31,18 @@ configure() {
3131
kernelctl backup vanilla
3232
fi
3333
}
34+
35+
preremove() {
36+
if [[ "$(kernelctl show | tail -n 1 | grep "vanilla-$(< /etc/version)")" == "" ]]; then
37+
if [[ "$(kernelctl list | tail -n +2 | awk '{print $2}' | grep "vanilla-$(< /etc/version)")" == "" ]]; then
38+
echo "Unable to restore default kernel."
39+
echo "To force removal, you can run the following:"
40+
echo " opkg remove --force-remove kernelctl"
41+
echo "Warning: This will not leave you in a stock state"
42+
exit 1
43+
else
44+
echo "Restoring default kernel"
45+
kernelctl set default
46+
fi
47+
fi
48+
}

package/koreader/package

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
pkgnames=(koreader)
66
pkgdesc="Ebook reader supporting PDF, DjVu, EPUB, FB2 and many more formats"
77
url=https://github.com/koreader/koreader
8-
pkgver=2022.08-1
9-
timestamp=2022-07-31T13:31:10Z
8+
pkgver=2023.06.1-1
9+
timestamp=2023-07-09T08:17:26Z
1010
section="readers"
1111
maintainer="raisjn <of.raisjn@gmail.com>"
1212
license=AGPL-3.0-or-later
@@ -21,7 +21,7 @@ source=(
2121
koreader
2222
)
2323
sha256sums=(
24-
57abc32b2af8c5d7765cf24fba8127a3dba9272d44d8abdc38311d8888d62ef6
24+
a24f334983060b5cfee7b87484529b77fe4adffd646e8fd55447750e73309ef0
2525
SKIP
2626
SKIP
2727
SKIP
@@ -44,6 +44,11 @@ package() {
4444
}
4545

4646
configure() {
47+
# This file can cause issues with startup when moving from 2022.08 to another version
48+
if [ -f /opt/koreader/cache/fontlist/fontinfo.dat ]; then
49+
rm /opt/koreader/cache/fontlist/fontinfo.dat
50+
fi
51+
4752
systemctl daemon-reload
4853

4954
if ! is-enabled "$pkgname.service"; then

0 commit comments

Comments
 (0)