SDRausty / TermuxArch

You can use setupTermuxArch.bash 📲 to install Arch Linux in Amazon, Android, Chromebook and Windows. https://sdrausty.github.io/TermuxArch/docs/install
https://sdrausty.github.io/TermuxArch/
Other
1.41k stars 162 forks source link

command makefakeroottcp worked well #251

Closed SDRausty closed 4 years ago

SDRausty commented 4 years ago

I managed to fix addauser when run from a user account. The code cd && (git clone https://aur.archlinux.org/fakeroot-tcp.git && cd fakeroot-tcp && sed -i 's/ patch/ sudo patch/g' PKGBUILD && makepkg -irs && libtool --finish /usr/lib/libfakeroot) || printf "%s\\\\n" "Continuing to build and install fakeroot-tcp: " && cd fakeroot-tcp && sed -i 's/ patch/ sudo patch/g' PKGBUILD && makepkg -is now fails too. This affects the makefakeroottcp command that is created with function _ADDmakefakeroottcp_

Needless to say, commands such as yay android studio are not that easily accessible anymore. Your help is welcome in resolving this newly arisen error that has spun off of resolving this issue.

_Originally posted by @SDRausty in https://github.com/SDRausty/TermuxArch/issues/249#issuecomment-687662051

SDRausty commented 4 years ago

Numerous iterations, and at that nuance iterations requiring time consuming testing have given positive results. This commit and the preceding few have helped to make script makefakeroottcp and more importantly script makeyay functional again once more.

SDRausty commented 4 years ago
==> Installing package yay with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) yay-10.0.4-1

Total Installed Size:  6.04 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                     [####################] 100%
(1/1) checking package integrity                   [####################] 100%
(1/1) loading package files                        [####################] 100%
(1/1) checking for file conflicts                  [####################] 100%
:: Processing package changes...
(1/1) installing yay                               [####################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

Paths that can be followed after building 'yay' are 'yay cmatrix' which builds matrix screensavers. The commands 'yay pikaur|pikaur-git|tpac' build more aur installers which can also be used to download aur repositories and build packages like with 'yay' in your smartphone, tablet, wearable and more... Did you know that 'android-studio' is available with the command 'yay android'?

If you have trouble importing keys, this command 'gpg --keyserver keyserver.ubuntu.com --recv-keys 71A1D0EFCFEB6281FD0437C71A1D0EFCFEB6281F' might help.  Change the number to the number of the key being imported.
Building and installing yay: DONE 🏁
makeyay  2.0.503: DONE 🏁
[user18:24~]$ yay cmatrix
5 aur/libcmatrix 3.11.0-3 (+1 0.00)
    A library designed for numerical studies of problems in NMR
4 aur/cmatrix-git 1.2.r45.g70be5c3-1 (+1 0.00)
    A curses-based scrolling 'Matrix'-like screen
3 aur/tmatrix-git 1.1.r13.gf192137-1 (+4 0.01)
    A cmatrix-like replica of the digital rain from the Matrix
2 aur/ncmatrix 1.0-1 (+15 0.00)
    A network version of cmatrix
1 community/cmatrix 2.0-2 (30.5 KiB 90.2 KiB)
    A curses-based scrolling 'Matrix'-like screen
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 2
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  ncmatrix-1.0-1

:: Downloaded PKGBUILD (1/1): ncmatrix
  1 ncmatrix                         (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
SDRausty commented 4 years ago

This is fixed once more with today's commits on 20200906:

a catch 22 situation

It still is; But the most difficult hurdle seems overcome! However...

Originally posted by @SDRausty in https://github.com/SDRausty/TermuxArch/issues/249#issuecomment-687791616

This is quite an interesting issue @damionx7 and you might not see this clearly from your perspective. There is quite a bit of analogy with the saying "What came first the chicken or the egg?" and this issue.

a) you want to install packages before you can use them b) git is one of the first packages used; Correct? c) programs that build packages like git, where do these fit in the chicken and the egg, what came first analogy?

Here's the outcome. I know it can be improved, but at least we have something that works for everyone. To be able to use git without errors, you will want to login with a new option.

2) create a new type of user account that has this option. One of the drawbacks I see here is how is the user going to know which one to use.

This solution has been chosen because it was easiest implement and is being tested at this moment. It would not be good for our users to lose the newly acquired ability of building Android Studio easily with the freshly working command yay. For the task you are trying to accomplish @damionx7 you will probably want to login with the new e prefix option:

[el[ogin] user|eu[ser] user [options]] Login as user [plus options]. Use 'addauser user' first to create this user and the user's home directory. This option is for working with programs that have already been installed, and for working with the 'git' command.

This is the option with option --link2symlink removed that was causing problems with git. If everything goes well your login will look startarch elogin @damionx7 something like this shortly. If you want to build packages and install packages, this is startarch login @damionx7 the option that should be used with startarch.

Originally posted by @SDRausty in https://github.com/SDRausty/TermuxArch/issues/249#issuecomment-687776243