Skip to content

Commit 2d7e065

Browse files
committed
pkg: phosh: gnome-software-mobile: fix category crash
Signed-off-by: Danct12 <danct12@disroot.org>
1 parent 0c1a7b0 commit 2d7e065

File tree

2 files changed

+77
-3
lines changed

2 files changed

+77
-3
lines changed

PKGBUILDS/phosh/gnome-software-mobile/PKGBUILD

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
pkgname=gnome-software-mobile
77
pkgver=3.36.1
8-
pkgrel=1
8+
pkgrel=2
99
pkgdesc="GNOME Software Tools - Purism fork"
1010
url="https://source.puri.sm/Librem5/gnome-software"
1111
arch=(x86_64 armv7h aarch64)
@@ -14,11 +14,14 @@ makedepends=(appstream-glib gnome-desktop libpackagekit-glib flatpak fwupd ostre
1414
docbook-xsl git gobject-introspection gspell gtk-doc meson valgrind
1515
gnome-online-accounts libxmlb libhandy)
1616
_commit=abc45148c37fc511baacffd3c9c9bbeb65cc77d8
17-
source=(https://source.puri.sm/Librem5/gnome-software/-/archive/$_commit/gnome-software-$_commit.tar.bz2)
18-
sha256sums=('703867c44cc6ada9a7782be77aa19e000005e0723a3465dd730b67b879064043')
17+
source=(https://source.puri.sm/Librem5/gnome-software/-/archive/$_commit/gnome-software-$_commit.tar.bz2
18+
f7dfc58c156044b9434f9d1800450e8b50a51dd2.patch)
19+
sha256sums=('703867c44cc6ada9a7782be77aa19e000005e0723a3465dd730b67b879064043'
20+
'b77ab9802e587f4cf7c834c49950d2ca4e26f135494e43bb140b5ea3665d6cbf')
1921

2022
prepare() {
2123
cd gnome-software-$_commit
24+
patch -p1 < ../f7dfc58c156044b9434f9d1800450e8b50a51dd2.patch
2225
}
2326

2427
build() {
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
From f7dfc58c156044b9434f9d1800450e8b50a51dd2 Mon Sep 17 00:00:00 2001
2+
From: Adrien Plazas <kekun.plazas@laposte.net>
3+
Date: Mon, 19 Oct 2020 16:26:55 +0200
4+
Subject: [PATCH] category-page: Fix the UI template
5+
6+
It was left broken by a previous commit.
7+
---
8+
src/gs-category-page.ui | 19 +------------------
9+
1 file changed, 1 insertion(+), 18 deletions(-)
10+
11+
diff --git a/src/gs-category-page.ui b/src/gs-category-page.ui
12+
index f37e8e377..df21469bf 100644
13+
--- a/src/gs-category-page.ui
14+
+++ b/src/gs-category-page.ui
15+
@@ -104,8 +104,7 @@
16+
<property name="margin_start">24</property>
17+
<property name="margin_end">24</property>
18+
<property name="margin_top">36</property>
19+
- <property name="row_spacing">12</property>
20+
- <property name="column_spacing">9</property>
21+
+ <property name="spacing">9</property>
22+
<child>
23+
<object class="GtkLabel" id="subcats_filter_label">
24+
<property name="visible">True</property>
25+
@@ -116,10 +115,6 @@
26+
<relation target="subcats_filter_button" type="label-for"/>
27+
</accessibility>
28+
</object>
29+
- <packing>
30+
- <property name="left_attach">0</property>
31+
- <property name="top_attach">0</property>
32+
- </packing>
33+
</child>
34+
<child>
35+
<object class="GtkMenuButton" id="subcats_filter_button">
36+
@@ -159,10 +154,6 @@
37+
<class name="text-button"/>
38+
</style>
39+
</object>
40+
- <packing>
41+
- <property name="left_attach">1</property>
42+
- <property name="top_attach">0</property>
43+
- </packing>
44+
</child>
45+
<child>
46+
<object class="GtkLabel" id="subcats_sort_label">
47+
@@ -174,10 +165,6 @@
48+
<relation target="subcats_sort_button" type="label-for"/>
49+
</accessibility>
50+
</object>
51+
- <packing>
52+
- <property name="left_attach">0</property>
53+
- <property name="top_attach">1</property>
54+
- </packing>
55+
</child>
56+
<child>
57+
<object class="GtkMenuButton" id="subcats_sort_button">
58+
@@ -220,10 +207,6 @@
59+
<class name="text-button"/>
60+
</style>
61+
</object>
62+
- <packing>
63+
- <property name="left_attach">1</property>
64+
- <property name="top_attach">1</property>
65+
- </packing>
66+
</child>
67+
</object>
68+
</child>
69+
--
70+
2.26.2
71+

0 commit comments

Comments
 (0)