Repository navigation
build: install libsoundpool.so, and load it from where it is installed - #416
Merged
Merged
Conversation
`meson install` installed the executable alone. libsoundpool.so, which ART loads for SoundPool, stayed in the build tree, and a4l found it only through LD_LIBRARY_PATH as set by tools/run-apk.sh. A packager installed it by hand and wrote a launcher to name its directory. - libsoundpool.so is installed to <libdir>/a4l. - a4l opens it there by path before the VM starts. A boot class's System.loadLibrary reaches the dynamic linker with the bare name, and the linker searches LD_LIBRARY_PATH as it was at exec; neither -Djava.library.path nor a later setenv is consulted. A library already open under that name is handed back. - --split binds that directory read-only into the app process. - Catch2 is a test dependency: it is no longer installed with a4l, and its own SelfTest is no longer built or run. A wayland-cxx-scanner built from the wrap still installs its headers; `meson install --skip-subprojects` leaves them out (README). Tested, x86-64, installed to a prefix, no ACL_ART_LIBPATH, the build tree's copy moved away: - split-audio (SoundPool) passes single-process and under --split: 112128 frames at the sink, none dropped. With the installed library removed it reports the library missing. - A WebView app runs on the installed executable: 564 frames in 22 s. - Suite on a fresh default build: 134 of 134 (one fewer than before: Catch2's SelfTest). No warning. - Plain install: bin/a4l, lib64/a4l/libsoundpool.so and 36 files of wayland-cxx-scanner; with --skip-subprojects, the first two. Signed-off-by: Joel Winarske <joel.winarske@linux.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
meson installinstalled the executable alone.libsoundpool.so, which ART loads forSoundPool, stayed in the build tree, and a4l found it only throughLD_LIBRARY_PATHas set bytools/run-apk.sh. A packager installed it by hand and wrote a launcher to name its directory.libsoundpool.sois installed to<libdir>/a4l.System.loadLibraryreaches the dynamic linker with the bare name, and the linker searchesLD_LIBRARY_PATHas it was at exec; neither-Djava.library.pathnor a latersetenvis consulted. A library already open under that name is handed back.--splitbinds that directory read-only into the app process.SelfTestis no longer built or run.A wayland-cxx-scanner built from the wrap still installs its headers.
meson install --skip-subprojectsleaves them out, and the README says so; a4l cannot switch that off from its side.Test status (x86-64)
Installed to a prefix, no
ACL_ART_LIBPATH, the build tree's copy of the library moved away.split-audio(SoundPool), single-process and--splitmeson installbin/a4l,lib64/a4l/libsoundpool.so, 36 wayland-cxx-scanner filesmeson install --skip-subprojectsThe suite has one test fewer than before: Catch2's
SelfTest.Not tested: arm64, and an install under
/usr.