Commit Graph

12 Commits

Author SHA1 Message Date
Simon McVittie
5f1938437a Update subtree: libglnx 2024-12-06
* Fix an assertion failure attempting to create a directory that exists
  as a dangling symlink[1]
* Fix a Meson deprecation warning[2]

[1] https://gitlab.gnome.org/GNOME/libglnx/-/issues/1
[2] https://gitlab.gnome.org/GNOME/libglnx/-/merge_requests/60

Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-12-22 12:43:53 +00:00
Simon McVittie
db5f037020 Update subtree: libglnx 2024-08-23
* Fix function detection when using -Werror=return-type
  (Resolves: flatpak/flatpak#5778)
* Add a fallback definition for G_PID_FORMAT
* Avoid warnings for g_steal_fd() when targeting older GLib
* Include <glib-unix.h> from glnx-backports.h

Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-08-23 14:55:26 +01:00
Simon McVittie
2aed100945 Add 'subprojects/libglnx/' from commit '202b294e6079e23242e65e0426f8639841d1210b'
This makes the flatpak project more self-contained, and would have
avoided the problems we encountered with unintended changes in the
1.14.7 release. See <https://diziet.dreamwidth.org/14666.html> for an
opinionated description of some of the problems with submodules.

If we can eliminate submodules altogether, then it will become possible
to build Flatpak from a simple `git clone` or `git archive`, or from the
source tarballs auto-generated by Github (which are equivalent to a `git
archive`), without needing an extra step to populate the submodules. As
well as reducing the support burden from users periodically complaining
that our source releases are incomplete, this is a useful "nothing up
my sleeve" mechanism to make it easy to verify that our source releases
do not contain malicious changes hidden in vendored or generated files,
like the one that made CVE-2024-3094 possible.

Added with:

    git remote add --no-tags libglnx https://gitlab.gnome.org/GNOME/libglnx.git
    git fetch libglnx
    git subtree add -P subprojects/libglnx 202b294e60
    git commit --amend -s

To compare with upstream:

    git remote add --no-tags libglnx https://gitlab.gnome.org/GNOME/libglnx.git
    git fetch libglnx
    git diff HEAD:subprojects/libglnx libglnx/master

After checking the diff, updates can be merged into this project with:

    git subtree merge -P subprojects/libglnx libglnx/master
    git commit --amend -s

The commit merged here is the same one that was previously a submodule.
A subsequent commit will update it to the latest version of libglnx,
demonstrating how to review such updates.

git-subtree-dir: subprojects/libglnx
git-subtree-mainline: 7df25d63dfde9b4755479950f5b87bafe85cd277
git-subtree-split: 202b294e60
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-05-06 16:13:07 +01:00
Simon McVittie
e94e7318e3 Remove libglnx submodule
This will allow it to be re-added as a `git subtree`, which stores
commit history inline in the flatpak git repository.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-05-06 16:12:43 +01:00
Simon McVittie
8eee4bd452 Update submodule: libglnx 2024-02-09
* Provide fallback syscall wrapper for close_range()
* Backport g_closefrom() from GLib 2.79.2
* Backport g_fdwalk_set_cloexec() from Glib 2.79.2
* glnx_lsetxattrat(): Fix incorrect path argument
* Fix running `meson test` without first running `meson compile`
* Replace defunct mailing list with support forum

Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-02-13 14:19:28 +00:00
Simon McVittie
17202b16e1 Update submodule: libglnx 2023-08-29
* Add g_steal_fd() backport
* Add g_strv_equal() backport
* Disable crash reporting when testing assertions

Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-09-04 13:25:32 +01:00
Simon McVittie
7a144248f2 Update submodule: libglnx
- Backport g_memdup2

Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-12-12 19:15:52 +00:00
Simon McVittie
b0580b79b7 Update libglnx to commit e701578c
In particular, this version has more gtestutils backports, including a
version of g_test_message() that preserves correct TAP syntax for
multi-line messages.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-10-24 16:10:49 +01:00
Simon McVittie
5d12218591 Update libglnx submodule
This fixes some compiler warnings, and improves support for building as
a Meson subproject in preparation for adding a Meson build system to
Flatpak.

- https://gitlab.gnome.org/GNOME/libglnx/-/merge_requests/34
- https://gitlab.gnome.org/GNOME/libglnx/-/merge_requests/35

Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-17 19:52:46 -07:00
Phaedrus Leeds
32b8f75ec4 Update libglnx to fix distcheck 2022-03-01 13:26:30 -08:00
Simon McVittie
fcfd2786ff Update libglnx subproject
* Improve compatibility with eCryptFS (related to #4673)
* Improve compatibility with copying pseudo-files from /proc
* Add a flag to skip fchown() in glnx_file_copy_at()
* Add a rewinddir() wrapper to GLnxDirFdIterator
* Rename its generated config header to libglnx-config.h
* Fix a potential double-free while manipulating xattrs
* Use REUSE for copyright/licensing statements

Note that after merging this in an existing checkout, it will be
necessary to re-run autogen.sh.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-02-27 12:16:27 -08:00
Simon McVittie
0b12aff826 build: Move submodules into subprojects directory
This is a step towards being able to build Flatpak using Meson, which
is becoming widely available even in LTS distributions. Meson's
built-in support for subprojects expects to find them in ./subprojects
at top level.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-04-06 10:21:29 +02:00