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

discover: init at 5.15.3 #34756

Merged
merged 2 commits into from Apr 29, 2019
Merged

discover: init at 5.15.3 #34756

merged 2 commits into from Apr 29, 2019

Conversation

peterhoeg
Copy link
Member

Motivation for this change

Is this worth merging considering discover doesn't actually do anything on NixOS?

Cc: @bkchr @adisbladis @ttuegel

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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/)
  • Fits CONTRIBUTING.md.

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

warning: unable to download 'http://192.168.0.203:32062/nix-cache-info': Couldn't connect to server (7); retrying in 266 ms
warning: unable to download 'http://192.168.0.203:32062/nix-cache-info': Couldn't connect to server (7); retrying in 636 ms
warning: unable to download 'http://192.168.0.203:32062/nix-cache-info': Couldn't connect to server (7); retrying in 1216 ms
warning: unable to download 'http://192.168.0.203:32062/nix-cache-info': Couldn't connect to server (7); retrying in 2051 ms
warning: unable to download 'http://192.168.0.203:32062/nix-cache-info': Couldn't connect to server (7); retrying in 4163 ms
warning: unable to download 'http://192.168.0.203:32062/nix-cache-info': Couldn't connect to server (7); retrying in 9337 ms
warning: unable to download 'http://192.168.0.203:32062/nix-cache-info': Couldn't connect to server (7); retrying in 19584 ms
error: unable to download 'http://192.168.0.203:32062/nix-cache-info': Couldn't connect to server (7)

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/188r2a1apnzcx37ga4rg8i6913rdfzz2-discover-5.11.5/bin/plasma-discover
shrinking /nix/store/188r2a1apnzcx37ga4rg8i6913rdfzz2-discover-5.11.5/lib/qt-5.10/qml/org/kde/discovernotifier/libDiscoverNotifierDeclarativePlugin.so
shrinking /nix/store/188r2a1apnzcx37ga4rg8i6913rdfzz2-discover-5.11.5/lib/plasma-discover/libDiscoverNotifiers.so
shrinking /nix/store/188r2a1apnzcx37ga4rg8i6913rdfzz2-discover-5.11.5/lib/plasma-discover/libDiscoverCommon.so
strip is /nix/store/xmpjypwjmp2qi1chs5kr0hacnh161ls4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/188r2a1apnzcx37ga4rg8i6913rdfzz2-discover-5.11.5/lib  /nix/store/188r2a1apnzcx37ga4rg8i6913rdfzz2-discover-5.11.5/bin
patching script interpreter paths in /nix/store/188r2a1apnzcx37ga4rg8i6913rdfzz2-discover-5.11.5
checking for references to /build in /nix/store/188r2a1apnzcx37ga4rg8i6913rdfzz2-discover-5.11.5...
postPatchMkspecs
postPatchMkspecs

@bkchr
Copy link
Contributor

bkchr commented Feb 9, 2018

I think it is not useful, because everything you install will not be runable. So, I would not add the discover package.

Copy link
Member

@dtzWill dtzWill left a comment

Choose a reason for hiding this comment

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

Minor comments, if we end up wanting this.

pkgs/top-level/all-packages.nix Outdated Show resolved Hide resolved
pkgs/desktops/plasma-5/discover.nix Show resolved Hide resolved
@dtzWill
Copy link
Member

dtzWill commented Feb 9, 2018

And for those wondering what "discover" is supposed to do anyway: https://userbase.kde.org/Discover

After reading that I would agree it doesn't seem to be a good idea to inlcude. Does existing software cleanly deal with its omission (no do-nothing buttons or borked context menu entries...)?

@ttuegel
Copy link
Member

ttuegel commented Feb 9, 2018

I agree, I don't think this adds any value for our users.

Does existing software cleanly deal with its omission (no do-nothing buttons or borked context menu entries...)?

AFAIK, everything works correctly without it. And if not, that's upstream's problem for not checking dependencies 😉

@peterhoeg
Copy link
Member Author

Discover supposedly supports flatpak (and snap?) as a mechanism to install software which could be compatible with NixOS albeit far from the preferred option for getting software installed.

@bkchr
Copy link
Contributor

bkchr commented Feb 9, 2018

I think you are right, but are they only ship flatpaks/snaps with Discover?

@peterhoeg
Copy link
Member Author

but are they only ship flatpaks/snaps with Discover?

Discover can also be used to install/upgrade distribution packages which doesn't apply in to our situation.

@peterhoeg
Copy link
Member Author

