-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Succesfully Modified Stock 'makepkg'... #38
Comments
Here's the diff from the current (as of this posting) stock 'makepkg' to a version that'll work on Android: |
Thank you for sharing your success with us! Can you outline a few steps how to use it with aur? |
The basic scenario: Then run this command: Next, copy the updated 'makepkg' over the original 'makepkg' by running this command: Now you're ready to use aur packages... For example, do these commands to install and run 'aur/cylon' while starting in the 'home' directory: |
Your mileage may vary based on the Android device used. I wasn't able to build 'cylon' on one device due to a problem with '/dev' and another device won't allow the direct patching of '/bin/makepkg' (which is why I gave the patching steps listed above). |
Also, the '/dev' problem relates to how redirection is handled in the shell: In this case, these are the 'makepkg' errors when running on certain devices: |
how can you install arch linux desktop on chromebook, i successful installed the arch linux environment on my chromebook but the problem is i dont know how to install desktop environment |
@Raywarioba your question is off topic for this thread unless you are interested in building X and similar on device. "How to use Xorg in TermuxArch?" has information regarding your question. Post more information about Linux desktop topic at #27, or open a new issue. "How to use Xorg in TermuxArch?" #27 can be reopened at any time when requested. Posting information output from |
This TermuxArch v0.9 release adds user functionality to Termux for Arch Linux PRoot users:
|
@markfelt this TermuxArch v1.1 release adds the patch. However:
This error happens on all devices tested, including aarch64 and armv7. |
That's because you're using an old(?) Kernel (or Bash) which doesn't do
shell file redirection correctly. If you look at the lines mentioned in the
error(s), you'll notice at the location of one of them, the output of a
subshell command is being redirected directly into the input of a while
loop (I'm not sure (at this moment) how to pipe (or otherwise get) the
command results into the while loop.) Try using a later version of 64bit
Android to test, my 7.0 device works, my 6.0? device shows the same error
mentioned.
…On Fri, Mar 9, 2018, 6:17 PM S D Rausty ***@***.***> wrote:
@markfelt <https://github.com/markfelt> this TermuxArch v1.1
<https://github.com/sdrausty/TermuxArch/releases/tag/1.1> release adds the
patch
<https://github.com/sdrausty/TermuxArch/blob/master/necessaryfunctions.sh#L203&L205>.
However:
makepkg -i
/usr/share/makepkg/util/pkgbuild.sh: line 69: /dev/fd/62: No such file or directory
.
.
.
/usr/share/makepkg/util/pkgbuild.sh: line 69: /dev/fd/62: No such file or directory
==> Making package: cylon 5.2-4 (Fri Mar 9 12:49:44 UTC 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
/usr/share/makepkg/source/file.sh: line 44: /dev/fd/62: No such file or directory
This error happens on all devices tested, including aarch64 and armv7.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD9Rxr7eny29X0C99EFAMeYB3pWsqwf6ks5tczfMgaJpZM4Rt3w4>
.
|
@markfelt as the patch does not work on Android 6 the patching process has been dropped at present.
This patch was applied in the latest versions of Arch Linux in armv7 and aarch64. How could this be an old version issue? Making aur repositories accessible is important. Do you have any idea why it works on Android 7, but not on Android 6? This question, "Everthing Goes Well, Except for These Three Errors #51," might be related since both threads have a common denominator, /dev errors. Why does |
@markfelt after testing in Android 7: fakeroot error. There doesn't appear to be anything |
Device isn't rooted, which is why I'm using TermuxArch. System Info is attached: |
Awesome; compiling as root is a no no. Compiling on a rooted device is a no^no no^no; unless seeing the device fail, and how it failed is the goal. Can this be one of the reasons
Cannot open the provided link; @markfelt can you repost it into this thread. This information is important for other projects like au and buildAPKs. It would be great to automate these projects like this one. The information that you provide should be helpful in achieving this sought goal.
"A few questions about Arch Linux in Termux PRoot #59," has a question that you might find easy to answer. |
Begin setupTermuxArch debug information. Wed Mar 14 08:02:30 PDT 2018 cat /proc/cpuinfo results: Processor : AArch64 Processor rev 4 (aarch64) processor : 1 processor : 2 processor : 3 processor : 4 processor : 5 processor : 6 processor : 7 Hardware : Qualcomm Technologies, Inc MSM8998 dpkg --print-architecture result: aarch64 getprop ro.product.cpu.abi result: arm64-v8a getprop ro.product.device result: dream2qltesq Download directory information results. lrwxrwxrwx 1 u0_a335 u0_a335 28 Jan 15 05:56 /data/data/com.termux/files/home/storage/downloads -> /storage/emulated/0/Download uname -mo results: aarch64 Android End setupTermuxArch debug information. Post this information along with information regarding your issue at https://github.com/sdrausty/TermuxArch/issues. This debugging information is found in /data/data/com.termux/files/home/setupTermuxArchDebug.log. If you think screenshots will help in resolving this matter better, include them in your post please. |
To solve the
(Reference: termux/termux-packages@ab41f5b) On an x86_64 machine, one can use qemu-arm-staticAUR to run an ALARM chroot for re-compiling the package (the build process can be quite slow, and using distcc to redirect the compilation to the phone may help speed up a bit). |
This is now resolved with the latest commits. The command |
This updated diff is current (as of this posting) and was tested on armv7h Android: |
The patch is now included in the root directory of the project, -==> Starting prepare()...
-patching file libfakeroot.c
-patch: setting attribute security.selinux for security.selinux: Permission denied
-==> ERROR: A failure occurred in prepare().
- Aborting... Thank you to those who have contributed. More contributions are welcome. EDIT: +==> Leaving fakeroot environment.
+==> Finished making: fakeroot-tcp 1.24-2 (Sun 19 Jul 2020 05:36:07 AM EDT) |
Using |
I can't thank you enough! I'm really happy that I'm able to install packages from the aur. |
The aur repository is now partly automated with functions |
@petkar you are very welcome. Thank you for contributing to this project. |
Why my pacman doesn't install the cower package? |
...To work on stock TermuxArch. I have built and installed the 'aur/cylon' package on a Samsung S8+.
I basically commented out lines so that 'su' instead of 'sudo' is used, and 'fakeroot' isn't used.
The text was updated successfully, but these errors were encountered: