From 64104056cfa17860d3b5c3ec87794fb2cfe80949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20J=C3=A4ger?= Date: Sat, 10 Dec 2022 21:18:56 +0100 Subject: [PATCH] app-pda/jpilot: add 2.0.1, fix configure for clang16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/870535 Closes: https://bugs.gentoo.org/865945 Signed-off-by: Pascal Jäger Closes: https://github.com/gentoo/gentoo/pull/28630 Signed-off-by: Sam James --- app-pda/jpilot/Manifest | 1 + .../jpilot-2.0.1-fix-configure-clang16.patch | 25 +++++++++ .../jpilot-2.0.1-fix-lto-type-mismatch.patch | 25 +++++++++ app-pda/jpilot/jpilot-2.0.1.ebuild | 55 +++++++++++++++++++ app-pda/jpilot/metadata.xml | 7 +++ 5 files changed, 113 insertions(+) create mode 100644 app-pda/jpilot/files/jpilot-2.0.1-fix-configure-clang16.patch create mode 100644 app-pda/jpilot/files/jpilot-2.0.1-fix-lto-type-mismatch.patch create mode 100644 app-pda/jpilot/jpilot-2.0.1.ebuild diff --git a/app-pda/jpilot/Manifest b/app-pda/jpilot/Manifest index f39c0635233a3..bc61a0072976f 100644 --- a/app-pda/jpilot/Manifest +++ b/app-pda/jpilot/Manifest @@ -1 +1,2 @@ DIST jpilot-1.8.2.tar.gz 1740735 BLAKE2B efc9fb8e88843d6e0f4f2245753d67856c9d0cd455c9a22c829bb103631fd8a8111ead3cb4bc434a6be00ad0cb35fe554a9ebbe1f2d38bfaf560e1b414c62260 SHA512 733dd51a2acc60760bb1ffaa0d7b4433584a571793d5e4f857492349bae8d032625baf9f0060e619d760628ddda3559bf4be057f45f4dc17ddf1af1ca795c024 +DIST jpilot-2.0.1.tar.gz 1499084 BLAKE2B da10d1001e00901160be404cb50122b1b0fe0e1e8d2f03cc28fc44d19f037395ecea79b022f639dc00abdf7def65ed276afd1dbcc84e462c62370ef7c5bd6001 SHA512 a877d1c0480aa831d5667f8fbb946bfc4ba0e0cd88d55125a5b0225de138812df880a0372482c337500182c6a8544af674d89a804e0ac515427e141aa353fd54 diff --git a/app-pda/jpilot/files/jpilot-2.0.1-fix-configure-clang16.patch b/app-pda/jpilot/files/jpilot-2.0.1-fix-configure-clang16.patch new file mode 100644 index 0000000000000..483ff942c95a9 --- /dev/null +++ b/app-pda/jpilot/files/jpilot-2.0.1-fix-configure-clang16.patch @@ -0,0 +1,25 @@ +Clang16 will not allow implicit library functions by default +and therefore this test would fail because the function +exit() from stdlib.h is used. We need to include stdlib.h +in this test. +This patch needs to run _before_ eautoreconf. + +Bug: https://bugs.gentoo.org/870535 +PR to merge this upstream: https://github.com/juddmon/jpilot/pull/50 + +Pascal Jäger (2022-12-10) + +--- a/configure.in ++++ b/configure.in +@@ -331,7 +331,10 @@ CFLAGS="$CFLAGS $PILOT_FLAGS" + save_LIBS="$LIBS" + LIBS="$LIBS $PILOT_LIBS" + +-AC_TRY_COMPILE([#include ], [ ++AC_TRY_COMPILE([ ++#include ++#include ++], [ + exit(0); + ], , + AC_MSG_ERROR([pilot-link header pi-version.h not found]) diff --git a/app-pda/jpilot/files/jpilot-2.0.1-fix-lto-type-mismatch.patch b/app-pda/jpilot/files/jpilot-2.0.1-fix-lto-type-mismatch.patch new file mode 100644 index 0000000000000..3f197851feb35 --- /dev/null +++ b/app-pda/jpilot/files/jpilot-2.0.1-fix-lto-type-mismatch.patch @@ -0,0 +1,25 @@ +Date: Sat, 10 Dec 2022 21:27:26 +0100 +Subject: [PATCH] fix -lto-type-mismatch + +glob_date_label is declared everywhere as 'extern GtkWidget*'. +Except where it is actually declared. + +Bug: https://bugs.gentoo.org/865945 +PR to merge this upstream: https://github.com/juddmon/jpilot/pull/51 + +Pascal Jäger (2022-12-10) + +--- a/jpilot-sync.c ++++ b/jpilot-sync.c +@@ -47,7 +47,7 @@ unsigned char skip_plugins; + * this code but must be instantiated for the code to compile. + * The same is true of the functions which are only used in GUI mode. */ + pid_t jpilot_master_pid = -1; +-int *glob_date_label; ++GtkWidget *glob_date_label; + GtkWidget *glob_dialog; + gint glob_date_timer_tag; + +-- +2.38.1 + diff --git a/app-pda/jpilot/jpilot-2.0.1.ebuild b/app-pda/jpilot/jpilot-2.0.1.ebuild new file mode 100644 index 0000000000000..7bc6ff58acd4b --- /dev/null +++ b/app-pda/jpilot/jpilot-2.0.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +MY_PV="${PV//./_}" + +DESCRIPTION="Desktop Organizer Software for the Palm Pilot" +HOMEPAGE="http://www.jpilot.org/ https://github.com/juddmon/jpilot/" +SRC_URI="https://github.com/juddmon/jpilot/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86" +IUSE="nls" + +RDEPEND=" + app-pda/pilot-link + dev-libs/libgcrypt:0= + x11-libs/gtk+:2" +DEPEND="${RDEPEND}" +BDEPEND=" + nls? ( + dev-util/intltool + sys-devel/gettext + ) + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-1.8.2-qa-desktop-file.patch + "${FILESDIR}"/${PN}-1.8.2-fix-paths.patch + "${FILESDIR}"/${P}-fix-configure-clang16.patch + "${FILESDIR}"/${P}-fix-lto-type-mismatch.patch +) + +src_prepare() { + default + sed -i -e 's|_UNQUOTED(ABILIB, "lib"|_UNQUOTED(ABILIB, "'$(get_libdir)'"|' configure.in || die + eautoreconf +} + +src_configure() { + econf $(use_enable nls) --with-pilot_prefix=/usr/include/libpisock/ +} + +src_install() { + default + docompress -x /usr/share/doc/${PF}/icons + + # no static archives + find "${ED}" -name '*.la' -delete || die +} diff --git a/app-pda/jpilot/metadata.xml b/app-pda/jpilot/metadata.xml index 85e4ed814fa25..ad136b080d72f 100644 --- a/app-pda/jpilot/metadata.xml +++ b/app-pda/jpilot/metadata.xml @@ -2,4 +2,11 @@ + + + judd@engineer.com + Judd Montgomery + + juddmon/jpilot +