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

[RDY] init gpg python bindings + Alot: 0.5.1 -> 0.7.0 #30429

Merged
merged 4 commits into from Mar 28, 2018
Merged

Conversation

teto
Copy link
Member

@teto teto commented Oct 15, 2017

Motivation for this change

Updating the CLI notmuch-based mailreader alot

Things done
  • copied the extra/alot.desktop file to $out/share/applications
  • now generates the man
  • alot now needs the gpg binary for its tests, added it in checkOutputs.

Nevertheless some things are wrong:

I've not tested yet the gpg support but other than that it seems to work

  • 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.

@teto teto requested a review from FRidh as a code owner October 15, 2017 07:32
with pythonPackages;



Copy link
Member

Choose a reason for hiding this comment

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

This change uncovers that the library still fails to build on python3. But I have not investigated the reason for that.

@teto
Copy link
Member Author

teto commented Oct 18, 2017

2nd failure seems to be unrelated to PR (network failure). The one on macos I am not sure why it fails on why it installs this peculiar set of applications . How can I run that test locally ?

rm: missing operand

Try 'rm --help' for more information.

builder for ‘/nix/store/l0388f94ajl8shsjnnmj5jqyxdvx23cg-gpgme-1.9.0.drv’ failed with exit code 123

error: build of ‘/nix/store/l0388f94ajl8shsjnnmj5jqyxdvx23cg-gpgme-1.9.0.drv’ failed

The invocation of "nix-build -A nasty -A sylpheed -A python27Packages.notmuch -A libsForQt5.qgpgme -A python36Packages.afew -A notmuch -A gpgstats -A gmime3 -A sup -A gpgme -A grepm -A python36Packages.notmuch -A muchsync -A neomutt -A dar -A mutt -A python27Packages.afew -A mutt-with-sidebar -A minikube -A python36Packages.pygpgme -A python27Packages.pygpgme -A libsForQt56.qgpgme /Users/travis/.nox/nixpkgs" failed

@Mic92
Copy link
Member

Mic92 commented Oct 18, 2017

You would have to run the following command:

nix-build -I nixpkgs=path/to/nixpkgs -A nasty -A sylpheed -A python27Packages.notmuch -A libsForQt5.qgpgme -A python36Packages.afew -A notmuch -A gpgstats -A gmime3 -A sup -A gpgme -A grepm -A python36Packages.notmuch -A muchsync -A neomutt -A dar -A mutt -A python27Packages.afew -A mutt-with-sidebar -A minikube -A python36Packages.pygpgme -A python27Packages.pygpgme -A libsForQt56.qgpgme

However it fails on macOS. If you cannot test it there, I would suggest to restrict meta.platforms to linux for the moment for gpg python bindings.

homepage = https://www.gnupg.org;
description = "GPG bindings for python";
license = licenses.lgpl2;
platforms = platforms.linux;
Copy link
Member Author

Choose a reason for hiding this comment

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

platform is already restricted to linux isn't it ?

Copy link
Member

Choose a reason for hiding this comment

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

right, then gpgme is broken on darwin for unrelated reasons and we can ignore this build on travis.

with pythonPackages;

buildPythonApplication rec {
rev = "0.6";
Copy link
Member

Choose a reason for hiding this comment

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

indentation

with pythonPackages;

buildPythonApplication rec {
rev = "0.6";
Copy link
Member

Choose a reason for hiding this comment

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

rev -> version

@@ -0,0 +1,60 @@
{ stdenv, pkgs, pythonPackages
Copy link
Member

Choose a reason for hiding this comment

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

do not use pkgs

];

doCheck = false;
postBuild= stdenv.lib.optionalString withManpage "make -C docs man";
Copy link
Member

Choose a reason for hiding this comment

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

space before =

Copy link
Member Author

Choose a reason for hiding this comment

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

done


sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
wrapProgram $out/bin/alot \
--prefix LD_LIBRARY_PATH : '${pkgs.lib.makeLibraryPath [ pkgs.notmuch pkgs.file pkgs.gpgme ]}'
Copy link
Member

Choose a reason for hiding this comment

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

Can you not patch the sources to hardcode the paths instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

why ? this is a part I haven't touched so I would rather not change it as it works

version = "1.9.0";

passthru = {
pythonSourceRoot = "lang/python";
Copy link
Member

Choose a reason for hiding this comment

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

is this worth it, considering you only use it for one derivation?

Copy link
Member Author

Choose a reason for hiding this comment

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

If gpgme next updates changes the path, it makes more sense to change the path in gpgme derviation then in the related ones imo. No strong opinion though.

Copy link
Member Author

Choose a reason for hiding this comment

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

While looking at clang package for an unrelated problem, I noticed it had a "python" output . Maybe I should do the same here instead ?

    outputs = [ "out" "python" ]
      ++ stdenv.lib.optional enableManpages "man";

Copy link
Member

Choose a reason for hiding this comment

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

Can the Python bindings be build without building gpgme? If so, then a separate derivation. If not, then an output is typically preferred to reduce building time. It is not required however. I'd say leave it as it is.

Anyway, please remove pythonSourceRoot.

Copy link
Member Author

Choose a reason for hiding this comment

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

I removed pythonSourceRoot and rebased

@teto
Copy link
Member Author

teto commented Oct 18, 2017

I've addressed your comments locally . Should I squash the history into to 2 commits ("gpg init" then "alot update") ?

@teto
Copy link
Member Author

teto commented Oct 19, 2017

I've tried to adress the review & squashed the commits. I tested (signature mode) the gpg support of alot and it worked fine.

@teto
Copy link
Member Author

teto commented Oct 20, 2017

Meson seems to keep failing but it's not linked to this PR

@teto
Copy link
Member Author

teto commented Oct 24, 2017

should I disable the mac platform ? I don't see where is the wrong rm call

rm: missing operand
Try 'rm --help' for more information.
rm: missing operand
Try 'rm --help' for more information.

and I can't test it on mac.

@teto
Copy link
Member Author

teto commented Jan 27, 2018

for my future self or anyone willing to take on;
1/ there is actually no flag to disable gnupg doc so either add makeinfo dependency or patch Makefile.
2/ The generation of binding requires a swap in pip build order but possibly also in install order (not considered by upstream) thus such a patch might ne necessary (and upstreamed hopefully) teto/gpgme@35c3d94/35c3d94d0b4395d36b37c20b65a2a0d98e69d0f7

@teto
Copy link
Member Author

teto commented Jan 29, 2018

I made some progress on the gpgme python packaging but it still fails in the postinstallation phase with

glibPreFixupPhase
post-installation fixup
Moving /nix/store/jzm6iwps6lys6vfxwpn7pnw976gy6011-gpgme-1.10.0/lib/cmake to /nix/store/vv1d1469zvh4mc0hgdp3r0fmba52qs12-gpgme-1.10.0-dev/lib/cmake
rmdir: failed to remove '/nix/store/jzm6iwps6lys6vfxwpn7pnw976gy6011-gpgme-1.10.0/lib': Directory not empty
shrinking RPATHs of ELF executables and libraries in /nix/store/jzm6iwps6lys6vfxwpn7pnw976gy6011-gpgme-1.10.0
shrinking /nix/store/jzm6iwps6lys6vfxwpn7pnw976gy6011-gpgme-1.10.0/lib/libgpgme.so.11.19.0
shrinking /nix/store/jzm6iwps6lys6vfxwpn7pnw976gy6011-gpgme-1.10.0/lib/libgpgmepp.so.6.5.0
strip is /nix/store/mdyy001q67hiks0g24ra53z7ckm4jfr4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/jzm6iwps6lys6vfxwpn7pnw976gy6011-gpgme-1.10.0/lib 
patching script interpreter paths in /nix/store/jzm6iwps6lys6vfxwpn7pnw976gy6011-gpgme-1.10.0
checking for references to /tmp/nix-build-gpgme-1.10.0.drv-0 in /nix/store/jzm6iwps6lys6vfxwpn7pnw976gy6011-gpgme-1.10.0...
shrinking RPATHs of ELF executables and libraries in /nix/store/vv1d1469zvh4mc0hgdp3r0fmba52qs12-gpgme-1.10.0-dev
shrinking /nix/store/vv1d1469zvh4mc0hgdp3r0fmba52qs12-gpgme-1.10.0-dev/bin/gpgme-tool
strip is /nix/store/mdyy001q67hiks0g24ra53z7ckm4jfr4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/vv1d1469zvh4mc0hgdp3r0fmba52qs12-gpgme-1.10.0-dev/lib  /nix/store/vv1d1469zvh4mc0hgdp3r0fmba52qs12-gpgme-1.10.0-dev/bin 
patching script interpreter paths in /nix/store/vv1d1469zvh4mc0hgdp3r0fmba52qs12-gpgme-1.10.0-dev
/nix/store/vv1d1469zvh4mc0hgdp3r0fmba52qs12-gpgme-1.10.0-dev/bin/gpgme-config: interpreter directive changed from "/bin/sh" to "/nix/store/i0ay05pqkbnvpfijm52mmlrp6kmkl80c-bash-4.4-p12/bin/sh"
checking for references to /tmp/nix-build-gpgme-1.10.0.drv-0 in /nix/store/vv1d1469zvh4mc0hgdp3r0fmba52qs12-gpgme-1.10.0-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/lhfzgh30949nhh9mdw3gnawagi4h7j5z-gpgme-1.10.0-info
strip is /nix/store/mdyy001q67hiks0g24ra53z7ckm4jfr4-binutils-2.28.1/bin/strip
patching script interpreter paths in /nix/store/lhfzgh30949nhh9mdw3gnawagi4h7j5z-gpgme-1.10.0-info
checking for references to /tmp/nix-build-gpgme-1.10.0.drv-0 in /nix/store/lhfzgh30949nhh9mdw3gnawagi4h7j5z-gpgme-1.10.0-info...
Obtaining file:///home/teto
    Complete output from command python setup.py egg_info:
    running egg_info
    creating gpg.egg-info
    writing gpg.egg-info/PKG-INFO
    writing dependency_links to gpg.egg-info/dependency_links.txt
    writing top-level names to gpg.egg-info/top_level.txt
    writing manifest file 'gpg.egg-info/SOURCES.txt'
    error: package directory 'gpg' does not exist
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/teto/

I dont know what invokes the egg_info, I grepped for it in nixpkgs to no avail. @FRidh any idea ? I use for my tests a local src if that helps src = /home/teto/gpgme;.

# src = fetchurl {
# url = "mirror://gnupg/gpgme/${name}.tar.bz2";
# sha256 = "14q619lxbk64vz7lih5gjb928qm28jrnn1h3yhsrrff3jw8yv3qs";
# };
Copy link
Member

Choose a reason for hiding this comment

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

What's going on here?

@teto teto changed the title init gpg python bindings + Alot: 0.5.1 -> 0.6.0 [WIP] init gpg python bindings + Alot: 0.5.1 -> 0.6.0 Jan 29, 2018
@@ -0,0 +1,62 @@
{ stdenv, lib
, pythonPackages, fetchFromGitHub, notmuch, file, gpgme
, withManpage ? true }:
Copy link
Member

Choose a reason for hiding this comment

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

This can be removed. It hardly takes any time to produce the manpages so we should.

];

# 3 tests fail, some unicode
doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

So something may be broken?

nativeBuildInputs = [ pkgconfig gnupg autoreconfHook git texinfo5 ];

preConfigure = ''
./autogen.sh
Copy link
Member

Choose a reason for hiding this comment

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

autoreconfHook?

@teto
Copy link
Member Author

teto commented Feb 19, 2018

I can't manage to get a wheel. Even if I could I am not sure how to write the package are the C parts 1 python part are intertwined. Any help would be greatly appreciated. My PR is a bit of a mess but basically

nix-shell -A pythonPackages.gpg ~/nixpkgs2 --show-trace -K unpackPhase cd source patchPhase autoreconfPhase configurePhase (with the flag "--enable-languages=python") cd lang/python make all-local will build some python stuff
run the gpgme

I've tried to add a target all-bdist to build the wheels at https://github.com/teto/gpgme/commits/nix but it still fails with

    installing to build/bdist.linux-x86_64/wheel
    running install
    Traceback (most recent call last):
      File "nix_run_setup", line 8, in <module>
        exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
      File "setup.py", line 275, in <module>
        'Topic :: Security :: Cryptography',
      File "/nix/store/xk2drqkvcv0cabgb3hsikh5vm5mhi9qi-python-2.7.14/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/nix/store/xk2drqkvcv0cabgb3hsikh5vm5mhi9qi-python-2.7.14/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/nix/store/xk2drqkvcv0cabgb3hsikh5vm5mhi9qi-python-2.7.14/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/nix/store/6hm110mhsj9nir4sg44j74a2fnnd77zf-python2.7-wheel-0.30.0/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 257, in run
        self.distinfo_dir)
      File "/nix/store/6hm110mhsj9nir4sg44j74a2fnnd77zf-python2.7-wheel-0.30.0/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 393, in egg2dist
        raise ValueError(err)
    ValueError: Egg metadata expected at build/bdist.linux-x86_64/wheel/gpg-1.10.1-py2.7.egg-info but not found
    make: *** [Makefile:761: all-bdist] Error 1

@teto
Copy link
Member Author

teto commented Mar 14, 2018

I think it's LGTM to disable the tests, it seems like they rely on twisted functions which need the network, hence the failures (twisted tests were disabled for that reason).

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: alot, gpgme

Partial log (click to expand)

patching script interpreter paths in /nix/store/nn1j6paanw073r8q411gcx8zwn5wnvhy-python2.7-alot-0.7
checking for references to /tmp/nix-build-python2.7-alot-0.7.drv-0 in /nix/store/nn1j6paanw073r8q411gcx8zwn5wnvhy-python2.7-alot-0.7...
shrinking RPATHs of ELF executables and libraries in /nix/store/fjaqhmgc7yxqbyqjlaf2swqwla6xpxlr-python2.7-alot-0.7-man
gzipping man pages under /nix/store/fjaqhmgc7yxqbyqjlaf2swqwla6xpxlr-python2.7-alot-0.7-man/share/man/
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
patching script interpreter paths in /nix/store/fjaqhmgc7yxqbyqjlaf2swqwla6xpxlr-python2.7-alot-0.7-man
checking for references to /tmp/nix-build-python2.7-alot-0.7.drv-0 in /nix/store/fjaqhmgc7yxqbyqjlaf2swqwla6xpxlr-python2.7-alot-0.7-man...
wrapping `/nix/store/nn1j6paanw073r8q411gcx8zwn5wnvhy-python2.7-alot-0.7/bin/.alot-wrapped'...
/nix/store/nn1j6paanw073r8q411gcx8zwn5wnvhy-python2.7-alot-0.7
/nix/store/5dq6wrkh2vh4kf8krv4hrd4bb27agx9i-gpgme-1.10.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: alot, gpgme

Partial log (click to expand)

patching script interpreter paths in /nix/store/1kldswfcqxsv5dz2x0lfrhnhnfr76mbw-python2.7-alot-0.7
checking for references to /build in /nix/store/1kldswfcqxsv5dz2x0lfrhnhnfr76mbw-python2.7-alot-0.7...
shrinking RPATHs of ELF executables and libraries in /nix/store/9zrzpmwr5p3b306djdlhxzj3m3ch3qzj-python2.7-alot-0.7-man
gzipping man pages under /nix/store/9zrzpmwr5p3b306djdlhxzj3m3ch3qzj-python2.7-alot-0.7-man/share/man/
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
patching script interpreter paths in /nix/store/9zrzpmwr5p3b306djdlhxzj3m3ch3qzj-python2.7-alot-0.7-man
checking for references to /build in /nix/store/9zrzpmwr5p3b306djdlhxzj3m3ch3qzj-python2.7-alot-0.7-man...
wrapping `/nix/store/1kldswfcqxsv5dz2x0lfrhnhnfr76mbw-python2.7-alot-0.7/bin/.alot-wrapped'...
/nix/store/1kldswfcqxsv5dz2x0lfrhnhnfr76mbw-python2.7-alot-0.7
/nix/store/vwn1idrl8cvfcvkh2wcnxb8z2id6k3hb-gpgme-1.10.0

@teto teto changed the title [RFC] init gpg python bindings + Alot: 0.5.1 -> 0.7.0 [RDY] init gpg python bindings + Alot: 0.5.1 -> 0.7.0 Mar 14, 2018
buildPythonApplication rec {
pname = "alot";
version = "0.7";
outputs = [ "out" "man" ];
Copy link
Member

Choose a reason for hiding this comment

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

man optional?


postInstall = ''
mkdir -p $out/share/applications $out/man
cp -r docs/build/man $out/man
Copy link
Member

Choose a reason for hiding this comment

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

man optional?

++ lib.optionals withPython [ python swig2 which ];

preConfigure = ''
./autogen.sh
Copy link
Member

Choose a reason for hiding this comment

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

is this needed with the autoreconfHook?

Copy link
Member Author

Choose a reason for hiding this comment

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

not anymore indeed.


sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
wrapProgram $out/bin/alot \
--prefix LD_LIBRARY_PATH : '${lib.makeLibraryPath [ notmuch file gpgme ]}'
Copy link
Member

Choose a reason for hiding this comment

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

these should be patched in the code

Copy link
Member Author

@teto teto Mar 20, 2018

Choose a reason for hiding this comment

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

leftover from the current derivation code. it seems to work fine without it so I removed it

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: alot, gpgme

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/f42bfw7y80gj57lc82bmqid1i2xh6g6j-python2.7-alot-0.7
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/f42bfw7y80gj57lc82bmqid1i2xh6g6j-python2.7-alot-0.7/lib  /nix/store/f42bfw7y80gj57lc82bmqid1i2xh6g6j-python2.7-alot-0.7/bin
patching script interpreter paths in /nix/store/f42bfw7y80gj57lc82bmqid1i2xh6g6j-python2.7-alot-0.7
checking for references to /tmp/nix-build-python2.7-alot-0.7.drv-0 in /nix/store/f42bfw7y80gj57lc82bmqid1i2xh6g6j-python2.7-alot-0.7...
wrapping `/nix/store/f42bfw7y80gj57lc82bmqid1i2xh6g6j-python2.7-alot-0.7/bin/alot'...
/nix/store/f42bfw7y80gj57lc82bmqid1i2xh6g6j-python2.7-alot-0.7
/nix/store/j3bqsky2k73ixbpf1dgxkrjk75fl7cna-gpgme-1.10.0

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: alot, gpgme

Partial log (click to expand)

   Compiling rustc_passes v0.0.0 (file:///build/rustc-1.24.0-src/src/librustc_passes)
building of '/nix/store/6mm6pr840z429p4l9mk62gh7mr6khj3k-rustc-1.24.0.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/wsycxxpy4fin6rmfmx67n1b5pdzjww20-cargo-0.24.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/byqkqqkjq1m38ikbxxrirk81d0wr4qns-librsvg-2.42.2.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/azb669rka042skzps2bpc7m7bs1r5afm-hook.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/z39d6dyfqhk47n5ak0l39jfr4byd973r-emacs-25.3.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/647mvp5wbl77a34wgysybs2m0j3d5ijv-notmuch-0.26.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/10jnxjdm5z0ixsi831cswkp28mbkh5z2-python2.7-python-notmuch-0.26.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/kbfk3hz0cp9kf33zq88rbr641j7m5m9j-python2.7-alot-0.7.drv': 1 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/kbfk3hz0cp9kf33zq88rbr641j7m5m9j-python2.7-alot-0.7.drv' failed

- added gnupg to checkInputs
- generate manpage (optional)
- move alot.desktop file to $out/share/applications
- disabled tests as they need the network (dependency on twisted)

Thanks to Sarah Brofeldt, Ben Mcginnes for their help (and other) and
to FRidh for the repeated careful reviews.
Useful for MUAs mostly, like alot
@teto
Copy link
Member Author

teto commented Mar 24, 2018

I hope the last patch fixed everything ?

@Mic92
Copy link
Member

Mic92 commented Mar 24, 2018

@GrahamcOfBorg build alot gpgme

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: gpgme

The following builds were skipped because they don't evaluate on x86_64-darwin: alot

Partial log (click to expand)

strip is /nix/store/vb6mgjqgd9h11nbv60fvrp1ls9nxck2y-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/akiwdsbny6qk0dww3inwxx7dz9853i8n-gpgme-1.10.0/lib
patching script interpreter paths in /nix/store/akiwdsbny6qk0dww3inwxx7dz9853i8n-gpgme-1.10.0
strip is /nix/store/vb6mgjqgd9h11nbv60fvrp1ls9nxck2y-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/wiyfc23yaz7fhnzxyqiswwjyq8kglyz9-gpgme-1.10.0-dev/lib  /nix/store/wiyfc23yaz7fhnzxyqiswwjyq8kglyz9-gpgme-1.10.0-dev/bin
patching script interpreter paths in /nix/store/wiyfc23yaz7fhnzxyqiswwjyq8kglyz9-gpgme-1.10.0-dev
/nix/store/wiyfc23yaz7fhnzxyqiswwjyq8kglyz9-gpgme-1.10.0-dev/bin/gpgme-config: interpreter directive changed from "/bin/sh" to "/nix/store/8hdxjv3m14jgdnawi5l0mz2h59qkk2g9-bash-4.4-p19/bin/sh"
strip is /nix/store/vb6mgjqgd9h11nbv60fvrp1ls9nxck2y-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/0fxwndpkffnssk23syskklk9gvpkpjmi-gpgme-1.10.0-info
/nix/store/akiwdsbny6qk0dww3inwxx7dz9853i8n-gpgme-1.10.0

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: alot, gpgme

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7/lib  /nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7/bin
patching script interpreter paths in /nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7
checking for references to /tmp/nix-build-python2.7-alot-0.7.drv-0 in /nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7...
wrapping `/nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7/bin/alot'...
/nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7
/nix/store/917ir2mcsdvi45gnlyv153ngvmnl59lq-gpgme-1.10.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: alot, gpgme

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/l6j4m4518fd969w7l68psw5a8v9d8ps1-python2.7-alot-0.7
strip is /nix/store/3zq400fri5dv7d30lpxlqm2v9y1iis6j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/l6j4m4518fd969w7l68psw5a8v9d8ps1-python2.7-alot-0.7/lib  /nix/store/l6j4m4518fd969w7l68psw5a8v9d8ps1-python2.7-alot-0.7/bin
patching script interpreter paths in /nix/store/l6j4m4518fd969w7l68psw5a8v9d8ps1-python2.7-alot-0.7
checking for references to /build in /nix/store/l6j4m4518fd969w7l68psw5a8v9d8ps1-python2.7-alot-0.7...
wrapping `/nix/store/l6j4m4518fd969w7l68psw5a8v9d8ps1-python2.7-alot-0.7/bin/alot'...
/nix/store/l6j4m4518fd969w7l68psw5a8v9d8ps1-python2.7-alot-0.7
/nix/store/0clchyfabn9cvv2qh1m0anhq5hmn25hb-gpgme-1.10.0

@teto
Copy link
Member Author

teto commented Mar 26, 2018

Seems to pass :D

Let's be honest with what we expose.
@@ -8173,7 +8173,7 @@ in {

google_gax = callPackage ../development/python-modules/google_gax { };

gpg = toPythonModule (pkgs.gpgme.override { withPython=true; });
gpgme = toPythonModule (pkgs.gpgme.override { withPython=true; });
Copy link
Member

@Mic92 Mic92 Mar 26, 2018

Choose a reason for hiding this comment

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

@teto do you agree with this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

I hesitated between the 2 and ended up with gpg because it's import gpg and it's like the official ports for gpg (even if gpgme expose a simpler interface). So I have no problem with changing the name :)

@Mic92
Copy link
Member

Mic92 commented Mar 26, 2018

@GrahamcOfBorg build alot gpgme

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: alot, gpgme

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7/lib  /nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7/bin
patching script interpreter paths in /nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7
/nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7
checking for references to /build in /nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7...
/nix/store/917ir2mcsdvi45gnlyv153ngvmnl59lq-gpgme-1.10.0
wrapping `/nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7/bin/alot'...

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: gpgme

The following builds were skipped because they don't evaluate on x86_64-darwin: alot

Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.


/nix/store/akiwdsbny6qk0dww3inwxx7dz9853i8n-gpgme-1.10.0

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: alot, gpgme

Partial log (click to expand)

/nix/store/7v8nzwm05jb708ws1yh7dy0icv94n81h-python2.7-alot-0.7
/nix/store/917ir2mcsdvi45gnlyv153ngvmnl59lq-gpgme-1.10.0

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: alot, gpgme

Partial log (click to expand)

   Compiling rustc_mir v0.0.0 (file:///build/rustc-1.24.0-src/src/librustc_mir)
building of '/nix/store/6mm6pr840z429p4l9mk62gh7mr6khj3k-rustc-1.24.0.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/68kg61kq3qlbfxdjan2s7hrd0fidyxri-cargo-0.24.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/2fvhpqf8jjcdzvifkpipb5r41pwvxl2d-librsvg-2.42.2.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/92wjazfxwjpwv6zkqr6xkdxcy1illhny-hook.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/crcmgcgk9q8s2mjj595hn5104xiwdhvi-emacs-25.3.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/n1860wkakmh2hzx3aaqpivbkaf9ifm4l-notmuch-0.26.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/iw0hhzajgwd0x2cgpsbacrwsgn98x7sv-python2.7-python-notmuch-0.26.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/a6lzm8azz82y8lrdqqr18j77jxjpch6n-python2.7-alot-0.7.drv': 1 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/a6lzm8azz82y8lrdqqr18j77jxjpch6n-python2.7-alot-0.7.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: alot, gpgme

Partial log (click to expand)

   Compiling backtrace v0.3.4
building of '/nix/store/6mm6pr840z429p4l9mk62gh7mr6khj3k-rustc-1.24.0.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/68kg61kq3qlbfxdjan2s7hrd0fidyxri-cargo-0.24.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/2fvhpqf8jjcdzvifkpipb5r41pwvxl2d-librsvg-2.42.2.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/92wjazfxwjpwv6zkqr6xkdxcy1illhny-hook.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/crcmgcgk9q8s2mjj595hn5104xiwdhvi-emacs-25.3.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/n1860wkakmh2hzx3aaqpivbkaf9ifm4l-notmuch-0.26.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/iw0hhzajgwd0x2cgpsbacrwsgn98x7sv-python2.7-python-notmuch-0.26.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/a6lzm8azz82y8lrdqqr18j77jxjpch6n-python2.7-alot-0.7.drv': 1 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/a6lzm8azz82y8lrdqqr18j77jxjpch6n-python2.7-alot-0.7.drv' failed

@Mic92 Mic92 merged commit 8c2dafb into NixOS:master Mar 28, 2018
@teto
Copy link
Member Author

teto commented Mar 28, 2018

thanks for the keeping up with the good reviews despite my numerous hesitations in the implementation. Really happy to see it merged !

@teto teto deleted the alot branch March 28, 2018 05:09
@Mic92
Copy link
Member

Mic92 commented Mar 28, 2018

The show must go on.

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

5 participants