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

ophcrack-gui: init at 3.8.0 #290496

Closed
wants to merge 2 commits into from
Closed

ophcrack-gui: init at 3.8.0 #290496

wants to merge 2 commits into from

Conversation

Tochiaha
Copy link
Contributor

@Tochiaha Tochiaha commented Feb 21, 2024

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@Tochiaha
Copy link
Contributor Author

Tochiaha commented Apr 8, 2024

#81418

pkgs/by-name/op/ophcrack/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/op/ophcrack/package.nix Outdated Show resolved Hide resolved

postInstall = ''
wrapProgram $out/bin/ophcrack \
--prefix PATH : "${libsForQt5.qtbase}/bin"
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 really needed? Have you tried adding qtbase to buildInputs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes i did try having qtbase in buildInputs without postInstall it results to,
"qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)"

Copy link
Member

Choose a reason for hiding this comment

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

i think this postInstall not needed anymore

pkgs/by-name/op/ophcrack/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/op/ophcrack/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/op/ophcrack/package.nix Outdated Show resolved Hide resolved
@Aleksanaa
Copy link
Member

NOTE: 3.8.0 is 6 years ago

@Tochiaha
Copy link
Contributor Author

NOTE: 3.8.0 is 6 years ago

Does that mean it won't get merged?

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/4076

@0x61nas
Copy link
Member

0x61nas commented Jun 11, 2024

Does that mean it won't get merged?

that means that it's likely unmaintained, and it'll likely gonna break now or sooner, and that'll raise the question: do we really wanna include it in our official repo regarding that we know that it will break and we'll put ourselves in "okay, remove it and break some users workflows, or do some temporary workarounds that we know that it'll stop working at some point" situation

@Tochiaha
Copy link
Contributor Author

OK.

@kirillrdy
Copy link
Member

should this be merged with "ophcrack-cli" ? I mean you can still have two top level attributes, but merge common bits ?

or you can have one derivation and make GUI as parameter ?

@Tochiaha
Copy link
Contributor Author

Tochiaha commented Jun 13, 2024

should this be merged with "ophcrack-cli" ? I mean you can still have two top level attributes, but merge common bits ?

or you can have one derivation and make GUI as parameter ?

Im not quite sure, the gui produces same result when argument/options are passed same as ophcrack-cli but when the program ophcrack is executed, the GUI can only be used. i only adopted same spec like Kali for building the package. Here in Kali they have ophcrack-cli and ophcrack.

@kirillrdy
Copy link
Member

you can still have two attributes, my comment is about code duplication between the two

@Tochiaha
Copy link
Contributor Author

you can still have two attributes, my comment is about code duplication between the two

What do you think? the Ophcrack gui is also needed by another package.

@kirillrdy
Copy link
Member

you can still have two attributes, my comment is about code duplication between the two

What do you think? the Ophcrack gui is also needed by another package.

I am not sure I understand the question. My comment is about code duplication between GUI and CLI derivations. you can still have two seperate derivations, just reuse some of common attributes, eg src is same

@Tochiaha Tochiaha force-pushed the ophcrac branch 3 times, most recently from ba8e0d1 to 4476760 Compare June 20, 2024 02:24
pname = "ophcrack";
version = "3.8.0";

src = fetchurl {
Copy link
Member

Choose a reason for hiding this comment

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

this is duplicated with ophcrack-cli

Copy link
Contributor Author

@Tochiaha Tochiaha Jun 20, 2024

Choose a reason for hiding this comment

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

Can you use Yacas and yacas-gui to explain?

Copy link
Member

Choose a reason for hiding this comment

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

yes, that a great example.

you can add enableGui parameter to this derivation ( have it disabled by default )
then remove/rename ophcrack-cli to ophcrack-gui, and all it will do ophcrack.override { enableGuui = true; }

Copy link
Contributor Author

@Tochiaha Tochiaha Jun 22, 2024

Choose a reason for hiding this comment

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

could this recent expression replace ophcrack-cli?

@kirillrdy
Copy link
Member

@Tochiaha thank you for your patience

I've put a sample PR here #324518 we can discuss it there, and when resolved you can cherry pick this into this PR

@kirillrdy kirillrdy mentioned this pull request Jul 4, 2024
13 tasks
@Tochiaha Tochiaha force-pushed the ophcrac branch 2 times, most recently from 162b958 to da3a01b Compare July 8, 2024 08:00
@Tochiaha
Copy link
Contributor Author

Tochiaha commented Jul 8, 2024

cherry-pick done. @kirillrdy

@kirillrdy
Copy link
Member

cherry-pick done. @kirillrdy

this PR seems to be missing changes to ophcrack-cli as it can now be mostly removed

@Tochiaha
Copy link
Contributor Author

Changes to ophcrack-cli added @kirillrdy

@kirillrdy
Copy link
Member

@Tochiaha can you rebase to resolve merge conflict ?

@Tochiaha
Copy link
Contributor Author

Tochiaha commented Jul 10, 2024

@Tochiaha can you rebase to resolve merge conflict ?

merge conflict resolved. Do we push update with the ophcrack-cli? @kirillrdy

@kirillrdy
Copy link
Member

@Tochiaha yes, we should include changes to ophcrack-cli in this PR

@Tochiaha Tochiaha closed this Jul 14, 2024
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