summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* dir: Fix P2P build failuremwleeds/fix-p2p-buildMatthew Leeds2018-02-192-2/+4
| | | | | | | | | | | | Apparently when I rebased https://github.com/flatpak/flatpak/pull/1314 to master, git cleanly applied the patch in a different place than it was originally. Commit c5ab9e22b moved the find_remotes_async() call to find_latest_rev(), so all that needs to be done is pass along the checksum in check_for_update(). This way when you're trying to downgrade something the specified commit will be searched for instead of the latest one. Fixes https://github.com/flatpak/flatpak/issues/1431
* Update pofiles0.11.3Alexander Larsson2018-02-1913-117/+117
|
* Bump version to 0.11.3Alexander Larsson2018-02-191-1/+1
|
* Update NEWSAlexander Larsson2018-02-191-0/+6
|
* Fix --file-forwardingAlexander Larsson2018-02-191-0/+3
| | | | | | | flatpak_context_append_bwrap_filesystem() didn't actually return the exports so callers crashed dereferencing NULL. This fixes https://github.com/flatpak/flatpak/issues/1428
* common: Include sys/mman.h for memfd_create()David King2018-02-191-0/+1
| | | | | Versions of glibc starting with 2.27 include support for memfd_create() in sys/mman.h, and the included libglnx then drops its internal define.
* Update pofiles0.11.2Alexander Larsson2018-02-1913-1066/+1066
|
* Update to latest libglnxAlexander Larsson2018-02-191-0/+0
|
* Bump version to 0.11.2Alexander Larsson2018-02-191-1/+1
|
* Update NEWS for releaseAlexander Larsson2018-02-191-0/+8
|
* .gitignore: Ignore flatpak-document-dbus.[ch]Matthew Leeds2018-02-191-0/+1
| | | | | | | | These targets were added in commit f2a6c1db8 and don't need to be tracked by git. Closes: #1429 Approved by: alexlarsson
* search: Don't duplicate apps with different archesPatrick Griffis2018-02-191-0/+16
| | | | | Closes: #1430 Approved by: alexlarsson
* search: Minor cleanupsPatrick Griffis2018-02-191-8/+11
| | | | | | | | We don't need to duplicate the store for each arch only each remote. Closes: #1430 Approved by: alexlarsson
* dir: Quiet messages about missing appstream dataMatthew Leeds2018-02-191-2/+6
| | | | | | | | | | | | Now that the search command is attempting to update appstream data for all supported architectures, error messages get printed when it's missing, which is often the case for i386. This commit changes flatpak_dir_check_for_appstream_update() to only print an error if the the appstream data for the host architecture is missing, but not if it's a secondary architecture. Closes: #1430 Approved by: alexlarsson
* search: Search all supported architecturesMatthew Leeds2018-02-191-24/+31
| | | | | | | | | | | | Currently the search command only searches remotes for apps and runtimes that match the host architecture. This commit makes flatpak include all supported architectures so for example you can see a 32-bit app on a 64-bit computer. Fixes https://github.com/flatpak/flatpak/issues/1353 Closes: #1430 Approved by: alexlarsson
* dir: Allow downgrading when using collection IDsMatthew Leeds2018-02-192-2/+22
| | | | | | | | | | | | | | | | | Before the 2018.2 release of libostree there was no way to specify commit IDs when using find_remotes_async(). The latest commit is always pulled, so flatpak apps can't be downgraded when collection IDs are in use. Now that an option is provided by libostree this commit uses it, and updates the minimum required version to 2018.2 when P2P support is enabled. The effect is that `flatpak update --commit=HASH APP` will work when APP comes from a repository that has a collection ID configured. Fixes https://github.com/flatpak/flatpak/issues/1309 Closes: #1314 Approved by: pwithnall
* dir: Remove outdated commentMatthew Leeds2018-02-181-1/+0
| | | | P2P appstream updates were fixed by commit c5ab9e22b.
* Fix flatpak build on atomicAlexander Larsson2018-02-161-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On atomic, /home is a symlink to /var/home, which caused problems in flatpak build when granting access to the homedir. Due to a previous workaround (in 1aadc3ee40f915927c129d0090d95497a23b4f5f) we make /var in the flatpak build sandbox be completely overridden with $builddir/var so that the above symlink would not cause problems in the persisted directory. However, when we actually *want* to give access to that symlink this causes problem. In general, exposing /var in the sandbox has two uses: * Allowing persisting tmpfiles in /var/tmp between individual flatpak build commands (/tmp is per-build-command). * Creating flatpaks from packages, such as rpms, where we want to keep the rpm database (/var/lib/rpm) around during the entire build so that dependencies can be resolved. In order to handle these /var/home issues while still allowing the above issues we instead persist only /var/tmp and /var/lib. Fixes https://github.com/flatpak/flatpak/issues/1407 Closes: #1421 Approved by: alexlarsson
* appdata: Remove unnecessary spew when generating appdataAlexander Larsson2018-02-161-2/+0
| | | | | | | | | The process was printing a line for every mismatching component id in the xml for each app, which is starting to get very large log files on flathub. Closes: #1426 Approved by: alexlarsson
* Fix persisted directories on atomicAlexander Larsson2018-02-151-4/+1
| | | | | | | | | | | | | | | | | | On atomic /home is a symlink to /var/home, so when we bind-mount the persistent directories we need to early-resolve the symlinks to avoid running into issues with /newroot. In most cases we do this already by calling flatpak_bwrap_add_bind_arg, but the persistent dir case did not, because that function required the target to exist, and the persistent directoried might not. However, these days flatpak_bwrap_add_bind_arg is fine if the base dir doesn't exists but the target does, which is the case here, so we can use it now. This fixes e.g. steam: https://github.com/flatpak/flatpak/issues/1278 Closes: #1422 Approved by: cgwalters
* Remove unused FUSE build-dependencySimon McVittie2018-02-151-2/+0
| | | | | | | | | This was needed for the document portal, which has been removed. Signed-off-by: Simon McVittie <smcv@collabora.com> Closes: #1417 Approved by: alexlarsson
* Update pofiles0.11.1Alexander Larsson2018-02-1413-4659/+5149
|
* Update NEWS for releaseAlexander Larsson2018-02-141-0/+38
|
* Silence coverity (CID 1465243)Alexander Larsson2018-02-141-1/+2
| | | | | | | Check the return value of repo_get_remote_collection_id like we do in other places. This doesn't really affect the result, because we return NULL both before and after in the failure case, but it makes things clearer.
* Add fallback-x11 socket permissionAlexander Larsson2018-02-148-14/+31
| | | | | | | | | | This means use x11 if no alternative is present, and should be used for applications that support both X11 and wayland, but want to be sandboxed when running under a wayland compositor (but still want to run under an X server). Closes: #1416 Approved by: alexlarsson
* Allow personality syscall in devel modeAlexander Larsson2018-02-131-2/+2
| | | | | | | | | | Emacs needs ADDR_NO_RANDOMIZE during the build, and its possible that other things do too. Also this make sense, as personality seems like a syscall on the level of ptrace() which is already in devel. Closes: #1414 Approved by: alexlarsson
* dir: Check for appstream updates using P2P codeMatthew Leeds2018-02-132-70/+113
| | | | | | | | | | | | This commit breaks out the code in flatpak_dir_check_for_update() that finds the latest revision of a ref into its own function and uses it in flatpak_dir_check_for_appstream_update(). This allows appstream updates to work even for offline machines. Fixes https://github.com/flatpak/flatpak/issues/1404 Closes: #1397 Approved by: alexlarsson
* dir: Avoid another summary fetch in P2P codeMatthew Leeds2018-02-131-4/+2
| | | | | | | | | | | | | Before doing an update, flatpak fetches remote repo metadata to find related refs and other information. But after fetching the metadata flatpak fetches the remote summary to get the checksum that was just fetched, which can fail if the computer is offline. So instead get the checksum by reading the local repo, which has the side benefit of eliminating a race condition (the summary being updated right after the fetch happens). Closes: #1397 Approved by: alexlarsson
* dir: Make untrusted local pulls aware of collection IDsMatthew Leeds2018-02-131-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | In the last step in a LAN app update when the system helper is called to deploy the update, there's a call chain to pull from the temporary child repo: handle_deploy() -> flatpak_dir_pull_untrusted_local() -> repo_pull_one_local_untrusted() -> ostree_repo_pull_with_options() But since repo_pull_one_local_untrusted() isn't aware of the existence of collection IDs, it doesn't pass a collection ID along to libostree and sets gpg-verify-summary to true. This leads to the error "GPG verification enabled, but no summary.sig found" because P2P code paths don't use summary signatures. Add the appropriate ostree pull options to repo_pull_one_local_untrusted() so that P2P updates work when the system-helper is used. Fixes https://github.com/flatpak/flatpak/issues/1388 Closes: #1397 Approved by: alexlarsson
* dir: Don't fetch the summary unnecessarilyMatthew Leeds2018-02-131-27/+65
| | | | | | | | | | | | | | | | | | | | | | | Currently P2P flatpak app updates aren't working when the system installation is being used (but they work for the user installation). This is because there's a flatpak_dir_remote_fetch_summary() call in flatpak_dir_update() which fails if the machine isn't connected to the Internet. And in fact we don't need to pull the summary from the system remote, we need the one from the temporary P2P remote, and that gets pulled as a result of the flatpak_dir_pull() call to get the ref because OSTREE_REPO_PULL_FLAGS_MIRROR is used. So this commit changes flatpak_dir_update() to avoid fetching the system remote summary fetch when P2P support and collection IDs are being used. Similar logic applies to flatpak_dir_install() and flatpak_dir_update_appstream() (although P2P appstream updates don't seem to be working yet). This is a partial fix for https://github.com/flatpak/flatpak/issues/1388 Closes: #1397 Approved by: alexlarsson
* dir: Squash empty collection IDs into NULL onesMatthew Leeds2018-02-131-5/+3
| | | | | | | | | | | | repo_get_remote_collection_id() already squashes empty ("") collection IDs into NULL, and ignores the collection ID when P2P support isn't enabled. So use that helper function in flatpak_dir_get_remote_collection_id() for consistency. At the moment that function is only used in tests, so this doesn't immediately affect anything. Closes: #1411 Approved by: alexlarsson
* commit-from: Also copy/convert existing static deltasAlexander Larsson2018-02-132-0/+176
| | | | | | | | | | When copying a commit, also bring forward any static deltas. This is particularly interesting for flathub where we can then generate static deltas on the build machines and then import and sign it on the repo machine. Closes: #1409 Approved by: alexlarsson
* pulseaudio: Respect pulseaudio env vars and config fileAlexander Larsson2018-02-121-1/+122
| | | | | | | | | | | | Instead of just assuming the default pulseaudio socket we look at the same environment and config files that pulseaudio does. This does not currently look at the X11 properties. This is a cleaned up and rebased version of https://github.com/flatpak/flatpak/pull/1208 Closes: #1410 Approved by: alexlarsson
* build-bundle: Add --from-commit optionPatrick Griffis2018-02-121-3/+5
| | | | | | | | This allows building smaller bundles that are deltas from a specific commit. Closes: #1394 Approved by: alexlarsson
* doc: Add --timestamp option to build-export docsMatthew Leeds2018-02-121-0/+8
| | | | | Closes: #1408 Approved by: alexlarsson
* build-export: Fix use of uninitialized memoryMatthew Leeds2018-02-121-2/+2
| | | | | | | | | | This fixes build-export so that it doesn't try to use uninitialized memory in a timestamp object when creating appstream data. Before the --timestamp option existed, a timestamp of 0 was used, so fall back to that. Also, update a relevant comment. Closes: #1408 Approved by: alexlarsson
* search: Don't print anything when updating appstream dataMatthew Leeds2018-02-094-5/+17
| | | | | | | | | For the "flatpak update" it makes sense to print a message when updating the appstream data for each remote, but it makes less sense for the search command, because it's output should just be the table of results. Closes: #1352 Approved by: alexlarsson
* app: Add more debug outputMatthew Leeds2018-02-091-2/+12
| | | | | Closes: #1352 Approved by: alexlarsson
* search: Only update appstream data if it's oldMatthew Leeds2018-02-095-3/+40
| | | | | | | | | Updating the appstream data on every invocation of the search command involves a lot of overhead, so instead only update it if it's at least a day out of date. This is consistent with how tools like dnf work. Closes: #1352 Approved by: alexlarsson
* search: Update appstream data before searchingMatthew Leeds2018-02-091-0/+6
| | | | | | | | | | | This commit changes the search command to update appstream data from each remote before searching it for the specified text. This way users don't need to know to run "flatpak update --appstream". Fixes https://github.com/flatpak/flatpak/issues/1339 Closes: #1352 Approved by: alexlarsson
* app: Move update_appstream to flatpak-builtin-utils.cMatthew Leeds2018-02-093-85/+98
| | | | | | | | Move the update command's update_appstream function to flatpak-utils.c so other commands can use it. Closes: #1352 Approved by: alexlarsson
* app: Print a warning if xa.metadata doesn't existMatthew Leeds2018-02-092-8/+15
| | | | | | | | | | | | All flatpaks built using version 0.9.4 or newer should have the xa.metadata field in the commit metadata, so warn if it doesn't exist. This commit changes the info command to print a warning rather than nothing and changes the info-remote command to print a warning rather than error out. Closes: #1351 Approved by: alexlarsson
* info: Show collection ID if availableMatthew Leeds2018-02-091-0/+10
| | | | | | | | If flatpak is compiled with P2P support and the commit in question has a collection ID in its metadata, show it. Closes: #1351 Approved by: alexlarsson
* Update to latest libglnxKalev Lember2018-02-091-0/+0
| | | | | | | | | This fixes F28 FTBFS due to incorrect copy_file_range detection. https://bugzilla.redhat.com/show_bug.cgi?id=1541105 Closes: #1389 Approved by: alexlarsson
* Remove document portalAlexander Larsson2018-02-0942-8806/+19
| | | | | | | | | | | This is now in xdg-desktop-portal. We keep a version of the document portal dbus XML so that we avoid weird build dependencies. Flatpak itself is technically not dependent on the document portal, but it is very much recommended that you use it. Closes: #1398 Approved by: alexlarsson
* dir: Fix typos/grammarMatthew Leeds2018-02-081-4/+4
| | | | | Closes: #1392 Approved by: mwleeds
* lib: Make gnome-software work with an empty /var/lib/flatpakKalev Lember2018-02-072-46/+166
| | | | | | | | | | Similar to commit 6bb0196ffda1a80163f0c90172cb96f66594b962 that fixed https://github.com/flatpak/flatpak/issues/113 for the flatpak CLI, this fixes the library so that gnome-software works with an empty /var/lib/flatpak. Closes: #1368 Approved by: alexlarsson
* Handle non-existing document portal nicerAlexander Larsson2018-02-071-1/+4
| | | | | | | | The document portal is essentially optional, so avoid spewing errors if it is not available, but also report this nicer with -v. Closes: #1387 Approved by: alexlarsson
* document-portal: No fallback if app needs read-write but access read-onlyAlexander Larsson2018-02-071-20/+36
| | | | | | | | | If you're exporting a path that the target app has access to but it is read-only and the requested permissions include write access then we create the document rather than reusing the path. Closes: #1387 Approved by: alexlarsson
* info: Add support for flatpak info --file-accessAlexander Larsson2018-02-071-9/+26
| | | | | | | | This allows you to see if a particular app has access to a specific path. Closes: #1387 Approved by: alexlarsson