Skip to content

Commit f30b304

Browse files
authored
Fix Flatpak build (#396)
1 parent 7f4dc15 commit f30b304

File tree

3 files changed

+171
-133
lines changed

3 files changed

+171
-133
lines changed

.github/workflows/flatpak.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name: CI
66
jobs:
77
flatpak-builder:
88
name: "Flatpak Builder"
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-latest
1010
container:
11-
image: bilelmoussaoui/flatpak-github-actions:elementary-juno
11+
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
1212
options: --privileged
1313
steps:
1414
- uses: actions/checkout@v4

build-aux/com.github.alecaddd.sequeler.json

Lines changed: 86 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
21
{
3-
"app-id": "com.github.alecaddd.sequeler",
2+
"id": "com.github.alecaddd.sequeler",
43
"runtime": "org.gnome.Platform",
5-
"runtime-version": "40",
4+
"runtime-version": "48",
65
"sdk": "org.gnome.Sdk",
76
"base": "io.elementary.BaseApp",
8-
"base-version": "juno-20.08",
7+
"base-version": "circe-24.08",
98
"command": "com.github.alecaddd.sequeler",
109
"finish-args": [
11-
"--share=ipc", "--socket=fallback-x11",
10+
"--share=ipc",
11+
"--socket=fallback-x11",
1212
"--socket=wayland",
1313
"--talk-name=org.freedesktop.secrets",
1414
"--metadata=X-DConf=migrate-path=/com/github/alecaddd/sequeler/",
@@ -25,32 +25,25 @@
2525
"*.a",
2626
"*.la"
2727
],
28-
"modules": [{
29-
"name": "libxml2",
30-
"build-options": {
31-
"config-opts": [
32-
"--with-python=no"
33-
]
34-
},
35-
"sources": [{
36-
"type": "archive",
37-
"url": "https://github.com/GNOME/libxml2/archive/v2.9.10.tar.gz",
38-
"sha256": "3bdffb4d728e4dc135b3210bf2a2cebb76548b820a5617c68abb7b83654066dd"
39-
}]
40-
},
28+
"build-options": {
29+
"libdir": "/app/lib"
30+
},
31+
"modules": [
4132
{
4233
"name": "gtksourceview",
4334
"buildsystem": "meson",
4435
"build-options": {
4536
"config-opts": [
46-
"-Dgtk-doc=false"
37+
"-Dgtk_doc=false"
4738
]
4839
},
49-
"sources": [{
50-
"type": "archive",
51-
"url": "https://download.gnome.org/sources/gtksourceview/4.8/gtksourceview-4.8.4.tar.xz",
52-
"sha256": "7ec9d18fb283d1f84a3a3eff3b7a72b09a10c9c006597b3fbabbb5958420a87d"
53-
}]
40+
"sources": [
41+
{
42+
"type": "archive",
43+
"url": "https://download.gnome.org/sources/gtksourceview/4.8/gtksourceview-4.8.4.tar.xz",
44+
"sha256": "7ec9d18fb283d1f84a3a3eff3b7a72b09a10c9c006597b3fbabbb5958420a87d"
45+
}
46+
]
5447
},
5548
{
5649
"name": "libgda",
@@ -59,40 +52,49 @@
5952
"--with-java=no",
6053
"--with-jni=no",
6154
"--with-oracle=no"
62-
]
55+
],
56+
"cflags": "-Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration"
6357
},
64-
"sources": [{
65-
"type": "archive",
66-
"url": "https://download-fallback.gnome.org/sources/libgda/5.2/libgda-5.2.9.tar.xz",
67-
"sha256": "59caed8ca72b1ac6437c9844f0677f8a296d52cfd1c0049116026abfb1d87d9b"
68-
}],
69-
"modules": [{
58+
"sources": [
59+
{
60+
"type": "archive",
61+
"url": "https://download.gnome.org/sources/libgda/5.2/libgda-5.2.9.tar.xz",
62+
"sha256": "59caed8ca72b1ac6437c9844f0677f8a296d52cfd1c0049116026abfb1d87d9b"
63+
}
64+
],
65+
"modules": [
66+
{
7067
"name": "postgresql-libs",
7168
"build-options": {
7269
"config-opts": [
7370
"--with-python=no",
7471
"--with-perl=no",
7572
"--with-libxml",
7673
"--with-openssl"
77-
]
74+
],
75+
"cflags": "-Wno-error=incompatible-pointer-types"
7876
},
79-
"sources": [{
80-
"type": "archive",
81-
"url": "https://ftp.postgresql.org/pub/source/v13.2/postgresql-13.2.tar.gz",
82-
"sha256": "3386a40736332aceb055c7c9012ecc665188536d874d967fcc5a33e7992f8080"
83-
}]
77+
"sources": [
78+
{
79+
"type": "archive",
80+
"url": "https://ftp.postgresql.org/pub/source/v13.2/postgresql-13.2.tar.gz",
81+
"sha256": "3386a40736332aceb055c7c9012ecc665188536d874d967fcc5a33e7992f8080"
82+
}
83+
]
8484
},
8585
{
8686
"name": "jemalloc",
8787
"cleanup": [
8888
"/bin/",
8989
"/share"
9090
],
91-
"sources": [{
92-
"type": "archive",
93-
"url": "https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2",
94-
"sha256": "34330e5ce276099e2e8950d9335db5a875689a4c6a56751ef3b1d8c537f887f6"
95-
}]
91+
"sources": [
92+
{
93+
"type": "archive",
94+
"url": "https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2",
95+
"sha256": "34330e5ce276099e2e8950d9335db5a875689a4c6a56751ef3b1d8c537f887f6"
96+
}
97+
]
9698
},
9799
{
98100
"name": "libaio",
@@ -108,43 +110,56 @@
108110
"make",
109111
"make prefix=/app install"
110112
],
111-
"sources": [{
112-
"type": "archive",
113-
"url": "https://ftp.debian.org/debian/pool/main/liba/libaio/libaio_0.3.113.orig.tar.gz",
114-
"sha256": "2c44d1c5fd0d43752287c9ae1eb9c023f04ef848ea8d4aafa46e9aedb678200b"
115-
}]
113+
"sources": [
114+
{
115+
"type": "archive",
116+
"url": "https://ftp.debian.org/debian/pool/main/liba/libaio/libaio_0.3.113.orig.tar.gz",
117+
"sha256": "2c44d1c5fd0d43752287c9ae1eb9c023f04ef848ea8d4aafa46e9aedb678200b"
118+
}
119+
]
120+
},
121+
{
122+
"name": "libfmt",
123+
"buildsystem": "cmake-ninja",
124+
"sources": [
125+
{
126+
"type": "git",
127+
"url": "https://github.com/fmtlib/fmt.git",
128+
"tag": "8.1.1",
129+
"commit": "b6f4ceaed0a0a24ccf575fab6c56dd50ccf6f1a9"
130+
}
131+
]
116132
},
117133
{
118134
"name": "mariadb",
119-
"buildsystem": "cmake",
120-
"no-make-install": true,
135+
"buildsystem": "cmake-ninja",
121136
"config-opts": [
122137
"-DCMAKE_BUILD_TYPE=Release",
123138
"-DBUILD_CONFIG=mysql_release",
124139
"-DWITH_INNOBASE_STORAGE_ENGINE=1",
140+
"-DWITH_PCRE=system",
141+
"-DWITH_LIBFMT=system",
125142
"-DWITHOUT_ARCHIVE_STORAGE_ENGINE=1",
126143
"-DWITHOUT_BLACKHOLE_STORAGE_ENGINE=1",
127144
"-DWITHOUT_PARTITION_STORAGE_ENGINE=1",
128145
"-DWITHOUT_TOKUDB=1",
129146
"-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1",
130147
"-DWITHOUT_FEDERATED_STORAGE_ENGINE=1",
131148
"-DWITHOUT_PBXT_STORAGE_ENGINE=1",
149+
"-DWITHOUT_SERVER=ON",
132150
"-DPLUGIN_AUTH_PAM=NO"
133151
],
134-
"post-install": [
135-
"make -C libmysql install",
136-
"make -C include install",
137-
"install -Dm755 scripts/mysql_config /app/bin/mysql_config",
138-
"install -Dm644 support-files/mariadb.pc /app/share/pkgconfig/mariadb.pc"
139-
],
140152
"cleanup": [
141153
"/bin/"
142154
],
143-
"sources": [{
144-
"type": "archive",
145-
"url": "http://ftp.hosteurope.de/mirror/archive.mariadb.org/mariadb-10.1.48/source/mariadb-10.1.48.tar.gz",
146-
"sha256": "069d58b1e2c06bb1e6c31249eda34138f41fb8ae3dec7ecaeba8035812c87cf9"
147-
}]
155+
"sources": [
156+
{
157+
"type": "git",
158+
"url": "https://github.com/MariaDB/server.git",
159+
"tag": "mariadb-10.11.7",
160+
"commit": "87e13722a95af5d9378d990caf48cb6874439347"
161+
}
162+
]
148163
},
149164
{
150165
"name": "intltool",
@@ -161,15 +176,18 @@
161176
},
162177
{
163178
"name": "libssh2",
164-
"sources": [{
165-
"type": "archive",
166-
"url": "https://www.libssh2.org/download/libssh2-1.9.0.tar.gz",
167-
"sha256": "d5fb8bd563305fd1074dda90bd053fb2d29fc4bce048d182f96eaa466dfadafd"
168-
}]
179+
"sources": [
180+
{
181+
"type": "archive",
182+
"url": "https://www.libssh2.org/download/libssh2-1.9.0.tar.gz",
183+
"sha256": "d5fb8bd563305fd1074dda90bd053fb2d29fc4bce048d182f96eaa466dfadafd"
184+
}
185+
]
169186
},
170187
{
171188
"name": "libfiposix",
172-
"sources": [{
189+
"sources": [
190+
{
173191
"type": "archive",
174192
"url": "https://github.com/sionescu/libfixposix/archive/v0.4.3.tar.gz",
175193
"sha256": "78fe8bcebf496520ac29b5b65049f5ec1977c6bd956640bdc6d1da6ea04d8504"
@@ -186,7 +204,8 @@
186204
{
187205
"name": "sequeler",
188206
"buildsystem": "meson",
189-
"sources": [{
207+
"sources": [
208+
{
190209
"type": "dir",
191210
"path": "../"
192211
}

0 commit comments

Comments
 (0)