Skip to content

Commit 00bc1c2

Browse files
committed
New upstream version 1.14.5
2 parents 7e4a25f + 17455f9 commit 00bc1c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2105
-2309
lines changed

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ service_in_files = $(NULL)
3333
dbus_service_DATA = $(NULL)
3434
systemdsystemunit_DATA = $(NULL)
3535
systemduserunit_DATA = $(NULL)
36+
dist_tmpfiles_DATA = $(NULL)
3637
CLEANFILES += $(dbus_service_DATA)
3738
CLEANFILES += $(systemduserunit_DATA)
3839
EXTRA_DIST += $(service_in_files)

Makefile.in

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,16 @@ check_PROGRAMS = $(am__EXEEXT_5) $(am__EXEEXT_6)
194194
@BUILD_AUTO_SIDELOADING_TRUE@am__append_27 = sideload-repos-systemd/flatpak-sideload-usb-repo.service.in
195195
@BUILD_AUTO_SIDELOADING_TRUE@am__append_28 = sideload-repos-systemd/flatpak-sideload-usb-repo.service \
196196
@BUILD_AUTO_SIDELOADING_TRUE@ sideload-repos-systemd/flatpak-sideload-usb-repo.path
197-
@WITH_SYSTEM_DBUS_PROXY_TRUE@am__append_29 = FLATPAK_DBUSPROXY=$(DBUS_PROXY)
198-
@WITH_SYSTEM_DBUS_PROXY_FALSE@am__append_30 = FLATPAK_DBUSPROXY=$$(cd $(top_builddir) && pwd)/flatpak-dbus-proxy
199-
@WITH_SYSTEM_BWRAP_TRUE@am__append_31 = FLATPAK_BWRAP=$(BWRAP)
200-
@WITH_SYSTEM_BWRAP_FALSE@am__append_32 = FLATPAK_BWRAP=$$(cd $(top_builddir) && pwd)/flatpak-bwrap
201-
@ENABLE_INSTALLED_TESTS_TRUE@am__append_33 = -rpath $(installed_testdir)
202-
@ENABLE_INSTALLED_TESTS_FALSE@am__append_34 = -rpath ${abs_builddir}
203-
@WITH_SYSTEM_DBUS_PROXY_FALSE@am__append_35 = flatpak-dbus-proxy
197+
@BUILD_AUTO_SIDELOADING_TRUE@am__append_29 = sideload-repos-systemd/tmpfiles.d/flatpak-sideload-repos.conf
198+
@WITH_SYSTEM_DBUS_PROXY_TRUE@am__append_30 = FLATPAK_DBUSPROXY=$(DBUS_PROXY)
199+
@WITH_SYSTEM_DBUS_PROXY_FALSE@am__append_31 = FLATPAK_DBUSPROXY=$$(cd $(top_builddir) && pwd)/flatpak-dbus-proxy
200+
@WITH_SYSTEM_BWRAP_TRUE@am__append_32 = FLATPAK_BWRAP=$(BWRAP)
201+
@WITH_SYSTEM_BWRAP_FALSE@am__append_33 = FLATPAK_BWRAP=$$(cd $(top_builddir) && pwd)/flatpak-bwrap
202+
@ENABLE_INSTALLED_TESTS_TRUE@am__append_34 = -rpath $(installed_testdir)
203+
@ENABLE_INSTALLED_TESTS_FALSE@am__append_35 = -rpath ${abs_builddir}
204+
@WITH_SYSTEM_DBUS_PROXY_FALSE@am__append_36 = flatpak-dbus-proxy
204205
@WITH_SYSTEM_BWRAP_FALSE@bwrap_PROGRAMS = flatpak-bwrap$(EXEEXT)
205-
@INSTALL_GDM_ENV_FILE_TRUE@am__append_36 = flatpak.env
206+
@INSTALL_GDM_ENV_FILE_TRUE@am__append_37 = flatpak.env
206207
subdir = .
207208
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
208209
am__aclocal_m4_deps = $(top_srcdir)/subprojects/libglnx/libglnx.m4 \
@@ -1154,7 +1155,7 @@ am__dist_installed_test_keyring_DATA_DIST = tests/test-keyring/README \
11541155
am__dist_installed_test_keyring2_DATA_DIST = \
11551156
tests/test-keyring2/README tests/test-keyring2/pubring.gpg \
11561157
tests/test-keyring2/secring.gpg
1157-
am__dist_tmpfiles_DATA_DIST = \
1158+
am__dist_tmpfiles_DATA_DIST = data/tmpfiles.d/flatpak.conf \
11581159
sideload-repos-systemd/tmpfiles.d/flatpak-sideload-repos.conf
11591160
DATA = $(bashcompletion_DATA) $(dbus_service_DATA) \
11601161
$(dbussystemservice_DATA) $(dist_dbusconf_DATA) \
@@ -1473,8 +1474,6 @@ distcleancheck_listfiles = find . -type f -print
14731474
ACLOCAL = @ACLOCAL@
14741475
AMTAR = @AMTAR@
14751476
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
1476-
APPSTREAM_0_14_0_CFLAGS = @APPSTREAM_0_14_0_CFLAGS@
1477-
APPSTREAM_0_14_0_LIBS = @APPSTREAM_0_14_0_LIBS@
14781477
APPSTREAM_CFLAGS = @APPSTREAM_CFLAGS@
14791478
APPSTREAM_LIBS = @APPSTREAM_LIBS@
14801479
AR = @AR@
@@ -1718,6 +1717,7 @@ systemduserenvgendir = @systemduserenvgendir@
17181717
systemduserunitdir = @systemduserunitdir@
17191718
sysusersdir = @sysusersdir@
17201719
target_alias = @target_alias@
1720+
tmpfilesdir = @tmpfilesdir@
17211721
top_build_prefix = @top_build_prefix@
17221722
top_builddir = @top_builddir@
17231723
top_srcdir = @top_srcdir@
@@ -1855,6 +1855,8 @@ systemduserunit_DATA = $(NULL) \
18551855
portal/flatpak-portal.service \
18561856
oci-authenticator/flatpak-oci-authenticator.service \
18571857
$(am__append_28)
1858+
dist_tmpfiles_DATA = $(NULL) data/tmpfiles.d/flatpak.conf \
1859+
$(am__append_29)
18581860
FLATPAK_BINDIR = $(bindir)
18591861
ACLOCAL_AMFLAGS = -I m4 -I subprojects/libglnx ${ACLOCAL_FLAGS}
18601862
AM_CPPFLAGS = -DFLATPAK_BINDIR=\"$(FLATPAK_BINDIR)\" \
@@ -2379,8 +2381,6 @@ revokefs_demo_LDADD = $(BASE_LIBS)
23792381
@BUILD_SELINUX_MODULE_TRUE@ selinux/flatpak.if
23802382
@BUILD_AUTO_SIDELOADING_TRUE@dist_libexec_SCRIPTS = sideload-repos-systemd/flatpak-create-sideload-symlinks.sh
23812383
@BUILD_AUTO_SIDELOADING_TRUE@path_in_files = sideload-repos-systemd/flatpak-sideload-usb-repo.path.in
2382-
@BUILD_AUTO_SIDELOADING_TRUE@tmpfilesdir = $(prefix)/lib/tmpfiles.d
2383-
@BUILD_AUTO_SIDELOADING_TRUE@dist_tmpfiles_DATA = sideload-repos-systemd/tmpfiles.d/flatpak-sideload-repos.conf
23842384
AM_TESTS_ENVIRONMENT = FLATPAK_TESTS_DEBUG=1 \
23852385
FLATPAK_CONFIG_DIR=/dev/null FLATPAK_PORTAL=$$(cd \
23862386
$(top_builddir) && pwd)/flatpak-portal \
@@ -2391,8 +2391,8 @@ AM_TESTS_ENVIRONMENT = FLATPAK_TESTS_DEBUG=1 \
23912391
$(top_builddir) && pwd)$${GI_TYPELIB_PATH:+:$$GI_TYPELIB_PATH} \
23922392
LD_LIBRARY_PATH=$$(cd $(top_builddir)/.libs && \
23932393
pwd)$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} PATH=$$(cd \
2394-
$(top_builddir) && pwd):$${PATH} $(NULL) $(am__append_29) \
2395-
$(am__append_30) $(am__append_31) $(am__append_32)
2394+
$(top_builddir) && pwd):$${PATH} $(NULL) $(am__append_30) \
2395+
$(am__append_31) $(am__append_32) $(am__append_33)
23962396
libtestlib_la_CFLAGS = \
23972397
$(AM_CFLAGS) \
23982398
$(BASE_CFLAGS) \
@@ -2539,7 +2539,7 @@ dist_installed_test_data = \
25392539
test_ltlibraries = tests/libpreload.la
25402540
tests_libpreload_la_SOURCES = tests/libpreload.c
25412541
tests_libpreload_la_LDFLAGS = -avoid-version -module -no-undefined \
2542-
$(NULL) $(am__append_33) $(am__append_34)
2542+
$(NULL) $(am__append_34) $(am__append_35)
25432543
installed_test_keyringdir = $(installed_testdir)/test-keyring
25442544
installed_test_keyring2dir = $(installed_testdir)/test-keyring2
25452545
@ENABLE_INSTALLED_TESTS_TRUE@dist_installed_test_keyring_DATA = \
@@ -2678,7 +2678,7 @@ profile_DATA = profile/flatpak.sh
26782678
fishconfdir = $(datadir)/fish/vendor_conf.d
26792679
fishconf_DATA = profile/flatpak.fish
26802680
envdir = $(datadir)/gdm/env.d
2681-
env_DATA = $(am__append_36)
2681+
env_DATA = $(am__append_37)
26822682
systemenvgendir = $(systemdsystemenvgendir)
26832683
systemenvgen_SCRIPTS = env.d/60-flatpak-system-only
26842684
userenvgendir = $(systemduserenvgendir)

