diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-01-17 22:07:48 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-01-21 10:02:02 -0800 |
| commit | 6d0eaf9a27b7085ff7634eb302db51d2c27e9266 (patch) | |
| tree | 0c26fb71acf50f5e9b06b47df3673e898db82d33 /meta-oe/recipes-connectivity/libtorrent | |
| parent | 68fe58173d54311592323fe7cef5c1355f328ed4 (diff) | |
| download | meta-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.patch | 28 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb | 18 |
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 @@ | |||
| 1 | Using AC_RUN_IFELSE prevent people from configuring package for | ||
| 2 | cross-compiling. Don't run code while configuring package. | ||
| 3 | |||
| 4 | Upstream-Status: Pending | ||
| 5 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
| 6 | |||
| 7 | Index: 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 @@ | |||
| 1 | DESCRIPTION = "libTorrent is a BitTorrent library written in C++ for *nix, \ | 1 | DESCRIPTION = "libTorrent is a BitTorrent library written in C++ for *nix, \ |
| 2 | with a focus on high performance and good code." | 2 | with a focus on high performance and good code." |
| 3 | HOMEPAGE = "http://libtorrent.rakshasa.no/" | 3 | HOMEPAGE = "http://libtorrent.rakshasa.no/" |
| 4 | LICENSE = "GPL-2.0-only" | 4 | LICENSE = "GPL-2.0-or-later" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" |
| 6 | 6 | ||
| 7 | DEPENDS = "zlib libsigc++-2.0 openssl cppunit" | 7 | DEPENDS = "zlib libsigc++-2.0 openssl cppunit" |
| 8 | 8 | ||
| 9 | SRC_URI = "git://github.com/rakshasa/libtorrent;branch=master;protocol=https \ | 9 | SRC_URI = "git://github.com/rakshasa/libtorrent;branch=master;protocol=https" |
| 10 | file://don-t-run-code-while-configuring-package.patch \ | 10 | SRCREV = "e60f222241319aaae482789517ad00ae9344bd13" |
| 11 | " | ||
| 12 | SRCREV = "756f70010779927dc0691e1e722ed433d5d295e1" | ||
| 13 | 11 | ||
| 14 | CVE_CHECK_IGNORE += "\ | 12 | CVE_CHECK_IGNORE += "\ |
| 15 | CVE-2009-1760 \ | 13 | CVE-2009-1760 \ |
| 16 | " | 14 | " |
| 17 | 15 | ||
| 18 | PV = "0.13.8" | 16 | PV = "0.13.8+git${SRCPV}" |
| 19 | 17 | ||
| 20 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
| 21 | 19 | ||
| 22 | PACKAGECONFIG ??= "instrumentation" | 20 | |
| 21 | PACKAGECONFIG ??= "instrumentation aligned" | ||
| 23 | 22 | ||
| 24 | PACKAGECONFIG:remove:mipsarch = "instrumentation" | 23 | PACKAGECONFIG:remove:mipsarch = "instrumentation" |
| 25 | PACKAGECONFIG:remove:powerpc = "instrumentation" | 24 | PACKAGECONFIG:remove:powerpc = "instrumentation" |
| 26 | PACKAGECONFIG:remove:riscv32 = "instrumentation" | 25 | PACKAGECONFIG:remove:riscv32 = "instrumentation" |
| 27 | 26 | ||
| 28 | PACKAGECONFIG[instrumentation] = "--enable-instrumentation,--disable-instrumentation," | 27 | PACKAGECONFIG[instrumentation] = "--enable-instrumentation,--disable-instrumentation," |
| 28 | PACKAGECONFIG[aligned] = "--enable-aligned,--disable-aligned," | ||
| 29 | 29 | ||
| 30 | inherit autotools pkgconfig | 30 | inherit autotools pkgconfig |
| 31 | 31 | ||
| 32 | EXTRA_OECONF = "--with-zlib=${STAGING_EXECPREFIXDIR}" | 32 | EXTRA_OECONF = "--with-zlib=${STAGING_EXECPREFIXDIR}" |
| 33 | |||
| 34 | do_configure:prepend() { | ||
| 35 | (cd ${S}; ./autogen.sh; cd -) | ||
| 36 | } | ||
