art-standalone: 0-unstable-2025-07-09 -> 0-unstable-2025-09-03

+9 -78
-15
pkgs/by-name/an/android-translation-layer/configure-art-path.patch
··· 1 - diff --git a/meson.build b/meson.build 2 - index ad776069..ba8027c2 100644 3 - --- a/meson.build 4 - +++ b/meson.build 5 - @@ -16,8 +16,8 @@ libdl_bio_dep = [ 6 - libc_bio_dep = [ 7 - cc.find_library('c_bio') 8 - ] 9 - -if fs.is_file('/usr' / get_option('libdir') / 'java/core-all_classes.jar') 10 - - bootclasspath_dir = '/usr' / get_option('libdir') / 'java' 11 - +if fs.is_file('@artStandalonePackageDir@' / get_option('libdir') / 'java/core-all_classes.jar') 12 - + bootclasspath_dir = '@artStandalonePackageDir@' / get_option('libdir') / 'java' 13 - elif fs.is_file('/usr/local' / get_option('libdir') / 'java/core-all_classes.jar') 14 - bootclasspath_dir = '/usr/local' / get_option('libdir') / 'java' 15 - elif fs.is_file(get_option('prefix') / get_option('libdir') / 'java/core-all_classes.jar')
+3 -9
pkgs/by-name/an/android-translation-layer/package.nix
··· 30 30 31 31 stdenv.mkDerivation { 32 32 pname = "android-translation-layer"; 33 - version = "0-unstable-2025-09-03"; 33 + version = "0-unstable-2025-09-14"; 34 34 35 35 src = fetchFromGitLab { 36 36 owner = "android_translation_layer"; 37 37 repo = "android_translation_layer"; 38 - rev = "cf93a172b9238e6612b778c7ab76013acebf0ef8"; 39 - hash = "sha256-nnwefW8802ctJRY0aqL+D6MK713eoiQ5K6oVnm5fUOQ="; 38 + rev = "9de91586994af5078decda17db92ce50c5673951"; 39 + hash = "sha256-iRjP++WzLsV7oDGNdF3m9JJJS7zLrG5W46U3h39H5uk="; 40 40 }; 41 41 42 42 patches = [ 43 - # meson: use pkg-config from art-standalone instead of manual library search 44 - # See: https://gitlab.com/android_translation_layer/android_translation_layer/-/merge_requests/164 45 - (replaceVars ./configure-art-path.patch { 46 - artStandalonePackageDir = "${art-standalone}"; 47 - }) 48 - 49 43 # Required gio-unix dependency is missing in meson.build 50 44 ./add-gio-unix-dep.patch 51 45
+6 -9
pkgs/by-name/ar/art-standalone/package.nix
··· 23 23 }: 24 24 stdenv.mkDerivation (finalAttrs: { 25 25 pname = "art-standalone"; 26 - version = "0-unstable-2025-07-09"; 26 + version = "0-unstable-2025-09-03"; 27 27 28 28 src = fetchFromGitLab { 29 29 owner = "android_translation_layer"; 30 30 repo = "art_standalone"; 31 - rev = "1eee3dce3ba6f324bb7a32a170b2da14889af39d"; 32 - hash = "sha256-OAO0k/LkQ+MKqR4HkFXD18LSXQZNPogjjRot4UVoE5A="; 31 + rev = "10d60509c9073791f9eca1d2b8443d40a40edc05"; 32 + hash = "sha256-Xg6s58jymma1sNb6P7pwWFpYq1O6GoynrgPeLZRD+rI="; 33 33 }; 34 34 35 35 patches = [ 36 36 # Do not hardocde addr2line binary path 37 37 ./no-hardcode-path-addr2line.patch 38 - 39 - # Add support for pkg-config 40 - # See: https://gitlab.com/android_translation_layer/art_standalone/-/merge_requests/37 41 - ./pkg-config-support.patch 42 38 ]; 43 39 44 40 postPatch = '' 45 41 chmod +x dalvik/dx/etc/{dx,dexmerger} 46 42 patchShebangs . 47 - sed -i "s|/bin/bash|${runtimeShell}|" build/core/config.mk build/core/main.mk 43 + substituteInPlace build/core/config.mk build/core/main.mk \ 44 + --replace-fail "/bin/bash" "${runtimeShell}" 48 45 ''; 49 46 50 47 enableParallelBuilding = true; ··· 102 99 homepage = "https://gitlab.com/android_translation_layer/art_standalone"; 103 100 # No license specified yet 104 101 license = lib.licenses.unfree; 105 - platforms = lib.platforms.all; 102 + platforms = [ "x86_64-linux" ]; 106 103 maintainers = with lib.maintainers; [ onny ]; 107 104 }; 108 105 })
-45
pkgs/by-name/ar/art-standalone/pkg-config-support.patch
··· 1 - diff --git a/Makefile b/Makefile 2 - index 42df5b18..3321adae 100644 3 - --- a/Makefile 4 - +++ b/Makefile 5 - @@ -32,6 +32,8 @@ ____dalvikvm_bin_64 := $(____TOPDIR)/out/host/linux-x86/bin/dalvikvm64 6 - __RPATH_BIN := \$${ORIGIN}/../$(____LIBDIR)/art/:\$${ORIGIN}/../$(____LIBDIR)/java/dex/art/natives 7 - __RPATH_LIB := \$${ORIGIN} 8 - 9 - +__VERSION ?= 0.0.0 10 - + 11 - # Jack compiler was google's first attempt at a solution for desugaring Java 8 and newer bytecode into bytecode compatible with older dex file formats. 12 - # Thankfully, google realized that this was a bad idea, and in a typical google fashion, axed the project. 13 - # They experimented with other approaches, but currently (2022) the way to do this is to use d8/r8 instead of dx; 14 - @@ -112,6 +114,15 @@ install: 15 - # our stable C API for libandroidfw, used by ATL 16 - install -Dt $(____INSTALL_INCLUDEDIR)/androidfw $(____TOPDIR)/libandroidfw/include/androidfw/androidfw_c_api.h 17 - 18 - + # install pkg-config file 19 - + mkdir -p $(____INSTALL_LIBDIR)/pkgconfig 20 - + sed -e 's|@prefix@|$(____PREFIX)|g' \ 21 - + -e 's|@libdir@|$(____LIBDIR)|g' \ 22 - + -e 's|@includedir@|$(____INCLUDEDIR)|g' \ 23 - + -e 's|@version@|$(__VERSION)|g' \ 24 - + art-standalone.pc.in > $(____INSTALL_LIBDIR)/pkgconfig/art-standalone.pc 25 - + 26 - + 27 - # TODO: figure out sharing dependencies and have this in a separate repo 28 - install_adbd: 29 - install -Dt $(____INSTALL_BINDIR) $(____TOPDIR)/out/host/linux-x86/bin/adbd 30 - diff --git a/art-standalone.pc.in b/art-standalone.pc.in 31 - new file mode 100644 32 - index 00000000..210cd031 33 - --- /dev/null 34 - +++ b/art-standalone.pc.in 35 - @@ -0,0 +1,10 @@ 36 - +prefix=@prefix@ 37 - +exec_prefix=${prefix} 38 - +libdir=${prefix}/@libdir@ 39 - +includedir=${prefix}/@includedir@ 40 - + 41 - +Name: art-standalone 42 - +Description: Android ART runtime (standalone build, minimal ATL deps) 43 - +Version: @version@ 44 - +Libs: -L${libdir}/art -lart -lnativebridge -landroidfw 45 - +Cflags: -I${includedir} -I${includedir}/androidfw