Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 633040 Details for
Bug 717540
net-libs/mbedtls-2.20.0 needs a patch to compile : 'session' undeclared
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild containing 'sed' command
mbedtls-2.20.0.ebuild (text/plain), 2.87 KB, created by
Helmut Jarausch
on 2020-04-15 11:45:11 UTC
(
hide
)
Description:
ebuild containing 'sed' command
Filename:
MIME Type:
Creator:
Helmut Jarausch
Created:
2020-04-15 11:45:11 UTC
Size:
2.87 KB
patch
obsolete
># Copyright 1999-2020 Gentoo Authors ># Distributed under the terms of the GNU General Public License v2 > >EAPI=7 > >inherit cmake-utils multilib-minimal > >DESCRIPTION="Cryptographic library for embedded systems" >HOMEPAGE="https://tls.mbed.org/" >CRYPTO_SUBMODULE="mbedcrypto-3.1.0" >SRC_URI="https://github.com/ARMmbed/mbedtls/archive/${P}.tar.gz > https://github.com/ARMmbed/mbed-crypto/archive/${CRYPTO_SUBMODULE}.tar.gz" >S=${WORKDIR}/${PN}-${P} > >LICENSE="Apache-2.0" >SLOT="0/13" # slot for libmbedtls.so >KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" >IUSE="cpu_flags_x86_sse2 doc havege libressl programs -static-libs test threads zlib" >RESTRICT="!test? ( test )" > >RDEPEND=" > programs? ( > !libressl? ( dev-libs/openssl:0= ) > libressl? ( dev-libs/libressl:0= ) > ) > zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )" >DEPEND="${RDEPEND} > doc? ( app-doc/doxygen media-gfx/graphviz ) > test? ( dev-lang/perl )" > >enable_mbedtls_option() { > local myopt="$@" > # check that config.h syntax is the same at version bump > sed -i \ > -e "s://#define ${myopt}:#define ${myopt}:" \ > include/mbedtls/config.h || die >} > >PATCHES=( > "${FILESDIR}"/${PN}-dont-overwrite-headers.patch > "${FILESDIR}"/${PN}-un-pebcak-705038-wrong-file.patch >) > >src_prepare() { > sed -i -e's/session->compression == MBEDTLS_SSL_COMPRESS_DEFLATE/ssl->session->compression == MBEDTLS_SSL_COMPRESS_DEFLATE/' library/ssl_tls.c > use cpu_flags_x86_sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2 > use zlib && enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT > use havege && enable_mbedtls_option MBEDTLS_HAVEGE_C > use threads && enable_mbedtls_option MBEDTLS_THREADING_C > use threads && enable_mbedtls_option MBEDTLS_THREADING_PTHREAD > > # pretend to be git submodule > rmdir "${S}"/crypto > mv "${WORKDIR}"/mbed-crypto-${CRYPTO_SUBMODULE} "${S}"/crypto > > cmake-utils_src_prepare >} > >multilib_src_configure() { > local mycmakeargs=( > -DENABLE_PROGRAMS=$(multilib_native_usex programs) > -DENABLE_ZLIB_SUPPORT=$(usex zlib) > -DUSE_STATIC_MBEDTLS_LIBRARY=$(usex static-libs) > -DENABLE_TESTING=$(usex test) > -DUSE_SHARED_MBEDTLS_LIBRARY=ON > -DINSTALL_MBEDTLS_HEADERS=ON > -DLIB_INSTALL_DIR="/usr/$(get_libdir)" > ) > > cmake-utils_src_configure >} > >multilib_src_compile() { > cmake-utils_src_compile > use doc && multilib_is_native_abi && emake apidoc >} > >multilib_src_test() { > LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/library" \ > cmake-utils_src_test >} > >multilib_src_install() { > cmake-utils_src_install >} > >multilib_src_install_all() { > use doc && HTML_DOCS=( apidoc ) > > einstalldocs > > if use programs ; then > # avoid file collisions with sys-apps/coreutils > local p e > for p in "${ED}"/usr/bin/* ; do > if [[ -x "${p}" && ! -d "${p}" ]] ; then > mv "${p}" "${ED}"/usr/bin/mbedtls_${p##*/} || die > fi > done > for e in aes hash pkey ssl test ; do > docinto "${e}" > dodoc programs/"${e}"/*.c > dodoc programs/"${e}"/*.txt > done > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 717540
: 633040