mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-09 00:10:21 +03:00
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@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@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
8c076caac8
commit
34737ad1c2
@@ -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
|
||||
|
||||
50
app-mobilephone/anyremote/anyremote-6.7.3.ebuild
Normal file
50
app-mobilephone/anyremote/anyremote-6.7.3.ebuild
Normal file
@@ -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
|
||||
}
|
||||
@@ -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 <anyremote@mail.ru>
|
||||
+// Copyright (C) 2006-2020 Mikhail Fedotov <anyremote@mail.ru>
|
||||
//
|
||||
// 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) {
|
||||
@@ -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);
|
||||
Reference in New Issue
Block a user