Project

General

Profile

Actions

Bug #17491

closed

`./configure' unsuccessful on Android NDK cross-build

Added by xtkoba (Tee KOBAYASHI) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
[ruby-core:101819]

Description

We have no such command as getprop in our Android NDK cross-build environment, and so ./configure says

checking whether it is Android... yes
checking for Android API version... ./configure: line 9108: getprop: command not found

and finally dies saying

configure: error: size_t is signed

Files

ruby-3.0.0-android-cross.patch (838 Bytes) ruby-3.0.0-android-cross.patch `./configure' to pass on Android NDK cross-build xtkoba (Tee KOBAYASHI), 12/31/2020 02:11 PM

Updated by mame (Yusuke Endoh) over 1 year ago

  • Status changed from Open to Feedback

Currently, Ruby does not support Android officially. A patch is welcome.

I'm experimentally maintaining a CI on Android/Termux (http://rubyci.s3.amazonaws.com/android29-x86_64/ruby-master/recent.html), and it is only a test environment for Ruby with Android. Currently, no CI for cross-compilation is maintained unfortunately.

Updated by xtkoba (Tee KOBAYASHI) over 1 year ago

Thanks for the comment.
A patch is attached to solve the problem.

Actions #3

Updated by mame (Yusuke Endoh) over 1 year ago

  • Status changed from Feedback to Closed

Applied in changeset git|449ef72cb97ae57e57c523d2252528f8eb7b9d3e.


configure.ac: Stop auto-detection of ANDROID_API when cross-compiling

A patch from Tee KOBAYASHI . [Bug #17491]

Updated by mame (Yusuke Endoh) over 1 year ago

I've committed your patch, thanks!

Actions

Also available in: Atom PDF