Discussion:
[suggest] john-1.7.6-1 doesn't build
Александр Кириллов
2011-01-24 10:40:09 UTC
Permalink
john-1.7.6-1 doesn't build out of the box
the reason being make removing symlinked arch.h before building the final
target.
The attached fix also includes contributed patches which add many more
hash formats,
e.g. raw-MD5.

AK
-------------- next part --------------
--- john.spec.20110124 2011-01-24 13:18:33.000000000 +0300
+++ john.spec 2011-01-24 13:19:45.000000000 +0300
@@ -4,7 +4,7 @@
Summary: John the Ripper password cracker
Name: john
Version: 1.7.6
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL
Group: Applications/System
URL: http://www.openwall.com/john/
@@ -14,8 +14,11 @@
Vendor: Dag Apt Repository, http://dag.wieers.com/apt/

Source: http://www.openwall.com/john/g/john-%{version}.tar.bz2
+Patch: ftp://ftp.openwall.com/pub/projects/john/contrib/john-1.7.6-jumbo-9.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

+BuildRequires: openssl-devel
+
%description
John the Ripper is a fast password cracker. Its primary purpose is to
detect weak Unix passwords, but a number of other hash types are
@@ -23,6 +26,7 @@

%prep
%setup
+%patch -p1

%{__perl} -pi.orig -e 's|^(\#define CFG_FULL_NAME)\s.+$|$1 "%{_sysconfdir}/john.conf"|' src/params.h

@@ -30,26 +34,26 @@
CFLAGS="-c %{optflags} -DJOHN_SYSTEMWIDE -fomit-frame-pointer"
%ifarch %{ix86}
%define _with_cpu_fallback 1
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-any
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-any
%{__mv} -f run/john run/john-non-mmx
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-mmx
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-mmx
#%{__mv} -f run/john run/john-non-sse
-#%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-sse2
+#%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-sse2
%endif
%ifarch x86_64
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-x86-64
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-x86-64
%endif
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-alpha
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-alpha
%endif
%ifarch sparc sparcv9
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-sparc
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-sparc
%endif
%ifarch ppc
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-ppc32
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-ppc32
%endif
%ifarch ppc64
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-ppc64
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-ppc64
%endif

%install
@@ -86,6 +90,9 @@
%endif

%changelog
+* Sun Jan 23 2011 Alexander Kirillov - 1.7.6-2
+- Added jumbo patch
+
* Mon Jun 14 2010 Dag Wieers <dag at wieers.com> - 1.7.6-1 - 8921/dag
- Updated to release 1.7.6.
Yury V. Zaytsev
2011-01-24 12:31:07 UTC
Permalink
Post by Александр Кириллов
john-1.7.6-1 doesn't build out of the box
Hi Alexander,

Thanks for your contribution! I have just committed the new SPEC. It
will become available when Dag will rebuild the package and push it to
the mirrors.
--
Sincerely yours,
Yury V. Zaytsev
Yury V. Zaytsev
2011-04-02 22:19:49 UTC
Permalink
Post by Yury V. Zaytsev
Thanks for your contribution! I have just committed the new SPEC. It
will become available when Dag will rebuild the package and push it to
the mirrors.
Hmmm... now it does not build for x86. And, by the way the latest jumbo
patch is at version 12.

gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o ...
x86-mmx.o: In function `DES_bs_crypt':
(.text+0x20): multiple definition of `DES_bs_crypt'
DES_bs_b.o:/dar/build/john-1.7.6/src/DES_bs_b.c:464: first defined here
...

The only difference that I can see, is that

-finline-functions DES_bs_b.c

and all others are built without inlining.

