Commit Graph

2827 Commits

Author SHA1 Message Date
Colin Walters
e50deccdd3 ci: Build ostree from git master
To assist https://github.com/flatpak/flatpak/pull/848
2017-06-15 09:02:45 +02:00
Colin Walters
841e6c10a6 ci: Rework to be based on FAH + priv container
Installing build dependencies directly on a host should be
considered an anti-pattern.  Steal some of the bits from
rpm-ostree's PAPR bits.

Another benefit here is we avoid duplicating the build dependencies again, since
we start using `yum-builddep.

We only have one context now, `f25-primary`, rather than having Clang
show up as a separate thing, since IMO it's not worth its own context.
2017-06-15 09:02:45 +02:00
Colin Walters
7ba38095c0 ci: mv .redhat-ci.yml → .papr.yml
It's got a new name: https://github.com/projectatomic/papr
2017-06-15 09:02:45 +02:00
Matthias Clasen
cb9b113efe Merge pull request #847 from AsciiWolf/cs-update
Update Czech translation
2017-06-13 14:06:46 -04:00
AsciiWolf
9902461f3c Update Czech translation 2017-06-13 16:04:47 +02:00
Alexander Larsson
bc7ebd20e2 builder: Allow .pyc files without .py
This is common for binary-only releases, for example as described
in:
https://lists.freedesktop.org/archives/flatpak/2017-June/000697.html
2017-06-13 11:17:06 +02:00
Colin Walters
daf36ba2af dir: Ensure ~/.local/share/flatpak is 0700
This goes into a big old topic about Unix homedir permissions; it's not uncommon
for general purpose OS vendors to have homedirs be 0755. In that case,
applications need to ensure confidentiality for data requiring it (classically
e.g. `~/.ssh`) by making the dirs `0700`.

While most of the data in the flatpak per-user dir probably isn't confidential
(debatably) we have a different issue; if container content includes suid or
world-writable files/dirs, then having that data accessible to other users
is obviously problematic.

We're going to fix flatpak/ostree to not create files with those modes
to begin with, but this simple fix closes off the attack route for
the per-user directory.

A different fix will be necessary for the system-wide repo.

See: https://github.com/flatpak/flatpak/pull/837
2017-06-08 17:00:20 +02:00
Colin Walters
4714f55ebd dir: Ensure we return on pull error to avoid error-overwrites
Looking at the git history, this code originally retried on
some cases for pull, then stopped doing so, then a later commit
added code after it, which made it incorrect.

Just do an early return again and drop the `res` variable.
2017-06-08 09:42:40 +02:00
Alexander Larsson
e5aa73f4a5 build-export: Canonicalize file permissions
This canonicalizes the file modes for directories to 0755, and
for files to 0755 for executables or 0644 otherwise.

This means we never get files/dirs writable by non-root in the
system repo, and we never get setuid/setgid/sticky-bit, all
which could potentially be a problem if we store them in the
system repo.

See https://github.com/flatpak/flatpak/pull/837 for some discussion
about this.
2017-06-08 08:50:46 +02:00
Matthias Clasen
27761c17d6 Merge pull request #835 from smcv/generated-dbus
Don't distribute gdbus-codegen-generated source in tarballs
2017-06-06 16:06:37 -04:00
Matthias Clasen
4bd408a438 Merge pull request #836 from smcv/better-diagnostics
testlibrary: Call g_assert_no_error first
2017-06-06 15:49:33 -04:00
Matthias Clasen
f1ad969b16 Merge pull request #838 from pwithnall/minor-fixes
Various minor fixes
2017-06-06 15:38:23 -04:00
Philip Withnall
0888ec4701 builder-options: Fix setting CPPFLAGS
They were being set to an uninitialised set of flags from cxxflags.
Spotted as a compiler warning.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-06-06 20:09:16 +01:00
Philip Withnall
9ef301beeb ls-remote: Drop unused variable
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-06-06 20:09:07 +01:00
Philip Withnall
95106a34d5 xdp-main: Fix a typo in a comparison
This was almost certainly meant to be a logical AND, not a bitwise one.
As spotted from compiler warnings.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-06-06 19:43:09 +01:00
Philip Withnall
a4d366f0d5 xdp-fuse: Add parentheses to clarify precedence in a conditional
As suggested by the compiler.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-06-06 19:43:09 +01:00
Philip Withnall
c835b38423 doc: Remove duplicate list entry from flatpak-remote.xml
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-06-06 19:42:54 +01:00
Philip Withnall
8daef223bb utils: Fix minor formatting issue in gtk-doc comment
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-06-06 19:42:54 +01:00
Philip Withnall
a664fd136a dir: Fix a minor memory leak
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-06-06 19:42:54 +01:00
Simon McVittie
37e52409aa Don't distribute gdbus-codegen-generated source in tarballs 2017-06-05 21:53:17 +01:00
Simon McVittie
7612232ab8 testlibrary: Call g_assert_no_error first
Failing tests produce much clearer diagnostics this way round.

Signed-off-by: Simon McVittie <smcv@debian.org>
2017-06-05 21:48:59 +01:00
Alexander Larsson
123518143d Update pofiles 0.9.5 2017-06-05 13:52:23 +02:00
Alexander Larsson
ce2b51e729 Bump version to 0.9.5 2017-06-05 13:36:16 +02:00
Alexander Larsson
575628717a Update NEWS for relase 2017-06-05 13:35:56 +02:00
Alexander Larsson
4119de9eae build-commit-from: Don't copy old xa.ref in metadata
This caused installations of the new commit to break because the
first xa.ref was used, which was the old one.
2017-06-05 12:45:20 +02:00
Alexander Larsson
1d9fe6fbf3 run: Allow --filesystem=xdg-*/subdir:ro
We previously required the directory to be writable to expose
it in the app-specific directory. However, the file was already
made visible in the regular location, and it was explicitly requested
by the app, so not allowing it to be there read-only makes no sense.

In particular, this allows KDE apps to use
--filesystem=xdg-config/kdeglobals:ro to allow apps to pick up global
configurations such as theme, etc, in a safe way.
2017-06-01 11:03:20 +02:00
Alexander Larsson
75d884046d run: Allow regular files for --filesystem=xdg-config/path
KDE needs this to put ~/.config/kdeglobals into the sandbox
2017-06-01 10:50:22 +02:00
Matthias Clasen
ea7077fcd4 Merge pull request #825 from AsciiWolf/cs-update
Update Czech translation
2017-05-31 10:12:12 -04:00
Alexander Larsson
05f9c8730c builder: Add --export-only feature
This allows you to export a previous build, and still get features
like debug and locale extensions.

Fixes https://github.com/flatpak/flatpak/issues/824
2017-05-31 14:08:36 +02:00
AsciiWolf
586b3ceec5 Update Czech translation 2017-05-31 12:43:27 +02:00
Alexander Larsson
bd22ff8d42 dbus-portal: Fix return value type of filtered NameHasOwner
Fixes https://github.com/flatpak/flatpak/issues/817
2017-05-31 08:58:08 +02:00
Alexander Larsson
e69237f792 Handle app ids with dashes when ignoring locale/debug.
org.foo.foo-bar extensions become org.foo.foo_bar.Locale, etc, so
we need to handle this properly.
2017-05-30 18:07:46 +02:00
Alexander Larsson
005fb63cc0 list/remote-ls: Also ignore .Sources by default 2017-05-30 17:45:12 +02:00
Alexander Larsson
d1fae1f476 remote-ls: Don't show Locale/Debug and secondary arches by default.
Locale and Debug extensions, and refs for a secondary arch, when the
primary arch alternative exists, are not shown unless you specify
--all or -a.

This makes the default output more useful.
2017-05-30 17:41:24 +02:00
Alexander Larsson
f072d585b0 list: Don't list .Locale and .Debug by default (override with -a) 2017-05-30 17:41:01 +02:00
Alexander Larsson
f616ada02b build-update-repo: Remove unwanted deltas before updating summary
The list of deltas is stored in the summary, so we need to delete
them before we generate the summary, not before.

This means there is a short period where people may use the old summary
which references the old, now deleted summaries. However, that is
better than it referencing the deleted deltas forever.
2017-05-30 15:16:12 +02:00
Alexander Larsson
475dde6263 run: Add debug sprew for all bwrap arguments 2017-05-30 13:40:40 +02:00
Matthias Clasen
f8f35f9675 Merge pull request #820 from matthiasclasen/add-full-docs2
document store: Document as-needed functionality of AddFull
2017-05-30 06:18:13 -04:00
Matthias Clasen
0202c9688b Merge pull request #823 from AsciiWolf/cs-update
Update Czech translation
2017-05-30 06:17:09 -04:00
AsciiWolf
7ea534758d Update Czech translation 2017-05-30 12:06:14 +02:00
Alexander Larsson
d8000183f6 extra-data: Print exit status if apply_extra_data script fails 2017-05-30 11:12:37 +02:00
Matthias Clasen
5d610b9ddd document store: Document as-needed functionality of AddFull
Mention the new flag and its functionality in the portal API
documentation.
2017-05-29 09:43:35 -04:00
Alexander Larsson
c620ba642d document portal: Fix race condition when unmounting old version
Fixes https://github.com/flatpak/flatpak/issues/814
2017-05-26 16:56:58 +02:00
Alexander Larsson
333f308a2b builder: Don't warn for unknown properties starting with x-
Fixes https://github.com/flatpak/flatpak/issues/809
2017-05-26 16:34:43 +02:00
Alexander Larsson
4a54450400 documents: paths in the apps dir ar always accessible
When using the as-needed flag in AddFull, we need to consider
the files in the target apps app-specific dir also accessible.

Fixes https://github.com/flatpak/flatpak/issues/815
2017-05-26 13:05:43 +02:00
Matthias Clasen
acb37bc1e9 Merge pull request #812 from AsciiWolf/cs-update
Update Czech translation
2017-05-24 14:44:05 -04:00
AsciiWolf
b1726fc3df Update Czech translation 2017-05-24 15:52:23 +02:00
Mathieu Bridon
8b9df0ddcf Automatically use a separate builddir with Meson
Meson does not support builddir == srcdir, so there is no reason to
require developers to set "builddir" to true in their manifests, when we
can just do the right thing.
2017-05-24 15:18:26 +02:00
Patrick Griffis
1775eab41c run: Handle file paths when forwarding uris
Ideally it would always be a URI but it seems in real usage you
do get normal paths.
2017-05-24 13:19:39 +02:00
Alexander Larsson
e75cff6bb5 export: Store the app id in the X-Flatpak key
We need this, because it may not correspond 100% to
the desktop file id, as flatpak allows suffixes if you
want multiple desktop files in one app.
2017-05-24 12:02:42 +02:00