You are not logged in.

#1 2023-06-28 06:41:39

solskogen
Member
From: Norway
Registered: 2005-03-06
Posts: 135

Trouble with AUR git packages inside a lxc container

For some very strange reason, if a PKGBUILD contains for example:

source=('gdb::git+https://sourceware.org/git/binutils-gdb.git')

(Notice the gdb:: part) makepkg fails on the git checkout like this:

Cloning into bare repository '/home/sources/gdb'...
error: RPC failed; HTTP 408 curl 22 The requested URL returned error: 408
fatal: expected 'packfile'
==> ERROR: Failure while downloading gdb git repo
    Aborting...

If I remove the gdb:: part I can checkout, no problem.
Checking it out manually like this:

git clone https://sourceware.org/git/binutils-gdb.git gdb

Also works, no problem.
This does not fail on Arch Linux when running it on bare metal, it only happens in my lxc container (host is running Ubuntu 23.04)

Help? smile

Offline

#2 2023-06-28 10:16:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,643

Re: Trouble with AUR git packages inside a lxc container

What's in makepkg.conf?

Offline

#3 2023-06-28 10:23:37

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,744
Website

Re: Trouble with AUR git packages inside a lxc container

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2023-06-28 11:05:25

solskogen
Member
From: Norway
Registered: 2005-03-06
Posts: 135

Re: Trouble with AUR git packages inside a lxc container

This is probably not a AUR issue, but either a lxc and/or pacman/makepkg issue. It just happens that I've got this problem with a PKGBUILD from AUR. Any PKGBUILD that uses the "folder::git+<url>" exposes this.
I've just tried now with the default makepkg.conf and the same thing happens. The only change I've got are SRCDEST and BUILDDIR.

Offline

#5 2023-06-28 11:11:15

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,612

Re: Trouble with AUR git packages inside a lxc container

What are the curl & git versions used in the container ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2023-06-28 11:21:25

solskogen
Member
From: Norway
Registered: 2005-03-06
Posts: 135

Re: Trouble with AUR git packages inside a lxc container

[solskogen@archlinux-builder gdb-git]$ git --version
git version 2.41.0
[solskogen@archlinux-builder gdb-git]$ curl --version
curl 8.1.2 (x86_64-pc-linux-gnu) libcurl/8.1.2 OpenSSL/3.1.1 zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.11.0 nghttp2/1.54.0
Release-Date: 2023-05-30
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

The container is fully up to date.

Offline

Board footer

Powered by FluxBB