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.009090
First Submitted: 2015-08-15 16:29 (UTC)
Last Updated: 2023-01-15 12:58 (UTC)

Dependencies (18)

Required by (17)

Sources (4)

Latest Comments

« First ‹ Previous 1 2 3

graysky commented on 2021-01-02 12:02 (UTC)

@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 (UTC)

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

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

 pkgname=lxc-git
 _pkgname=lxc
-pkgver=4.0.0.r475.g59c6b0661
+pkgver=4.0.0.r682.gbfcd663fc
 pkgrel=1
 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\\" \\"https://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\\""|' \
     configure.ac
+
+  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 (UTC) (edited on 2021-01-01 20:52 (UTC) by samuelbernardo)

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().
    Aborting...
error making: lxc-git