So I haven't given up completely on this yet.

Discover can be used to handle things obtained through "Get New Hot Stuff" such as icons, wallpapers, plasma widgets and so on. When (if?) we get flatpak support at some point, discover can be used for that too. And should anyone decide to write a nix-env backend that would be an option as well.

In my opinion, the "Get Hot New Stuff" use-case is sufficiently strong to include discover.

Note: The appstream bits are included in #35308.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/vyr3y080vyvzyp6jrz5fa0qvr2jjpz15-discover-5.12.2/lib/plasma-discover/libDiscoverCommon.so
shrinking /nix/store/vyr3y080vyvzyp6jrz5fa0qvr2jjpz15-discover-5.12.2/lib/plasma-discover/libDiscoverNotifiers.so
shrinking /nix/store/vyr3y080vyvzyp6jrz5fa0qvr2jjpz15-discover-5.12.2/lib/qt-5.10/plugins/discover/kns-backend.so
shrinking /nix/store/vyr3y080vyvzyp6jrz5fa0qvr2jjpz15-discover-5.12.2/lib/qt-5.10/qml/org/kde/discovernotifier/libDiscoverNotifierDeclarativePlugin.so
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/vyr3y080vyvzyp6jrz5fa0qvr2jjpz15-discover-5.12.2/lib  /nix/store/vyr3y080vyvzyp6jrz5fa0qvr2jjpz15-discover-5.12.2/bin 
patching script interpreter paths in /nix/store/vyr3y080vyvzyp6jrz5fa0qvr2jjpz15-discover-5.12.2
checking for references to /tmp/nix-build-discover-5.12.2.drv-0 in /nix/store/vyr3y080vyvzyp6jrz5fa0qvr2jjpz15-discover-5.12.2...
postPatchMkspecs
postPatchMkspecs

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/4hrkq7bsk7y167y627xngv8f4v9gz9lq-discover-5.12.2/lib/qt-5.10/qml/org/kde/discovernotifier/libDiscoverNotifierDeclarativePlugin.so
shrinking /nix/store/4hrkq7bsk7y167y627xngv8f4v9gz9lq-discover-5.12.2/lib/qt-5.10/plugins/discover/kns-backend.so
shrinking /nix/store/4hrkq7bsk7y167y627xngv8f4v9gz9lq-discover-5.12.2/lib/plasma-discover/libDiscoverNotifiers.so
shrinking /nix/store/4hrkq7bsk7y167y627xngv8f4v9gz9lq-discover-5.12.2/lib/plasma-discover/libDiscoverCommon.so
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/4hrkq7bsk7y167y627xngv8f4v9gz9lq-discover-5.12.2/lib  /nix/store/4hrkq7bsk7y167y627xngv8f4v9gz9lq-discover-5.12.2/bin
patching script interpreter paths in /nix/store/4hrkq7bsk7y167y627xngv8f4v9gz9lq-discover-5.12.2
checking for references to /build in /nix/store/4hrkq7bsk7y167y627xngv8f4v9gz9lq-discover-5.12.2...
postPatchMkspecs
postPatchMkspecs

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/0dl77ksdw2cx8hrw9lgyh159r451s0w1-discover-5.12.2/lib/plasma-discover/libDiscoverCommon.so
shrinking /nix/store/0dl77ksdw2cx8hrw9lgyh159r451s0w1-discover-5.12.2/lib/plasma-discover/libDiscoverNotifiers.so
shrinking /nix/store/0dl77ksdw2cx8hrw9lgyh159r451s0w1-discover-5.12.2/lib/qt-5.10/plugins/discover/kns-backend.so
shrinking /nix/store/0dl77ksdw2cx8hrw9lgyh159r451s0w1-discover-5.12.2/lib/qt-5.10/qml/org/kde/discovernotifier/libDiscoverNotifierDeclarativePlugin.so
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/0dl77ksdw2cx8hrw9lgyh159r451s0w1-discover-5.12.2/lib  /nix/store/0dl77ksdw2cx8hrw9lgyh159r451s0w1-discover-5.12.2/bin 
patching script interpreter paths in /nix/store/0dl77ksdw2cx8hrw9lgyh159r451s0w1-discover-5.12.2
checking for references to /tmp/nix-build-discover-5.12.2.drv-0 in /nix/store/0dl77ksdw2cx8hrw9lgyh159r451s0w1-discover-5.12.2...
postPatchMkspecs
postPatchMkspecs

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/v91f28wc11777yqh9y1pi0k1r23fhpg4-discover-5.12.2/lib/qt-5.10/qml/org/kde/discovernotifier/libDiscoverNotifierDeclarativePlugin.so
shrinking /nix/store/v91f28wc11777yqh9y1pi0k1r23fhpg4-discover-5.12.2/lib/qt-5.10/plugins/discover/kns-backend.so
shrinking /nix/store/v91f28wc11777yqh9y1pi0k1r23fhpg4-discover-5.12.2/lib/plasma-discover/libDiscoverNotifiers.so
shrinking /nix/store/v91f28wc11777yqh9y1pi0k1r23fhpg4-discover-5.12.2/lib/plasma-discover/libDiscoverCommon.so
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/v91f28wc11777yqh9y1pi0k1r23fhpg4-discover-5.12.2/lib  /nix/store/v91f28wc11777yqh9y1pi0k1r23fhpg4-discover-5.12.2/bin
patching script interpreter paths in /nix/store/v91f28wc11777yqh9y1pi0k1r23fhpg4-discover-5.12.2
checking for references to /build in /nix/store/v91f28wc11777yqh9y1pi0k1r23fhpg4-discover-5.12.2...
postPatchMkspecs
postPatchMkspecs

