Make it build with gcc 15
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
AUX vice-3.10-mpg123-without-curl.patch 5598 BLAKE2B 7b43a27f3e90f284032be140ea967647c95d412daef726f3b452ce87454534c713d35083bddc2263ea1a3efd851fea791c7fd2cfca702c451f74c1020250dfae SHA512 f5f782d4a21e09d357891ea9f343146a8a573663aaefda9741f0e1cac6314a687706e9e8b07aa3533cc942d8fc445e0becf8b78553f37822299be9a54a23a9aa
|
||||
AUX vice-3.9-dupe-symbols.patch 5451 BLAKE2B 37e6fb35a4b08fae004fc96404eb8b48a2d183c80c184916ae2bcbb7a9a8e5d665bd96b76a9f5bb491201f1be6077f65d70b172408a7b25f85f8ca9eb2676376 SHA512 53c2ff8b9143950c28652ce9a204a8085e05c3f527ad41b74dcd3dda5f299eedb4811beee7d2f9e15d0e2610f1630679f85ebc73225417b0c377021ae9396fcd
|
||||
DIST vice-3.10.tar.gz 14366175 BLAKE2B d41bfe4ed5213f4fff345f195de60e95d87b9c5901e89ff31d221841e51358a55e1f7fecae5afae0e71439d5a8da7411e632bc42b582e5b17b72dba07ae2cadd SHA512 5cddbb09080d39fad7690e8c178af40a5834377e201252c112816e2a9af5b4afd1ed090fdd19217dd36c8d18f7c633fda1ee6efc1322334bbe13ba4866435f97
|
||||
DIST vice-3.9.tar.gz 14249159 BLAKE2B 0c063e152c10ff537fbc9b1d8a5b4a108f08874fa4240772ec159ca19e457f626d6a5abbf4cb7c350291cc8b9fc19f8dba0b2be058363d50040ea42554d3ef4c SHA512 4a349dfe3e4310f1799cc705dffd01243df5b6ecfdb05b5f2ca3213fe6468831735dd3abcd6a34627e8ac2202bcb8ab617b81224c5a41cd83782868dd70b1fb8
|
||||
EBUILD vice-3.10.ebuild 5068 BLAKE2B 5d2e2199a4cae1356b1bd2536d5230d3ab477d2cb37d68449c18800dc72e7f9da5612d76526adb7bf5cf101675c3aee7d55d140c97b5135a56b9b6fcade282fd SHA512 70c246fac4ffaccf16bb69db06d291e4bac31cd4b2016ef7ad8d53c4e4bae5aff54d7484c25d92d85ddf6b858b47a5acdd5d85fcc9585bf9d7523d3b00dd2ae0
|
||||
EBUILD vice-3.9.ebuild 4549 BLAKE2B e94aa36f37bd35f4297aa37e29dbf97f75902437817f9ef9722d2ed16c14509a65aada06599422dbd684e6feb290c9a6dacd8a1bda75fd086543aa4fc13372d3 SHA512 2d7d0ed2ee211bc7dcf7c65d7229b54affc01d03e7f8e453feb148e533359f00096da84bee4360abe3df5616e6ccbf31fb229383b50db4a145e2ec874a166f12
|
||||
MISC ChangeLog 10438 BLAKE2B b9f985be8ff4e4c97fd9ba479ec2093b1c4dfd62cd9211e2744587b82d6772916b9eceed91df53dfa9e2439ce1c88e3ecd32a606690b34e1e095d0f9b62168c8 SHA512 fe80b5fd85f40aadf64ded6089e961d9cc08d2721484889fc1b02d985bc873c9cdbd55815331fb76436c73d1a07a56a16d790f8969a456ebe4e472b897810960
|
||||
MISC metadata.xml 785 BLAKE2B 1dc59c7b40fda968680e97b1ad83e741faf223143bbc1ab2d523e37312badd3a3aaedc3bbffbd158531c74ae73dab1bb1ee03666a081eb17d819dc9e0b783ee2 SHA512 b483d325702723d1395bca771d215709fc68b6ca8309c4297c6a668d5940502c9c8d5d4149e1f52b8fd6d5062cf04b2e3d7046ecfc0555d2703b064e329af283
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
AUX client_sleep.patch 1257 BLAKE2B eacf2dad1b2921998c1cc855684067b5f2899b63a4ccf67685bdcdaf033ac3e3769d3063cd4f35cc18026bb7c0c12ad78627a4e10275a4a89ca050752aa7e08a SHA512 e2621475564e35c15249e67e6ade422f909349e540ba0e8255540167e1630e655023edf79fd419ceb740b0555ce9fe2cafd7dc0d2586ec602fb4ea64d19dd6c6
|
||||
DIST irclient-src-6.01.16.tar.gz 153254 BLAKE2B ec4880699ff3bef0419f52b2df381e2f0f1b1202f3358648486400540fe420f0012cb78e38ac429791ea39d40e9b59a63ede9b7777957c69c2c30f1512468035 SHA512 904451e03e9a508aa78954a9dd8d34462b5c47937ea127f1ff1ec52f07f645f60861f055347dba178b9c37455a5d749d987144f3be882bcb24e479f02643eaea
|
||||
DIST irtrans-irclient-5.11.04-ip_assign-1.patch.bz2 5051 BLAKE2B 79b8fb9249c69e8a868771a288e5f0e7c4d6658d36f97ce1ac0c577dae5c810207780406bb7a87df3392eb795463b9c62c6ce7d99ef349111db99637ee8d2432 SHA512 9be72f7f6fcc24c9bda73cf5dd8a2c112c6cb82e2ef50d40c17b43d7dcb8f11bcf8bc0ebb914046b5429bce1b4936278ade936db6c916384fbd637a300f528cf
|
||||
EBUILD irtrans-irclient-6.01.16.ebuild 1398 BLAKE2B 86a0add9245a3af3613d143b9050076f50c844ac526d0cd44a07c3add4c6c60b0d12c8aa8af5605d951afdacde1a260fd67afbd6ed636583c26a678305c59fff SHA512 5d19f558e67216afc498e378ab4cb8031eec07e089e4e4d497813741c4d9c67cd7acbc3f74815d9bbd6ae1d9e5809c32b1fb0a04d3f152efc7745c050108d0f6
|
||||
EBUILD irtrans-irclient-6.01.16.ebuild 1431 BLAKE2B 1b31d1b4835842fed8271b91c845cdbb02f636edad55a85a6a9d58e0f8aee500929953e8ff7f96e51c297037dde935045429d280d4c58608dafd0000cdf05fc5 SHA512 7f34aac5726f16589bb29110f806f858a3dd4251c6a9d1c6c5f11db0e8eb1ae243a1db5124289001b8ce102f2699325d8184ef4d91498b784d90e62044b29197
|
||||
MISC ChangeLog 3910 BLAKE2B 0949a89d568c6b2a49a6e7c279f5034ed97a7b146b84abbd82acc9c3c27d3331c9c7d2583bfe1de1df0e892d21a1978958a3c96203ed7285820203184ba284a8 SHA512 768fffb886d2f69154da005675e4741880de4a33fc58364f7b10fa89bf2360930c641d672db261a7b9916b02e2c8bef297ff6c0c3d28908f57ef0a5a70b55a3e
|
||||
MISC metadata.xml 408 BLAKE2B 66a3e2838d5c5f95c7463733cd13b1230ef3ca005ec0c5dac797561be30f950da98dfa41eeb4d43cf97500c9a2e0d04c57b0b084d60107072a988dd7c4d16ded SHA512 9cac3e4a07c425e87274de776e03d243e462341168235cd3991ef4706aa1a902cf6591ae8e965b9c4ed370fc2ebef3ca805a9c761d05c4b994ae8667198b267c
|
||||
|
||||
56
app-misc/irtrans-irclient/files/client_sleep.patch
Normal file
56
app-misc/irtrans-irclient/files/client_sleep.patch
Normal file
@@ -0,0 +1,56 @@
|
||||
diff '--color=auto' -uNr work.orig/client.c work/client.c
|
||||
--- work.orig/client.c 2026-04-06 11:44:24.618153431 +0200
|
||||
+++ work/client.c 2026-04-06 11:46:26.523355456 +0200
|
||||
@@ -44,10 +44,15 @@
|
||||
#include <netdb.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
+#include <unistd.h>
|
||||
+#include <string.h>
|
||||
#define closesocket close
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
+#ifndef WIN32
|
||||
+#include <string.h>
|
||||
+#endif
|
||||
#include "remote.h"
|
||||
#include "network.h"
|
||||
#include "errcode.h"
|
||||
@@ -57,6 +62,7 @@
|
||||
|
||||
int InitClientSocket (char host[],SOCKET *sock,unsigned long id);
|
||||
void PrintStatError (NETWORKSTATUS *stat);
|
||||
+int ResetDevice (void);
|
||||
|
||||
void ReceiveIR (int mode,char cmd[]);
|
||||
char *trim (char st[],int i);
|
||||
@@ -90,7 +96,7 @@
|
||||
#define VERSION "6.01.16"
|
||||
|
||||
|
||||
-main (int argc,char *argv[])
|
||||
+int main (int argc,char *argv[])
|
||||
{
|
||||
int res;
|
||||
// unsigned char st[256];
|
||||
@@ -168,7 +174,7 @@
|
||||
#ifdef WIN32
|
||||
_sleep (1000);
|
||||
#else
|
||||
- sleep (1000);
|
||||
+ sleep (1);
|
||||
#endif
|
||||
|
||||
|
||||
diff '--color=auto' -uNr work.orig/ip_assign.c work/ip_assign.c
|
||||
--- work.orig/ip_assign.c 2026-04-06 11:44:24.618153431 +0200
|
||||
+++ work/ip_assign.c 2026-04-06 11:46:41.201056964 +0200
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <net/if.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <stdlib.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
|
||||
typedef int SOCKET;
|
||||
@@ -19,7 +19,7 @@ KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
PATCHES=( "${WORKDIR}/${PN}"-5.11.04-ip_assign-1.patch )
|
||||
PATCHES=( "${WORKDIR}/${PN}"-5.11.04-ip_assign-1.patch "${FILESDIR}"/client_sleep.patch )
|
||||
|
||||
src_compile() {
|
||||
append-flags -DLINUX
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
AUX gcc15.patch 11074 BLAKE2B e9b425dcbdd4b6e8c9b03f2c5238fd6a87b6fe4f49b349cad413b8feb0e644afa49a8007d7cf2ff5f25669ecbffd008c22d7eeeecab8ab97fda37d7de3f85758 SHA512 7c4de90a1f25c16303b0885c32ff05092c311890a4cacfa71574ee7e5007d9bde9006928958ce755b59d0574ff5e94ede4b558f4479faca9fdca81df6ba8348a
|
||||
AUX irtrans-server.confd 405 BLAKE2B fa94ea017cb77fbde5e3d06b9b4db0a8ab718603657be9c847049bd51b84356e4f32cf737cceb882fc002193e4163bf75c8dabb0f7e81d80934ea41a0d9f1fdb SHA512 1de71558faf723b6f2b8b133f81d20addc7c0775e3859307a78e1ae41bd9fb122ccc43f483d7e9e33cb21de611e283246562e1a8d1cd3d6cfd9d1a3002b8593b
|
||||
AUX irtrans-server.initd 577 BLAKE2B 3b1507c90cc241016eabde61566bcae96302c452a880f30089a086b50a6e1ff9007b915eb0523c0ff896fb692a2a459fc3b780a4ae50c912cb8d4bf780f06e7d SHA512 174d17d5d8dc5f2b7d39eabfd1e3ee5d72d9fc1130ea7f538e395d1401aaebcc4ff18582f6ec9a1baba11ff70308bcff3aa2bf31075bc0f20762639f8794008a
|
||||
AUX irtrans-server.service 218 BLAKE2B 3eb1d695da2e0f1baaba6a2abb6aef6864ecb11f20230e5b7ec4e5f54cf3d7bbee62a647a6ec98ea47f9f594308e826e53f365af92410f29f1d305c5ec520d91 SHA512 e16002a3b31b9015a42c9edd75e462108199ad46c74e7b83ed1bc39e5c08497388ce099798b0e73acfaf59078e62df938b021ca076abaa346e423446378f6ccb
|
||||
DIST irserver-6.10.23.tar.gz 864840 BLAKE2B a046fc394f6a39b261d448f0e67816f5cacd8bbe6b075650e50318bb5042b29d7972c14eac0923d36afaafd000c32682e8b68be238b57fd5cc1f4e4c22205651 SHA512 81934293ffb7e5d34ff04276612f9e7fe20b4fc401a63cda64da360fb8a7c48f94a57631c1c19d2fd7e75d2e1e3fe34c08319a743d444a38febf1fb4f9c0767d
|
||||
DIST irserver-src-6.10.23.tar.gz 532755 BLAKE2B 6550ecacf007fe4a69c523c181feb1a96e3309c86d9d2040af05bd02d00391c3c37e7ef4c9f829db37b97dc590c88baf746544a5996e44b4fdc8088ea2ea9589 SHA512 ef453381ae4802a40a76c27a685c6892d1d0f6a88ef2975868e901eb06b5e70ba6e6f40333c4ea45a83f2b4419a49b9b16d08f23f303e1911d856f8b6afc2d85
|
||||
EBUILD irtrans-irserver-6.10.23.ebuild 1890 BLAKE2B 4ee92dc7c96cd98b3620dab56319cb5332ee9fec78fe381c4f36f13ebf3072be3c8f422ca830d891b39e028b9d33e99abae44aebda4a2d179a84d4099d0b71f9 SHA512 2cba88c45b5da5336f61d62f09cb9ef6f96dc9b4540f5e42e12f730b4ccd9b7b4de4ba5773632aa406f9ef13ecd782fa5ce91e86e148b68d709e5861e4ab870e
|
||||
EBUILD irtrans-irserver-6.10.23.ebuild 1970 BLAKE2B e018cc690a7eb09e261109879629496437a24352bedaf9fb05a528c98cd92f29eb2659028c3b28ae9182e7e1a202059adc1ad80319a47a9daf99f7afc23d517c SHA512 c1805422fd4835dcc2f362f2d35bfdf172eaf6af9b5617464babba1528b2f19cde2313c841e4af23ed130a11ed746893195b62e97ad18ec1b2267c83d604603f
|
||||
MISC ChangeLog 6002 BLAKE2B f828d1c5a823915aa4779055c15b98795d726daf353e6594a8038b1654ce4e06096f7884e77703e7bc0097f02311ccfec27d2526405f8e3e13aa4b5dd088160d SHA512 9fc36a1b10d95a7594332861ee0fd2dd230ba919a7fefa4abc3ab7076af60e4b501ec19b92eabe9e1f89ad5283859893450bc9759ecc81469b67e067fc3ac644
|
||||
MISC metadata.xml 408 BLAKE2B 66a3e2838d5c5f95c7463733cd13b1230ef3ca005ec0c5dac797561be30f950da98dfa41eeb4d43cf97500c9a2e0d04c57b0b084d60107072a988dd7c4d16ded SHA512 9cac3e4a07c425e87274de776e03d243e462341168235cd3991ef4706aa1a902cf6591ae8e965b9c4ed370fc2ebef3ca805a9c761d05c4b994ae8667198b267c
|
||||
|
||||
331
app-misc/irtrans-irserver/files/gcc15.patch
Normal file
331
app-misc/irtrans-irserver/files/gcc15.patch
Normal file
@@ -0,0 +1,331 @@
|
||||
diff '--color=auto' -uNr work.orig/ascii.c work/ascii.c
|
||||
--- work.orig/ascii.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/ascii.c 2026-04-06 12:31:57.709799694 +0200
|
||||
@@ -61,6 +61,7 @@
|
||||
#include <signal.h>
|
||||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
typedef int DWORD;
|
||||
#define closesocket close
|
||||
diff '--color=auto' -uNr work.orig/fileio.c work/fileio.c
|
||||
--- work.orig/fileio.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/fileio.c 2026-04-06 12:31:57.710099792 +0200
|
||||
@@ -61,6 +61,8 @@
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <stdint.h>
|
||||
+#include <unistd.h>
|
||||
+#include <ctype.h>
|
||||
|
||||
typedef int DWORD;
|
||||
#define closesocket close
|
||||
@@ -398,7 +400,11 @@
|
||||
{
|
||||
int jj;
|
||||
rp += 5;
|
||||
- sscanf(rp, "%d", &client->ird.ir_length);
|
||||
+ {
|
||||
+ int tmp_len = 0;
|
||||
+ sscanf(rp, "%d", &tmp_len);
|
||||
+ client->ird.ir_length = (byte)tmp_len;
|
||||
+ }
|
||||
rp = data+i;
|
||||
for (jj = 0;jj < client->ird.ir_length && jj < CODE_LENRAW; jj++)
|
||||
{
|
||||
@@ -1193,7 +1199,7 @@
|
||||
x = strtoul (st,NULL,2);
|
||||
if (x > 32) x = x - 64;
|
||||
|
||||
- sprintf (name,"%03d %03d %c%c%",x,y,pnt[20],pnt[21]);
|
||||
+ sprintf (name,"%03d %03d %c%c%%",x,y,pnt[20],pnt[21]);
|
||||
}
|
||||
|
||||
int DBFindCommandName (byte *command,char remote[],char name[],byte address,int *remote_num,int *command_num,word *command_num_rel,int start)
|
||||
diff '--color=auto' -uNr work.orig/firmware.c work/firmware.c
|
||||
--- work.orig/firmware.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/firmware.c 2026-04-06 12:31:57.710415121 +0200
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <signal.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/time.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#define MAX_PATH 1024
|
||||
|
||||
@@ -1265,7 +1266,7 @@
|
||||
int stat_cnt,stat_step,stat_next,stat_pos;
|
||||
int cnt,max,pnt,start,dir,flash_end,pages,pg,len,res = 0;
|
||||
|
||||
- sprintf (st,"Flash ETH %s - %x\n",fwname,zipfile);
|
||||
+ sprintf (st,"Flash ETH %s - %p\n",fwname,(void *)zipfile);
|
||||
log_print (st,LOG_DEBUG);
|
||||
|
||||
if (!memcmp (fwname + 4,IRDevices[bus].lan_version + 1,7)) {
|
||||
@@ -1864,7 +1865,7 @@
|
||||
}
|
||||
|
||||
|
||||
-GetLANVersions (int bus,char IRVersion[],char LANVersion[],int timeout)
|
||||
+int GetLANVersions (int bus,char IRVersion[],char LANVersion[],int timeout)
|
||||
{
|
||||
int res,i;
|
||||
IRDATA ir;
|
||||
diff '--color=auto' -uNr work.orig/flashrom.c work/flashrom.c
|
||||
--- work.orig/flashrom.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/flashrom.c 2026-04-06 12:31:57.710684730 +0200
|
||||
@@ -58,6 +58,10 @@
|
||||
#include "lowlevel.h"
|
||||
#include "global.h"
|
||||
#include "fileio.h"
|
||||
+#include "serio.h"
|
||||
+
|
||||
+int IRTransLanFlash (DEVICEINFO *dev,IRDATA_LAN_FLASH *ird,int len,uint32_t ip);
|
||||
+void SwapIntN (int32_t *pnt);
|
||||
|
||||
#ifdef WIN32
|
||||
#include "winio.h"
|
||||
@@ -247,8 +251,11 @@
|
||||
} while (stat < 0 && i < 3);
|
||||
|
||||
if (i == 3) {
|
||||
- GetError (stat,ERR_TIMEOUT);
|
||||
- log_print (stat,LOG_ERROR);
|
||||
+ {
|
||||
+ char err[256];
|
||||
+ GetError (stat,err);
|
||||
+ log_print (err,LOG_ERROR);
|
||||
+ }
|
||||
return (-ERR_TIMEOUT);
|
||||
}
|
||||
|
||||
@@ -289,8 +296,11 @@
|
||||
} while (stat < 0 && i < 3);
|
||||
|
||||
if (i == 3) {
|
||||
- GetError (stat,ERR_TIMEOUT);
|
||||
- log_print (stat,LOG_ERROR);
|
||||
+ {
|
||||
+ char err[256];
|
||||
+ GetError (stat,err);
|
||||
+ log_print (err,LOG_ERROR);
|
||||
+ }
|
||||
return (-ERR_TIMEOUT);
|
||||
}
|
||||
|
||||
diff '--color=auto' -uNr work.orig/lanio.c work/lanio.c
|
||||
--- work.orig/lanio.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/lanio.c 2026-04-06 12:31:57.710884447 +0200
|
||||
@@ -60,6 +60,8 @@
|
||||
#include <stdint.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/timeb.h>
|
||||
+#include <unistd.h>
|
||||
+#include <time.h>
|
||||
|
||||
typedef int DWORD;
|
||||
#define closesocket close
|
||||
diff '--color=auto' -uNr work.orig/linuxserio.c work/linuxserio.c
|
||||
--- work.orig/linuxserio.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/linuxserio.c 2026-04-06 12:31:57.711026712 +0200
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <termios.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
+#include <sys/file.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
diff '--color=auto' -uNr work.orig/lowlevel.c work/lowlevel.c
|
||||
--- work.orig/lowlevel.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/lowlevel.c 2026-04-06 12:35:42.774136078 +0200
|
||||
@@ -66,6 +66,7 @@
|
||||
#include <stdint.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
typedef int DWORD;
|
||||
#define closesocket close
|
||||
@@ -81,6 +82,7 @@
|
||||
#include "global.h"
|
||||
#include "flash.h"
|
||||
#include "functioncodes.h"
|
||||
+#include "serio.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include "winio.h"
|
||||
@@ -1410,7 +1412,7 @@
|
||||
memset (sb,0,sizeof (STATUS_BUFFER_N));
|
||||
sb->my_adress = sbc.my_adress;
|
||||
|
||||
- for (i=0;i <= 15;i++) CopyStatusBuffer (&sbc.stat[i],&sb->stat[i],(i == sb->my_adress),bus);
|
||||
+ for (i=0;i <= 15;i++) CopyStatusBuffer (&sbc.stat[i],(STATUS_LINE_N *)&sb->stat[i],(i == sb->my_adress),bus);
|
||||
}
|
||||
|
||||
if (res == sizeof (STATUS_BUFFER)) {
|
||||
@@ -1418,14 +1420,14 @@
|
||||
memset (sb,0,sizeof (STATUS_BUFFER));
|
||||
sb->my_adress = sbc.my_adress;
|
||||
|
||||
- for (i=0;i <= 15;i++) CopyStatusBuffer (&sbc.stat[i],&sb->stat[i],(i == sb->my_adress),bus);
|
||||
+ for (i=0;i <= 15;i++) CopyStatusBuffer (&sbc.stat[i],(STATUS_LINE_N *)&sb->stat[i],(i == sb->my_adress),bus);
|
||||
}
|
||||
if (res == sizeof (STATUS_BUFFER_1)) {
|
||||
memcpy (&sb1,sb,sizeof (STATUS_BUFFER_1));
|
||||
memset (sb,0,sizeof (STATUS_BUFFER));
|
||||
sb->my_adress = sb1.my_adress;
|
||||
|
||||
- for (i=0;i <= 15;i++) CopyStatusBuffer ((STATUS_LINE_N *)&sb1.stat[i],&sb->stat[i],(i == sb->my_adress),bus);
|
||||
+ for (i=0;i <= 15;i++) CopyStatusBuffer ((STATUS_LINE_N *)&sb1.stat[i],(STATUS_LINE_N *)&sb->stat[i],(i == sb->my_adress),bus);
|
||||
}
|
||||
|
||||
if (res == sizeof (STATUS_BUFFER_2)) {
|
||||
@@ -1433,7 +1435,7 @@
|
||||
memset (sb,0,sizeof (STATUS_BUFFER));
|
||||
sb->my_adress = sb2.my_adress;
|
||||
|
||||
- for (i=0;i <= 15;i++) CopyStatusBuffer ((STATUS_LINE_N *)&sb2.stat[i],&sb->stat[i],(i == sb->my_adress),bus);
|
||||
+ for (i=0;i <= 15;i++) CopyStatusBuffer ((STATUS_LINE_N *)&sb2.stat[i],(STATUS_LINE_N *)&sb->stat[i],(i == sb->my_adress),bus);
|
||||
}
|
||||
|
||||
if (res == sizeof (STATUS_BUFFER_3)) {
|
||||
@@ -1441,7 +1443,7 @@
|
||||
memset (sb,0,sizeof (STATUS_BUFFER));
|
||||
sb->my_adress = sb3.my_adress;
|
||||
|
||||
- for (i=0;i <= 15;i++) CopyStatusBuffer ((STATUS_LINE_N *)&sb3.stat[i],&sb->stat[i],(i == sb->my_adress),bus);
|
||||
+ for (i=0;i <= 15;i++) CopyStatusBuffer ((STATUS_LINE_N *)&sb3.stat[i],(STATUS_LINE_N *)&sb->stat[i],(i == sb->my_adress),bus);
|
||||
}
|
||||
|
||||
if (res == sizeof (STATUS_BUFFER_4)) {
|
||||
@@ -1449,14 +1451,14 @@
|
||||
memset (sb,0,sizeof (STATUS_BUFFER));
|
||||
sb->my_adress = sb4.my_adress;
|
||||
|
||||
- for (i=0;i <= 15;i++) CopyStatusBuffer ((STATUS_LINE_N *)&sb4.stat[i],&sb->stat[i],(i == sb->my_adress),bus);
|
||||
+ for (i=0;i <= 15;i++) CopyStatusBuffer ((STATUS_LINE_N *)&sb4.stat[i],(STATUS_LINE_N *)&sb->stat[i],(i == sb->my_adress),bus);
|
||||
}
|
||||
if (res == sizeof (STATUS_BUFFER_5)) {
|
||||
memcpy (&sb5,sb,sizeof (STATUS_BUFFER_5));
|
||||
memset (sb,0,sizeof (STATUS_BUFFER));
|
||||
sb->my_adress = sb5.my_adress;
|
||||
|
||||
- for (i=0;i <= 15;i++) CopyStatusBuffer ((STATUS_LINE_N *)&sb5.stat[i],&sb->stat[i],(i == sb->my_adress),bus);
|
||||
+ for (i=0;i <= 15;i++) CopyStatusBuffer ((STATUS_LINE_N *)&sb5.stat[i],(STATUS_LINE_N *)&sb->stat[i],(i == sb->my_adress),bus);
|
||||
}
|
||||
|
||||
IRDevices[bus].my_addr = sb->my_adress;
|
||||
diff '--color=auto' -uNr work.orig/serio.h work/serio.h
|
||||
--- work.orig/serio.h 2026-04-06 11:49:22.774033548 +0200
|
||||
+++ work/serio.h 2026-04-06 12:36:13.905311309 +0200
|
||||
@@ -36,5 +36,7 @@
|
||||
|
||||
int OpenSerialPortEx (char Pname[],HANDLE *port,int wait);
|
||||
int WriteSerialStringEx (DEVICEINFO *dev,byte pnt[],int len);
|
||||
+int ReadSerialStringEx (DEVICEINFO *dev,byte pnt[],int len,int timeout);
|
||||
+int ReadSerialStringEx_ITo (DEVICEINFO *dev,byte pnt[],int len,int timeout);
|
||||
void SetSerialTimeoutEx (DEVICEINFO *dev,int time);
|
||||
void SetSerialTimeoutEx_ITo (DEVICEINFO *dev,int time);
|
||||
diff '--color=auto' -uNr work.orig/server.c work/server.c
|
||||
--- work.orig/server.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/server.c 2026-04-06 12:31:57.711758734 +0200
|
||||
@@ -76,6 +76,7 @@
|
||||
#include <netdb.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/utsname.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
typedef int DWORD;
|
||||
|
||||
@@ -101,6 +102,7 @@
|
||||
#include "flash.h"
|
||||
#include "xap.h"
|
||||
#include "ccf.h"
|
||||
+#include "serio.h"
|
||||
|
||||
#ifdef LINUX
|
||||
SOCKET local_socket;
|
||||
@@ -151,6 +153,12 @@
|
||||
int ConvertLongcode (byte cmd[],int len,byte target[]);
|
||||
void GetDataPath (char path[]);
|
||||
|
||||
+/* Linux also uses these, but they were only declared in WIN32 sections / nowhere */
|
||||
+int build_select_table (fd_set *events);
|
||||
+int get_selected_fd (fd_set *events,SOCKET *sockfd,int *ionum);
|
||||
+int AnalyzeUDPString (char *st,int *netcom,char *remote,char *command,char *ccf,int *netmask,int *bus,int *led,int *port,int *macro_wait);
|
||||
+int FlashDevice (int bus,char filename[],char upg_key[],NETWORKSTATUS *stat,int client);
|
||||
+void PostWindowsMessage (int rem_num,int com_num,char name[]);
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
@@ -908,7 +916,7 @@
|
||||
|
||||
#if defined LINUX || defined _CONSOLE
|
||||
|
||||
-main (int argc,char *argv[])
|
||||
+int main (int argc,char *argv[])
|
||||
{
|
||||
int res;
|
||||
char *pnt;
|
||||
diff '--color=auto' -uNr work.orig/webserver.c work/webserver.c
|
||||
--- work.orig/webserver.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/webserver.c 2026-04-06 12:31:57.712090318 +0200
|
||||
@@ -57,6 +57,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <stdint.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
typedef int DWORD;
|
||||
#define closesocket close
|
||||
Binärdateien work.orig/x64/ascii.o und work/x64/ascii.o sind verschieden.
|
||||
Binärdateien work.orig/x64/fileio.o und work/x64/fileio.o sind verschieden.
|
||||
Binärdateien work.orig/x64/firmware.o und work/x64/firmware.o sind verschieden.
|
||||
Binärdateien work.orig/x64/flashrom.o und work/x64/flashrom.o sind verschieden.
|
||||
Binärdateien work.orig/x64/lanio.o und work/x64/lanio.o sind verschieden.
|
||||
Binärdateien work.orig/x64/linuxserio.o und work/x64/linuxserio.o sind verschieden.
|
||||
Binärdateien work.orig/x64/server.o und work/x64/server.o sind verschieden.
|
||||
Binärdateien work.orig/x64/webserver.o und work/x64/webserver.o sind verschieden.
|
||||
Binärdateien work.orig/x64/xap.o und work/x64/xap.o sind verschieden.
|
||||
Binärdateien work.orig/x64/xbmc.o und work/x64/xbmc.o sind verschieden.
|
||||
diff '--color=auto' -uNr work.orig/xap.c work/xap.c
|
||||
--- work.orig/xap.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/xap.c 2026-04-06 12:31:57.712240467 +0200
|
||||
@@ -73,6 +73,7 @@
|
||||
#include <signal.h>
|
||||
#include <netdb.h>
|
||||
#include <stdint.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
typedef int DWORD;
|
||||
|
||||
diff '--color=auto' -uNr work.orig/xbmc.c work/xbmc.c
|
||||
--- work.orig/xbmc.c 2026-04-06 11:49:22.773880650 +0200
|
||||
+++ work/xbmc.c 2026-04-06 12:31:57.712397396 +0200
|
||||
@@ -61,6 +61,8 @@
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <stdint.h>
|
||||
+#include <unistd.h>
|
||||
+#include <time.h>
|
||||
|
||||
typedef int DWORD;
|
||||
#define closesocket close
|
||||
@@ -274,13 +276,13 @@
|
||||
pclose (fp);
|
||||
i = 0;
|
||||
while (ln[i] && ln[i] != ' ' && ln[i] != '\t') i++;
|
||||
- if (!ln[i]) return;
|
||||
+ if (!ln[i]) return 0;
|
||||
}
|
||||
|
||||
|
||||
while (ln[i] == ' ' || ln[i] == '\t') i++;
|
||||
|
||||
- if (!ln[i]) return;
|
||||
+ if (!ln[i]) return 0;
|
||||
|
||||
xbmc_pid = atoi (ln + i);
|
||||
|
||||
@@ -22,14 +22,18 @@ RDEPEND="mono? ( >=dev-lang/mono-2.10.5 )"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/gcc15.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e 's!^ODIRARM = .*!ODIRARM = n800!' -i makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
append-flags -DLINUX -DMEDIACENTER -std=gnu10
|
||||
append-ldflags --static
|
||||
append-cppflags -DLINUX -DMEDIACENTER
|
||||
append-cflags -fno-PIE
|
||||
append-cxxflags -fno-PIE
|
||||
append-ldflags -no-pie
|
||||
|
||||
# Set sane defaults (arm target has no -D flags added)
|
||||
local irbuild=irserver_arm_noccf
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
DIST teams-for-linux_2.7.2_amd64.deb 105475620 BLAKE2B 87f0c8e15c11f5d58136b7358fff279e3048530d003db2c8dd058d640a082abf9f72cb5982991b71ed7b9496289942f8c5eec0c2ebebdbe3f62c6c310e462b7d SHA512 ce0ef3fd4de75bd95e4d75c87d0716ec67c6ea8403e5766be01f4fd99b9d2bad4ec19954b521253cafd0947a60c24583f732172c4e4ba78681e1ff0dbdd627bf
|
||||
EBUILD teams-for-linux-2.7.2.ebuild 3387 BLAKE2B 0e9031d17f3f3cab3fa8de3570c17fba700d66e35dd4d99df9054a3e7a2482d57e54c47a1d6ab08122d1fed7316a38802b28774d97d8ccebd11bbbb823d68b3f SHA512 f4a873cb21f097675309cf106edd2ff4b08dce10051cd71f5b5b4c0941bcf627b58de2983d5f59f7186cbd25d923a2ab4994f9526f2ccfd5240d9fe93f1ee462
|
||||
DIST teams-for-linux_2.7.12_amd64.deb 105351760 BLAKE2B 073ddc34e0162dd7588f952d5d008c025b8a4eab37c298a1bd657777ed060226100a74c03ba71dd74d7aad0c01c4e2d2cba136202fea55a0bb597b1d2e905889 SHA512 da13946ccfa920338fbe1ef3a9f47fe42b832895added38bd2a7a291e823ebe0a0570c38c68c9689b0a9b31ae6f0db6b712eb63ce8b6ccc7edccd45a41a1c6b4
|
||||
EBUILD teams-for-linux-2.7.12.ebuild 3387 BLAKE2B 0e9031d17f3f3cab3fa8de3570c17fba700d66e35dd4d99df9054a3e7a2482d57e54c47a1d6ab08122d1fed7316a38802b28774d97d8ccebd11bbbb823d68b3f SHA512 f4a873cb21f097675309cf106edd2ff4b08dce10051cd71f5b5b4c0941bcf627b58de2983d5f59f7186cbd25d923a2ab4994f9526f2ccfd5240d9fe93f1ee462
|
||||
|
||||
Reference in New Issue
Block a user