1 |
commit: 281535f88931fec48c2dd2fa3a8f4f3cfac201b0 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 15 21:11:27 2023 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 15 21:12:24 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=281535f8 |
7 |
|
8 |
dev-tcltk/tclx: filter rresvport if not present |
9 |
|
10 |
Closes: https://bugs.gentoo.org/894176 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-tcltk/tclx/files/tclx-8.4.4-musl.patch | 25 ++++++++++++++++++++++ |
14 |
.../{tclx-8.4.4-r3.ebuild => tclx-8.4.4-r4.ebuild} | 1 + |
15 |
2 files changed, 26 insertions(+) |
16 |
|
17 |
diff --git a/dev-tcltk/tclx/files/tclx-8.4.4-musl.patch b/dev-tcltk/tclx/files/tclx-8.4.4-musl.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..2fc45e05b6ab |
20 |
--- /dev/null |
21 |
+++ b/dev-tcltk/tclx/files/tclx-8.4.4-musl.patch |
22 |
@@ -0,0 +1,25 @@ |
23 |
+--- a/configure.in 2023-03-15 22:00:11.725506240 +0100 |
24 |
++++ b/configure.in 2023-03-15 22:00:29.230246904 +0100 |
25 |
+@@ -253,6 +253,7 @@ |
26 |
+ |
27 |
+ AC_CHECK_FUNC(inet_aton, , [AC_DEFINE(NO_INET_ATON)]) |
28 |
+ AC_CHECK_FUNC(gethostname, , [AC_DEFINE(NO_GETHOSTNAME)]) |
29 |
++ AC_CHECK_FUNCS([rresvport]) |
30 |
+ |
31 |
+ #------------------------------------------------------------------------- |
32 |
+ # Check for additional libraries the Tcl/Tk does not check for. |
33 |
+--- a/unix/tclXunixSock.c 2023-03-15 22:02:32.255424538 +0100 |
34 |
++++ b/unix/tclXunixSock.c 2023-03-15 22:03:35.094493443 +0100 |
35 |
+@@ -194,10 +194,12 @@ |
36 |
+ * Allocate a reserved port if requested. |
37 |
+ */ |
38 |
+ if (getReserved) { |
39 |
++#ifdef HAVE_RRESVPORT |
40 |
+ int port; |
41 |
+ if (rresvport (&port) < 0) |
42 |
+ goto unixError; |
43 |
+ local.sin_port = port; |
44 |
++#endif |
45 |
+ } |
46 |
+ |
47 |
+ /* |
48 |
|
49 |
diff --git a/dev-tcltk/tclx/tclx-8.4.4-r3.ebuild b/dev-tcltk/tclx/tclx-8.4.4-r4.ebuild |
50 |
similarity index 97% |
51 |
rename from dev-tcltk/tclx/tclx-8.4.4-r3.ebuild |
52 |
rename to dev-tcltk/tclx/tclx-8.4.4-r4.ebuild |
53 |
index 77d88925c305..ac35e033b305 100644 |
54 |
--- a/dev-tcltk/tclx/tclx-8.4.4-r3.ebuild |
55 |
+++ b/dev-tcltk/tclx/tclx-8.4.4-r4.ebuild |
56 |
@@ -27,6 +27,7 @@ PATCHES=( |
57 |
"${FILESDIR}"/${P}-configure-clang16.patch |
58 |
"${FILESDIR}"/${P}-configure-clang16-deux.patch |
59 |
"${FILESDIR}"/${P}-gcc11.patch |
60 |
+ "${FILESDIR}"/${P}-musl.patch |
61 |
) |
62 |
|
63 |
QA_CONFIG_IMPL_DECL_SKIP=( |