Package Details: crun-krun 1.21-2

Git Clone URL: https://aur.archlinux.org/crun-krun.git (read-only, click to copy)
Package Base: crun-krun
Description: A fully featured OCI runtime and C library for running containers. Enabled krun support for secure/confidential containers in VMs.
Upstream URL: https://github.com/containers/crun
Licenses: LGPL
Conflicts: crun
Provides: crun, oci-runtime
Submitter: sgsaenger
Maintainer: sgsaenger
Last Packager: sgsaenger
Votes: 0
Popularity: 0.000000
First Submitted: 2025-01-27 21:21 (UTC)
Last Updated: 2025-05-07 16:32 (UTC)

Latest Comments

sgsaenger commented on 2025-05-07 16:31 (UTC)

Thanks for reporting this! Looks like a longstanding issue in the python bindings, neither the get_verbosity function nor the python binding have been touched in 7 years. Can only guess it's due to the recent update to GCC 15. I've filed a PR with crun (https://github.com/containers/crun/pull/1740) and will disable the python bindings for now.

JDWUP commented on 2025-05-06 16:06 (UTC) (edited on 2025-05-06 16:39 (UTC) by JDWUP)

I'm encountering the following error while trying to build this package. Has anyone run into this before or have any suggestions? I've tried rebuilding it in a clean chroot environment, but the issue persists.

  CC       python/crun_la-crun_python.lo
In file included from /home/user/.cache/yay/crun-krun/src/crun/src/libcrun/container.h:25,
                 from python/crun_python.c:37:
/home/user/.cache/yay/crun-krun/src/crun/src/libcrun/string_map.h:22:9: warning: '_GNU_SOURCE' redefined
   22 | #define _GNU_SOURCE
      |         ^~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:14,
                 from python/crun_python.c:36:
/usr/include/python3.13/pyconfig.h:1797:10: note: this is the location of the previous definition
 1797 | # define _GNU_SOURCE 1
      |          ^~~~~~~~~~~
python/crun_python.c: In function 'free_context':
python/crun_python.c:110:12: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  110 |   free (ctx->state_root);
      |         ~~~^~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:38:
/usr/include/stdlib.h:687:25: note: expected 'void *' but argument is of type 'const char *'
  687 | extern void free (void *__ptr) __THROW;
      |                   ~~~~~~^~~~~
python/crun_python.c:111:12: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  111 |   free (ctx->notify_socket);
      |         ~~~^~~~~~~~~~~~~~~
/usr/include/stdlib.h:687:25: note: expected 'void *' but argument is of type 'const char *'
  687 | extern void free (void *__ptr) __THROW;
      |                   ~~~~~~^~~~~
python/crun_python.c: In function 'get_verbosity':
python/crun_python.c:461:27: error: too many arguments to function 'libcrun_get_verbosity'; expected 0, have 1
  461 |   return PyLong_FromLong (libcrun_get_verbosity (verbosity));
      |                           ^~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~
In file included from /home/user/.cache/yay/crun-krun/src/crun/src/libcrun/container.h:24:
/home/user/.cache/yay/crun-krun/src/crun/src/libcrun/error.h:109:20: note: declared here
  109 | LIBCRUN_PUBLIC int libcrun_get_verbosity ();
      |                    ^~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:2285: python/crun_la-crun_python.lo] Error 1
make[2]: Leaving directory '/home/user/.cache/yay/crun-krun/src/crun'
make[1]: *** [Makefile:2662: all-recursive] Error 1
make[1]: Leaving directory '/home/user/.cache/yay/crun-krun/src/crun'
make: *** [Makefile:1087: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: crun-krun-exit status 4
[sudo] password for user:
sudo: timed out reading password
sudo: a password is required
 -> Failed to install the following packages. Manual intervention is required:
crun-krun - exit status 4
exit status 1