Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flatpak: 1.0.5 -> 1.1.2 #52754

Merged
merged 3 commits into from
Jan 3, 2019
Merged

flatpak: 1.0.5 -> 1.1.2 #52754

merged 3 commits into from
Jan 3, 2019

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Dec 24, 2018

Motivation for this change

WIP-ish, at least it builds now :).

IIRC there are compelling reasons to upgrade
(UI and maybe sandbox improvements) but will
need to look through release notes again.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@dtzWill
Copy link
Member Author

dtzWill commented Dec 24, 2018

@GrahamcOfBorg build flatpak
@GrahamcOfBorg test flatpak

@jtojnar
Copy link
Contributor

jtojnar commented Dec 24, 2018

This is a dev version but other distros package it as well https://repology.org/metapackage/flatpak/versions so perhaps it is fine.

We should also update xdg-desktop-portal and xdg-desktop-portal-gtk.

};

patches = [
./respect-path-env-var.patch
./0001-test-doc-portal-Skip-all-tests-if-FUSE-isn-t-support.patch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a link to the source.

@@ -1,15 +1,15 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libxml2, xdg-desktop-portal, gtk3, glib }:

let
version = "1.0.2";
version = "1.1.0";
in stdenv.mkDerivation rec {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is tackling the lockdown aspect a blocker? I can look into a solution similar to what you've linked, but might take a bit (may need to start testing using a proper gnome session so I can access these things?).

On the other hand if the "fail" mode here isn't really "fail-safe" (such that user requests permission be denied but it's ignored since flatpak can't find the setting or something) that's no good and certainly should be addressed!

FWIW upstream has more changes re:lockdown (flatpak/xdg-desktop-portal#267), not sure if that makes integration easier or not :).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If schemas are not available, the program will crash.

@jtojnar jtojnar force-pushed the update/flatpak-1.1.2 branch 3 times, most recently from 0f46672 to 5099098 Compare January 2, 2019 22:26
@jtojnar
Copy link
Contributor

jtojnar commented Jan 3, 2019

When running nix-build -A tests.flatpak.x86_64-linux nixos/release.nix, many tests fail with Floating point exception:

FAIL: flatpak/test-info@system.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-run@system,deltas.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-repo@collections.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-oci-registry@user.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-unsigned-summaries.sh.test (Child process exited with code 136)
FAIL: flatpak/test-oci-registry@system.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-build-update-repo.sh.test (Child process exited with code 136)
FAIL: flatpak/test-run@system,nodeltas.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-run@user,nodeltas.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-run@user,deltas.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-update-remote-configuration.sh.test (Child process exited with code 136)
FAIL: flatpak/test-info@user.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-override.sh.test (Child process exited with code 136)
FAIL: flatpak/test-extensions.sh.test (Child process exited with code 1)
FAIL: flatpak/test-bundle@system.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-repo@user.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-repo@system.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-repo@collections-server-only.wrap.test (Child process exited with code 136)
FAIL: flatpak/test-bundle@user.wrap.test (Child process exited with code 136)
Running test: flatpak/test-info@system.wrap.test
1..7
78293 metadata, 3735 content objects imported                                     
runtime/org.test.Platform/x86_64/master: 8592b48c2c50b4d5a146b04e7187a2b9f5ba3548811f28ba2444d6e886046a87
Updating appstream branch
Extracting icons for component org.test.Hello
Updating summary
Running web server: PYTHONUNBUFFERED=1 setsid python -m SimpleHTTPServer 0
Web server pid: 5313
Waiting for web server (1/300)...

Waiting for web server (2/300)...

Waiting for web server (3/300)...

Waiting for web server (4/300)...

Waiting for web server (5/300)...

Waiting for web server (6/300)...

Started web server 'python -m SimpleHTTPServer 0': process 5313 on port 38723
127.0.0.1 - - [02/Jan/2019 23:59:59] "GET /test/summary.sig HTTP/1.1" 200 -
127.0.0.1 - - [02/Jan/2019 23:59:59] "GET /test/summary HTTP/1.1" 200 -
Looking for matches…
127.0.0.1 - - [02/Jan/2019 23:59:59] "GET /test/summary.sig HTTP/1.1" 200 -
127.0.0.1 - - [02/Jan/2019 23:59:59] "GET /test/summary.sig HTTP/1.1" 200 -


/nix/store/x5nj18mi7rsxqylqhsyvsmg20grg31rm-flatpak-1.1.2-installedTests/libexec/installed-tests/flatpak/libtest.sh: line 304:  5384 Floating point exception${FLATPAK} ${U} install -y ${REPONAME}-repo org.test.Platform master
OK closing connection
fusermount: failed to unmount /tmp/test-flatpak-CEqpVk/runtime/doc: No such file or directory
FAIL: flatpak/test-info@system.wrap.test (Child process exited with code 136)

That does not seem to happen when running the tests outside of VM using env XDG_DATA_DIRS=(nix-build -A flatpak.installedTests)/share nix-shell -p gnome-desktop-testing --run 'gnome-desktop-testing-runner flatpak/test-info@system.wrap.test'

Do not add geoclue dependency yet:

Complains it's not new enough, apparently wants
an untagged version (2.5.1 is latest tag)

checking for libgeoclue-2.0 >= 2.5.2... no
configure: error: Package requirements (libgeoclue-2.0 >= 2.5.2) were
not met:

Requested 'libgeoclue-2.0 >= 2.5.2' but version of Geoclue Client
Library is 2.5.1
Lockdown requires gsettings-desktop-schemas
@jtojnar
Copy link
Contributor

jtojnar commented Jan 3, 2019

I tested successfully installing flatpak app and running it.

@jtojnar jtojnar merged commit ac91818 into NixOS:master Jan 3, 2019
@dtzWill dtzWill deleted the update/flatpak-1.1.2 branch January 3, 2019 17:48
@dtzWill
Copy link
Member Author

dtzWill commented Jan 3, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants