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

keepassxc: enable ssh agent sockets #36307

Merged
merged 2 commits into from Mar 5, 2018
Merged

keepassxc: enable ssh agent sockets #36307

merged 2 commits into from Mar 5, 2018

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Mar 4, 2018

Motivation for this change
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.

@Mic92
Copy link
Member Author

Mic92 commented Mar 4, 2018

I am mainly interested in macOS:

@GrahamcOfBorg build keepassx-community

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

/nix/store/9avjr40zgds5rycm2ndw9imrfpkb3vga-CF-osx-10.10.5-private/Library/Frameworks/CoreFoundation.framework/Headers/CFUserNotification.h:123:78: error: use of old-style cast [-Werror,-Wold-style-cast]
CF_INLINE CFOptionFlags CFUserNotificationPopUpSelection(CFIndex n) {return ((CFOptionFlags)(n << 24));}
                                                                             ^              ~~~~~~~~~
11 errors generated.
make[2]: *** [src/CMakeFiles/keepassx_core.dir/build.make:519: src/CMakeFiles/keepassx_core.dir/core/ScreenLockListenerPrivate.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:197: src/CMakeFiles/keepassx_core.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
builder for '/nix/store/bdzif384690l72s636hp08pkix2a96db-keepassxc-2.3.0.drv' failed with exit code 2
error: build of '/nix/store/bdzif384690l72s636hp08pkix2a96db-keepassxc-2.3.0.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/bin/keepassxc-cli
shrinking /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/bin/keepassxc
shrinking /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/lib/keepassxc/libkeepassx-autotype-xcb.so
gzipping man pages under /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/share/man/
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/lib  /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/bin 
patching script interpreter paths in /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0
checking for references to /tmp/nix-build-keepassxc-2.3.0.drv-0 in /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0...
postPatchMkspecs
postPatchMkspecs

@Mic92
Copy link
Member Author

Mic92 commented Mar 4, 2018

@LnL7 so clang complains about os x standard includes?

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

/nix/store/ldp9djck0isa889kic4m59v3fa9hi4z4-keepassxc-2.3.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/ldp9djck0isa889kic4m59v3fa9hi4z4-keepassxc-2.3.0/bin/keepassxc-cli
shrinking /nix/store/ldp9djck0isa889kic4m59v3fa9hi4z4-keepassxc-2.3.0/bin/keepassxc-proxy
shrinking /nix/store/ldp9djck0isa889kic4m59v3fa9hi4z4-keepassxc-2.3.0/bin/keepassxc
gzipping man pages under /nix/store/ldp9djck0isa889kic4m59v3fa9hi4z4-keepassxc-2.3.0/share/man/
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/ldp9djck0isa889kic4m59v3fa9hi4z4-keepassxc-2.3.0/lib  /nix/store/ldp9djck0isa889kic4m59v3fa9hi4z4-keepassxc-2.3.0/bin
patching script interpreter paths in /nix/store/ldp9djck0isa889kic4m59v3fa9hi4z4-keepassxc-2.3.0
checking for references to /build in /nix/store/ldp9djck0isa889kic4m59v3fa9hi4z4-keepassxc-2.3.0...
postPatchMkspecs
postPatchMkspecs

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

                                                                              ^              ~~~~~~~~~~~~~~~~~
/nix/store/9avjr40zgds5rycm2ndw9imrfpkb3vga-CF-osx-10.10.5-private/Library/Frameworks/CoreFoundation.framework/Headers/CFUserNotification.h:123:78: error: use of old-style cast [-Werror,-Wold-style-cast]
CF_INLINE CFOptionFlags CFUserNotificationPopUpSelection(CFIndex n) {return ((CFOptionFlags)(n << 24));}
                                                                             ^              ~~~~~~~~~
11 errors generated.
make[2]: *** [src/CMakeFiles/keepassx_core.dir/build.make:519: src/CMakeFiles/keepassx_core.dir/core/ScreenLockListenerPrivate.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:197: src/CMakeFiles/keepassx_core.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
builder for '/nix/store/6syn4nlzb1n0jvsrbrs1xs57r69mskjr-keepassxc-2.3.0.drv' failed with exit code 2
error: build of '/nix/store/6syn4nlzb1n0jvsrbrs1xs57r69mskjr-keepassxc-2.3.0.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/bin/keepassxc
shrinking /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/bin/keepassxc-proxy
shrinking /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/lib/keepassxc/libkeepassx-autotype-xcb.so
gzipping man pages under /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/share/man/
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/lib  /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0/bin 
patching script interpreter paths in /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0
checking for references to /tmp/nix-build-keepassxc-2.3.0.drv-0 in /nix/store/vrjh4h32mw8ffnjx5kgy6w3k08gwg1gr-keepassxc-2.3.0...
postPatchMkspecs
postPatchMkspecs

@LnL7
Copy link
Member

LnL7 commented Mar 4, 2018

@Mic92 that's cf-private

Clang is generally more pedantic about things compared to gcc, I usually add something like this.

{
  NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-old-style-cast";
}

@Mic92
Copy link
Member Author

Mic92 commented Mar 4, 2018

@GrahamcOfBorg build keepassx-community

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

/nix/store/9avjr40zgds5rycm2ndw9imrfpkb3vga-CF-osx-10.10.5-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:363:5: error: '__LLP64__' is not defined, evaluates to 0 [-Werror,-Wundef]
#if __LLP64__
    ^
3 errors generated.
make[2]: *** [src/CMakeFiles/keepassx_core.dir/build.make:519: src/CMakeFiles/keepassx_core.dir/core/ScreenLockListenerPrivate.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:197: src/CMakeFiles/keepassx_core.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
builder for '/nix/store/cvvkpa96znwpjljf8pszvfqw8ar04cda-keepassxc-2.3.0.drv' failed with exit code 2
error: build of '/nix/store/cvvkpa96znwpjljf8pszvfqw8ar04cda-keepassxc-2.3.0.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/hbrsnv9r13hngd0hc0s6ag3zxjfxlacx-keepassxc-2.3.0/bin/keepassxc-cli
shrinking /nix/store/hbrsnv9r13hngd0hc0s6ag3zxjfxlacx-keepassxc-2.3.0/bin/keepassxc
shrinking /nix/store/hbrsnv9r13hngd0hc0s6ag3zxjfxlacx-keepassxc-2.3.0/lib/keepassxc/libkeepassx-autotype-xcb.so
gzipping man pages under /nix/store/hbrsnv9r13hngd0hc0s6ag3zxjfxlacx-keepassxc-2.3.0/share/man/
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/hbrsnv9r13hngd0hc0s6ag3zxjfxlacx-keepassxc-2.3.0/lib  /nix/store/hbrsnv9r13hngd0hc0s6ag3zxjfxlacx-keepassxc-2.3.0/bin 
patching script interpreter paths in /nix/store/hbrsnv9r13hngd0hc0s6ag3zxjfxlacx-keepassxc-2.3.0
checking for references to /tmp/nix-build-keepassxc-2.3.0.drv-0 in /nix/store/hbrsnv9r13hngd0hc0s6ag3zxjfxlacx-keepassxc-2.3.0...
postPatchMkspecs
postPatchMkspecs

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/l8ciizcv8xwmp6yvch85pf40v2bxxj7y-keepassxc-2.3.0/bin/keepassxc-cli
shrinking /nix/store/l8ciizcv8xwmp6yvch85pf40v2bxxj7y-keepassxc-2.3.0/bin/keepassxc-proxy
shrinking /nix/store/l8ciizcv8xwmp6yvch85pf40v2bxxj7y-keepassxc-2.3.0/bin/keepassxc
gzipping man pages under /nix/store/l8ciizcv8xwmp6yvch85pf40v2bxxj7y-keepassxc-2.3.0/share/man/
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/l8ciizcv8xwmp6yvch85pf40v2bxxj7y-keepassxc-2.3.0/lib  /nix/store/l8ciizcv8xwmp6yvch85pf40v2bxxj7y-keepassxc-2.3.0/bin
patching script interpreter paths in /nix/store/l8ciizcv8xwmp6yvch85pf40v2bxxj7y-keepassxc-2.3.0
checking for references to /build in /nix/store/l8ciizcv8xwmp6yvch85pf40v2bxxj7y-keepassxc-2.3.0...
postPatchMkspecs
postPatchMkspecs

@Mic92
Copy link
Member Author

Mic92 commented Mar 4, 2018

Seem like some other header is missing:

/nix/store/9avjr40zgds5rycm2ndw9imrfpkb3vga-CF-osx-10.10.5-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:363:5: error: '__LLP64__' is not defined, evaluates to 0 [-Werror,-Wundef]

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

/nix/store/hbrsnv9r13hngd0hc0s6ag3zxjfxlacx-keepassxc-2.3.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

/nix/store/l8ciizcv8xwmp6yvch85pf40v2bxxj7y-keepassxc-2.3.0

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

#if __LLP64__
    ^
[ 34%] Building CXX object src/CMakeFiles/keepassx_core.dir/core/Translator.cpp.o
3 errors generated.
make[2]: *** [src/CMakeFiles/keepassx_core.dir/build.make:519: src/CMakeFiles/keepassx_core.dir/core/ScreenLockListenerPrivate.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:197: src/CMakeFiles/keepassx_core.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
builder for '/nix/store/cvvkpa96znwpjljf8pszvfqw8ar04cda-keepassxc-2.3.0.drv' failed with exit code 2
error: build of '/nix/store/cvvkpa96znwpjljf8pszvfqw8ar04cda-keepassxc-2.3.0.drv' failed

@Mic92
Copy link
Member Author

Mic92 commented Mar 5, 2018

I have no idea how to fix this.

@Mic92 Mic92 merged commit 9b7d93e into NixOS:master Mar 5, 2018
@Mic92 Mic92 deleted the keepassxc branch March 5, 2018 13:55
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