Skip to content

Commit 68f4d8d

Browse files
committed
New upstream version 1.14.2
2 parents b4a42ca + a56f265 commit 68f4d8d

Some content is hidden

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

47 files changed

+1218
-1414
lines changed

Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,7 @@ GMSGFMT_015 = @GMSGFMT_015@
15451545
GPGME_CONFIG = @GPGME_CONFIG@
15461546
GPGME_PTHREAD_CFLAGS = @GPGME_PTHREAD_CFLAGS@
15471547
GPGME_PTHREAD_LIBS = @GPGME_PTHREAD_LIBS@
1548+
GPGRT_CONFIG = @GPGRT_CONFIG@
15481549
GREP = @GREP@
15491550
GTKDOC_CHECK = @GTKDOC_CHECK@
15501551
GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@

NEWS

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
Changes in 1.14.2
2+
~~~~~~~~~~~~~~~~~
3+
Released: 2023-02-06
4+
5+
Bug fixes:
6+
7+
* Display the intended messages for `flatpak repair` (#5204)
8+
* Exporting an app to an existing repository on a CIFS filesystem
9+
now works as intended (#5257)
10+
* Unset $GIO_EXTRA_MODULES for apps, avoiding misbehaviour in some GLib
11+
apps when set to a path on the host (#5206)
12+
* Unset $XKB_CONFIG_ROOT for apps, avoiding crashes in GTK and Qt apps
13+
under Wayland when this variable is set to a path not available in the
14+
sandbox (#5194)
15+
* Unset $KRB5CCNAME for apps
16+
* When using the fish shell, avoid duplicate XDG_DATA_DIRS entries if the
17+
profile script is sourced more than once (#5198)
18+
19+
Internal changes:
20+
21+
* The INFO log level is now treated the same as the DEBUG log level
22+
by `flatpak -v`, to make backports from 1.15.x simpler
23+
124
Changes in 1.14.1
225
~~~~~~~~~~~~~~~~~
326
Released: 2022-11-18

aclocal.m4

Lines changed: 96 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you have problems, you may need to regenerate the build system entirely.
2121
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2222

2323
# gpgme.m4 - autoconf macro to detect GPGME.
24-
# Copyright (C) 2002, 2003, 2004, 2014, 2018 g10 Code GmbH
24+
# Copyright (C) 2002, 2003, 2004, 2014, 2018, 2022 g10 Code GmbH
2525
#
2626
# This file is free software; as a special exception the author gives
2727
# unlimited permission to copy and/or distribute it, with or without
@@ -31,13 +31,102 @@ To do so, use the procedure documented by the package, typically 'autoreconf'.])
3131
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
3232
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
3333
#
34-
# Last-changed: 2020-11-20
34+
# Last-changed: 2022-11-15
3535

3636

37-
AC_DEFUN([_AM_PATH_GPGME_CONFIG],
38-
[ AC_ARG_WITH(gpgme-prefix,
39-
AS_HELP_STRING([--with-gpgme-prefix=PFX],
40-
[prefix where GPGME is installed (optional)]),
37+
dnl
38+
dnl Find gpgrt-config, which uses .pc file
39+
dnl (minimum pkg-config functionality, supporting cross build)
40+
dnl
41+
dnl _AM_PATH_GPGRT_CONFIG
42+
AC_DEFUN([_AM_PATH_GPGRT_CONFIG],[dnl
43+
AC_PATH_PROG(GPGRT_CONFIG, gpgrt-config, no, [$prefix/bin:$PATH])
44+
if test "$GPGRT_CONFIG" != "no"; then
45+
# Determine gpgrt_libdir
46+
#
47+
# Get the prefix of gpgrt-config assuming it's something like:
48+
# <PREFIX>/bin/gpgrt-config
49+
gpgrt_prefix=${GPGRT_CONFIG%/*/*}
50+
possible_libdir1=${gpgrt_prefix}/lib
51+
# Determine by using system libdir-format with CC, it's like:
52+
# Normal style: /usr/lib
53+
# GNU cross style: /usr/<triplet>/lib
54+
# Debian style: /usr/lib/<multiarch-name>
55+
# Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
56+
# It is assumed that CC is specified to the one of host on cross build.
57+
if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
58+
sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
59+
/g;p;}"); then
60+
# From the output of -print-search-dirs, select valid pkgconfig dirs.
61+
libdir_candidates=$(for dir in $libdir_candidates; do
62+
if p=$(cd $dir 2>/dev/null && pwd); then
63+
test -d "$p/pkgconfig" && echo $p;
64+
fi
65+
done)
66+
67+
for possible_libdir0 in $libdir_candidates; do
68+
# possible_libdir0:
69+
# Fallback candidate, the one of system-installed (by $CC)
70+
# (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
71+
# possible_libdir1:
72+
# Another candidate, user-locally-installed
73+
# (<gpgrt_prefix>/lib)
74+
# possible_libdir2
75+
# Most preferred
76+
# (<gpgrt_prefix>/<triplet>/lib,
77+
# <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
78+
if test "${possible_libdir0##*/}" = "lib"; then
79+
possible_prefix0=${possible_libdir0%/lib}
80+
possible_prefix0_triplet=${possible_prefix0##*/}
81+
if test -z "$possible_prefix0_triplet"; then
82+
continue
83+
fi
84+
possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
85+
else
86+
possible_prefix0=${possible_libdir0%%/lib*}
87+
possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
88+
fi
89+
if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
90+
gpgrt_libdir=${possible_libdir2}
91+
elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
92+
gpgrt_libdir=${possible_libdir1}
93+
elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
94+
gpgrt_libdir=${possible_libdir0}
95+
fi
96+
if test -n "$gpgrt_libdir"; then break; fi
97+
done
98+
if test -z "$libdir_candidates"; then
99+
# No valid pkgconfig dir in any of the system directories, fallback
100+
gpgrt_libdir=${possible_libdir1}
101+
fi
102+
else
103+
# When we cannot determine system libdir-format, use this:
104+
gpgrt_libdir=${possible_libdir1}
105+
fi
106+
else
107+
unset GPGRT_CONFIG
108+
fi
109+
110+
if test -n "$gpgrt_libdir"; then
111+
GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
112+
if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
113+
GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
114+
AC_MSG_NOTICE([Use gpgrt-config with $gpgrt_libdir as gpg-error-config])
115+
gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
116+
else
117+
unset GPGRT_CONFIG
118+
fi
119+
elif test "$GPG_ERROR_CONFIG" != "no"; then
120+
gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
121+
unset GPGRT_CONFIG
122+
fi
123+
])
124+
125+
AC_DEFUN([_AM_PATH_GPGME_CONFIG],[dnl
126+
AC_REQUIRE([_AM_PATH_GPGRT_CONFIG])dnl
127+
AC_ARG_WITH(gpgme-prefix,
128+
AS_HELP_STRING([--with-gpgme-prefix=PFX],
129+
[prefix where GPGME is installed (optional)]),
41130
gpgme_config_prefix="$withval", gpgme_config_prefix="")
42131
if test x"${GPGME_CONFIG}" = x ; then
43132
if test x"${gpgme_config_prefix}" != x ; then
@@ -59,7 +148,7 @@ AC_DEFUN([_AM_PATH_GPGME_CONFIG],
59148
fi
60149
61150
use_gpgrt_config=""
62-
if test x"${GPGME_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
151+
if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
63152
if $GPGRT_CONFIG gpgme --exists; then
64153
GPGME_CONFIG="$GPGRT_CONFIG gpgme"
65154
AC_MSG_NOTICE([Use gpgrt-config as gpgme-config])
@@ -633,7 +722,6 @@ AC_MSG_CHECKING([for $2])
633722
634723
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
635724
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
636-
_PKG_CONFIG([$1][_VERSION], [modversion], [$2])
637725
638726
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
639727
and $1[]_LIBS to avoid the need to call pkg-config.
@@ -674,7 +762,6 @@ To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
674762
else
675763
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
676764
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
677-
$1[]_VERSION=$pkg_cv_[]$1[]_VERSION
678765
AC_MSG_RESULT([yes])
679766
$3
680767
fi[]dnl

app/flatpak-builtins-repair.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ flatpak_builtin_repair (int argc, char **argv, GCancellable *cancellable, GError
415415
416416
This does also mean that other areas of this code section that print errors will need to print a trailing
417417
newline as well, otherwise the output will overwrite any errors. */
418-
if (flatpak_fancy_output ())
418+
if (flatpak_fancy_output () && i != 1)
419419
g_print ("\033[A\r\033[K");
420420

421421
g_print (_("[%d/%d] Verifying %s…\n"), i, g_hash_table_size (all_refs), refspec);

app/flatpak-main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,12 @@ flatpak_option_context_parse (GOptionContext *context,
358358
else
359359
{
360360
if (opt_verbose > 0)
361-
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, message_handler, NULL);
361+
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, message_handler, NULL);
362362
if (opt_verbose > 1)
363-
g_log_set_handler (G_LOG_DOMAIN "2", G_LOG_LEVEL_DEBUG, message_handler, NULL);
363+
g_log_set_handler (G_LOG_DOMAIN "2", G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, message_handler, NULL);
364364

365365
if (opt_ostree_verbose)
366-
g_log_set_handler ("OSTree", G_LOG_LEVEL_DEBUG, message_handler, NULL);
366+
g_log_set_handler ("OSTree", G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, message_handler, NULL);
367367

368368
if (opt_verbose > 0 || opt_ostree_verbose)
369369
flatpak_disable_fancy_output ();

common/flatpak-run.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,8 @@ static const ExportData default_exports[] = {
18781878
{"XDG_RUNTIME_DIR", NULL},
18791879

18801880
/* Some env vars are common enough and will affect the sandbox badly
1881-
if set on the host. We clear these always. */
1881+
if set on the host. We clear these always. If updating this list,
1882+
also update the list in flatpak-run.xml. */
18821883
{"PYTHONPATH", NULL},
18831884
{"PERLLIB", NULL},
18841885
{"PERL5LIB", NULL},
@@ -1895,6 +1896,9 @@ static const ExportData default_exports[] = {
18951896
{"GST_PTP_HELPER", NULL},
18961897
{"GST_PTP_HELPER_1_0", NULL},
18971898
{"GST_INSTALL_PLUGINS_HELPER", NULL},
1899+
{"KRB5CCNAME", NULL},
1900+
{"XKB_CONFIG_ROOT", NULL},
1901+
{"GIO_EXTRA_MODULES", NULL},
18981902
};
18991903

19001904
static const ExportData no_ld_so_cache_exports[] = {

common/flatpak-utils.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4979,6 +4979,10 @@ flatpak_repo_update (OstreeRepo *repo,
49794979
g_variant_get_data (old_index),
49804980
g_variant_get_size (old_index));
49814981

4982+
/* Release the memory-mapped summary index file before replacing it,
4983+
to avoid failure on filesystems like cifs */
4984+
g_clear_pointer (&old_index, g_variant_unref);
4985+
49824986
if (!flatpak_repo_save_summary_index (repo, summary_index, index_digest, index_sig, cancellable, error))
49834987
return FALSE;
49844988

common/flatpak-version-macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*
4646
* The micro version.
4747
*/
48-
#define FLATPAK_MICRO_VERSION (1)
48+
#define FLATPAK_MICRO_VERSION (2)
4949

5050
/**
5151
* FLATPAK_CHECK_VERSION:

0 commit comments

Comments
 (0)