oceanbase / oceanbase/seekdb

Android build prints 'running on Unknown' with --version flag

Open
#365 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dima
Dominant language
C++
Stars
2.9k
Forks
339
Avg merge
1d 19h
Merged PRs (30d)
52

Description

Description

When executing the --version command on a package built for Android, the output contains an invalid log line: "running on Unknown".

Steps to Reproduce

  1. Clone the repository: git clone -b master https://github.com/oceanbase/seekdb.git
  2. Build for Android: ./build.sh release --android --init
  3. Change to the build directory: cd build_android_release
  4. Build the seekdb target: make -j 20 seekdb
  5. Push the binary to a device: adb -s <device> push b...
  6. Execute the binary with the --version flag on the device.

Impact

The version output is cluttered with incorrect information, which is misleading for users and automated tooling checking the version.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with build.sh release --android --init, the build_android_release directory, and the seekdb target, then run the resulting binary with --version on an Android device. Trace the version-output entry point responsible for the "running on Unknown" line and verify that the completed output no longer contains it.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.