public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-admin/pwcrypt/, app-admin/pwcrypt/files/
@ 2020-05-12 14:43 Akinori Hattori
  0 siblings, 0 replies; 2+ messages in thread
From: Akinori Hattori @ 2020-05-12 14:43 UTC (permalink / raw
  To: gentoo-commits

commit:     5c65f9976ebf4e21f5cf31d8c0fa1757447ab676
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Tue May 12 14:42:29 2020 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Tue May 12 14:42:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c65f997

app-admin/pwcrypt: fix build with >=sys-devel/gcc-10

Closes: https://bugs.gentoo.org/707854
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 app-admin/pwcrypt/files/pwcrypt-gcc-10.patch | 66 ++++++++++++++++++++++++++++
 app-admin/pwcrypt/pwcrypt-1.2.2-r2.ebuild    |  1 +
 2 files changed, 67 insertions(+)

diff --git a/app-admin/pwcrypt/files/pwcrypt-gcc-10.patch b/app-admin/pwcrypt/files/pwcrypt-gcc-10.patch
new file mode 100644
index 00000000000..745c93f5d15
--- /dev/null
+++ b/app-admin/pwcrypt/files/pwcrypt-gcc-10.patch
@@ -0,0 +1,66 @@
+--- a/src/cli-crypt.h
++++ b/src/cli-crypt.h
+@@ -27,16 +27,16 @@
+ #define LSIZE	1024	/* our standard buffer size for static memory */
+ 
+ /* our global variables */
+-char cleartext_pass[LSIZE];	/* where do we store the initial cleartext of the password */
+-char encrypted_pass[LSIZE];	/* where we stuff our password once it's encrypted */
+-char salt_src[LSIZE];		/* a place we can store text to scramble to get our salt */
+-char salt[LSIZE];		/* the actual salt we end up with using in our call to crypt(); */
++extern char cleartext_pass[LSIZE];	/* where do we store the initial cleartext of the password */
++extern char encrypted_pass[LSIZE];	/* where we stuff our password once it's encrypted */
++extern char salt_src[LSIZE];		/* a place we can store text to scramble to get our salt */
++extern char salt[LSIZE];		/* the actual salt we end up with using in our call to crypt(); */
+ 
+ /* flags we use to determine how we're doing things */
+-short int md5;		/* we doing md5 passwords */
+-short int quiet;	/* are we to be quiet */
+-short int debug;	/* do we print debug info? */
+-short int do_salt;	/* do we need to provide a salt? */
++extern short int md5;		/* we doing md5 passwords */
++extern short int quiet;	/* are we to be quiet */
++extern short int debug;	/* do we print debug info? */
++extern short int do_salt;	/* do we need to provide a salt? */
+ 
+ 
+ /* from main.c */
+--- a/src/crypt.c
++++ b/src/crypt.c
+@@ -26,7 +26,7 @@
+ 
+ #include "include.h"
+ 
+-
++char encrypted_pass[LSIZE];
+ 
+ short int cr_crypt() {
+        	char *cp;
+--- a/src/getopt.c
++++ b/src/getopt.c
+@@ -25,6 +25,13 @@
+ 
+ #include "include.h"
+ 
++char cleartext_pass[LSIZE];
++
++short int md5;
++short int quiet;
++short int debug;
++short int do_salt;
++
+ void cr_version(char *me) {
+ 	/* some quick mutzing around to get the == of `basename $0` */
+ 	char lme[LSIZE];
+--- a/src/random.c
++++ b/src/random.c
+@@ -27,6 +27,9 @@
+ 
+ #include "include.h"
+ 
++char salt_src[LSIZE];
++char salt[LSIZE];
++
+ /* shared amongst the functions in this file */
+ long int rand_file;
+ 

diff --git a/app-admin/pwcrypt/pwcrypt-1.2.2-r2.ebuild b/app-admin/pwcrypt/pwcrypt-1.2.2-r2.ebuild
index bc081dbe683..250ada02cb4 100644
--- a/app-admin/pwcrypt/pwcrypt-1.2.2-r2.ebuild
+++ b/app-admin/pwcrypt/pwcrypt-1.2.2-r2.ebuild
@@ -14,6 +14,7 @@ SLOT="0"
 KEYWORDS="amd64 ppc x86"
 IUSE=""
 
+PATCHES=( "${FILESDIR}"/${PN}-gcc-10.patch )
 DOCS=( CREDITS README )
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-admin/pwcrypt/, app-admin/pwcrypt/files/
@ 2024-11-16 13:43 Andreas K. Hüttel
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas K. Hüttel @ 2024-11-16 13:43 UTC (permalink / raw
  To: gentoo-commits

commit:     9f6e8b884c567e676bdda30e3faaa79db068f3f4
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 16 13:42:26 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Nov 16 13:43:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f6e8b88

app-admin/pwcrypt: add eautoreconf

Also, doesnt use automake, so remove references to it from configure.in

Closes: https://bugs.gentoo.org/905944
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 app-admin/pwcrypt/files/pwcrypt-eautoreconf.patch |  9 +++++++++
 app-admin/pwcrypt/pwcrypt-1.2.2-r3.ebuild         | 11 ++++++++---
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/app-admin/pwcrypt/files/pwcrypt-eautoreconf.patch b/app-admin/pwcrypt/files/pwcrypt-eautoreconf.patch
new file mode 100644
index 000000000000..6b6733030077
--- /dev/null
+++ b/app-admin/pwcrypt/files/pwcrypt-eautoreconf.patch
@@ -0,0 +1,9 @@
+diff '--color=auto' -ruN pwcrypt-1.2.2.orig/configure.in pwcrypt-1.2.2/configure.in
+--- pwcrypt-1.2.2.orig/configure.in	2003-10-07 23:18:49.000000000 +0200
++++ pwcrypt-1.2.2/configure.in	2024-11-16 14:39:44.135876058 +0100
+@@ -1,5 +1,3 @@
+-AM_INIT_AUTOMAKE(cli-crypt,1.2.2)
+-AM_PROG_CC_STDC
+ 
+ dnl Process this file with autoconf to produce a configure script.
+ AC_INIT(src/main.c)

diff --git a/app-admin/pwcrypt/pwcrypt-1.2.2-r3.ebuild b/app-admin/pwcrypt/pwcrypt-1.2.2-r3.ebuild
index 8d3b90ef4689..836bf6934c10 100644
--- a/app-admin/pwcrypt/pwcrypt-1.2.2-r3.ebuild
+++ b/app-admin/pwcrypt/pwcrypt-1.2.2-r3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
 
-inherit toolchain-funcs
+inherit toolchain-funcs autotools
 
 DESCRIPTION="An improved version of cli-crypt (encrypts data sent to it from the cli)"
 HOMEPAGE="http://xjack.org/pwcrypt/"
@@ -16,7 +16,11 @@ KEYWORDS="amd64 ppc x86"
 RDEPEND="virtual/libcrypt:="
 DEPEND="${RDEPEND}"
 
-PATCHES=( "${FILESDIR}"/${PN}-gcc-10.patch )
+PATCHES=(
+	"${FILESDIR}"/${PN}-gcc-10.patch
+	"${FILESDIR}"/${PN}-eautoreconf.patch
+)
+
 DOCS=( CREDITS README )
 
 src_prepare() {
@@ -29,4 +33,5 @@ src_prepare() {
 		src/Makefile.in || die
 
 	tc-export CC
+	eautoreconf
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-16 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-16 13:43 [gentoo-commits] repo/gentoo:master commit in: app-admin/pwcrypt/, app-admin/pwcrypt/files/ Andreas K. Hüttel
  -- strict thread matches above, loose matches on Subject: below --
2020-05-12 14:43 Akinori Hattori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox