commit:     34737ad1c23516920e2744b8a39181a91e2e94eb
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Mon Sep  1 09:30:03 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Sep  2 11:46:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34737ad1

app-mobilephone/anyremote: add 6.7.3

update HOMEPAGE http+s
update SRC_URI (redirect)

fix gcc15 with a patch reported by email
uncompress manpages before merge
use an array for econfargs

Closes: https://bugs.gentoo.org/729406
Closes: https://bugs.gentoo.org/943928
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43632
Closes: https://github.com/gentoo/gentoo/pull/43632
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-mobilephone/anyremote/Manifest                 |  1 +
 app-mobilephone/anyremote/anyremote-6.7.3.ebuild   | 50 ++++++++++++++++++++++
 .../files/anyremote-6.7.3-fix_doublefree.patch     | 22 ++++++++++
 .../files/anyremote-6.7.3-fix_gcc15.patch          | 35 +++++++++++++++
 4 files changed, 108 insertions(+)

diff --git a/app-mobilephone/anyremote/Manifest 
b/app-mobilephone/anyremote/Manifest
index ee82c7883140..1dabae6b8f37 100644
--- a/app-mobilephone/anyremote/Manifest
+++ b/app-mobilephone/anyremote/Manifest
@@ -1 +1,2 @@
 DIST anyremote-6.5.tar.gz 2440051 BLAKE2B 
36945c978790246a675c33d4bea234165c27381a716394e06445a7450bd0b3f4286d762900df2f348a8bcf6e014c061a86fa0fc2e922ab631d31ea5dd0af8595
 SHA512 
e6190ec9ea4c66b7b85d77a9e056aeaf83d9730356780e9a54c0d27e31ce89399564b20e4bd62543aa72771049f34d359111d2c015e15fca5891d088391d2b73
+DIST anyremote-6.7.3.tar.gz 2466078 BLAKE2B 
13cda30322c86b468c6f7d4894801c79d6c96791e6c51b5732ed628d53305a76ab4b13fd0e2088b620bf1a6ab2bda66a5957f0e60da2e327c3a6694a0dd9de66
 SHA512 
f2c13dbe02437a04af0c07453999fe4727970e386be9ee0d2d9d96aedb2afdc2269e040f3a42bc5479ad196495501cb34583e039a82c5cbd6861803d57e3a8ed

diff --git a/app-mobilephone/anyremote/anyremote-6.7.3.ebuild 
b/app-mobilephone/anyremote/anyremote-6.7.3.ebuild
new file mode 100644
index 000000000000..c84c1d1020ad
--- /dev/null
+++ b/app-mobilephone/anyremote/anyremote-6.7.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Bluetooth, infrared or cable remote control service"
+HOMEPAGE="https://anyremote.sourceforge.net/";
+SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${PV}/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bluetooth dbus zeroconf"
+
+RDEPEND="
+       dev-libs/glib:2
+       x11-libs/libX11
+       x11-libs/libXtst
+       bluetooth? ( net-wireless/bluez:= )
+       dbus? (
+               dev-libs/dbus-glib
+               sys-apps/dbus
+       )
+       zeroconf? ( net-dns/avahi )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-fix_doublefree.patch
+       "${FILESDIR}"/${PN}-6.7.3-fix_gcc15.patch
+)
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_configure() {
+       local myeconfargs=(
+               --docdir="/usr/share/doc/${PF}/"
+               $(use_enable bluetooth)
+               $(use_enable dbus)
+               $(use_enable zeroconf avahi)
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+       mv "${ED}"/usr/share/doc/${PF}/{doc-html,html} || die
+       gunzip "${ED}"/usr/share/man/man1/anyremote.1.gz || die
+}

diff --git 
a/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_doublefree.patch 
b/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_doublefree.patch
new file mode 100644
index 000000000000..72d519738e1b
--- /dev/null
+++ b/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_doublefree.patch
@@ -0,0 +1,22 @@
+Backport from upstream "fix potential double free error"
+https://sourceforge.net/p/anyremote/code/1086/
+--- a/src/dispatcher.c
++++ b/src/dispatcher.c
+@@ -2,7 +2,7 @@
+ // anyRemote
+ // a wi-fi or bluetooth remote for your PC.
+ //
+-// Copyright (C) 2006-2016 Mikhail Fedotov <[email protected]>
++// Copyright (C) 2006-2020 Mikhail Fedotov <[email protected]>
+ //
+ // This program is free software; you can redistribute it and/or modify
+ // it under the terms of the GNU General Public License as published by
+@@ -216,7 +216,7 @@
+         if (dm->value != NULL) {
+             free(dm->value);
+         }
+-        if (dm->file != NULL) {
++        if (dm->file != NULL && dm->file != dm->scaled) {
+             free(dm->file);
+         }
+         if (dm->scaled != NULL) {

diff --git a/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_gcc15.patch 
b/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_gcc15.patch
new file mode 100644
index 000000000000..4eef0e1fb975
--- /dev/null
+++ b/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_gcc15.patch
@@ -0,0 +1,35 @@
+Reported by email 2025-09-01
+Fix from fedora 
https://src.fedoraproject.org/rpms/anyremote/blob/rawhide/f/fix_compile_error.patch
+--- ./src/executor.c.orig      2025-04-25 21:20:37.307777694 +0100
++++ ./src/executor.c   2025-04-25 21:20:40.314734610 +0100
+@@ -56,7 +56,7 @@ static int  isIViewerCommand(char *cmd);
+ 
+ static void handleInit();
+ static void handleConnect();
+-static void handleDisconnect();
++static void handleDisconnect(int peer);
+ static void handleExit();
+ 
+ static void cleanAutoRepeatFlag();
+--- ./src/pr_web.h.orig        2025-04-25 21:31:10.758570383 +0100
++++ ./src/pr_web.h     2025-04-25 21:31:14.844562838 +0100
+@@ -52,7 +52,7 @@ void webClose    (ConnectInfo* connInfo,
+ void webReset    (ConnectInfo* conn);
+ int  listenWeb   (ConnectInfo* connInfo);
+ int  acceptWeb   (ConnectInfo* connInfo);
+-int  checkWebPort();
++int  checkWebPort(char* buf, int capacity);
+ int  writeWebConn(const dMessage* dm, int mode);
+ int  writeWeb    (ConnectInfo* connInfo, const dMessage* dm);
+ //int  haveClients (_WebConnection* cn);
+--- ./src/sys_util.c.orig      2025-04-25 21:34:36.141191110 +0100
++++ ./src/sys_util.c   2025-04-25 21:34:52.101161638 +0100
+@@ -354,7 +354,7 @@ static int pclose_r(int fd, pid_t pid)
+ {
+     register int r;
+     int status;
+-    void (*hstat)(), (*istat)(), (*qstat)();
++    void (*hstat)(int), (*istat)(int), (*qstat)(int);
+ 
+     (void) close(fd);
+     istat = signal(SIGINT,  SIG_IGN);

Reply via email to