commit: 07c880dd9d4270ac3932d13269b047a6d7678a95 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Dec 3 05:17:36 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Dec 3 06:06:08 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07c880dd
app-misc/pwsafe: fix configure w/ clang 16 Signed-off-by: Sam James <sam <AT> gentoo.org> .../pwsafe-0.2.0-modern-autoconf-automake.patch | 61 ++++++++++++++++++++++ ...safe-0.2.0-r5.ebuild => pwsafe-0.2.0-r6.ebuild} | 17 +++--- 2 files changed, 72 insertions(+), 6 deletions(-) diff --git a/app-misc/pwsafe/files/pwsafe-0.2.0-modern-autoconf-automake.patch b/app-misc/pwsafe/files/pwsafe-0.2.0-modern-autoconf-automake.patch new file mode 100644 index 000000000000..a10940fd5716 --- /dev/null +++ b/app-misc/pwsafe/files/pwsafe-0.2.0-modern-autoconf-automake.patch @@ -0,0 +1,61 @@ +https://github.com/nsd20463/pwsafe/commit/7a960f21eed6e3e8b74bf32628c38a5d8c963587 +https://github.com/nsd20463/pwsafe/commit/0bc444c8caadcbd93143e5dba77db3abfd3e51d2 + +From 7a960f21eed6e3e8b74bf32628c38a5d8c963587 Mon Sep 17 00:00:00 2001 +From: "Nicolas S. Dade" <nic.d...@gmail.com> +Date: Sat, 13 Jun 2015 16:49:20 -0700 +Subject: [PATCH] update ac input files to fix warnings from modern (version + 1.14.1) aclocal + +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -6,7 +6,7 @@ dnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared -- + dnl usually in <utime.h>. + dnl Some systems have utime.h but don't declare the struct anywhere. + +-AC_DEFUN(jm_CHECK_TYPE_STRUCT_UTIMBUF, ++AC_DEFUN([jm_CHECK_TYPE_STRUCT_UTIMBUF], + [ + AC_CHECK_HEADERS(utime.h) + AC_REQUIRE([AC_HEADER_TIME]) +--- a/configure.ac ++++ b/configure.ac +@@ -146,7 +146,7 @@ AC_CHECK_TYPE(socklen_t,[AC_DEFINE(HAVE_SOCKLEN_T, 1, [Define to 1 if the type s + + + dnl Checks for library functions. +-AM_SYS_POSIX_TERMIOS ++AC_SYS_POSIX_TERMIOS + if test "$am_cv_sys_posix_termios" != yes -a "$ac_cv_sys_posix_termios" != yes; then + AC_MSG_ERROR("POSIX termios operations are required") + fi + +From 0bc444c8caadcbd93143e5dba77db3abfd3e51d2 Mon Sep 17 00:00:00 2001 +From: "Nicolas S. Dade" <nic.d...@gmail.com> +Date: Sat, 13 Jun 2015 17:02:04 -0700 +Subject: [PATCH] Update configure.ac and INSTALL for a modern (1.14.1) + automake + +It seems fine to let automake symlink to its default versions +of files it wants (like 'compile' and 'test-driver'), so for +now I do that. + +Maybe instead I should regenerate everything. After all most +of the autoXxx bits date from 2004. +--- a/configure.ac ++++ b/configure.ac +@@ -3,10 +3,10 @@ dnl confgure.ac for pwsafe + dnl $Id$ + + AC_PREREQ(2.5) +-AC_INIT(pwsafe.cpp) + +-dnl Every other copy of the package version number gets its value from here +-AM_INIT_AUTOMAKE(pwsafe, 0.2.0) ++dnl Every other copy of the package version number gets its value from the following line ++AC_INIT([pwsafe.cpp], [0.2.0]) ++AM_INIT_AUTOMAKE + + dnl create a config.h file (Automake will add -DHAVE_CONFIG_H) + AM_CONFIG_HEADER(config.h) + diff --git a/app-misc/pwsafe/pwsafe-0.2.0-r5.ebuild b/app-misc/pwsafe/pwsafe-0.2.0-r6.ebuild similarity index 79% rename from app-misc/pwsafe/pwsafe-0.2.0-r5.ebuild rename to app-misc/pwsafe/pwsafe-0.2.0-r6.ebuild index ae32ba74d73e..04977864b35b 100644 --- a/app-misc/pwsafe/pwsafe-0.2.0-r5.ebuild +++ b/app-misc/pwsafe/pwsafe-0.2.0-r6.ebuild @@ -1,7 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 + +inherit autotools DESCRIPTION="A Password Safe compatible command-line password manager" HOMEPAGE="https://github.com/nsd20463/pwsafe" @@ -10,12 +12,12 @@ SRC_URI="https://web.archive.org/web/20171006105548if_/http://nsd.dyndns.org/pws LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" - IUSE="X readline" -DEPEND="sys-libs/ncurses:0= - dev-libs/openssl:0= - readline? ( sys-libs/readline:0= ) +DEPEND=" + dev-libs/openssl:= + sys-libs/ncurses:= + readline? ( sys-libs/readline:= ) X? ( x11-libs/libSM x11-libs/libICE @@ -31,7 +33,10 @@ src_prepare() { eapply -p0 "${FILESDIR}/${P}-fake-readline.patch" eapply -p0 "${FILESDIR}/${P}-man-page-option-syntax.patch" eapply -p0 "${FILESDIR}/${P}-XChangeProperty.patch" + eapply "${FILESDIR}/${P}-modern-autoconf-automake.patch" eapply_user + # Clang 16 + eautoreconf } src_configure() {