Package Base Details: teleport

Git Clone URL: https://aur.archlinux.org/teleport.git (read-only, click to copy)
Keywords: ssh
Submitter: mdeboer
Maintainer: mdeboer (fuhry)
Last Packager: fuhry
Votes: 5
Popularity: 0.000112
First Submitted: 2021-03-21 18:58 (UTC)
Last Updated: 2024-04-16 14:54 (UTC)

Pinned Comments

Latest Comments

1 2 Next › Last »

Factorial commented on 2023-12-19 12:24 (UTC) (edited on 2023-12-19 15:43 (UTC) by Factorial)

I've had an error when upgrading my system with pacman -Syu

installing libbpf (1.3.0-1) breaks dependency 'libbpf=1.2.2-1' required by libbpf-static

I followed advice from here: https://www.reddit.com/r/archlinux/comments/157kw84/update_error_trying_to_understand_what_happened/ that is, I removed orphan packages. This removed libbpf-static. Then I performed the pacman -Syu normally. Now I can't upgrade Teleport, because I'm getting the following error:

[gabor@ggwork ~]$ yay -Syu --devel --aur
:: Searching AUR for updates...
:: Checking development packages...
 -> No AUR package found for libbpf=1.2.2-1
:: 4 dependencies will also be installed for this operation.
   extra/gendesk       -> 1.0.9-3
   (make dependency of dropbox)
   extra/go            -> 2:1.21.5-1
   (make dependency of teleport, teleport-client)
   extra/yarn          -> 1.22.21-1
   (make dependency of teleport, teleport-client)
   aur/libbpf-static   -> 1.2.2-1
   (make dependency of teleport, teleport-client)

:: 5 packages to upgrade/install.
5  aur/dropbox            175.4.5569-1 -> 186.4.6207-1
4  aur/dropbox-cli        2020.03.04-6 -> 2023.09.06-1
3  aur/jetbrains-toolbox  1.25.12569-1 -> 2.1.2.18853-1
2  aur/teleport           14.1.3-1     -> 14.2.2-1
1  aur/teleport-client    14.1.3-1     -> 14.2.2-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 3 4
 -> could not find all required packages: libbpf =1.2.2-1

Also, Teleport has stopped working:

[gabor@ggwork ~]$ tsh db connect <redacted>
psql: error: connection to server at "localhost" (::1), port 41807 failed: Connection refused
        Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" (127.0.0.1), port 41807 failed: SSL SYSCALL error: Success
free(): invalid pointer
ERROR: signal: aborted (core dumped)

Could you please advise me on how to resolve this situation?

Edit: In the meantime, I managed to upgrade Teleport by locally changing the pkgver of libbpf-static to 1.3.0, and then manually installing first libbpf-static, and then teleport. However, the above free(): invalid pointer error is still happening.

fuhry commented on 2023-03-03 16:55 (UTC)

The 12.0.4 update today adds some new build dependencies:

  • yarn was an undeclared dependency
  • libbpf-static is a new AUR package I've published which installs only the static library version of libbpf. This will track the version of libbpf in core and is designed to be installed alongside it.

fuhry commented on 2023-01-23 16:36 (UTC)

Hey, I'm now the co-maintainer of this package, and have pushed a few updates over the weekend:

  • The teleport and teleport-client packages no longer replace each other. The teleport package includes only the server portion, while teleport-client provides tsh and tctl.
  • There's a small patch included to upgrade libbpfgo to 0.4.5, necessary for compatibility with libbpf-1.0.1 which presently ships with Arch.
  • There's an update_version.sh script which uses curl and jq to determine the latest Teleport release and webasssets commit through GitHub's API, modifies the PKGBUILD accordingly, re-generates checksums, and updates .SRCINFO. This means it is much less effort for Maarten or myself to follow along with new releases.

I started porting the first two items above to teleport-git and teleport-client-git but encountered some build issues. I will push once I can verify that it's building and running properly.

Please also note that at present, I don't have a test environment for the server package, so if that is broken in any capacity I would certainly appreciate notice of such.

mdeboer commented on 2022-06-04 12:00 (UTC)

@joshuarubin I have seen other requests for providing static libs for libbpf been closed as "not a bug" with a simple statement that Arch does not provide static libs.

If one makes a package providing a statically linked version of libbpf, we could build it with support for bpf. Otherwise, it's a no go and you have to remove libbpf before even being able to build it at this point.

If you do require libbpf support, please just use the binary version teleport-bin.

joshuarubin commented on 2022-05-16 19:28 (UTC)

Package will be able to be built with bpf once https://bugs.archlinux.org/task/74774 lands.

mdeboer commented on 2021-12-05 19:40 (UTC) (edited on 2021-12-05 19:41 (UTC) by mdeboer)

@the_10 Ah shit, I can reproduce this now. I thought they got rid of libbpf (or fixed it somehow) but it turned out, I didn't have libbpf installed.

I worked around this in 7.* with a patch to remove libbpf support (same as not having it installed now). I tried my best to build one with libbpf by patching

CGO_LDFLAGS="-Wl,-Bstatic -lbpf -lelf -lz -Wl,-Bdynamic"

to

CGO_LDFLAGS="-Wl,-Bstatic -lelf -lz -Wl,-Bdynamic -lbpf"

But I am not to happy about that.

I will see if there is an open issue on their GitHub or if I can open one, see if they have any ideas.

As for now, please us the binary version of this package.

I did fix the cargo warning though, like with Go, moving the cargo home directory to the src directory.

the_10 commented on 2021-12-04 13:07 (UTC)

Fails to build with

    Updating crates.io index
     Ignored package `cbindgen v0.20.0` is already installed, use --force to override
cbindgen --quiet --crate rdp-client --output lib/srv/desktop/rdp/rdpclient/librdprs.h --lang c lib/srv/desktop/rdp/rdpclient/
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 CGO_LDFLAGS="-Wl,-Bstatic -lbpf -lelf -lz -Wl,-Bdynamic" go build -tags "pam  bpf webassets_embed desktop_access_rdp" -o build/teleport -buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw -ldflags '-w -s' ./tool/teleport
go: downloading github.com/aquasecurity/libbpfgo v0.1.0
# runtime/cgo
/bin/ld: cannot find -lbpf

mdeboer commented on 2021-10-13 01:04 (UTC)

Updated to 7.3.0 but still without BPF. The provided Makefile tries to link it statically but that doesn´t work. Linking it dynamically works but the resulting teleport binary contains full absolute paths to the $srcdir, even though the trimpath build option is used.

Any help in getting BPF support without references to the $srcdir is welcome!

Again for now, if you need BPF support, use the teleport-bin package. The whole BPF thing does not apply to the teleport-client package as the client binaries do not reference BPF.