[Android-tools-devel] Bug#1108350: android-libcutils-dev: libcutils.so should be in /usr/lib/x86_64-linux-gnu and not in .../android
Theodore Y. Ts'o
tytso at mit.edu
Thu Jun 26 15:50:44 BST 2025
Package: android-libcutils-dev
Version: 1:34.0.5-12
Severity: normal
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
I was trying to investigate what it would take to build e2fsdroid from
the e2fsprgs sources (since there has been some demand to ship e2fsdriod
as a separate Android package) and ione of the problems that I ran into
was that the linker could not find libcutils.so because it was in
/usr/lib/x86_64-linux-gnu/android/libcutils.so, and there is no way for
the linker to find the link library when -lcutils is specified.
I can work around the problem via:
% sudo ln -s android/libcutils.so /usr/lib/x86_64-linux-gnu
But (a) that won't work on a debian build machine, and (b) obviously
it needs to be different on different architectures. (The resulting
executable also won't find the library without my manually specifying an
rpath or hacking LD_LIBRARY_PATH, but I can deal with that somehow.)
(There is another issue which is that e2fsdroid needs the private header
files from libcutils's source package, but I have an inquiry with some
folks in the Android team about what's the right way to handle this.)
-- System Information:
Debian Release: 13.0
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64
Kernel: Linux 6.12.27-amd64 (SMP w/48 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages android-libcutils-dev depends on:
ii android-libbase-dev 1:34.0.5-12
ii android-libcutils 1:34.0.5-12
ii android-platform-system-core-headers 1:34.0.5-12
ii libbsd-dev 0.12.2-2
android-libcutils-dev recommends no packages.
android-libcutils-dev suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Bludgen-e2fsdroid-so-it-can-build-on-a-Debian-system.patch
Type: application/mbox
Size: 25545 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/android-tools-devel/attachments/20250626/45cd7937/attachment-0001.mbox>
More information about the Android-tools-devel
mailing list