summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2022-12-14 09:48:12 +0000
committerormorph <roma251078@mail.ru>2022-12-14 19:16:27 +0000
commit777210eb8abb789c8fc5064c039521a649f1b8fe (patch)
tree7f264fef0901c8c3890247c85ec277f0e17d0109
parent2eacb9e12a937091215e803da587525974d3c782 (diff)
downloadtde-packaging-gentoo-777210eb8abb789c8fc5064c039521a649f1b8fe.tar.gz
tde-packaging-gentoo-777210eb8abb789c8fc5064c039521a649f1b8fe.zip
Added patch for musl, hwlib support
Signed-off-by: ormorph <roma251078@mail.ru>
-rw-r--r--trinity-base/tdelibs/files/tdelibs-hwlib.patch20
-rw-r--r--trinity-base/tdelibs/tdelibs-14.0.13.ebuild1
2 files changed, 21 insertions, 0 deletions
diff --git a/trinity-base/tdelibs/files/tdelibs-hwlib.patch b/trinity-base/tdelibs/files/tdelibs-hwlib.patch
new file mode 100644
index 00000000..911f9c04
--- /dev/null
+++ b/trinity-base/tdelibs/files/tdelibs-hwlib.patch
@@ -0,0 +1,20 @@
+--- a/tdecore/tdehw/tdehardwaredevices.cpp
++++ b/tdecore/tdehw/tdehardwaredevices.cpp
+@@ -2906,7 +2906,7 @@
+ ndevice->internalSetIpV6Netmask(address);
+ }
+ }
+- s = getnameinfo(ifa->ifa_ifu.ifu_broadaddr, (family == AF_INET) ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);
++ s = ifa->ifa_ifu.ifu_broadaddr ? getnameinfo(ifa->ifa_ifu.ifu_broadaddr, (family == AF_INET) ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST) : EAI_NONAME;
+ if (s == 0) {
+ TQString address(host);
+ if (family == AF_INET) {
+@@ -2917,7 +2917,7 @@
+ ndevice->internalSetIpV6Broadcast(address);
+ }
+ }
+- s = getnameinfo(ifa->ifa_ifu.ifu_dstaddr, (family == AF_INET) ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);
++ s = ifa->ifa_ifu.ifu_dstaddr ? getnameinfo(ifa->ifa_ifu.ifu_dstaddr, (family == AF_INET) ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST) : EAI_NONAME;
+ if (s == 0) {
+ TQString address(host);
+ if (family == AF_INET) {
diff --git a/trinity-base/tdelibs/tdelibs-14.0.13.ebuild b/trinity-base/tdelibs/tdelibs-14.0.13.ebuild
index df291768..b9cb7029 100644
--- a/trinity-base/tdelibs/tdelibs-14.0.13.ebuild
+++ b/trinity-base/tdelibs/tdelibs-14.0.13.ebuild
@@ -80,6 +80,7 @@ RDEPEND="${DEPEND}
PATCHES=(
"${FILESDIR}/${PN}-backtrace.patch"
"${FILESDIR}/${PN}-malloc.patch"
+ "${FILESDIR}/${PN}-hwlib.patch"
)
src_configure() {