Package Details: lxc-git 4.0.0.r1482.gd75ddd9b1-1

Git Clone URL: (read-only, click to copy)
Package Base: lxc-git
Description: Linux Containers git version
Upstream URL:
Licenses: LGPL
Conflicts: lxc, lxc-git
Provides: lxc
Submitter: aya
Maintainer: graysky
Last Packager: graysky
Votes: 4
Popularity: 0.000000
First Submitted: 2015-08-15 16:29
Last Updated: 2021-04-05 18:06

Dependencies (16)

Required by (18)

Sources (4)

Latest Comments

samuelbernardo commented on 2021-01-05 02:09

Hi @graysky Thanks for the info, I will test it. I'm not using overlayfs snapshots.

graysky commented on 2021-01-04 12:26

@sam - 5.10.4 + lxc builds fine. No patch needed.

Separate issue to building lxc is running it. There is at least one open bug affecting lxc and the 5.10.x series of kernel that has hit me, but it relates to overlayfs snapshots[1] and may or may not concern you.


samuelbernardo commented on 2021-01-04 09:28

@squiddo thanks for the quick patch. Anyway, at the same time I left here the comment I downgraded linux package to previous 5.9 version. Just froze the linux package until upstream correct lxc. Let see if they do it in acceptable time, or else your patch will be very useful. Thanks again!

graysky commented on 2021-01-03 20:30

@squiddo - Yes, that is an response to my ticket re: your PKGBUILD modifications.

squiddo commented on 2021-01-03 19:43

@graysky, this is the first time I've looked at this package due to the linux 5.10.3 incompatibility with the core package.

Looks like the core package maintainer might show the reason:

graysky commented on 2021-01-02 12:02

@squiddo - Thanks for the fix. Can you explain why these are needed? The original PKGBUILD never provided any comments.

squiddo commented on 2021-01-02 05:46

Here's my quick-and-dirty diff to the PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 6617738..703914b 100644
@@ -7,7 +7,7 @@

 pkgdesc="Linux Containers git version"
 arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
@@ -45,6 +45,20 @@ prepare() {
   sed -i \
     -e 's|"\\"-//Davenport//DTD DocBook V3.0//EN\\""|"\\"-//OASIS//DTD DocBook XML\\" \\"\\""|' \
+  sed -i \
+    -e 's/void print_version_exit()/void print_version_exit(void)/' src/lxc/tools/arguments.c
+  sed -i \
+    -e 's/static void free_mnts()/static void free_mnts(void)/' src/lxc/tools/lxc_copy.c
+  sed -i \
+    -e 's/static const char \*lxc_log_get_container_name()/static const char *lxc_log_get_container_name(void)/' src/lxc/log.c
+  sed -i \
+    -e 's/inline void lxc_log_options_no_override()/inline void lxc_log_options_no_override(void)/' src/lxc/log.c
+  sed -i \
+    -e 's/char \*get_rundir()/char *get_rundir(void)/' src/lxc/utils.c
+  sed -i \
+    -e 's/static bool apparmor_can_stack()/static bool apparmor_can_stack(void)/' src/lxc/lsm/apparmor.c

 build() {

samuelbernardo commented on 2021-01-01 20:52

The code is not compiling with current updated packages:

tools/arguments.c:119:24: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
  119 | __noreturn static void print_version_exit()
      |                        ^~~~~~~~~~~~~~~~~~
tools/arguments.c: In function ‘print_version_exit’:
tools/arguments.c:119:24: error: old-style function definition [-Werror=old-style-definition]
cc1: all warnings being treated as errors
make[3]: *** [Makefile:4010: tools/arguments.o] Error 1
make[3]: Leaving directory '/home/samuel/.cache/yay/lxc-git/src/lxc/src/lxc'
make[2]: *** [Makefile:432: all-recursive] Error 1
make[2]: Leaving directory '/home/samuel/.cache/yay/lxc-git/src/lxc/src'
make[1]: *** [Makefile:371: all] Error 2
make[1]: Leaving directory '/home/samuel/.cache/yay/lxc-git/src/lxc/src'
make: *** [Makefile:529: all-recursive] Error 1
==> ERROR: A failure occurred in build().
error making: lxc-git