summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-connectivity/rtorrent/rtorrent/don-t-run-code-while-configuring-package.patch104
-rw-r--r--meta-oe/recipes-connectivity/rtorrent/rtorrent_git.bb19
2 files changed, 8 insertions, 115 deletions
diff --git a/meta-oe/recipes-connectivity/rtorrent/rtorrent/don-t-run-code-while-configuring-package.patch b/meta-oe/recipes-connectivity/rtorrent/rtorrent/don-t-run-code-while-configuring-package.patch
deleted file mode 100644
index 7d09f4382f..0000000000
--- a/meta-oe/recipes-connectivity/rtorrent/rtorrent/don-t-run-code-while-configuring-package.patch
+++ /dev/null
@@ -1,104 +0,0 @@
1Using AC_RUN_IFELSE prevent people from configuring package
2 for cross-compiling. Don't run code while configuring package.
3
4Upstream-Status: Pending
5Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
6
7Update for 0.9.8.
8Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
9---
10 scripts/checks.m4 | 34 ----------------------------------
11 scripts/common.m4 | 28 ----------------------------
12 2 files changed, 62 deletions(-)
13
14diff --git a/scripts/checks.m4 b/scripts/checks.m4
15index 83be846..1af80f5 100644
16--- a/scripts/checks.m4
17+++ b/scripts/checks.m4
18@@ -95,40 +95,6 @@ AC_DEFUN([TORRENT_CHECK_KQUEUE], [
19
20 AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [
21 AC_MSG_CHECKING(whether kqueue supports pipes and ptys)
22-
23- AC_LINK_IFELSE([AC_LANG_SOURCE([
24- #include <fcntl.h>
25- #include <stdlib.h>
26- #include <unistd.h>
27- #include <sys/event.h>
28- #include <sys/time.h>
29- int main() {
30- struct kevent ev@<:@2@:>@, ev_out@<:@2@:>@;
31- struct timespec ts = { 0, 0 };
32- int pfd@<:@2@:>@, pty@<:@2@:>@, kfd, n;
33- char buffer@<:@9001@:>@;
34- if (pipe(pfd) == -1) return 1;
35- if (fcntl(pfd@<:@1@:>@, F_SETFL, O_NONBLOCK) == -1) return 2;
36- while ((n = write(pfd@<:@1@:>@, buffer, sizeof(buffer))) == sizeof(buffer));
37- if ((pty@<:@0@:>@=posix_openpt(O_RDWR | O_NOCTTY)) == -1) return 3;
38- if ((pty@<:@1@:>@=grantpt(pty@<:@0@:>@)) == -1) return 4;
39- EV_SET(ev+0, pfd@<:@1@:>@, EVFILT_WRITE, EV_ADD | EV_ENABLE, 0, 0, NULL);
40- EV_SET(ev+1, pty@<:@1@:>@, EVFILT_READ, EV_ADD | EV_ENABLE, 0, 0, NULL);
41- if ((kfd = kqueue()) == -1) return 5;
42- if ((n = kevent(kfd, ev, 2, NULL, 0, NULL)) == -1) return 6;
43- if (ev_out@<:@0@:>@.flags & EV_ERROR) return 7;
44- if (ev_out@<:@1@:>@.flags & EV_ERROR) return 8;
45- read(pfd@<:@0@:>@, buffer, sizeof(buffer));
46- if ((n = kevent(kfd, NULL, 0, ev_out, 2, &ts)) < 1) return 9;
47- return 0;
48- }
49- ])],
50- [
51- AC_MSG_RESULT(yes)
52- ], [
53- AC_DEFINE(KQUEUE_SOCKET_ONLY, 1, kqueue only supports sockets.)
54- AC_MSG_RESULT(no)
55- ])
56 ])
57
58 AC_DEFUN([TORRENT_WITH_KQUEUE], [
59diff --git a/scripts/common.m4 b/scripts/common.m4
60index aaf005e..42fb016 100644
61--- a/scripts/common.m4
62+++ b/scripts/common.m4
63@@ -152,38 +152,10 @@ dnl Need to fix this so that it uses the stuff defined by the system.
64
65 AC_DEFUN([TORRENT_CHECK_EXECINFO], [
66 AC_MSG_CHECKING(for execinfo.h)
67-
68- AC_COMPILE_IFELSE([AC_LANG_SOURCE([
69- #include <execinfo.h>
70- int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
71- ])],
72- [
73- AC_MSG_RESULT(yes)
74- AC_DEFINE(USE_EXECINFO, 1, Use execinfo.h)
75- ], [
76- AC_MSG_RESULT(no)
77- ])
78 ])
79
80 AC_DEFUN([TORRENT_CHECK_ALIGNED], [
81 AC_MSG_CHECKING(the byte alignment)
82-
83- AC_LINK_IFELSE([AC_LANG_SOURCE([
84- #include <inttypes.h>
85- int main() {
86- char buf@<:@8@:>@ = { 0, 0, 0, 0, 1, 0, 0, 0 };
87- int i;
88- for (i = 1; i < 4; ++i)
89- if (*(uint32_t*)(buf + i) == 0) return -1;
90- return 0;
91- }
92- ])],
93- [
94- AC_MSG_RESULT(none needed)
95- ], [
96- AC_DEFINE(USE_ALIGNED, 1, Require byte alignment)
97- AC_MSG_RESULT(required)
98- ])
99 ])
100
101
102--
1032.7.4
104
diff --git a/meta-oe/recipes-connectivity/rtorrent/rtorrent_git.bb b/meta-oe/recipes-connectivity/rtorrent/rtorrent_git.bb
index 7879324cc6..b4fe10cb1c 100644
--- a/meta-oe/recipes-connectivity/rtorrent/rtorrent_git.bb
+++ b/meta-oe/recipes-connectivity/rtorrent/rtorrent_git.bb
@@ -1,17 +1,14 @@
1SUMMARY = "Torrent client" 1SUMMARY = "Torrent client"
2HOMEPAGE = "http://libtorrent.rakshasa.no/" 2HOMEPAGE = "http://libtorrent.rakshasa.no/"
3LICENSE = "GPL-2.0-only" 3LICENSE = "GPL-2.0-or-later"
4LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" 4LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
5 5
6DEPENDS = "libsigc++-2.0 curl cppunit libtorrent ncurses" 6DEPENDS = "libsigc++-2.0 curl cppunit libtool libtorrent ncurses"
7 7
8SRC_URI = "git://github.com/rakshasa/rtorrent;branch=master;protocol=https \ 8SRC_URI = "git://github.com/rakshasa/rtorrent;branch=master;protocol=https"
9 file://don-t-run-code-while-configuring-package.patch \ 9SRCREV = "d067bd802e44f0e6a747aabcc311ada2175fd550"
10"
11# v0.9.8
12SRCREV = "6154d1698756e0c4842b1c13a0e56db93f1aa947"
13 10
14PV = "0.9.8" 11PV = "0.9.8+git${SRCPV}"
15 12
16S = "${WORKDIR}/git" 13S = "${WORKDIR}/git"
17 14
@@ -21,6 +18,6 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
21 18
22inherit autotools pkgconfig 19inherit autotools pkgconfig
23 20
24do_configure:prepend() { 21EXTRA_AUTORECONF += "--exclude=aclocal"
25 (cd ${S}; ./autogen.sh; cd -) 22
26} 23CXXFLAGS += "-std=gnu++14"