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

kodiPlugins: add YATP, drop exodus #46403

Merged
merged 4 commits into from Nov 18, 2018
Merged

kodiPlugins: add YATP, drop exodus #46403

merged 4 commits into from Nov 18, 2018

Conversation

oxij
Copy link
Member

@oxij oxij commented Sep 8, 2018

Motivation for this change

Continuation of #46196. A mass rebuild.

Things done
  • Builds and works without issues

Note: after adding yatp into kodiWithPlugins you have to enable YATP manually in Kodi UI.

Merge at will.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: kodiPlugins.simpleplugin, kodiPlugins.yatp

Partial log (click to expand)

no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/0v6x9xqpmyip96mhb7dvnpivqbdnzcqg-kodi-plugin-yatp-3.3.2
patching script interpreter paths in /nix/store/0v6x9xqpmyip96mhb7dvnpivqbdnzcqg-kodi-plugin-yatp-3.3.2
checking for references to /build in /nix/store/0v6x9xqpmyip96mhb7dvnpivqbdnzcqg-kodi-plugin-yatp-3.3.2...
/nix/store/bvnbh70qlxdjhp2dafj69zn8c36zzh1h-kodi-plugin-simpleplugin-2.3.2
/nix/store/0v6x9xqpmyip96mhb7dvnpivqbdnzcqg-kodi-plugin-yatp-3.3.2

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: kodiPlugins.simpleplugin, kodiPlugins.yatp

Partial log (click to expand)

no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/di7pwx7k9d56ir6hss8w6r9p6yk6x9sr-kodi-plugin-yatp-3.3.2
patching script interpreter paths in /nix/store/di7pwx7k9d56ir6hss8w6r9p6yk6x9sr-kodi-plugin-yatp-3.3.2
checking for references to /build in /nix/store/di7pwx7k9d56ir6hss8w6r9p6yk6x9sr-kodi-plugin-yatp-3.3.2...
/nix/store/pqmg5zj65iww13qmzjmi0scvy92d5sg0-kodi-plugin-simpleplugin-2.3.2
/nix/store/di7pwx7k9d56ir6hss8w6r9p6yk6x9sr-kodi-plugin-yatp-3.3.2

@xeji
Copy link
Contributor

xeji commented Sep 9, 2018

The mass rebuild seems to by caused by dropping the split outputs of pythonPackages.requests.
Is that really necessary to build the kodi plugins?

@oxij
Copy link
Member Author

oxij commented Sep 9, 2018 via email

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: kodiPlugins.simpleplugin, kodiPlugins.yatp

Partial log (click to expand)

no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/3pvz9s1ksqg5jf7avfgms7y0ipd1q9h3-kodi-plugin-yatp-3.3.2
patching script interpreter paths in /nix/store/3pvz9s1ksqg5jf7avfgms7y0ipd1q9h3-kodi-plugin-yatp-3.3.2
checking for references to /build in /nix/store/3pvz9s1ksqg5jf7avfgms7y0ipd1q9h3-kodi-plugin-yatp-3.3.2...
/nix/store/bvnbh70qlxdjhp2dafj69zn8c36zzh1h-kodi-plugin-simpleplugin-2.3.2
/nix/store/3pvz9s1ksqg5jf7avfgms7y0ipd1q9h3-kodi-plugin-yatp-3.3.2

@FRidh
Copy link
Member

FRidh commented Sep 9, 2018

Yes, the requests thing is ugly, but its a consequence of Python packages unfortunately using propagatedBuildInputs.

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: kodiPlugins.simpleplugin, kodiPlugins.yatp

Partial log (click to expand)

no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/n0haxi1w4gh4jqgh3jix1jhpvcf3kgn1-kodi-plugin-yatp-3.3.2
patching script interpreter paths in /nix/store/n0haxi1w4gh4jqgh3jix1jhpvcf3kgn1-kodi-plugin-yatp-3.3.2
checking for references to /build in /nix/store/n0haxi1w4gh4jqgh3jix1jhpvcf3kgn1-kodi-plugin-yatp-3.3.2...
/nix/store/pqmg5zj65iww13qmzjmi0scvy92d5sg0-kodi-plugin-simpleplugin-2.3.2
/nix/store/n0haxi1w4gh4jqgh3jix1jhpvcf3kgn1-kodi-plugin-yatp-3.3.2

@oxij oxij changed the base branch from staging to master September 10, 2018 17:56
@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: kodiPlugins.simpleplugin, kodiPlugins.yatp

Partial log (click to expand)

no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/583wjlmz11b0g16d6v24b7xwbm2rgdzb-kodi-plugin-yatp-3.3.2
patching script interpreter paths in /nix/store/583wjlmz11b0g16d6v24b7xwbm2rgdzb-kodi-plugin-yatp-3.3.2
checking for references to /build in /nix/store/583wjlmz11b0g16d6v24b7xwbm2rgdzb-kodi-plugin-yatp-3.3.2...
/nix/store/jvxdq68dlcy878gd0gppkd84nfalf65w-kodi-plugin-simpleplugin-2.3.2
/nix/store/583wjlmz11b0g16d6v24b7xwbm2rgdzb-kodi-plugin-yatp-3.3.2

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: kodiPlugins.simpleplugin, kodiPlugins.yatp

Partial log (click to expand)

no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/r24mr9fmjp187zf3dzcr21yn38ywximp-kodi-plugin-yatp-3.3.2
patching script interpreter paths in /nix/store/r24mr9fmjp187zf3dzcr21yn38ywximp-kodi-plugin-yatp-3.3.2
checking for references to /build in /nix/store/r24mr9fmjp187zf3dzcr21yn38ywximp-kodi-plugin-yatp-3.3.2...
/nix/store/h51bg87wk936qlm7d0n53k165aif6zbg-kodi-plugin-simpleplugin-2.3.2
/nix/store/r24mr9fmjp187zf3dzcr21yn38ywximp-kodi-plugin-yatp-3.3.2