NEWS

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
1+
Changes in 1.14.5
2+
~~~~~~~~~~~~~~~~~
3+
Released: 2023-12-08
4+
5+
Features:
6+
7+
* Stop http transfers if a download in progress becomes very slow (#5519)
8+
9+
* Add anchors to link to sections of flatpak-metadata documentation (#5582)
10+
11+
Bug fixes:
12+
13+
* Avoid warnings processing symbolic links with GLib >= 2.77.0, and
14+
with GLib 2.76.0 (GLib 2.76.1 or later silences these warnings)
15+
16+
* Bypass page cache for backend requests in revokefs, fixing installation
17+
errors with libostree 2023.4 (#5452)
18+
19+
* Show AppStream metadata in `flatpak remote-info` as intended
20+
(#5523; regression in 1.9.1)
21+
22+
* Don't let Flatpak apps inherit VK_DRIVER_FILES or VK_ICD_FILENAMES
23+
from the host system, which would be wrong for the sandbox (#5553)
24+
25+
* Fix build failure with prereleases of libappstream 0.17.x (#5472)
26+
27+
* Forward-compatibility with libappstream 1.0 (#5563)
28+
29+
* Fix a memory leak (#5329)
30+
31+
* Fix compiler warnings (#5362, #5366)
32+
33+
* Make the tests fail more comprehensibly if a required tool is missing
34+
(#5020)
35+
36+
* Clean up `/var/tmp/flatpak-cache-*` directories on boot (#1119)
37+
38+
* Don't force `GIO_USE_VFS=local` for programs launched via flatpak-spawn
39+
(#5567)
40+
41+
* Clarify documentation for D-Bus name ownership (#5582)
42+
43+
Internal changes:
44+
45+
* CI improvements (#5381)
46+
147
Changes in 1.14.4
248
~~~~~~~~~~~~~~~~~
349
Released: 2023-03-16

app/flatpak-builtins-remote-info.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -180,24 +180,24 @@ flatpak_builtin_remote_info (int argc, char **argv, GCancellable *cancellable, G
180180
int rows, cols;
181181
int width;
182182
g_autoptr(AsMetadata) mdata = as_metadata_new ();
183-
AsComponent *app = NULL;
183+
AsComponent *cpt = NULL;
184184
const char *version = NULL;
185185
const char *license = NULL;
186-
g_autofree char *id = flatpak_decomposed_dup_id (ref);
186+
g_autofree char *arch = flatpak_decomposed_dup_arch (ref);
187187

188188
flatpak_get_window_size (&rows, &cols);
189189

190-
flatpak_dir_load_appstream_store (preferred_dir, remote, id, mdata, NULL, NULL);
191-
app = as_store_find_app (mdata, flatpak_decomposed_get_ref (ref));
192-
if (app)
190+
flatpak_dir_load_appstream_data (preferred_dir, remote, arch, mdata, NULL, NULL);
191+
cpt = metadata_find_component (mdata, flatpak_decomposed_get_ref (ref));
192+
if (cpt)
193193
{
194-
const char *name = as_component_get_name (app);
195-
const char *comment = as_component_get_summary (app);
194+
const char *name = as_component_get_name (cpt);
195+
const char *comment = as_component_get_summary (cpt);
196196

197197
print_wrapped (MIN (cols, 80), "\n%s - %s\n", name, comment);
198198

199-
version = as_app_get_version (app);
200-
license = as_component_get_project_license (app);
199+
version = component_get_version_latest (cpt);
200+
license = as_component_get_project_license (cpt);
201201
}
202202

203203
if (commit_v)
@@ -267,9 +267,9 @@ flatpak_builtin_remote_info (int argc, char **argv, GCancellable *cancellable, G
267267

268268
width = cols - (len + 1);
269269

270-
print_aligned (len, _("ID:"), id);
270+
print_aligned_take (len, _("ID:"), flatpak_decomposed_dup_id (ref));
271271
print_aligned (len, _("Ref:"), flatpak_decomposed_get_ref (ref));
272-
print_aligned_take (len, _("Arch:"), flatpak_decomposed_dup_arch (ref));
272+
print_aligned (len, _("Arch:"), arch);
273273
print_aligned_take (len, _("Branch:"), flatpak_decomposed_dup_branch (ref));
274274
if (version != NULL)
275275
print_aligned (len, _("Version:"), version);

app/flatpak-builtins-remote-ls.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ ls_remote (GHashTable *refs_hash, const char **arches, const char *app_runtime,
231231
if (need_appstream_data)
232232
{
233233
mdata = as_metadata_new ();
234-
flatpak_dir_load_appstream_store (dir, remote, NULL, mdata, NULL, NULL);
234+
flatpak_dir_load_appstream_data (dir, remote, NULL, mdata, NULL, NULL);
235235
}
236236

237237
keys = (FlatpakDecomposed **) g_hash_table_get_keys_as_array (names, &n_keys);
@@ -244,7 +244,7 @@ ls_remote (GHashTable *refs_hash, const char **arches, const char *app_runtime,
244244
guint64 installed_size;
245245
guint64 download_size;
246246
g_autofree char *runtime = NULL;
247-
AsComponent *app = NULL;
247+
AsComponent *cpt = NULL;
248248
gboolean has_sparse_cache;
249249
VarMetadataRef sparse_cache;
250250
g_autofree char *id = flatpak_decomposed_dup_id (ref);
@@ -278,7 +278,7 @@ ls_remote (GHashTable *refs_hash, const char **arches, const char *app_runtime,
278278
}
279279

280280
if (need_appstream_data)
281-
app = as_store_find_app (mdata, ref_str);
281+
cpt = metadata_find_component (mdata, ref_str);
282282

283283
if (app_runtime && runtime)
284284
{
@@ -296,8 +296,8 @@ ls_remote (GHashTable *refs_hash, const char **arches, const char *app_runtime,
296296
const char *name = NULL;
297297
g_autofree char *readable_id = NULL;
298298

299-
if (app)
300-
name = as_component_get_name (app);
299+
if (cpt)
300+
name = as_component_get_name (cpt);
301301

302302
if (name == NULL)
303303
readable_id = flatpak_decomposed_dup_readable_id (ref);
@@ -307,13 +307,13 @@ ls_remote (GHashTable *refs_hash, const char **arches, const char *app_runtime,
307307
else if (strcmp (columns[j].name, "description") == 0)
308308
{
309309
const char *comment = NULL;
310-
if (app)
311-
comment = as_component_get_summary (app);
310+
if (cpt)
311+
comment = as_component_get_summary (cpt);
312312

313313
flatpak_table_printer_add_column (printer, comment);
314314
}
315315
else if (strcmp (columns[j].name, "version") == 0)
316-
flatpak_table_printer_add_column (printer, app ? as_app_get_version (app) : "");
316+
flatpak_table_printer_add_column (printer, cpt ? component_get_version_latest (cpt) : "");
317317
else if (strcmp (columns[j].name, "ref") == 0)
318318
flatpak_table_printer_add_column (printer, ref_str);
319319
else if (strcmp (columns[j].name, "application") == 0)

app/flatpak-builtins-run.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ flatpak_builtin_run (int argc, char **argv, GCancellable *cancellable, GError **
101101
g_autoptr(FlatpakDecomposed) runtime_ref = NULL;
102102
const char *pref;
103103
int i;
104-
int rest_argv_start, rest_argc;
104+
int rest_argv_start = 0, rest_argc = 0;
105105
g_autoptr(FlatpakContext) arg_context = NULL;
106106
g_autofree char *id = NULL;
107107
g_autofree char *arch = NULL;
@@ -114,7 +114,6 @@ flatpak_builtin_run (int argc, char **argv, GCancellable *cancellable, GError **
114114
context = g_option_context_new (_("APP [ARGUMENT…] - Run an app"));
115115
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
116116

117-
rest_argc = 0;
118117
for (i = 1; i < argc; i++)
119118
{
120119
/* The non-option is the command, take it out of the arguments */
@@ -155,6 +154,8 @@ flatpak_builtin_run (int argc, char **argv, GCancellable *cancellable, GError **
155154
if (rest_argc == 0)
156155
return usage_error (context, _("APP must be specified"), error);
157156

157+
/* If we get here, then rest_argv_start must have been set >= 1 */
158+
g_assert (rest_argv_start > 0);
158159
pref = argv[rest_argv_start];
159160

160161
if (!flatpak_split_partial_ref_arg (pref, FLATPAK_KINDS_APP | FLATPAK_KINDS_RUNTIME,

app/flatpak-builtins-search.c

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ get_remote_stores (GPtrArray *dirs, const char *arch, GCancellable *cancellable)
7676
{
7777
g_autoptr(AsMetadata) mdata = as_metadata_new ();
7878

79-
flatpak_dir_load_appstream_store (dir, remotes[j], arch, mdata, cancellable, &error);
79+
flatpak_dir_load_appstream_data (dir, remotes[j], arch, mdata, cancellable, &error);
8080

8181
if (error)
8282
{
@@ -185,7 +185,7 @@ component_get_branch (AsComponent *app)
185185
static void
186186
print_app (Column *columns, MatchResult *res, FlatpakTablePrinter *printer)
187187
{
188-
const char *version = as_app_get_version (res->app);
188+
const char *version = component_get_version_latest (res->app);
189189
g_autofree char *id = component_get_flatpak_id (res->app);
190190
const char *name = as_component_get_name (res->app);
191191
const char *comment = as_component_get_summary (res->app);
@@ -272,12 +272,21 @@ flatpak_builtin_search (int argc, char **argv, GCancellable *cancellable, GError
272272
for (j = 0; j < remote_stores->len; ++j)
273273
{
274274
AsMetadata *mdata = g_ptr_array_index (remote_stores, j);
275+
#if AS_CHECK_VERSION(1, 0, 0)
276+
AsComponentBox *apps = as_metadata_get_components (mdata);
277+
#else
275278
GPtrArray *apps = as_metadata_get_components (mdata);
276-
guint i;
279+
#endif
277280

278-
for (i = 0; i < apps->len; ++i)
281+
#if AS_CHECK_VERSION(1, 0, 0)
282+
for (guint i = 0; i < as_component_box_len (apps); ++i)
283+
{
284+
AsComponent *app = as_component_box_index (apps, i);
285+
#else
286+
for (guint i = 0; i < apps->len; ++i)
279287
{
280288
AsComponent *app = g_ptr_array_index (apps, i);
289+
#endif
281290
const char *remote_name = g_object_get_data (G_OBJECT (mdata), "remote-name");
282291
g_autoptr(FlatpakDecomposed) decomposed = NULL;
283292

0 commit comments

Comments
 (0)