Package Details: john-git 1.9.0.Jumbo.1.r268.g51f7f3dcd-1

Git Clone URL: (read-only, click to copy)
Package Base: john-git
Description: fast password cracker (using the git repository of the jumbo patch)
Upstream URL:
Licenses: GPL2, custom
Conflicts: john
Provides: john
Submitter: Atsutane
Maintainer: zezadas
Last Packager: zezadas
Votes: 10
Popularity: 0.003500
First Submitted: 2012-11-03 17:25 (UTC)
Last Updated: 2020-09-04 09:34 (UTC)

Dependencies (18)

Required by (8)

Sources (1)

Latest Comments

Dulbi commented on 2020-09-08 07:34 (UTC) (edited on 2020-09-08 07:39 (UTC) by Dulbi)

To make it work it had to add some new lines :

diff --git a/PKGBUILD b/PKGBUILD
index dbfc40e..0004b9a 100644
@@ -5,7 +5,7 @@

_pkgname=john pkgname=john-git -pkgver=1.9.0.Jumbo.1.r268.g51f7f3dcd +pkgver=1.9.0.Jumbo.1.r271.g7acdb59dd pkgrel=1 pkgdesc="fast password cracker (using the git repository of the jumbo patch)" arch=('i686' 'x86_64' "aarch64") @@ -83,6 +83,9 @@ build() { mv ../run/john{,-non-xop} ./configure "${options[@]}" CFLAGS="${CFLAGS} -mxop" make clean; make + elif [[ "${CARCH}" == "aarch64" ]]; then + ./configure "${options[@]}" CFLAGS="" + make clean; make else ./configure "${options[@]}" CFLAGS="${CFLAGS}" make clean; make

Dulbi commented on 2020-09-04 15:47 (UTC)

@zeadas. The arch is well recognized but unfortunately, it doesn't go to the end : listconf.c:165:30: erreur: expected « ) » before « CPU_FALLBACK_BINARY » 165 | puts("CPU fallback binary: " CPU_FALLBACK_BINARY); | ^~~~~~~~~~~~~~~~~~~~ | ) make[1]: [Makefile:1584 : listconf.o] Erreur 1 make[1]: Attente des tâches non terminées.... make[1] : on quitte le répertoire « /var/tmp/pamac-build-pi/john-git/src/john/src » make: *** [Makefile:190 : default] Erreur 2 ==> ERREUR : Une erreur s’est produite dans build().

zezadas commented on 2020-09-04 09:37 (UTC)

Added aarch64 to the "arch" list @Dulbi, check if it's working.

Dulbi commented on 2020-09-03 09:01 (UTC)

I was able to compile it on my raspberrypi 4 : diff --git a/PKGBUILD b/PKGBUILD index f297e66..0ee7248 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -8,7 +8,7 @@ pkgname=john-git pkgver=1.9.0.Jumbo.1.r268.g51f7f3dcd pkgrel=1 pkgdesc="fast password cracker (using the git repository of the jumbo patch)" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'aarch64') url="$_pkgname/" license=('GPL2' 'custom') depends=('openssl' 'gmp' 'libpcap' 'openmpi' 'gcc-libs' 'opencl-icd-loader') @@ -47,7 +47,7 @@ build() { cd "$srcdir/$_pkgname/src" #export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig

  • local CFLAGS="${CFLAG}" local options=( --prefix=/usr --with-systemwide

Could you please modify the PKGBUILD to enable aarch64 compilation ?

zezadas commented on 2020-09-02 12:15 (UTC)

fixed thanks @bbx0

bbx0 commented on 2020-08-23 10:40 (UTC)

Looks like the PKGBUILD does not copy the header files for the opencl kernels. I removed the .cl extention filter to make it work for me.

# opencl
install -Dm 644 run/opencl/* -t "${pkgdir}/usr/share/john/opencl"


$ john --test --format=descrypt-opencl 
Build log: <kernel>:9:10: fatal error: 'opencl_DES_kernel_params.h' file not found
#include "opencl_DES_kernel_params.h"

Dulbi commented on 2020-04-20 12:04 (UTC)

Wasn't able to compile it on a Manjaro ARM. I know that available arch are only 'i686' and 'x86_64' but it is supposed to be able to other arch... Can anyone have a look at this, please ?

CyberShadow commented on 2018-10-15 23:28 (UTC)

Okay, it looks like the outdated patch is not the only problem. The directory structure seems to have changed, and the package() function now fails.

Looking at the community package in ABS, it looks like the PKGBUILDs have diverged significantly. Reconciling them would be a non-trivial amount of work.

I'm not interested in doing that work right now, so I'm orphaning the package for now. @xtrm0 feel free to adopt the package if you're up to the task; otherwise, I may re-adopt it later when I have some time to sort through this.

CyberShadow commented on 2018-10-15 23:09 (UTC)

Sorry, I must have missed the comment.

I'll fix it now.

NaBoo commented on 2018-02-13 20:57 (UTC) (edited on 2018-02-13 21:01 (UTC) by NaBoo)

@jachymb :

To fix the patch problem you need to change the params.h.patch

I think this will work

--- params.h.orig   2018-02-13 19:15:10.027258087 +0100
+++ params.h    2018-02-13 19:15:35.492398333 +0100
@@ -156,9 +156,9 @@
  * File names.
 #ifdef __DJGPP__
-#define CFG_FULL_NAME          "$JOHN/john.ini"
+#define CFG_FULL_NAME          "/etc/john/john.ini"
-#define CFG_FULL_NAME          "$JOHN/john.conf"
+#define CFG_FULL_NAME          "/etc/john/john.conf"
 #ifdef __DJGPP__

You will also need to change in PKGBUILD

first you need to change the md5sum of the patch file (line 29). For example my patch file md5sum is : 2594814704667e63847b8a9ee97b7d61

Then you have to replace ( line 88 ) by Link to the new script

And voila you should be able to compile. I hope this will help you.

jachymb commented on 2017-11-29 23:44 (UTC)

Build fails with the following error: ==> Starting prepare()... patching file params.h Hunk #1 FAILED at 101. 1 out of 1 hunk FAILED -- saving rejects to file params.h.rej ==> ERROR: A failure occurred in prepare(). Aborting... ==> ERROR: Makepkg was unable to build john-git.

yan12125 commented on 2017-04-07 16:32 (UTC)

Hello @CyberShadow, I don't use John the Ripper anymore and I'll disown this. Feel free to update and fix issues.

CyberShadow commented on 2017-04-06 23:42 (UTC)

Config files currently broken, please add "hybrid," to line 72. Also, shouldn't this have opencl-headers in optdepends or makedepends or something? md5crypt-opencl is broken for me with nvidia, but I don't think it's a packaging bug.

yan12125 commented on 2015-10-27 14:26 (UTC)

Added best64.conf but `john --test` still fails in some OpenCL related tests. I'm not familiar with OpenCL so I can't help more.

matse commented on 2015-10-25 20:28 (UTC)

In the PKGBUILD in line 70 "base64" is missing, john complains about missing List.Rules:base64 otherwise, greetings, matse

sanerb commented on 2015-07-30 17:47 (UTC)

(tested against opencl-nvidia-beta driver in AUR btw)

sanerb commented on 2015-07-30 17:46 (UTC)

quick and effective: [root@dawid ~]# john --test --format=rar-opencl Will run 8 OpenMP threads Device 0: GeForce GTX 560 Ti Benchmarking: rar-opencl, RAR3 (length 5) [SHA1 OpenCL AES]... (8xOMP) Build log: ptxas info : 0 bytes gmem ptxas info : Compiling entry function 'RarHashLoop' for 'sm_21' ptxas info : Function properties for RarHashLoop ptxas . 3584 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 56 registers, 80 bytes cmem[0], 4 bytes cmem[16] ptxas info : Compiling entry function 'RarInit' for 'sm_21' works great, thank you!

yan12125 commented on 2015-07-30 16:40 (UTC)

Thanks for discovering my error. This should have been fixed. I've tested against intel-opencl-runtime with `john --test --format=rar-opencl`

sanerb commented on 2015-07-29 08:16 (UTC)

looks like OpenCL doesn't work (i haven't tested CUDA): [root@dawid ~]# john --test --format=rar-opencl Will run 8 OpenMP threads Device 0: GeForce GTX 560 Ti Benchmarking: rar-opencl, RAR3 (length 5) [SHA1 OpenCL AES]... (8xOMP) OpenCL error (UNKNOWN OPENCL ERROR) in file (common-opencl.c) at line (1829) - (Source kernel not found!) I've tested with upstream and the test initiates properly, so it doesn't seem to be an upstream bug (tested via ../run/john --test --format=rar-opencl). it's probably just a file missing or something but i for the life of me can't seem to figure out what's missing. I'd imagine the building and packaging could be optimized as well- let me know if you want any help on this (reproducing/testing, second set of eyes, etc.) i'm r00t^2 on freenode.

yan12125 commented on 2015-05-29 17:46 (UTC)

Adopt and upload a working version. I've tested the functions I need on x86_64. There's no guarantee that all other functions work as well. I'll try my best to fix as much as possible.

ANTRat commented on 2014-08-18 23:41 (UTC)

git now uses a ./configure script, the previous `make linux-<arch>` style builds no longer work

TrialnError commented on 2014-07-27 19:14 (UTC)

Just updated the PKGBuild to the latest guidelines. No functional test of john itself

Atsutane commented on 2014-03-03 17:43 (UTC)

I only use the stable package I have in [community], orphaned. :-) Sorry that I blocked it. :-/

dequis commented on 2014-03-03 16:28 (UTC)

Getting several errors with this pkgbuild, the patches don't seem to apply to latest git, "make office2john" isn't valid anymore, and there are missing files in the package() section. I gave up since I don't care that much, but leaving this as a warning.