From: Luciogi <Luciogi@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] `999-collected-rdeps` includes both musl and glibc as runtime dep
Date: Sat, 19 Aug 2023 20:44:43 +0200 [thread overview]
Message-ID: <20230819184443.JsWESeVoaAaS9N_1tlWPTcwipz1DXT7K5B0Cun-8FVg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45667@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 5287 bytes --]
Closed issue by Luciogi on void-packages repository
https://github.com/void-linux/void-packages/issues/45667
Description:
I am trying to package android-studio
here is template file
```bash
# Template file for 'android-studio'
pkgname=android-studio
version=2022.3.1.18
revision=1
archs="x86_64"
hostmakedepends="tar"
depends="alsa-lib freetype glibc libXtst libXrender libglvnd busybox-core"
short_desc="Official Android IDE"
maintainer="Jordyn Carattini <onlinecloud1@gmail.com>"
license="Apache-2.0"
homepage="http://tools.android.com"
# changelog="https://developer.android.com/studio/releases/index.html"
distfiles="https://dl.google.com/dl/android/studio/ide-zips/${version}/android-studio-${version}-linux.tar.gz"
checksum=24215e1324a6ac911810b2cc1afb2d735cf745dfbc06918a42b8d6fbc6bf7433
repository=nonfree
restricted=yes
python_version=3
nopie=yes
nostrip=yes
noshlibprovides=yes
# These files are not run or loaded on the host thus skip scanning their runtime deps
skiprdeps="/opt/android-studio/plugins/android/resources/perfetto/x86_64/traced_probes
/opt/android-studio/plugins/android/resources/perfetto/x86_64/perfetto
/opt/android-studio/plugins/android/resources/perfetto/x86_64/traced
/opt/android-studio/plugins/android/resources/perfetto/x86_64/libperfetto.so
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/traced_probes
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/perfetto
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/traced
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/libperfetto.so
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/traced_probes
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/perfetto
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/traced
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/libperfetto.so
/opt/android-studio/plugins/android/resources/perfetto/x86/traced_probes
/opt/android-studio/plugins/android/resources/perfetto/x86/perfetto
/opt/android-studio/plugins/android/resources/perfetto/x86/traced
/opt/android-studio/plugins/android/resources/perfetto/x86/libperfetto.so
/opt/android-studio/plugins/android/resources/simpleperf/armeabi-v7a/simpleperf
/opt/android-studio/plugins/android/resources/simpleperf/x86/simpleperf
/opt/android-studio/plugins/android/resources/simpleperf/x86_64/simpleperf
/opt/android-studio/plugins/android/resources/simpleperf/arm64-v8a/simpleperf
/opt/android-studio/plugins/android/resources/installer/x86/installer
/opt/android-studio/plugins/android/resources/installer/x86_64/installer
/opt/android-studio/plugins/android/resources/installer/arm64-v8a/installer
/opt/android-studio/plugins/android/resources/installer/test-installer
/opt/android-studio/plugins/android/resources/installer/armeabi-v7a/installer
/opt/android-studio/plugins/android/resources/transport/native/agent/arm64-v8a/libjvmtiagent.so
/opt/android-studio/plugins/android/resources/transport/native/agent/armeabi-v7a/libjvmtiagent.so
/opt/android-studio/plugins/android/resources/transport/native/agent/x86/libjvmtiagent.so
/opt/android-studio/plugins/android/resources/transport/native/agent/x86_64/libjvmtiagent.so
/opt/android-studio/plugins/android/resources/transport/armeabi-v7a/transport
/opt/android-studio/plugins/android/resources/transport/x86/transport
/opt/android-studio/plugins/android/resources/transport/arm64-v8a/transport
/opt/android-studio/plugins/android/lib/libwebp_jni.so
/opt/android-studio/plugins/android/lib/libwebp_jni64.so"
do_install() {
vmkdir opt/${pkgname}
vcopy bin opt/${pkgname}/
vcopy lib opt/${pkgname}/
vcopy jbr opt/${pkgname}/
vcopy plugins opt/${pkgname}/
vcopy build.txt opt/${pkgname}/ # read as IDE version information
vcopy product-info.json opt/${pkgname}/
vmkdir usr/bin
ln -s /opt/android-studio/bin/studio.sh ${DESTDIR}/usr/bin/android-studio
# The version of host-side simpleperf bundled with Android Studio (as of 3.4.2) requires
# libncurses.so.5, which is not provided by Void Linux. However, as host-side simpleperf
# parsing is a fairly recent addition, we can just disable it...
rm -r ${DESTDIR}/opt/android-studio/plugins/android/resources/simpleperf/linux-x86_64
echo "-Dprofiler.cpu.simpleperf.host=false" >> ${DESTDIR}/opt/android-studio/bin/studio.vmoptions
echo "-Dprofiler.cpu.simpleperf.host=false" >> ${DESTDIR}/opt/android-studio/bin/studio64.vmoptions
vinstall "${FILESDIR}/android-studio.desktop" 644 usr/share/applications/
chmod -R ugo+rX ${DESTDIR}/opt
}
```
This is output from hook
```
=> android-studio-2022.3.1.18_1: running pre-pkg hook: 999-collected-rdeps ...
alsa-lib>=1.0.20_1 busybox-core>=0 bzip2>=1.0.5_1 freetype>=2.12.1_1 glib>=2.76.0_1 glibc>=2.36_1 libX11>=1.2_1
libXext>=1.0.5_1 libXi>=1.2.1_1 libXrender>=0.9.4_1 libXtst>=1.0.3_1 libcxx>=3.4_1 libedit>=20130712.3.1_1 libgcc>=4.4.0_1
libstdc++>=4.4.0_1 libxml2>=2.7.0_1 musl>=1.1.24_7 ncurses-libs>=6.0_1 openjdk8-jre>=8u20_1 zlib>=1.2.3_1
```
auto generated deps contain some dependencies which are not useful
is this possible to overwrite auto generated runtime dependencies ?
prev parent reply other threads:[~2023-08-19 18:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-19 4:35 [ISSUE] " Luciogi
2023-08-19 6:39 ` classabbyamp
2023-08-19 7:39 ` Luciogi
2023-08-19 8:00 ` classabbyamp
2023-08-19 8:10 ` Luciogi
2023-08-19 8:10 ` Luciogi
2023-08-19 8:13 ` Luciogi
2023-08-19 8:14 ` classabbyamp
2023-08-19 8:29 ` Luciogi
2023-08-19 18:44 ` Luciogi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230819184443.JsWESeVoaAaS9N_1tlWPTcwipz1DXT7K5B0Cun-8FVg@z \
--to=luciogi@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).