:-(
--
Sincerely yours,
Yury V. Zaytsev
nevis2us
2011-04-03 09:56:25 UTC
Permalink
Post by Yury V. Zaytsev
Hmmm... now it does not build for x86. And, by the way the latest jumbo
patch is at version 12.
gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o ...
(.text+0x20): multiple definition of `DES_bs_crypt'
DES_bs_b.o:/dar/build/john-1.7.6/src/DES_bs_b.c:464: first defined here
Indeed. Consider the attached patch. It does build for i386 and x86_64
with jumbo patch ver. 12 though I haven't checked the results.

AK
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: john-1.7.6-3.patch
Url: http://lists.repoforge.org/pipermail/users/attachments/20110403/e028b28e/attachment.pl
Yury V. Zaytsev
2011-04-03 10:58:01 UTC
Permalink
Post by nevis2us
Indeed. Consider the attached patch. It does build for i386 and x86_64
with jumbo patch ver. 12 though I haven't checked the results.
Thanks! Makes sense to me. Committed.
--
Sincerely yours,
Yury V. Zaytsev
Yury V. Zaytsev
2011-04-03 10:58:01 UTC
Permalink
Post by nevis2us
Indeed. Consider the attached patch. It does build for i386 and x86_64
with jumbo patch ver. 12 though I haven't checked the results.
Thanks! Makes sense to me. Committed.
--
Sincerely yours,
Yury V. Zaytsev
Yury V. Zaytsev
2011-04-03 10:58:01 UTC
Permalink
Post by nevis2us
Indeed. Consider the attached patch. It does build for i386 and x86_64
with jumbo patch ver. 12 though I haven't checked the results.
Thanks! Makes sense to me. Committed.
--
Sincerely yours,
Yury V. Zaytsev
Yury V. Zaytsev
2011-04-03 10:58:01 UTC
Permalink
Post by nevis2us
Indeed. Consider the attached patch. It does build for i386 and x86_64
with jumbo patch ver. 12 though I haven't checked the results.
Thanks! Makes sense to me. Committed.
--
Sincerely yours,
Yury V. Zaytsev
Yury V. Zaytsev
2011-04-03 10:58:01 UTC
Permalink
Post by nevis2us
Indeed. Consider the attached patch. It does build for i386 and x86_64
with jumbo patch ver. 12 though I haven't checked the results.
Thanks! Makes sense to me. Committed.
--
Sincerely yours,
Yury V. Zaytsev
nevis2us
2011-04-03 09:56:25 UTC
Permalink
Post by Yury V. Zaytsev
Hmmm... now it does not build for x86. And, by the way the latest jumbo
patch is at version 12.
gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o ...
(.text+0x20): multiple definition of `DES_bs_crypt'
DES_bs_b.o:/dar/build/john-1.7.6/src/DES_bs_b.c:464: first defined here
Indeed. Consider the attached patch. It does build for i386 and x86_64
with jumbo patch ver. 12 though I haven't checked the results.

AK
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: john-1.7.6-3.patch
Url: http://lists.repoforge.org/pipermail/users/attachments/20110403/e028b28e/attachment-0001.pl
nevis2us
2011-04-03 09:56:25 UTC
Permalink
Post by Yury V. Zaytsev
Hmmm... now it does not build for x86. And, by the way the latest jumbo
patch is at version 12.
gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o ...
(.text+0x20): multiple definition of `DES_bs_crypt'
DES_bs_b.o:/dar/build/john-1.7.6/src/DES_bs_b.c:464: first defined here
Indeed. Consider the attached patch. It does build for i386 and x86_64
with jumbo patch ver. 12 though I haven't checked the results.

AK
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: john-1.7.6-3.patch
Url: http://lists.repoforge.org/pipermail/users/attachments/20110403/e028b28e/attachment-0002.pl
nevis2us
2011-04-03 09:56:25 UTC
Permalink
Post by Yury V. Zaytsev
Hmmm... now it does not build for x86. And, by the way the latest jumbo
patch is at version 12.
gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o ...
(.text+0x20): multiple definition of `DES_bs_crypt'
DES_bs_b.o:/dar/build/john-1.7.6/src/DES_bs_b.c:464: first defined here
Indeed. Consider the attached patch. It does build for i386 and x86_64
with jumbo patch ver. 12 though I haven't checked the results.

AK
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: john-1.7.6-3.patch
Url: http://lists.repoforge.org/pipermail/users/attachments/20110403/e028b28e/attachment-0003.pl
nevis2us
2011-04-03 09:56:25 UTC
Permalink
Post by Yury V. Zaytsev
Hmmm... now it does not build for x86. And, by the way the latest jumbo
patch is at version 12.
gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o ...
(.text+0x20): multiple definition of `DES_bs_crypt'
DES_bs_b.o:/dar/build/john-1.7.6/src/DES_bs_b.c:464: first defined here
Indeed. Consider the attached patch. It does build for i386 and x86_64
with jumbo patch ver. 12 though I haven't checked the results.

AK
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: john-1.7.6-3.patch
URL: <http://lists.repoforge.org/pipermail/users/attachments/20110403/e028b28e/attachment.ksh>
Yury V. Zaytsev
2011-04-02 22:19:49 UTC
Permalink
Post by Yury V. Zaytsev
Thanks for your contribution! I have just committed the new SPEC. It
will become available when Dag will rebuild the package and push it to
the mirrors.
Hmmm... now it does not build for x86. And, by the way the latest jumbo
patch is at version 12.

gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o ...
x86-mmx.o: In function `DES_bs_crypt':
(.text+0x20): multiple definition of `DES_bs_crypt'
DES_bs_b.o:/dar/build/john-1.7.6/src/DES_bs_b.c:464: first defined here
...

The only difference that I can see, is that

-finline-functions DES_bs_b.c

and all others are built without inlining.

:-(
--
Sincerely yours,
Yury V. Zaytsev
Yury V. Zaytsev
2011-04-02 22:19:49 UTC
Permalink
Post by Yury V. Zaytsev
Thanks for your contribution! I have just committed the new SPEC. It
will become available when Dag will rebuild the package and push it to
the mirrors.
Hmmm... now it does not build for x86. And, by the way the latest jumbo
patch is at version 12.

gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o ...
x86-mmx.o: In function `DES_bs_crypt':
(.text+0x20): multiple definition of `DES_bs_crypt'
DES_bs_b.o:/dar/build/john-1.7.6/src/DES_bs_b.c:464: first defined here
...

The only difference that I can see, is that

-finline-functions DES_bs_b.c

and all others are built without inlining.

:-(
--
Sincerely yours,
Yury V. Zaytsev
Yury V. Zaytsev
2011-04-02 22:19:49 UTC
Permalink
Post by Yury V. Zaytsev
Thanks for your contribution! I have just committed the new SPEC. It
will become available when Dag will rebuild the package and push it to
the mirrors.
Hmmm... now it does not build for x86. And, by the way the latest jumbo
patch is at version 12.

gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o ...
x86-mmx.o: In function `DES_bs_crypt':
(.text+0x20): multiple definition of `DES_bs_crypt'
DES_bs_b.o:/dar/build/john-1.7.6/src/DES_bs_b.c:464: first defined here
...

The only difference that I can see, is that

-finline-functions DES_bs_b.c

and all others are built without inlining.

:-(
--
Sincerely yours,
Yury V. Zaytsev
Yury V. Zaytsev
2011-04-02 22:19:49 UTC
Permalink
Post by Yury V. Zaytsev
Thanks for your contribution! I have just committed the new SPEC. It
will become available when Dag will rebuild the package and push it to
the mirrors.
Hmmm... now it does not build for x86. And, by the way the latest jumbo
patch is at version 12.

gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o ...
x86-mmx.o: In function `DES_bs_crypt':
(.text+0x20): multiple definition of `DES_bs_crypt'
DES_bs_b.o:/dar/build/john-1.7.6/src/DES_bs_b.c:464: first defined here
...

The only difference that I can see, is that

-finline-functions DES_bs_b.c

and all others are built without inlining.

:-(
--
Sincerely yours,
Yury V. Zaytsev
Александр Кириллов
2011-01-24 10:40:09 UTC
Permalink
john-1.7.6-1 doesn't build out of the box
the reason being make removing symlinked arch.h before building the final
target.
The attached fix also includes contributed patches which add many more
hash formats,
e.g. raw-MD5.

AK
-------------- next part --------------
--- john.spec.20110124 2011-01-24 13:18:33.000000000 +0300
+++ john.spec 2011-01-24 13:19:45.000000000 +0300
@@ -4,7 +4,7 @@
Summary: John the Ripper password cracker
Name: john
Version: 1.7.6
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL
Group: Applications/System
URL: http://www.openwall.com/john/
@@ -14,8 +14,11 @@
Vendor: Dag Apt Repository, http://dag.wieers.com/apt/

Source: http://www.openwall.com/john/g/john-%{version}.tar.bz2
+Patch: ftp://ftp.openwall.com/pub/projects/john/contrib/john-1.7.6-jumbo-9.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

+BuildRequires: openssl-devel
+
%description
John the Ripper is a fast password cracker. Its primary purpose is to
detect weak Unix passwords, but a number of other hash types are
@@ -23,6 +26,7 @@

%prep
%setup
+%patch -p1

%{__perl} -pi.orig -e 's|^(\#define CFG_FULL_NAME)\s.+$|$1 "%{_sysconfdir}/john.conf"|' src/params.h

@@ -30,26 +34,26 @@
CFLAGS="-c %{optflags} -DJOHN_SYSTEMWIDE -fomit-frame-pointer"
%ifarch %{ix86}
%define _with_cpu_fallback 1
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-any
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-any
%{__mv} -f run/john run/john-non-mmx
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-mmx
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-mmx
#%{__mv} -f run/john run/john-non-sse
-#%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-sse2
+#%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-sse2
%endif
%ifarch x86_64
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-x86-64
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-x86-64
%endif
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-alpha
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-alpha
%endif
%ifarch sparc sparcv9
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-sparc
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-sparc
%endif
%ifarch ppc
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-ppc32
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-ppc32
%endif
%ifarch ppc64
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-ppc64
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-ppc64
%endif

%install
@@ -86,6 +90,9 @@
%endif

%changelog
+* Sun Jan 23 2011 Alexander Kirillov - 1.7.6-2
+- Added jumbo patch
+
* Mon Jun 14 2010 Dag Wieers <dag at wieers.com> - 1.7.6-1 - 8921/dag
- Updated to release 1.7.6.
Yury V. Zaytsev
2011-01-24 12:31:07 UTC
Permalink
Post by Александр Кириллов
john-1.7.6-1 doesn't build out of the box
Hi Alexander,

Thanks for your contribution! I have just committed the new SPEC. It
will become available when Dag will rebuild the package and push it to
the mirrors.
--
Sincerely yours,
Yury V. Zaytsev
Александр Кириллов
2011-01-24 10:40:09 UTC
Permalink
john-1.7.6-1 doesn't build out of the box
the reason being make removing symlinked arch.h before building the final
target.
The attached fix also includes contributed patches which add many more
hash formats,
e.g. raw-MD5.

AK
-------------- next part --------------
--- john.spec.20110124 2011-01-24 13:18:33.000000000 +0300
+++ john.spec 2011-01-24 13:19:45.000000000 +0300
@@ -4,7 +4,7 @@
Summary: John the Ripper password cracker
Name: john
Version: 1.7.6
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL
Group: Applications/System
URL: http://www.openwall.com/john/
@@ -14,8 +14,11 @@
Vendor: Dag Apt Repository, http://dag.wieers.com/apt/

Source: http://www.openwall.com/john/g/john-%{version}.tar.bz2
+Patch: ftp://ftp.openwall.com/pub/projects/john/contrib/john-1.7.6-jumbo-9.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

+BuildRequires: openssl-devel
+
%description
John the Ripper is a fast password cracker. Its primary purpose is to
detect weak Unix passwords, but a number of other hash types are
@@ -23,6 +26,7 @@

%prep
%setup
+%patch -p1

%{__perl} -pi.orig -e 's|^(\#define CFG_FULL_NAME)\s.+$|$1 "%{_sysconfdir}/john.conf"|' src/params.h

@@ -30,26 +34,26 @@
CFLAGS="-c %{optflags} -DJOHN_SYSTEMWIDE -fomit-frame-pointer"
%ifarch %{ix86}
%define _with_cpu_fallback 1
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-any
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-any
%{__mv} -f run/john run/john-non-mmx
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-mmx
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-mmx
#%{__mv} -f run/john run/john-non-sse
-#%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-sse2
+#%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-sse2
%endif
%ifarch x86_64
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-x86-64
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-x86-64
%endif
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-alpha
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-alpha
%endif
%ifarch sparc sparcv9
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-sparc
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-sparc
%endif
%ifarch ppc
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-ppc32
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-ppc32
%endif
%ifarch ppc64
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-ppc64
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-ppc64
%endif

%install
@@ -86,6 +90,9 @@
%endif

%changelog
+* Sun Jan 23 2011 Alexander Kirillov - 1.7.6-2
+- Added jumbo patch
+
* Mon Jun 14 2010 Dag Wieers <dag at wieers.com> - 1.7.6-1 - 8921/dag
- Updated to release 1.7.6.
Yury V. Zaytsev
2011-01-24 12:31:07 UTC
Permalink
Post by Александр Кириллов
john-1.7.6-1 doesn't build out of the box
Hi Alexander,

Thanks for your contribution! I have just committed the new SPEC. It
will become available when Dag will rebuild the package and push it to
the mirrors.
--
Sincerely yours,
Yury V. Zaytsev
Александр Кириллов
2011-01-24 10:40:09 UTC
Permalink
john-1.7.6-1 doesn't build out of the box
the reason being make removing symlinked arch.h before building the final
target.
The attached fix also includes contributed patches which add many more
hash formats,
e.g. raw-MD5.

AK
-------------- next part --------------
--- john.spec.20110124 2011-01-24 13:18:33.000000000 +0300
+++ john.spec 2011-01-24 13:19:45.000000000 +0300
@@ -4,7 +4,7 @@
Summary: John the Ripper password cracker
Name: john
Version: 1.7.6
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL
Group: Applications/System
URL: http://www.openwall.com/john/
@@ -14,8 +14,11 @@
Vendor: Dag Apt Repository, http://dag.wieers.com/apt/

Source: http://www.openwall.com/john/g/john-%{version}.tar.bz2
+Patch: ftp://ftp.openwall.com/pub/projects/john/contrib/john-1.7.6-jumbo-9.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

+BuildRequires: openssl-devel
+
%description
John the Ripper is a fast password cracker. Its primary purpose is to
detect weak Unix passwords, but a number of other hash types are
@@ -23,6 +26,7 @@

%prep
%setup
+%patch -p1

%{__perl} -pi.orig -e 's|^(\#define CFG_FULL_NAME)\s.+$|$1 "%{_sysconfdir}/john.conf"|' src/params.h

@@ -30,26 +34,26 @@
CFLAGS="-c %{optflags} -DJOHN_SYSTEMWIDE -fomit-frame-pointer"
%ifarch %{ix86}
%define _with_cpu_fallback 1
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-any
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-any
%{__mv} -f run/john run/john-non-mmx
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-mmx
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-mmx
#%{__mv} -f run/john run/john-non-sse
-#%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-sse2
+#%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-sse2
%endif
%ifarch x86_64
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-x86-64
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-x86-64
%endif
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-alpha
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-alpha
%endif
%ifarch sparc sparcv9
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-sparc
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-sparc
%endif
%ifarch ppc
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-ppc32
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-ppc32
%endif
%ifarch ppc64
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-ppc64
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-ppc64
%endif

%install
@@ -86,6 +90,9 @@
%endif

%changelog
+* Sun Jan 23 2011 Alexander Kirillov - 1.7.6-2
+- Added jumbo patch
+
* Mon Jun 14 2010 Dag Wieers <dag at wieers.com> - 1.7.6-1 - 8921/dag
- Updated to release 1.7.6.
Yury V. Zaytsev
2011-01-24 12:31:07 UTC
Permalink
Post by Александр Кириллов
john-1.7.6-1 doesn't build out of the box
Hi Alexander,

Thanks for your contribution! I have just committed the new SPEC. It
will become available when Dag will rebuild the package and push it to
the mirrors.
--
Sincerely yours,
Yury V. Zaytsev
Александр Кириллов
2011-01-24 10:40:09 UTC
Permalink
john-1.7.6-1 doesn't build out of the box
the reason being make removing symlinked arch.h before building the final
target.
The attached fix also includes contributed patches which add many more
hash formats,
e.g. raw-MD5.

AK
-------------- next part --------------
--- john.spec.20110124 2011-01-24 13:18:33.000000000 +0300
+++ john.spec 2011-01-24 13:19:45.000000000 +0300
@@ -4,7 +4,7 @@
Summary: John the Ripper password cracker
Name: john
Version: 1.7.6
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL
Group: Applications/System
URL: http://www.openwall.com/john/
@@ -14,8 +14,11 @@
Vendor: Dag Apt Repository, http://dag.wieers.com/apt/

Source: http://www.openwall.com/john/g/john-%{version}.tar.bz2
+Patch: ftp://ftp.openwall.com/pub/projects/john/contrib/john-1.7.6-jumbo-9.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

+BuildRequires: openssl-devel
+
%description
John the Ripper is a fast password cracker. Its primary purpose is to
detect weak Unix passwords, but a number of other hash types are
@@ -23,6 +26,7 @@

%prep
%setup
+%patch -p1

%{__perl} -pi.orig -e 's|^(\#define CFG_FULL_NAME)\s.+$|$1 "%{_sysconfdir}/john.conf"|' src/params.h

@@ -30,26 +34,26 @@
CFLAGS="-c %{optflags} -DJOHN_SYSTEMWIDE -fomit-frame-pointer"
%ifarch %{ix86}
%define _with_cpu_fallback 1
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-any
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-any
%{__mv} -f run/john run/john-non-mmx
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-mmx
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-mmx
#%{__mv} -f run/john run/john-non-sse
-#%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" clean linux-x86-sse2
+#%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS -DCPU_FALLBACK=1" linux-x86-sse2
%endif
%ifarch x86_64
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-x86-64
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-x86-64
%endif
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-alpha
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-alpha
%endif
%ifarch sparc sparcv9
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-sparc
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-sparc
%endif
%ifarch ppc
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-ppc32
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-ppc32
%endif
%ifarch ppc64
-%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" clean linux-ppc64
+%{__make} %{?_smp_mflags} -C src CFLAGS="$CFLAGS" linux-ppc64
%endif

%install
@@ -86,6 +90,9 @@
%endif

%changelog
+* Sun Jan 23 2011 Alexander Kirillov - 1.7.6-2
+- Added jumbo patch
+
* Mon Jun 14 2010 Dag Wieers <dag at wieers.com> - 1.7.6-1 - 8921/dag
- Updated to release 1.7.6.
Yury V. Zaytsev
2011-01-24 12:31:07 UTC
Permalink
Post by Александр Кириллов
john-1.7.6-1 doesn't build out of the box
Hi Alexander,

Thanks for your contribution! I have just committed the new SPEC. It
will become available when Dag will rebuild the package and push it to
the mirrors.
--
Sincerely yours,
Yury V. Zaytsev
Continue reading on narkive:
Loading...