Package Details: john-git 1.9.0.Jumbo.1.r1351.g63f6c352b-1

Git Clone URL: https://aur.archlinux.org/john-git.git (read-only, click to copy)
Package Base: john-git
Description: fast password cracker (using the git repository of the jumbo patch)
Upstream URL: http://www.openwall.com/john/
Licenses: GPL2, custom
Conflicts: john
Provides: john
Submitter: Atsutane
Maintainer: david_rysk
Last Packager: david_rysk
Votes: 9
Popularity: 0.000000
First Submitted: 2012-11-03 17:25 (UTC)
Last Updated: 2024-09-18 16:45 (UTC)

Dependencies (18)

Required by (8)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

n00k commented on 2024-08-29 10:19 (UTC) (edited on 2024-08-29 10:25 (UTC) by n00k)

Alternatively, if we are fine with another copy of the LICENSE file, a slightly simpler solution:

From b7a9ad3a5233ee153e2b1cf99dac8149a48f585c Mon Sep 17 00:00:00 2001
From: Christopher Schwardt <christopher.schwardt@airbus.com>
Date: Thu, 29 Aug 2024 11:58:53 +0200
Subject: [PATCH] fix LICENSE link and update git commit

---
 PKGBUILD | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index d4b7fa6..8b74448 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@

 _pkgname=john
 pkgname=john-git
-pkgver=1.9.0.Jumbo.1.r1012.g9a55a3744
-pkgrel=2
+pkgver=1.9.0.Jumbo.1.r1346.gef6cbe47f
+pkgrel=1
 pkgdesc="fast password cracker (using the git repository of the jumbo patch)"
 arch=('i686' 'x86_64' "aarch64")
 url="http://www.openwall.com/$_pkgname/"
@@ -99,7 +99,7 @@ package() {

   # docs
   install -d "${pkgdir}/usr/share/doc/john"
-  cp -r doc/* "${pkgdir}/usr/share/doc/john"
+  cp -rL doc/* "${pkgdir}/usr/share/doc/john"
   rm "${pkgdir}/usr/share/doc/john/README"
   install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}"
   install -Dm 644 doc/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
--
2.46.0

Whichever solution you prefer, an update of the package would be highly appreciated.

realkstrawn93 commented on 2024-08-26 18:54 (UTC)

Stopped compiling due to the LICENSE symlink breaking ― needed to make this change for this package to build properly:

From 3967324a60e14fc9b5212145a3a153582f6b4523 Mon Sep 17 00:00:00 2001
From: Kenny Strawn <kstrawn0@saddleback.edu>
Date: Mon, 26 Aug 2024 11:52:46 -0700
Subject: [PATCH] Fix broken symlinks

---
 PKGBUILD | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index d4b7fa6..e5eac55 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@

 _pkgname=john
 pkgname=john-git
-pkgver=1.9.0.Jumbo.1.r1012.g9a55a3744
-pkgrel=2
+pkgver=1.9.0.Jumbo.1.r1346.gef6cbe47f
+pkgrel=1
 pkgdesc="fast password cracker (using the git repository of the jumbo patch)"
 arch=('i686' 'x86_64' "aarch64")
 url="http://www.openwall.com/$_pkgname/"
@@ -82,12 +82,12 @@ build() {
     ./configure "${options[@]}" CFLAGS="${CFLAGS}"
     make clean; make
   fi
-    
+
 }

 package() {
     cd ${srcdir}/$_pkgname/
-   
+
    # config
   install -Dm 644 run/john.conf -t "${pkgdir}/etc/john"
   install -Dm 644 run/*.conf -t "${pkgdir}/usr/share/john"
@@ -96,16 +96,23 @@ package() {
   install -d "${pkgdir}/usr/share/john/opencl"
   cp -r run/opencl/* "${pkgdir}/usr/share/john/opencl"
   chmod -R o+r "${pkgdir}/usr/share/john/opencl"
-  
+
   # docs
   install -d "${pkgdir}/usr/share/doc/john"
   cp -r doc/* "${pkgdir}/usr/share/doc/john"
   rm "${pkgdir}/usr/share/doc/john/README"
   install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}"
   install -Dm 644 doc/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+
+  # fix broken symlinks
+  cd "${pkgdir}/usr/share/doc/john"
+  unlink LICENSE && ln -s ../../licenses/${pkgname}/LICENSE LICENSE
+
+  # fix permissions
   chmod -R o+r "${pkgdir}"/usr/share/doc/john/*

   # completion
+  cd ${srcdir}/$_pkgname/
   install -Dm 644 run/john.bash_completion "${pkgdir}/usr/share/bash-completion/completions/john"
   install -Dm 644 run/john.zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_john"

@@ -141,4 +148,3 @@ package() {
 }

 # vim:set ts=2 sw=2 et:
-
-- 
2.46.0

Strongly suggest applying this patch to solve this problem as it breaks AUR helpers.

chainofflowers commented on 2023-07-22 18:25 (UTC)

In order to use bitcoin2john you need to install python-bsddb, which is not listed as a dependency...

david_rysk commented on 2023-01-17 22:02 (UTC)

aarch64 build should now be fixed. I tested on Arch Linux ARM in a VM on an M2 Mac.

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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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="http://www.openwall.com/$_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="${CFLAGS} -DCPU_FALLBACK"
  • 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"

Error:

$ 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"