vlaci / openconnect-sso

Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication to Cisco SSL-VPNs
GNU General Public License v3.0
300 stars 131 forks source link

Build fails on unstable #55

Closed rhoriguchi closed 3 years ago

rhoriguchi commented 3 years ago

Currently, it is not possible to build openconnect-sso on the latest unstable channel. My entire configuration can be found here.

Error:

...
Found duplicated packages in closure for dependency 'toml':
  toml 0.10.2 (/nix/store/qhppvmrdmlcs8nzn22j5l2m0v9k1qyxm-python3.8-toml-0.10.2/lib/python3.8/site-packages)
  toml 0.10.2 (/nix/store/gm124arknrkwdcnxdg0wb802cnzh4z2m-python3.8-toml-0.10.2/lib/python3.8/site-packages)
Found duplicated packages in closure for dependency 'more-itertools':
  more-itertools 8.7.0 (/nix/store/h435djgkx517hv10n84iap062g5skw0m-python3.8-more-itertools-8.7.0/lib/python3.8/site-packages)
  more-itertools 8.7.0 (/nix/store/m4r9pxrnz85622qcyxmm6633yj86mklh-python3.8-more-itertools-8.7.0/lib/python3.8/site-packages)

Package duplicates found in closure, see above. Usually this happens if two packages depend on different version of the same dependency.
builder for '/nix/store/zwwg4n59xg1y9hayfql54p3zqmw4vrqs-python3.8-openconnect-sso-0.7.3.drv' failed with exit code 1
...
> nix-shell -p nix-info --run "nix-info -m"

 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.112, NixOS, 21.05pre284548.1fe6ed37fd9 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.10`
 - channels(rhoriguchi): `""`
 - channels(root): `"nixos-21.05pre285574.8e4fe32876c"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Overlay:

(self: super: {
  openconnect-sso = (super.callPackage "${
      super.fetchFromGitHub {
        owner = "vlaci";
        repo = "openconnect-sso";
        rev = "v0.7.3";
        sha256 = "126rm5zhdwxiyqv7fh2xilqw7q0s438d3laisjynlnc4ddnrdc3w";
      }
    }/nix" { pkgs = super; }).openconnect-sso;
})
SomeoneSerge commented 3 years ago

Also, if I build it against github:NixOS/nixpkgs/nixos-20.09 (to avoid the duplicate packages thing) but run in the nixos-unstable environment, I get:

/nix/store/pl1ivqdj84884wv65xkils4mlfm33dyl-glib-networking-2.68.1/lib/gio/modules/libgiognutls.so: undefined symbol: g_tls_channel_binding_error_quark
Failed to load module: /nix/store/pl1ivqdj84884wv65xkils4mlfm33dyl-glib-networking-2.68.1/lib/gio/modules/libgiognutls.so
vlaci commented 3 years ago

I needed to update the packaging to work after nixos update. I hope that 54da007 fixes this issue.

rhoriguchi commented 3 years ago

I needed to update the packaging to work after nixos update. I hope that 54da007 fixes this issue.

This works for me.

SomeoneSerge commented 3 years ago

Thanks vlaci! Works for me too, probably safe to close

rhoriguchi commented 3 years ago

@vlaci could you please create a new release.