summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2018-08-10 12:32:12 +0900
committerBenda Xu <heroxbd@gentoo.org>2018-08-10 12:32:12 +0900
commitdbc8a7343cf2990dbc046512866cb48f4acf05ea (patch)
tree0969eee6db34fca6468347199093f214e860dbaa /sys-libs
parentdev-util/soong: distribute root.bp. (diff)
downloadandroid-dbc8a7343cf2990dbc046512866cb48f4acf05ea.tar.gz
android-dbc8a7343cf2990dbc046512866cb48f4acf05ea.tar.bz2
android-dbc8a7343cf2990dbc046512866cb48f4acf05ea.zip
sys-libs/bionic: ebuild that works up to src_configure.
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/bionic/Manifest14
-rw-r--r--sys-libs/bionic/bionic-8.1.0_p41.ebuild70
-rw-r--r--sys-libs/bionic/metadata.xml8
3 files changed, 92 insertions, 0 deletions
diff --git a/sys-libs/bionic/Manifest b/sys-libs/bionic/Manifest
new file mode 100644
index 0000000..be42026
--- /dev/null
+++ b/sys-libs/bionic/Manifest
@@ -0,0 +1,14 @@
+DIST bionic-8.1.0_p41.tar.gz 3517518 BLAKE2B 4c5121cda0e3562b3b65d8e7fa621c6e231973077d582b7d4abf861d03533fd4881901bd48ec971d5baaf155dc8f1a92eb62068a910199fa751fb3001d20d0ba SHA512 b110b46e9f67174f8f30f3b8da0e0fa02c42f2dbb5ced6a9ba9ad948d6cd0a82c1850e8a8d4cd5f3b81ad286e9eb400236fb5320ab02b72f44a0510829cd3e6d
+DIST build-8.1.0_p41.tar.gz 2587534 BLAKE2B 5a0eb0dab1d41c60b8eb2e14c5f6e82584ed57e63541fcfc1087f841d8206bb45302b341cff5754ca641e392ed3cccca7ab4609932620fe100aba37ff61679b1 SHA512 a4b0f24800055cc9e433b578c9e1ae7f511959512459cb916b63fd3ec9312fe272858117f15beea28a60464a04fd8fd17a7bfb6772b346edecfb387aad89a97d
+DIST compiler-rt-8.1.0_p41.tar.gz 2377259 BLAKE2B 09104aba4ef1dc9ce18609cae395f3849d3df6dbb9b9759c3a1532759afd52d7af37475df21ae2db3bbea0891f9974785833405c3731d0082e749c304a86bc89 SHA512 9472ca3fed7a0215f6bd7506f5ba722891c65f9a88a4296c57a69bd038854ad416b7ce433d11451408c632ec23b3f19c4a3fc6373a7955c27563d7786301b6de
+DIST core-8.1.0_p41.tar.gz 5230053 BLAKE2B 7d061d424554fadf9b91412ee9e20d698ec97f196b899aecd7ba7a9a8353ac7f9f6d29831278fb9b81e910031d15b26038ead0d8a2bb7349a767302243d096be SHA512 44458749dd108cf7c89e7b5ad6fdfdb70c2e2a1fb7116543a8203be1fedf45b27b47734f0602e6d7e3ab340d415115884d52a38bf247eebd27a5f87e9ee2c8cd
+DIST jemalloc-8.1.0_p41.tar.gz 474553 BLAKE2B 7402befbc29f4ec795c6c5715c015fcd8684207467ac87bf99e65b2c46efc05697f42c0c060ac971367534f57a9e075810fca837089db8fa3c256a2e6c44b5a9 SHA512 1cea81038a5bac8902a2f71c571b172c792857d4eb62d13e4ec25dddd14dc724328b8604f412da6708d6f9af78e8c1582f6d38388b707d1d405f425901534f9c
+DIST libcxx-8.1.0_p41.tar.gz 2346631 BLAKE2B ba37b446d722108dba6d970e07f3ce63ed4e23678d97f8b6eb215d2795848dbb6e5b0fe50f57686eed4fe6ada762e5e7d7824dbdc4a54496c1ed811684faa2c6 SHA512 a9632729ed454711a7c09e11845fe4ef0c111d4e369951d28c8ed179e5d9b4dc7a7108c963d62e20f3c87e1f5362896ade08591b6454a145fa99b87c8931f0ba
+DIST libcxxabi-8.1.0_p41.tar.gz 709877 BLAKE2B 31ccf771a7397e9207bac222b9ac24bdba07103508426782f743dd0b7766702eac6db22edcfe214135b41f4bec7b12d148fae62fce27348c38fecadc3b127659 SHA512 7c26527f569464e93893e4fe31032b18bf9553ef1bd695a0177bdf4e6a8462040a6694f2b87eee0265f777da9ca5f4ebf2be302c6aaec86bbbfbf2f41785bd96
+DIST libunwind-8.1.0_p41.tar.gz 444441 BLAKE2B e02b2a5f9be17ffa61d607f4e7a0f878d77d3f26f195f9f2a5f6cdb043508aabefff2f18b1e6844700d50b984bc2331bd4f897c1bda73a9edc05f23e656b89f2 SHA512 e47282f05baf3accb87b8d7164790929789e84ec4c2542c1da6553ead10558529f4a15d478f43970f4c5ca0ddbd4ce86d96e2aa0c4b859fff24f398e6779ca5d
+DIST libunwind_llvm-8.1.0_p41.tar.gz 90999 BLAKE2B 3ebd73a228513548ee9f6f84ab22190b9eed4b29b28acde5ed9e7dc8211691629a04980b04712d50fe3f1690e2e4e4df823c818ddd8e23448d4840029bb7acd2 SHA512 2a433a5c929b65e4738b9507a807c005aab22ba303676145806d000db9a21b04f6589282a15f36a4be725099501eccfce07349f5734871d59f09e1f732a6dae3
+DIST lzma-8.1.0_p41.tar.gz 733693 BLAKE2B 733b0995778adce01af50b9f22276ec4a54d3c73ff7b9709a6b3c0327dd89c0a785cb991dbd3343e4e7b9c5eb9009afaea3d78db993a48e1dcbaa9807fdaf7ff SHA512 4cebceabb9096c19ccf3ab25ef27d4ce6f1655e431c6381f888345613f310509864135bc0ee7fd78dc5f1170521effea2113f149e71cca56a07254566755c0c5
+DIST safe-iop-8.1.0_p41.tar.gz 10800 BLAKE2B 02959e9a0f02259362bfbe840eae50bdfa429b09de8f56f8beec2f99697eabb4a0a71a175a79a52f943facded257a68bff383a53acbe61249b76fe2ff95911e1 SHA512 8b717408601194b76a6a44fec5bd62ff2121b89f5f8fea7b3eee7ca46c122e346f8d73d92f5b34575318b1015e74186affda1e1aca7b53ac9c3c303d4e8e7710
+DIST zlib-8.1.0_p41.tar.gz 607311 BLAKE2B b175cf9d4548df24cfd587abea62ee4c3dcee56f6a68b4044c4b1419be148ab4542c42cb19ce0d773b247ceaf3193afca385170674c9d6d2f92a4df8f6d346ba SHA512 0d587729c1210ee6efa6bb7cdac723da71a9c56252be67f6973e80c3597dbb7f2c96ea093078e580d97709de5e8d8fabf92aae0594f382b95e2d9559e43953d2
+EBUILD bionic-8.1.0_p41.ebuild 1976 BLAKE2B c402bd76515e390fce5169f3f619457748a0621ac37b2f510f628a24963c68399a2dbf4d4c1363cefd74ae31868abb13a4d0f22681bed334a922d0334106be63 SHA512 3dd8cc9384519d174b3f45a49c51180d5969d5f3bae7b97069459578340e44edef971d9bb9767343f70ca2aa126dc440e14d42997b2ef6a885abb8d28d1705a0
+MISC metadata.xml 242 BLAKE2B 08b4880748ab6d685ce28f65a9f6cc5ad62deff8f85d4e0a55a3dc12aa8bd63cf1de56b28ff89929e054a6831e223d6ef0207e8b19c6887f09ee22621bd76928 SHA512 ae57aaeecc094cffa640d88329a0baa6c2b0703330d84f6406f3f68d8bb9b724d2e19a8478be8708de284db9ac452f95f225a9f79cd1c5d0236aa2f9935b9b21
diff --git a/sys-libs/bionic/bionic-8.1.0_p41.ebuild b/sys-libs/bionic/bionic-8.1.0_p41.ebuild
new file mode 100644
index 0000000..ae92685
--- /dev/null
+++ b/sys-libs/bionic/bionic-8.1.0_p41.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit ninja-utils
+
+DESCRIPTION="Lightweight libc of Android."
+HOMEPAGE="https://android.googlesource.com/platform/bionic"
+KEYWORDS="~amd64"
+
+SM=( ${PN} build external/{safe-iop,libcxx{,abi},compiler-rt,libunwind{,_llvm},lzma,zlib,jemalloc} system/core )
+
+for m in ${SM[@]}; do
+ SRC_URI+="http://aosp.airelinux.org/platform/${m}/+archive/android-${PV/p/r}.tar.gz -> ${m##*/}-${PV}.tar.gz"$'\n'
+done
+SLOT=0
+
+LICENSE="Apache-2.0"
+
+DEPEND="dev-util/soong"
+
+src_unpack() {
+ for m in ${SM[@]}; do
+ mkdir -p ${P}/${m} || die
+ pushd ${P}/${m} > /dev/null || die
+ unpack ${m##*/}-${PV}.tar.gz
+ popd > /dev/null || die
+ done
+}
+
+src_prepare() {
+ default
+ # We are building a minimal bionic for toolchains. Ignore the
+ # advanced optional features like tests and debug tools.
+ rm -r ${PN}/{tests,tools,benchmarks,libc/malloc_debug} || die
+
+ cp "${EPREFIX}"/usr/share/soong/root.bp Android.bp || die
+ cat >> Android.bp <<EOF || die
+cc_defaults {
+ name: "llvm-defaults"
+}
+EOF
+ ln -s "${EPREFIX}"/usr/share/soong build || die
+
+ local core_keep=( base liblog debuggerd libziparchive libbacktrace libcutils demangle \
+ Android.bp include libutils libsystem libvndksupport )
+ mv system/core{,_delete} || die
+ mkdir system/core || die
+ for c in ${core_keep[@]}; do
+ mv system/core{_delete/${c},/} || die
+ done
+ rm -r system/core_delete || die
+
+ find "${WORKDIR}" -name Android.bp -exec sed -e '/cc_test.*{/,$d' \
+ -e "/\ssdk_version/d" \
+ -i {} \; || die
+ sed -e '/ANDROIDMK TRANSLATION ERROR/,$d' -i external/compiler-rt/lib/asan/Android.bp || die
+ sed -e '/llvm-headers/d' -i system/core/libbacktrace/Android.bp || die
+ mkdir out || die
+ rm ${PN}/libc/versioner-dependencies/common/clang-builtins || die
+}
+
+src_configure() {
+ soong_build -t -b out/ -d out/build.ninja.d -o out/build.ninja Android.bp || die
+}
+
+src_compile() {
+ eninja -f out/build.ninja -v
+}
diff --git a/sys-libs/bionic/metadata.xml b/sys-libs/bionic/metadata.xml
new file mode 100644
index 0000000..c080f1d
--- /dev/null
+++ b/sys-libs/bionic/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>heroxbd@gentoo.org</email>
+ <name>Benda Xu</name>
+ </maintainer>
+</pkgmetadata>