gotty
gotty copied to clipboard
Does not compile on ArchLinux
Does not compile.
Package: https://aur.archlinux.org/packages/gotty
Build file: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=gotty
Output:
cd / ; pacaur -S gotty
:: Package gotty not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...
AUR Packages (1) gotty-1:1.0.1-1
:: Proceed with installation? [Y/n] y
:: Retrieving package(s)...
update complete: /home/gw/.cache/pacaur/gotty
:: gotty build files are up-to-date -- skipping
:: Checking gotty integrity...
==> Making package: gotty 1:1.0.1-1 (Thu Apr 1 16:02:36 2021)
==> Retrieving sources...
:: Preparing gotty...
==> Making package: gotty 1:1.0.1-1 (Thu Apr 1 16:02:36 2021)
==> WARNING: Skipping dependency checks.
==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
==> Sources are ready.
:: Building gotty package(s)...
==> Making package: gotty 1:1.0.1-1 (Thu Apr 1 16:02:37 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
go get: github.com/codegangsta/cli@none updating to
github.com/codegangsta/[email protected]: parsing go.mod:
module declares its path as: github.com/urfave/cli
but was required as: github.com/codegangsta/cli
==> ERROR: A failure occurred in build().
Aborting...
:: failed to build gotty package(s)
I also gave a shot trying to sketch Dockerfile
to make issue reproducible+just having Docker with it in case I would like to run it in Docker.
However I kind of had to stop at this point.
So, let me share what I got so far - maybe will be useful for someone to finish:
FROM archlinux:latest
RUN pacman -Syyu --noconfirm
RUN pacman -S --noconfirm git
RUN pacman -S --noconfirm vim screen
RUN pacman -S --noconfirm base-devel
RUN pacman -S --noconfirm go go-tools
RUN pacman -S --noconfirm wget aria2 mc cmatrix htop vim
RUN git clone https://aur.archlinux.org/pacaur.git
#RUN set -x ; mkdir /home/nobody && chown -v nobody:nobody /home/nobody && cd /home/nobody/ && sudo -u nobody git clone https://aur.archlinux.org/pacaur.git && cd pacaur/ && sudo -u nobody makepkg -si
# set up the packager user
RUN useradd --create-home packager
#COPY bashrc.sh /home/packager/.bashrc
#COPY packager-actions /etc/sudoers.d/
RUN pacman -S --noconfirm meson gtest gmock
#RUN pacman -S --noconfirm
USER packager
WORKDIR /home/packager/
RUN git clone https://aur.archlinux.org/pod2man.git
WORKDIR /home/packager/pod2man/
RUN makepkg -i --noconfirm
WORKDIR /home/packager/
RUN git clone https://aur.archlinux.org/auracle-git.git
WORKDIR /home/packager/auracle-git/
RUN makepkg -i --noconfirm
WORKDIR /home/packager/
RUN git clone https://aur.archlinux.org/pacaur.git
WORKDIR /home/packager/pacaur/
RUN makepkg -i --noconfirm
WORKDIR /home/packager/
RUN pacaur -S --noconfirm gotty
USER root
EXPOSE 8080
EXPOSE 8123
Try my fork at https://github.com/sorenisanerd/gotty
it compiles from source code and runs just fine on Ubuntu ... say 20.04
git clone [email protected]:yudai/gotty.git
cd gotty
make
./gotty -w vi ~/supercool
this assumes you have go installed
go version
go version go1.16 linux/amd64
uname -a
Linux hofn 5.8.0-32-generic #34~20.04.1-Ubuntu SMP Wed Dec 2 21:07:47 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
As you see in provided Dockerfile
I install go in line RUN pacman -S --noconfirm go go-tools
.
Just put above Dockerfile
in some directory and try with docker :
$ docker build .
I am concerned that there is sth wrong with packaging: https://aur.archlinux.org/packages/gotty or just you made your build to much ubuntu specific.