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

warsaw-bin: init at 2.21.1.13 #76636

Closed
wants to merge 1 commit into from
Closed

warsaw-bin: init at 2.21.1.13 #76636

wants to merge 1 commit into from

Conversation

romildo
Copy link
Contributor

@romildo romildo commented Dec 29, 2019

Motivation for this change

Add warsaw-bin to nixpkgs.

Warsaw is a security solution developed by GAS Software that is used by most banks (in Brazil) that do not use Java technology to authenticate Internet Banking users.

Como instalar o Warsaw para usar Internet Banking no Linux (in Portuguese)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @

@romildo romildo changed the title [WIP] warsaw: init at 1.13.1.2 [WIP] warsaw-bin: init at 1.13.1.2 Dec 29, 2019
@romildo
Copy link
Contributor Author

romildo commented Dec 29, 2019

Need help with this PR: patchelf is core dumping.

[...]
searching for dependencies of /nix/store/j51wp0pwfzqckysznv3mcviyrrspy859-warsaw-bin-1.13.1.2/lib/warsaw/libasn1.so.8
  libcom_err.so.2 -> found: /nix/store/j51wp0pwfzqckysznv3mcviyrrspy859-warsaw-bin-1.13.1.2/lib/warsaw/libcom_err.so.2
  libroken.so.18 -> found: /nix/store/j51wp0pwfzqckysznv3mcviyrrspy859-warsaw-bin-1.13.1.2/lib/warsaw/libroken.so.18
setting RPATH to: /nix/store/j51wp0pwfzqckysznv3mcviyrrspy859-warsaw-bin-1.13.1.2/lib/warsaw:/nix/store/j51wp0pwfzqckysznv3mcviyrrspy859-warsaw-bin-1.13.1.2/lib/warsaw
readelf: Warning: Section 0 has an out of range sh_link value of 1179403647
readelf: Warning: Section 1 has an out of range sh_link value of 2063086862
readelf: Warning: Section 2 has an out of range sh_link value of 1815150848
readelf: Warning: Section 3 has an out of range sh_link value of 3291020291
readelf: Warning: Section 4 has an out of range sh_link value of 2186062118
readelf: Warning: Section 4 has an out of range sh_info value of 2500426248
readelf: Warning: Section 5 has an out of range sh_link value of 35064473
readelf: Warning: Section 5 has an out of range sh_info value of 1016277528
readelf: Warning: Section 6 has an out of range sh_link value of 2916220709
readelf: Warning: Section 7 has an out of range sh_link value of 840957745
readelf: Error: no .dynamic section in the dynamic segment
searching for dependencies of /nix/store/j51wp0pwfzqckysznv3mcviyrrspy859-warsaw-bin-1.13.1.2/lib/warsaw/wsftuan.so
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
/nix/store/pppb56q4gdzrx23fcxarhzym1ya9x626-auto-patchelf-hook/nix-support/setup-hook: line 101:  1922 Aborted                 (core dumped) patchelf --remove-rpath "$toPatch"

@domenkozar
Copy link
Member

With the latest patchelfUnstable I get:

automatically fixing dependencies for ELF files
searching for dependencies of /nix/store/fr6css6ghdj7ma1ds97i55m39digngp8-warsaw-bin-1.13.1.2/bin/warsaw/migratecache
  libstdc++.so.6 -> found: /nix/store/fr6css6ghdj7ma1ds97i55m39digngp8-warsaw-bin-1.13.1.2/lib/warsaw/libstdc++.so.6
setting RPATH to: /nix/store/fr6css6ghdj7ma1ds97i55m39digngp8-warsaw-bin-1.13.1.2/lib/warsaw
readelf: Warning: Section 0 has an out of range sh_link value of 1179403647
readelf: Warning: Section 1 has an out of range sh_link value of 1482886866
readelf: Warning: Section 2 has an out of range sh_link value of 479599
readelf: Warning: Section 3 has an out of range sh_link value of 697559045
readelf: Warning: Section 3 has an out of range sh_info value of 3296924160
readelf: Warning: Section 4 has an out of range sh_link value of 2416261861
readelf: Warning: Section 4 has an out of range sh_info value of 1386546738
readelf: Warning: Section 5 has an out of range sh_link value of 536809698
readelf: Warning: Section 5 has an out of range sh_info value of 251220186
readelf: Warning: Section 6 has an out of range sh_link value of 2009760658
readelf: Warning: Section 7 has an out of range sh_link value of 4280500703
readelf: Error: no .dynamic section in the dynamic segment
searching for dependencies of /nix/store/fr6css6ghdj7ma1ds97i55m39digngp8-warsaw-bin-1.13.1.2/lib/warsaw/wsbrmu.so
patchelf: no section headers. The input file is probably a statically linked, self-decompressing binary
``

@ryantm ryantm assigned ryantm and unassigned ryantm Oct 23, 2020
@ryantm ryantm marked this pull request as draft October 23, 2020 03:03
@stale
Copy link

stale bot commented Jun 4, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2021
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 12, 2022
@romildo romildo changed the title [WIP] warsaw-bin: init at 1.13.1.2 [WIP] warsaw-bin: init at 2.21.1.13 Apr 12, 2022
@romildo romildo changed the title [WIP] warsaw-bin: init at 2.21.1.13 warsaw-bin: init at 2.21.1.13 Apr 12, 2022
@romildo
Copy link
Contributor Author

romildo commented Apr 12, 2022

Refactored to try to use buildFHSUserEnv.

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