Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/udpcast/files/, net-misc/udpcast/
Date: Wed, 31 Aug 2022 04:30:29
Message-Id: 1661918407.911a412a193cc5b347d57e2e662722a568412bf7.sam@gentoo
1 commit: 911a412a193cc5b347d57e2e662722a568412bf7
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 31 04:00:07 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 04:00:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=911a412a
7
8 net-misc/udpcast: add 20211207
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-misc/udpcast/Manifest | 1 +
13 net-misc/udpcast/files/udpcast-20211207-musl.patch | 33 ++++++++++++++++++++++
14 net-misc/udpcast/udpcast-20211207.ebuild | 32 +++++++++++++++++++++
15 3 files changed, 66 insertions(+)
16
17 diff --git a/net-misc/udpcast/Manifest b/net-misc/udpcast/Manifest
18 index c3f55e7d574d..478a3604e175 100644
19 --- a/net-misc/udpcast/Manifest
20 +++ b/net-misc/udpcast/Manifest
21 @@ -1 +1,2 @@
22 DIST udpcast-20200328.tar.gz 169252 BLAKE2B df760dea814fabf951a65dc191a88355dec864d9c0f1be99ea60c742862d0b9944e51a45dd462ffce5c4b56a8d94f719796e3c725b42edae8cb9a19b1d3bc147 SHA512 b1ce4f0cade5db6bc69d3a154c354565675f44e97f9e3d90152f9594fd4f17fff2891eb1cb8d73c59e0d24eeb85e485e96b7a64fa9f1b6d2f005c4cece377bc7
23 +DIST udpcast-20211207.tar.gz 171148 BLAKE2B 96a7b1a30e19a2b83ce2ab7d8491ad430838f1305b83b728e6b43343404440b5a7fa9ee0afd0c00f8203937803a691065af31d7dc51633f26d019955e9ac8ed0 SHA512 89010c781d99a60e335213e88867c9114b51f3d75bd4ebfa38bcd1382e5925be4f316faf8c24ea55b087edb2115e18b5fd3cceac70a65371f91227528d218e89
24
25 diff --git a/net-misc/udpcast/files/udpcast-20211207-musl.patch b/net-misc/udpcast/files/udpcast-20211207-musl.patch
26 new file mode 100644
27 index 000000000000..9b0aaae59032
28 --- /dev/null
29 +++ b/net-misc/udpcast/files/udpcast-20211207-musl.patch
30 @@ -0,0 +1,33 @@
31 +https://git.busybox.net/buildroot/tree/package/udpcast/0001-fix-musl-build.patch?id=8d7be66f70cccbaf61e5cb6b2414b9d9ce162f48
32 +
33 +fix musl build
34 +
35 +Fix the following musl build failure:
36 +
37 +receivedata.c: In function 'findSlice':
38 +receivedata.c:348:2: error: unknown type name 'ptrdiff_t'
39 + 348 | ptrdiff_t pos = slice - clst->slices;
40 + | ^~~~~~~~~
41 +receivedata.c:17:1: note: 'ptrdiff_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
42 + 16 | #include "fec.h"
43 + +++ |+#include <stddef.h>
44 + 17 |
45 +
46 +Fixes:
47 + - http://autobuild.buildroot.org/results/30208c6f175967fed6de690447a09e0c86547b24
48 +
49 +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@×××××.com>
50 +[Upstream status:
51 +https://udpcast.linux.lu/mailman3/hyperkitty/list/udpcast@×××××××××××××.lu/thread/4MBES2CPUSUNIZTC7NXCQYS2GAE4DQSG/]
52 +
53 +--- a/receivedata.c
54 ++++ b/receivedata.c
55 +@@ -1,6 +1,7 @@
56 + #include <assert.h>
57 + #include <sys/types.h>
58 + #include <unistd.h>
59 ++#include <stddef.h>
60 + #include <stdlib.h>
61 + #include <sys/time.h>
62 + #include <errno.h>
63 +
64
65 diff --git a/net-misc/udpcast/udpcast-20211207.ebuild b/net-misc/udpcast/udpcast-20211207.ebuild
66 new file mode 100644
67 index 000000000000..e2165f829f27
68 --- /dev/null
69 +++ b/net-misc/udpcast/udpcast-20211207.ebuild
70 @@ -0,0 +1,32 @@
71 +# Copyright 1999-2022 Gentoo Authors
72 +# Distributed under the terms of the GNU General Public License v2
73 +
74 +EAPI=8
75 +
76 +inherit flag-o-matic
77 +
78 +DESCRIPTION="Multicast file transfer tool"
79 +HOMEPAGE="https://www.udpcast.linux.lu/"
80 +SRC_URI="https://www.udpcast.linux.lu/download/${P}.tar.gz"
81 +
82 +LICENSE="GPL-2 BSD"
83 +SLOT="0"
84 +KEYWORDS="~amd64 ~x86"
85 +IUSE="hardened"
86 +
87 +BDEPEND="dev-lang/perl"
88 +
89 +PATCHES=(
90 + "${FILESDIR}"/${P}-musl.patch
91 +)
92 +
93 +src_configure() {
94 + use hardened || append-cppflags -DUSE_ASSEMBLER
95 +
96 + default
97 +}
98 +
99 +src_install() {
100 + default
101 + dodoc *.txt
102 +}