@xeji
Copy link
Contributor

xeji commented Sep 11, 2018

@oxij is this ready to merge now?

@oxij
Copy link
Member Author

oxij commented Sep 11, 2018 via email

The `dev` output is empty anyway.

The problem is that it interacts badly with other parts of python and
stdenv infrastructure. In particular, before this patch it installs
code into `out` output (with only generated `nix-support` in `dev`),
but `makePythonPath` then uses `propagatedBuildInputs` to generate
`PYTHONPATH` while stdenv selects `dev` outputs for
`propagatedBuiltInputs`. This results in `makePythonPath` linking to
the empty `dev` output in `PYTHONPATH`.

This reverts a piece of commit 28299f6.
No loner exists, I couldn't find an official replacement repo, should be
removed according to
NixOS#46196 (comment)
@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: kodiPlugins.simpleplugin, kodiPlugins.yatp

Partial log (click to expand)

no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/5q70fxc1mpx9z4g4vw5snlxv02h7biym-kodi-plugin-yatp-3.3.2
patching script interpreter paths in /nix/store/5q70fxc1mpx9z4g4vw5snlxv02h7biym-kodi-plugin-yatp-3.3.2
checking for references to /build in /nix/store/5q70fxc1mpx9z4g4vw5snlxv02h7biym-kodi-plugin-yatp-3.3.2...
/nix/store/mckn472sakvmhkm6s7qw1dsi6yqpf44r-kodi-plugin-simpleplugin-2.3.2
/nix/store/5q70fxc1mpx9z4g4vw5snlxv02h7biym-kodi-plugin-yatp-3.3.2

@oxij
Copy link
Member Author

oxij commented Nov 7, 2018

After digging through the internals I came to the conclusion that the original approach was correct. See the commit messages. I think this need some more input from @FRidh.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: kodiPlugins.simpleplugin, kodiPlugins.yatp

Partial log (click to expand)

no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/ry609fp15dzx2d8ybj4q0cnzyysysjgj-kodi-plugin-yatp-3.3.2
patching script interpreter paths in /nix/store/ry609fp15dzx2d8ybj4q0cnzyysysjgj-kodi-plugin-yatp-3.3.2
checking for references to /build in /nix/store/ry609fp15dzx2d8ybj4q0cnzyysysjgj-kodi-plugin-yatp-3.3.2...
/nix/store/8bdqk239zqb1mhl8wnwzb4j8fs40ppf6-kodi-plugin-simpleplugin-2.3.2
/nix/store/ry609fp15dzx2d8ybj4q0cnzyysysjgj-kodi-plugin-yatp-3.3.2

@oxij
Copy link
Member Author

oxij commented Nov 18, 2018

@FRidh ping. In particular, I want some input on 5c60dce

@oxij
Copy link
Member Author

oxij commented Nov 18, 2018

Btw, after digging this I now feel like going through all multi-output python packages and removing multiple outputs from those that have dev output empty. What is the point of the empty dev output anyway?

@FRidh
Copy link
Member

FRidh commented Nov 18, 2018

Btw, after digging this I now feel like going through all multi-output python packages and removing multiple outputs from those that have dev output empty. What is the point of the empty dev output anyway?

Yes, we should remove multiple outputs in case of Python packages because it doesn't work. As soon as an output is defined, the propagated-build-inputs is no longer written it seems.

The original idea was to get certain build-time dependencies out of a closure if I understood correctly, but that seems to have been resolved elsewhere already.

@oxij
Copy link
Member Author

oxij commented Nov 18, 2018 via email

@FRidh FRidh changed the base branch from master to staging November 18, 2018 10:19
@FRidh FRidh merged commit f78835e into NixOS:staging Nov 18, 2018
@FRidh
Copy link
Member

FRidh commented Nov 18, 2018

Note I suggest that Kodi packages are going to be put in a file of their own. That gives the possibility to use @r-ryantm

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: kodiPlugins.simpleplugin, kodiPlugins.yatp

Partial log (click to expand)

no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/g2f8xy2crmmmxwhm76qfbywi334a9fwc-kodi-plugin-yatp-3.3.2
patching script interpreter paths in /nix/store/g2f8xy2crmmmxwhm76qfbywi334a9fwc-kodi-plugin-yatp-3.3.2
checking for references to /build/ in /nix/store/g2f8xy2crmmmxwhm76qfbywi334a9fwc-kodi-plugin-yatp-3.3.2...
/nix/store/nfb88k93q7hpslz14mg7s9mrb4z3vba9-kodi-plugin-simpleplugin-2.3.2
/nix/store/g2f8xy2crmmmxwhm76qfbywi334a9fwc-kodi-plugin-yatp-3.3.2

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: kodiPlugins.simpleplugin, kodiPlugins.yatp

Partial log (click to expand)

no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/877i1b63q74dkvyg78zn24zms88ri9g9-kodi-plugin-yatp-3.3.2
patching script interpreter paths in /nix/store/877i1b63q74dkvyg78zn24zms88ri9g9-kodi-plugin-yatp-3.3.2
checking for references to /build/ in /nix/store/877i1b63q74dkvyg78zn24zms88ri9g9-kodi-plugin-yatp-3.3.2...
/nix/store/ff9mb8lsijldq46qnahy876mrdc9br8k-kodi-plugin-simpleplugin-2.3.2
/nix/store/877i1b63q74dkvyg78zn24zms88ri9g9-kodi-plugin-yatp-3.3.2

@oxij
Copy link
Member Author

oxij commented Nov 18, 2018 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

4 participants