Package Details: lxc-git lxc.5.0.0.130-1

Git Clone URL: https://aur.archlinux.org/lxc-git.git (read-only, click to copy)
Package Base: lxc-git
Description: Linux Containers git version
Upstream URL: https://linuxcontainers.org
Licenses: LGPL
Conflicts: lxc, lxc-git
Provides: lxc
Submitter: aya
Maintainer: graysky
Last Packager: graysky
Votes: 11
Popularity: 0.000041
First Submitted: 2015-08-15 16:29 (UTC)
Last Updated: 2023-01-15 12:58 (UTC)

Dependencies (18)

Required by (19)

Sources (4)

Latest Comments

1 2 3 Next › Last »

Juzz commented on 2022-09-19 22:47 (UTC)

@graysky thanks that worked.

graysky commented on 2022-08-20 20:47 (UTC)

@juzz - Delete your source dir and try again. Builds fine here.

Juzz commented on 2022-08-20 20:06 (UTC)

fails on creating working copy:

-> Creating working copy of lxc git repo... error: object directory /home/veggerby/Downloads/packages/extracted/lxc-git/lxc/objects does not exist; check .git/objects/info/alternates remote: Enumerating objects: 2858, done. remote: Counting objects: 100% (2858/2858), done. remote: Compressing objects: 100% (1076/1076), done. error: object directory /home/veggerby/Downloads/packages/extracted/lxc-git/lxc/objects does not exist; check .git/objects/info/alternates remote: Total 2575 (delta 1762), reused 2305 (delta 1494), pack-reused 0 Receiving objects: 100% (2575/2575), 635.08 KiB | 21.17 MiB/s, done. Resolving deltas: 100% (1762/1762), completed with 242 local objects. error: object directory /home/veggerby/Downloads/packages/extracted/lxc-git/lxc/objects does not exist; check .git/objects/info/alternates fatal: bad object refs/remotes/origin/stable-0.7.4 error: /home/veggerby/Downloads/packages/extracted/lxc-git/lxc did not send all necessary objects

error: object directory /home/veggerby/Downloads/packages/extracted/lxc-git/lxc/objects does not exist; check .git/objects/info/alternates ==> ERROR: Failure while updating working copy of lxc git repo Aborting...

graysky commented on 2022-08-09 10:08 (UTC)

https://github.com/lxc/lxc/issues/4176

Alex7 commented on 2022-08-09 08:13 (UTC)

I Can't Install the package... I've tried manually and with the aur helper but I've got the same problem/error: "Error in Build()"

ninja: build stopped: subcommand failed. ==> ERROR: An error occurred in build(). The operation is about to be stopped... -> error in creation: lxc-git [alex@ThickPad ~]$

Full Terminal Output here: https://pastebin.com/A5QZpnS7

Thank you for your attention

graysky commented on 2022-06-10 20:30 (UTC) (edited on 2022-06-10 20:39 (UTC) by graysky)

OK, I got a working PKGBUILD but it required building core/libcap with a modification to provide /usr/lib/libcap.a ... seeking an alternative now.

If you want to follow the discussion or REALLY need to build this now: https://github.com/lxc/lxc/issues/4144

Here is the working PKGBUILD that has that requirement: https://gist.github.com/graysky2/3e51d65b88a30f706cffea6b936ef027

mattalxndr commented on 2022-06-10 17:59 (UTC) (edited on 2022-06-10 18:00 (UTC) by mattalxndr)

Error on install:

~ % rm -rf /home/matt/.cache/yay/lxc-git
~ % yay
[...]
Cloning into 'lxc'...
done.
==> Starting prepare()...
sed: can't read configure.ac: No such file or directory
==> ERROR: A failure occurred in prepare().
Aborting...
removing untracked AUR files from cache...
:: Cleaning (1/1): /home/matt/.cache/yay/lxc-git
-> error making: lxc-git
yay  10.33s user 3.44s system 81% cpu 16.788 total

kuhnchris commented on 2022-06-09 08:31 (UTC)

Huge headache ahead! There was a change to the meson build system like... a couple of days ago. Hence, broken package.

replace the prepare() and build() parts with this (no warrenty, it just 'didn't break' on my machine):

prepare() {
  cd "$_pkgname"
  sed -i \
    -e 's|"\\"-//Davenport//DTD DocBook V3.0//EN\\""|"\\"-//OASIS//DTD DocBook XML\\" \\"https://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\\""|' \
    meson.build
}

build() {
  cd "$_pkgname"
  meson setup --prefix=/usr \
    --sbindir=/usr/bin \
    --localstatedir=/var \
    --libexecdir=/usr/lib \
    --libdir=/usr/lib \
    --sysconfdir=/etc \
    build/
  make
}

Note: this will still not work - you have to get libcap yourself and build the static file (libcap.a)

wget https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-2.64.tar.gz
tar xf libcap-2.64.tar.gz
cd libcap-2.64
make -j 8
cp libcap/libcap.a /usr/lib

Not the cleanest solution, but it "works". Hopefully @graysky comes up with a better solution than my hack.

graysky commented on 2022-05-21 09:21 (UTC)

Builds fine for me in a clean chroot