mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #982] params.h systemwide #580
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#580
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DomT4 on GitHub (Dec 31, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/982
Originally assigned to: @magnumripper on GitHub.
Hey guys,
Apologies in advance, this is technically a very old issue. I'm not sure if anyone has previously flagged this up to you. A scan of the Github issues search didn't reveal anything, but I may well have missed something there, and given the age of the issue it could well have been flagged on a mailing list somewhere.
For the last several years both MacPorts and Homebrew have been patching the
params.hfile to match our respective desiredJOHN_SYSTEMWIDE_EXECandJOHN_SYSTEMWIDE_HOMElocations.The file itself explicitly says "do not patch me", but everyone has been doing so regardless. Trying to pass directories to the configuration with flags, which the document recommends, seems to run into fatal build errors:
Are we all missing something obvious, or is this a bug upstream here can fix on the accepting flags? Thanks!
@magnumripper commented on GitHub (Jan 1, 2015):
I will look into this. The first question is whether "core John" has the same problem.
@frank-dittrich commented on GitHub (Jan 1, 2015):
In jumbo, we could add an autoconf option for this.
@magnumripper commented on GitHub (Jan 1, 2015):
We should support the standard stuff eg.
--prefix=/usr/local/binand have them set the needed macros. But some tweaks are very likely needed for AC vs systemwide.@jfoug commented on GitHub (Jan 1, 2015):
This brings up the bigger issue of getting the autoconf actually INSTALL john properly.
This would avoid most of the half assed work arounds that OS packagers are using to get john properly installed on their flavor. All they should need to do is set --prefix and then make install should do it. BUT I do not think we are at that level yet.
@DomT4 commented on GitHub (Jan 1, 2015):
Yeah, it does. The exact same patch has been applied to
Johnwithout the Jumbo for years as well.The autoconf process is already a lot less cumbersome for package managers to deal with than the regular John make process FWIW. Makes life a lot easier. Certainly, being able to actively specify a
prefixwould be great though.@jfoug commented on GitHub (Jan 1, 2015):
You 'can' specific prefix. HOWEVER, there has to be code in place (within our Makefile.in I think), that actually USES that properly to do the install.
Problem is, that almost NONE of the developers of jtr-jumbo-autoconf (in reality, that it mostly @magnumripper and myself), do not instal john. We run it run out of the build directory since we build, build, build, build all the time. Thus, the actual proper install plumbing has not been placed into JtR.
I really think we should get this working 'properly' before J2 is released. I believe this would solve (most of) the problems seen by packagers.
That does not address core, but that is Solar's call, in keeping with the shitty fat makefile mechanics, and choosing not to progress to a proper probing tool like autoconf (or cmake or any of the other package tools).
@magnumripper commented on GitHub (Jan 3, 2015):
I took a stab at properly supporting --prefix a while ago. It's not that hard. But I'm not done with it. Anyway, @DomT4 please also report this problem (in core John context for more attention) to john-users so Solar fixes the upstream issue. If he does, I promise I will have a new look at supporting --prefix
@DomT4 commented on GitHub (Jan 13, 2015):
Thanks. I just dropped an email to Solar and the Dev-list upstream, so hopefully we'll see some movement.
@DomT4 commented on GitHub (Jan 13, 2015):
I'm pretty sure I just got told off for reporting this upstream, I sent it to the wrong list accidentally, and I wasn't specific enough in my subject. Being told off for attempting a bug report is certainly a first, heh, but this is the reply:
@magnumripper commented on GitHub (Jan 13, 2015):
I had no idea about this escaping problem (though it is obvious in hindsight) so it's a good thing we got that spelled out. I will try supporting --prefix ASAP.
@magnumripper commented on GitHub (Feb 2, 2015):
3031260adds basic support for "systemwide"../configure --with-systemwidewill just set -DJOHN_SYSTEMWIDE and use default paths from params.h (/usr/libexec/john and /usr/share/john)../configure --prefix=PATHwill set JOHN_SYSTEMWIDE_EXEC to PATH and implies --with-systemwide.I'd like to add copying to final destinations to "make install" but it's not totally obvious how to do this since things are coded into params.h. And I guess some/many of the binaries should actually go to /usr/bin or /usr/local/bin so we should have another option for that. Hard to do this right unless I let go of most of Solar's logic.
@magnumripper commented on GitHub (Feb 2, 2015):
@DomT4 how was this handled so far? You applied that patch, built it, and then manually moved/copied data files from ../run to /usr/share/john and some/all executables to /usr/bin, or what?
I guess we could do something like
@magnumripper commented on GitHub (Feb 2, 2015):
OTOH this would be more natural for many
That would imply /usr/share/john for charsets etc. and /usr/bin for executables.
@magnumripper commented on GitHub (Feb 3, 2015):
Note to self: http://www.openwall.com/lists/john-users/2008/06/16/2
@DomT4 commented on GitHub (Feb 3, 2015):
@magnumripper Right now Homebrew is setting
JOHN_SYSTEMWIDE_EXECandJOHN_SYSTEMWIDE_HOMEtoHOMEBREWPREFIX/share/johnwhich is usually/usr/local/share/john, installing everything in share/john and then symlinking the mainJohnexecutable into the bin directory.@magnumripper commented on GitHub (Oct 26, 2015):
FWIW here's how to support binary fallback chain without JOHN_SYSTEMWIDE (it can be modified for JOHN_SYSTEMWIDE of course).
@magnumripper commented on GitHub (Nov 12, 2015):
I will document this for Jumbo-2. It works fine with AC as long as you do it right.