From 07c880dd9d4270ac3932d13269b047a6d7678a95 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 3 Dec 2022 05:17:36 +0000 Subject: app-misc/pwsafe: fix configure w/ clang 16 Signed-off-by: Sam James --- .../pwsafe-0.2.0-modern-autoconf-automake.patch | 61 ++++++++++++++++++++++ app-misc/pwsafe/pwsafe-0.2.0-r5.ebuild | 47 ----------------- app-misc/pwsafe/pwsafe-0.2.0-r6.ebuild | 52 ++++++++++++++++++ 3 files changed, 113 insertions(+), 47 deletions(-) create mode 100644 app-misc/pwsafe/files/pwsafe-0.2.0-modern-autoconf-automake.patch delete mode 100644 app-misc/pwsafe/pwsafe-0.2.0-r5.ebuild create mode 100644 app-misc/pwsafe/pwsafe-0.2.0-r6.ebuild (limited to 'app-misc') 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" +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 . + 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" +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-r5.ebuild deleted file mode 100644 index ae32ba74d73e..000000000000 --- a/app-misc/pwsafe/pwsafe-0.2.0-r5.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="A Password Safe compatible command-line password manager" -HOMEPAGE="https://github.com/nsd20463/pwsafe" -SRC_URI="https://web.archive.org/web/20171006105548if_/http://nsd.dyndns.org/pwsafe/releases/${P}.tar.gz" - -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= ) - X? ( - x11-libs/libSM - x11-libs/libICE - x11-libs/libXmu - x11-libs/libX11 - )" -RDEPEND="${DEPEND} - !app-admin/passwordsafe" - -src_prepare() { - eapply -p0 "${FILESDIR}/${P}-cvs-1.57.patch" - eapply -p0 "${FILESDIR}/${P}-printf.patch" - eapply -p0 "${FILESDIR}/${P}-fake-readline.patch" - eapply -p0 "${FILESDIR}/${P}-man-page-option-syntax.patch" - eapply -p0 "${FILESDIR}/${P}-XChangeProperty.patch" - eapply_user -} - -src_configure() { - econf \ - $(use_with X x) \ - $(use_with readline) -} - -src_install() { - doman pwsafe.1 - dobin pwsafe - dodoc README NEWS -} diff --git a/app-misc/pwsafe/pwsafe-0.2.0-r6.ebuild b/app-misc/pwsafe/pwsafe-0.2.0-r6.ebuild new file mode 100644 index 000000000000..04977864b35b --- /dev/null +++ b/app-misc/pwsafe/pwsafe-0.2.0-r6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="A Password Safe compatible command-line password manager" +HOMEPAGE="https://github.com/nsd20463/pwsafe" +SRC_URI="https://web.archive.org/web/20171006105548if_/http://nsd.dyndns.org/pwsafe/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="X readline" + +DEPEND=" + dev-libs/openssl:= + sys-libs/ncurses:= + readline? ( sys-libs/readline:= ) + X? ( + x11-libs/libSM + x11-libs/libICE + x11-libs/libXmu + x11-libs/libX11 + )" +RDEPEND="${DEPEND} + !app-admin/passwordsafe" + +src_prepare() { + eapply -p0 "${FILESDIR}/${P}-cvs-1.57.patch" + eapply -p0 "${FILESDIR}/${P}-printf.patch" + 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() { + econf \ + $(use_with X x) \ + $(use_with readline) +} + +src_install() { + doman pwsafe.1 + dobin pwsafe + dodoc README NEWS +} -- cgit v1.2.3-65-gdbad