Coder Social home page Coder Social logo

green-green-avk / build-libarchive-minitar-android Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 1.36 MB

Build script and prebuilt binaries for Android for a very small command line tar/gz/bz2/xz unarchiver utility.

License: MIT License

Makefile 33.85% C 62.38% Shell 3.78%
android bz2 bzip2 gz-unarchiver-utility gzip tar unarchiver unarchiver-utility xz

build-libarchive-minitar-android's People

Contributors

green-green-avk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

build-libarchive-minitar-android's Issues

Script for linuxcontainers.org does not work for debian buster on Android 4.4

From green-green-avk/AnotherTerm#17


Hello,

I have a tablet with Android 4.4.2 that I want to use AnotherTerm on. AnotherTerm itself seems to run fine, but I have some issues with the install-linuxcontainers script. I followed the guide on here.

I tried to install the root filesystem for debian buster (I also tried debian bulseye, ubuntu, gentoo and those all fail with a similar error; alpine does work fine however).

The first issue was that the script failed on line 362 because the folder etc/profile.d did not exist. This is easily remedied by adding a mkdir -p etc/profile.d.

The second issue is that there seems to be a problem with unpacking the root filesystem. I get the error -25: 9: chdir() failure. After the error, the script continues, but the terminals into the root file system immediately stop after being started. With certain root file systems I get an additional error Pathname can't be converted from UTF-8 to current locale.

Any ideas on what is going wrong and how it could be fixed?

thanks,
Ruben


I tried AnotherTerm with the script on my phone that runs Android 8.1 and there the script runs just fine for debian. So it seems to be related to Android 4.4.2.

I was happy to find your project because it still supports KitKat, so thanks for that.

I'll try to debug the script a bit more.


After further testing, I see that the problem is caused by minitar. It gives errors on hardlinks and these errors seem in turn to cause a lot of data to go missing in the unpacked root file system. This is what causes the etc/profile.d folder to be missing and is likely also the reason that the chroot terminal is not working.


I tried to use a manipulated root file system without the hardlinks and that archive is working fine.

So something must be wrong when treating the hardlinks. For extra information, the unpacked root file system looks like the following when the hardlinks are still there:

linuxcontainers-debian-buster
\_ etc
\_ usr
      \_bin
          \_usr
               \_bin
               \_games
               \_include
               \_local
               \_src
\_var

So, in the root folder I only get etc, usr and var and something weird is going on with the usr folder nested inside usr/bin.

"Pathname can't be converted from UTF-8 to current locale." error

Hi,  I get the below when I run the script:

( S=repo-linuxcontainers.sh ; "$TERMSH" copy -f -fu "https://raw.githubusercontent.com/green-green-avk/AnotherTerm-scripts/master/$S" -tp . && chmod 755 $S && sh ./$S )
Actual name: linuxcontainers-ubuntu-focal

To uninstall: run `rm -rf "$DATA_DIR/proots/linuxcontainers-ubuntu-focal"'

Creating favorites...
Done.

Arch: aarch64
Variant:
Root FS: ubuntu focal

Source: https://images.linuxcontainers.org//images/ubuntu/focal/arm64/default/20211105_07:42//rootfs.tar.xz

Getting Linux root FS...
19.164 MiB / 88.895 MiB of https://images.linuxcontainers.org//images/ubuntu/focal/arm64/default/20211105_07:42//rootfs.tar.xzPathname can't be converted from UTF-8 to current locale.
19.531 MiB / 88.895 MiB of https://images.linuxcontainers.org//images/ubuntu/focal/arm64/default/20211105_07:42//rootfs.tar.xz
write failed: EPIPE (Broken pipe)
Possibly URL was changed: recheck on the site.
Setting up run script...
Configuring...
./install-linuxcontainers.sh[401]: can't create bin/termsh: No such file or directory
1|:/data/data/green_green_avk.anotherterm.redist $

Thanks!

Dimitri Vlahakis
e. @.***
c. +19174187640

On November 5, 2021 at 9:21 AM, SilasMo @.***) wrote:
After downloading the app from google play, i was blinded. Then i came and read the docs and was enlightened. But still i didnt get the point because im my head i had told my self that android 4.4.4 is not too old :D.
In the install-linuxcontainers.sh script, i had replaced us.images.linuxcontainers.org with images.linuxcontainers.org but still received the java net ssl error, so i had no option but to opt to another method.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub ( green-green-avk/AnotherTerm#21 (comment) ), or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AOYL7UX3JYHWY2Y4SQBMKQ3UKPK55ANCNFSM5HBLAMAA ).

Originally posted by @dvlahakis in green-green-avk/AnotherTerm#21 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.