@jtojnar
Copy link
Contributor

jtojnar commented Feb 22, 2018

We will have packagekit-nix eventually. And flatpak support is only missing tests in order to be merged.

@peterhoeg
Copy link
Member Author

The reasons for not merging discover are disappearing fast! Thanks for your work on flatpak - looking forward to that.

@peterhoeg peterhoeg force-pushed the p/discover branch 2 times, most recently from 76af08f to 876404f Compare February 22, 2018 08:09
@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

[ 57%] Building CXX object libdiscover/backends/PackageKitBackend/CMakeFiles/packagekit-backend.dir/TransactionSet.cpp.o
[ 58%] Building CXX object libdiscover/backends/PackageKitBackend/CMakeFiles/packagekit-backend.dir/packagekit-backend_autogen/mocs_compilation.cpp.o
[ 59%] Linking CXX shared module packagekit-backend.so
/nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/ld: warning: libappstream.so.4, needed by /nix/store/k6sn1p0riskcxj76sp3i6ls3p7vac82w-appstream-qt-0.11.8/lib/libAppStreamQt.so.0.11.8, not found (try using -rpath or -rpath-link)
collect2: error: ld returned 1 exit status
make[2]: *** [libdiscover/backends/PackageKitBackend/CMakeFiles/packagekit-backend.dir/build.make:329: libdiscover/backends/PackageKitBackend/packagekit-backend.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:592: libdiscover/backends/PackageKitBackend/CMakeFiles/packagekit-backend.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
builder for ‘/nix/store/x6snhib4xi108ipydqai583pdga683lk-discover-5.12.2.drv’ failed with exit code 2
error: build of ‘/nix/store/x6snhib4xi108ipydqai583pdga683lk-discover-5.12.2.drv’ failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

[100%] Linking CXX executable plasma-discover
/nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/ld: warning: libappstream.so.4, needed by /nix/store/1msy05g0zyn4khmjzkfnpjk6ks29yf1s-appstream-qt-0.11.8/lib/libAppStreamQt.so.0.11.8, not found (try using -rpath or -rpath-link)
collect2: error: ld returned 1 exit status
make[2]: *** [libdiscover/backends/PackageKitBackend/CMakeFiles/packagekit-backend.dir/build.make:329: libdiscover/backends/PackageKitBackend/packagekit-backend.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:592: libdiscover/backends/PackageKitBackend/CMakeFiles/packagekit-backend.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target plasma-discover
make: *** [Makefile:130: all] Error 2
builder for '/nix/store/8xy5n6zaq054lgw96lxh24wf4xlqxyka-discover-5.12.2.drv' failed with exit code 2
�[31;1merror:�[0m build of '/nix/store/8xy5n6zaq054lgw96lxh24wf4xlqxyka-discover-5.12.2.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: appstream-qt, discover

Partial log (click to expand)

shrinking /nix/store/n0wm3w38dsl7sd1bcs6zsjayczsra73s-discover-5.12.5/lib/qt-5.10/plugins/discover-notifier/FlatpakNotifier.so
shrinking /nix/store/n0wm3w38dsl7sd1bcs6zsjayczsra73s-discover-5.12.5/lib/qt-5.10/qml/org/kde/discovernotifier/libDiscoverNotifierDeclarativePlugin.so
shrinking /nix/store/n0wm3w38dsl7sd1bcs6zsjayczsra73s-discover-5.12.5/lib/libexec/kf5/discover/runservice
shrinking /nix/store/n0wm3w38dsl7sd1bcs6zsjayczsra73s-discover-5.12.5/bin/plasma-discover
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/n0wm3w38dsl7sd1bcs6zsjayczsra73s-discover-5.12.5/lib  /nix/store/n0wm3w38dsl7sd1bcs6zsjayczsra73s-discover-5.12.5/bin
patching script interpreter paths in /nix/store/n0wm3w38dsl7sd1bcs6zsjayczsra73s-discover-5.12.5
checking for references to /build in /nix/store/n0wm3w38dsl7sd1bcs6zsjayczsra73s-discover-5.12.5...
postPatchMkspecs
postPatchMkspecs

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: appstream-qt, discover

Partial log (click to expand)

shrinking /nix/store/66156rqryrrbdzpgr6s9vs0cpvk7xzby-discover-5.12.5/lib/qt-5.10/plugins/discover/packagekit-backend.so
shrinking /nix/store/66156rqryrrbdzpgr6s9vs0cpvk7xzby-discover-5.12.5/lib/qt-5.10/plugins/discover/kns-backend.so
shrinking /nix/store/66156rqryrrbdzpgr6s9vs0cpvk7xzby-discover-5.12.5/lib/plasma-discover/libDiscoverNotifiers.so
shrinking /nix/store/66156rqryrrbdzpgr6s9vs0cpvk7xzby-discover-5.12.5/lib/plasma-discover/libDiscoverCommon.so
strip is /nix/store/jk6j4lh9v5mvjdbdc35sj0zffhhf6s56-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/66156rqryrrbdzpgr6s9vs0cpvk7xzby-discover-5.12.5/lib  /nix/store/66156rqryrrbdzpgr6s9vs0cpvk7xzby-discover-5.12.5/bin
patching script interpreter paths in /nix/store/66156rqryrrbdzpgr6s9vs0cpvk7xzby-discover-5.12.5
checking for references to /build in /nix/store/66156rqryrrbdzpgr6s9vs0cpvk7xzby-discover-5.12.5...
postPatchMkspecs
postPatchMkspecs

@peterhoeg peterhoeg changed the title discover: init at 5.11.5 discover: init at 5.12.5 May 21, 2018
@peterhoeg
Copy link
Member Author

We're getting closer although the flatpak bits aren't quite working yet.

@jtojnar
Copy link
Contributor

jtojnar commented Nov 11, 2018

Any progress?

@peterhoeg
Copy link
Member Author

Not quite. It's currently blowing up complaining about packagekit but I haven't had the time to look at it.

@peterhoeg peterhoeg changed the title discover: init at 5.12.5 discover: init at 5.15.3 Apr 24, 2019
@peterhoeg
Copy link
Member Author

This PR alone allows installing application and plasma addons (not applications) but requires #60146 in order to not complain like crazy.

While flatpak support is compiled in, it doesn't work yet but I don't think that's a show stopper for merging as is.

@peterhoeg peterhoeg requested a review from dtzWill April 29, 2019 01:39
@dtzWill
Copy link
Member

dtzWill commented Apr 29, 2019

Using somewhat different tree[1] I can run this and successfully installed a flatpak app "kstars" and it runs successfully!

[1]
No clue if any of this matters, but JIC:

  • 5.15.4 (plasma-5: 5.15.2 -> 5.15.3 #57520 (comment) I guess)
  • newer (dev) flatpak (needs new user and such), and enabled nixos flatpak service
  • I have misc flatpak remotes from gnome and kde (although TBH they generally haven't worked well for me, but dunno)

Anyway! This seems good--it's a bit unpolished UI experience that seems generally not always handling gracefully some of the details of our environment. Anyway I think that's arguably upstream issue and our portion of it can be iterated on IMO.

Didn't have the courage to see what happens if I install things like cursors or themes O:).

@peterhoeg
Copy link
Member Author

Can you share more details on getting flatpak running? I have it enabled as well as the kde portal, but discover doesn't show any flatpaks.

@peterhoeg peterhoeg merged commit f92191e into NixOS:master Apr 29, 2019
@peterhoeg peterhoeg deleted the p/discover branch April 29, 2019 07:40
@peterhoeg peterhoeg restored the p/discover branch April 29, 2019 12:30
@peterhoeg peterhoeg deleted the p/discover branch April 30, 2019 02:03
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

6 participants