summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/libtorrent
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-01-17 22:07:48 -0800
committerKhem Raj <raj.khem@gmail.com>2023-01-21 10:02:02 -0800
commit6d0eaf9a27b7085ff7634eb302db51d2c27e9266 (patch)
tree0c26fb71acf50f5e9b06b47df3673e898db82d33 /meta-oe/recipes-connectivity/libtorrent
parent68fe58173d54311592323fe7cef5c1355f328ed4 (diff)
downloadmeta-openembedded-6d0eaf9a27b7085ff7634eb302db51d2c27e9266.tar.gz
libtorrent: Update to tip of trunk
Drop cross compile patch as we do not need it anymore since we now use --enable-aligned License-Update: Correctly mark the license as GPL-2.0+ Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-connectivity/libtorrent')
-rw-r--r--meta-oe/recipes-connectivity/libtorrent/libtorrent/don-t-run-code-while-configuring-package.patch28
-rw-r--r--meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb18
2 files changed, 7 insertions, 39 deletions
diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent/don-t-run-code-while-configuring-package.patch b/meta-oe/recipes-connectivity/libtorrent/libtorrent/don-t-run-code-while-configuring-package.patch
deleted file mode 100644
index 8d8867aea7..0000000000
--- a/meta-oe/recipes-connectivity/libtorrent/libtorrent/don-t-run-code-while-configuring-package.patch
+++ /dev/null
@@ -1,28 +0,0 @@
1Using AC_RUN_IFELSE prevent people from configuring package for
2cross-compiling. Don't run code while configuring package.
3
4Upstream-Status: Pending
5Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
6
7Index: git/scripts/common.m4
8===================================================================
9--- git.orig/scripts/common.m4
10+++ git/scripts/common.m4
11@@ -153,7 +153,7 @@ dnl Need to fix this so that it uses t
12 AC_DEFUN([TORRENT_CHECK_EXECINFO], [
13 AC_MSG_CHECKING(for execinfo.h)
14
15- AC_COMPILE_IFELSE([AC_LANG_SOURCE([
16+ AC_LINK_IFELSE([AC_LANG_SOURCE([
17 #include <execinfo.h>
18 int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
19 ])],
20@@ -168,7 +168,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [
21 AC_DEFUN([TORRENT_CHECK_ALIGNED], [
22 AC_MSG_CHECKING(the byte alignment)
23
24- AC_RUN_IFELSE([AC_LANG_SOURCE([
25+ AC_LINK_IFELSE([AC_LANG_SOURCE([
26 #include <inttypes.h>
27 int main() {
28 char buf@<:@8@:>@ = { 0, 0, 0, 0, 1, 0, 0, 0 };
diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
index 28a3e1e77a..50096cfdbc 100644
--- a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
+++ b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
@@ -1,36 +1,32 @@
1DESCRIPTION = "libTorrent is a BitTorrent library written in C++ for *nix, \ 1DESCRIPTION = "libTorrent is a BitTorrent library written in C++ for *nix, \
2with a focus on high performance and good code." 2with a focus on high performance and good code."
3HOMEPAGE = "http://libtorrent.rakshasa.no/" 3HOMEPAGE = "http://libtorrent.rakshasa.no/"
4LICENSE = "GPL-2.0-only" 4LICENSE = "GPL-2.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" 5LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
6 6
7DEPENDS = "zlib libsigc++-2.0 openssl cppunit" 7DEPENDS = "zlib libsigc++-2.0 openssl cppunit"
8 8
9SRC_URI = "git://github.com/rakshasa/libtorrent;branch=master;protocol=https \ 9SRC_URI = "git://github.com/rakshasa/libtorrent;branch=master;protocol=https"
10 file://don-t-run-code-while-configuring-package.patch \ 10SRCREV = "e60f222241319aaae482789517ad00ae9344bd13"
11 "
12SRCREV = "756f70010779927dc0691e1e722ed433d5d295e1"
13 11
14CVE_CHECK_IGNORE += "\ 12CVE_CHECK_IGNORE += "\
15 CVE-2009-1760 \ 13 CVE-2009-1760 \
16" 14"
17 15
18PV = "0.13.8" 16PV = "0.13.8+git${SRCPV}"
19 17
20S = "${WORKDIR}/git" 18S = "${WORKDIR}/git"
21 19
22PACKAGECONFIG ??= "instrumentation" 20
21PACKAGECONFIG ??= "instrumentation aligned"
23 22
24PACKAGECONFIG:remove:mipsarch = "instrumentation" 23PACKAGECONFIG:remove:mipsarch = "instrumentation"
25PACKAGECONFIG:remove:powerpc = "instrumentation" 24PACKAGECONFIG:remove:powerpc = "instrumentation"
26PACKAGECONFIG:remove:riscv32 = "instrumentation" 25PACKAGECONFIG:remove:riscv32 = "instrumentation"
27 26
28PACKAGECONFIG[instrumentation] = "--enable-instrumentation,--disable-instrumentation," 27PACKAGECONFIG[instrumentation] = "--enable-instrumentation,--disable-instrumentation,"
28PACKAGECONFIG[aligned] = "--enable-aligned,--disable-aligned,"
29 29
30inherit autotools pkgconfig 30inherit autotools pkgconfig
31 31
32EXTRA_OECONF = "--with-zlib=${STAGING_EXECPREFIXDIR}" 32EXTRA_OECONF = "--with-zlib=${STAGING_EXECPREFIXDIR}"
33
34do_configure:prepend() {
35 (cd ${S}; ./autogen.sh; cd -)
36}