Package: crun
Version: 1.21-3
Severity: normal

The schema changes in the OCI runtime-spec around the Limits field in
the `Pids` structure that changed the type from int64 to *int64 breaks the
compilation of the crun package.

Note that this is not an issue when building from unpatched upstream
sources, as the build uses a version "pinned" git submodule of the oci
runtime spec.  In Debian, however, we are building against the specs
provided by the golang-github-opencontainers-specs-dev packages, and
this causes the compilation failure below:


make[3]: Entering directory 
'/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec'
/usr/bin/python3 ./src/ocispec/generate.py --gen-ref --root=. 
--out=./src/ocispec ./image-spec/schema
Reflection:     
/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/image-spec/schema/image-manifest-schema.json
 Success
Reflection:     
/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/image-spec/schema/image-layout-schema.json
 Success
Reflection:     
/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/image-spec/schema/image-index-schema.json
 Success
Reflection:     
/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/image-spec/schema/defs.json
 Success
Reflection:     
/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/image-spec/schema/defs-descriptor.json
 Success
Reflection:     
/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/image-spec/schema/content-descriptor.json
 Success
Reflection:     
/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/image-spec/schema/config-schema.json
 Success
/usr/bin/python3 ./src/ocispec/generate.py --gen-ref --root=. 
--out=./src/ocispec ./runtime-spec/schema
Traceback (most recent call last):
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 840, in <module>
    main()
    ~~~~^^
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 836, in main
    handle_files(args, srcpath)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 786, in handle_files
    handle_single_file(args, srcpath, gen_ref, schemapath)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 766, in handle_single_file
    reflection(schema_info, gen_ref)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 737, in reflection
    reflection(reffile, True)
    ~~~~~~~~~~^^^^^^^^^^^^^^^
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 705, in reflection
    tree = parse_schema(schema_info, schema_json, schema_info.prefix)
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 638, in parse_schema
    return handle_type_not_in_schema(schema_info, schema, prefix)
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 608, in handle_type_not_in_schema
    parse_properties(schema_info, helpers.HierarchicalName(""), schema, schema, 
\
    
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    schema_info.name.name), None, None, None, None)
                    ^^^^^^^^^^^^^^^^^^^^^^
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 592, in parse_properties
    return parse_dict(schema_info, name, schema, props['definitions'], curfile)
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 577, in parse_dict
    node, _ = resolve_type(schema_info, name.append(i), schema, objs[i], 
curfile)
              
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 527, in resolve_type
    return gen_arr_typnode(node_info, src, typ, refname)
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 432, in gen_arr_typnode
    return gen_ref_arr_typnode(node_info, src, typ, refname)
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 371, in gen_ref_arr_typnode
    item_type, src = resolve_type(schema_info, name, src, cur["items"], curfile)
                     ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 511, in resolve_type
    src, cur, curfile, refname = get_ref_root(schema_info, src, cur['$ref'], 
curfile)
                                 
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/./src/ocispec/generate.py",
 line 224, in get_ref_root
    with open(realpath) as i:
         ~~~~^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 
'/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec/runtime-spec/schema/#definitions/uint32'
make[3]: *** [Makefile:2186: src/runtime_spec_stamp] Error 1
make[3]: Leaving directory 
'/tmp/autopkgtest.edmjHh/build.dzy/real-tree/libocispec'
make[2]: *** [Makefile:2792: all-recursive] Error 1
make[2]: Leaving directory '/tmp/autopkgtest.edmjHh/build.dzy/real-tree'
make[1]: *** [Makefile:1141: all] Error 2
make[1]: Leaving directory '/tmp/autopkgtest.edmjHh/build.dzy/real-tree'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:16: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


This issue blocks #1122216 and has been filed upstream as
https://github.com/containers/crun/issues/1921




-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.17.8+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages crun depends on:
ii  libc6        2.41-12
ii  libcap2      1:2.75-10+b1
ii  libseccomp2  2.6.0-2
ii  libsystemd0  259~rc1-1
ii  libyajl2     2.1.0-5+b2

Versions of packages crun recommends:
ii  libcriu2  4.2-1

Versions of packages crun suggests:
pn  libwasmedge0  <none>

-- no debconf information

Reply via email to