#10 First working CentOS-Stream-Devel compose, with single variant.
Merged 2 years ago by bstinson. Opened 2 years ago by jamesantill.
centos/ jamesantill/pungi-centos centos-8.1.1911  into  centos-8.1.1911

file added
+201

@@ -0,0 +1,201 @@ 

+ from multilib import *

+ from include-excludes import *

+ from stream-images import *

+ 

+ # PRODUCT INFO 

+ release_name = "CentOS Stream Developmental" 

+ release_short = "CentOS-devel"

+ release_version = "Stream"

+ version = "8-devel"

+ 

+ # # GENERAL SETTINGS

+ # comps_file = {

+ #         'scm': 'git',

+ #         'repo': 'https://git.centos.org/centos/comps.git',

+ #         'branch': 'master',

+ #         'file': 'comps-centos-8-stream.xml',

+ # }

+ comps_file = 'comps-centos-8-stream-devel.xml'

+ 

+ link_type = 'hardlink-or-copy'

+ 

+ module_defaults_dir = {

+         'scm': 'git',

+         'repo': 'https://git.centos.org/centos/centos-module-defaults.git',

+         'branch': 'c8.1',

+         'dir': '.',

+ }

+ 

+ multilib = [

+     ('^.*$', {

+         'x86_64': ['devel', 'runtime']

+     }),

+ ]

+ 

+ variants_file = 'variants-devel.xml'

+ sigkeys = ['8483C65D', None]

+ hashed_directories = False

+ 

+ # tree_arches = ['aarch64', 'i386', 'ppc64le', 'x86_64']

+ tree_arches = ['aarch64', 'i386', 'ppc64le', 'x86_64']

+ # tree_arches = ['x86_64']

+ 

+ # RUNROOT SETTINGS

+ runroot_channel = 'image'

+ runroot_tag = 'dist-c8-build'

+ runroot_method = 'koji'

+ 

+ # PKGSET

+ pkgset_source = "koji"

+ koji_profile = "mbox"

+ 

+ # PKGSET - KOJI

+ pkgset_koji_tag = "dist-c8-stream-compose"

+ pkgset_koji_inherit = False

+ pkgset_koji_module_tag = "modular-updates-candidate"

+ 

+ filter_system_release_packages = False

+ 

+ # GATHER

+ gather_prepopulate = "centos-packages.json"

+ 

+ gather_method = {

+         "^(?!(AppStream|PowerTools|CR)).*$":{

+                 "comps": "deps"

+         },

+         "^(AppStream|PowerTools|CR)$": "hybrid",

+ }

+ 

+ gather_backend = "dnf"

+ check_deps = False

+ greedy_method = "all"

+ repoclosure_backend = "dnf"

+ 

+ # CREATEREPO

+ createrepo_deltas = False

+ createrepo_database = True

+ createrepo_c = True

+ createrepo_checksum = "sha256"

+ createrepo_use_xz = True

+ createrepo_num_threads = 8

+ createrepo_num_workers = 4

+ createrepo_extra_args = ['--distro=cpe:/o:centos-stream:centos-stream:8,CentOS Stream 8', '--revision=8.1.1911']

+ 

+ # CHECKSUMS

+ media_checksums = ['sha256']

+ media_checksum_one_file = True

+ create_jigdo = False

+ 

+ # BUILDINSTALL

+ bootable = True

+ buildinstall_method = "lorax"

+ 

+ lorax_options = [

+     ("^.*$", {

+         "*": {

+             "noupgrade": False,

+             "rootfs_size": 3,

+             "version": "8-stream"

+         }

+     })

+ ]

+ 

+ buildinstall_skip = [

+     ("^(Devel|AppStream|PowerTools|CR|HighAvailability)$", {

+        "*": True

+        }),

+ ]

+ 

+ image_name_format = {

+     "^BaseOS$": "{release_short}-{version}-{arch}-{disc_type}{disc_num}{suffix}",

+     ".*": "{release_short}-{version}-{arch}-{disc_type}{disc_num}{suffix}",

+ }

+ 

+ image_volid_formats = [ '{release_short}-{version}-{arch}-{disc_type}', ]

+ 

+ # CREATEISO

+ create_optional_isos = False

+ 

+ createiso_skip = [

+     ('^(Devel|AppStream|PowerTools|HighAvailability|CR)$', {

+         '*': True,

+         'src':True

+     }),

+ ]

+ 

+ extra_isos = {

+     "BaseOS": [{

+         "include_variants": ["AppStream"],

+         "filename": "{release_short}-{version}-{arch}-{disc_type}{disc_num}{suffix}",

+         "skip_src": True,

+     },

+     ]

+ }

+ 

+ restricted_volid = True

+ 

+ # LOOKASIDE

+ variant_as_lookaside = [

+ #    ('AppStream', 'BaseOS'),

+ #    ('PowerTools', 'BaseOS'),

+ #    ('PowerTools', 'AppStream'),

+ ]

+ 

+ gather_lookaside_repos = [

+     ("^Devel$", {

+         "x86_64": [

+             "file:///compose/trees/latest-CentOS-Stream/compose/BaseOS/x86_64/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/BaseOS/x86_64/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/BaseOS/source/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/AppStream/x86_64/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/AppStream/x86_64/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/AppStream/source/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/PowerTools/x86_64/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/PowerTools/x86_64/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/PowerTools/source/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/HighAvailability/x86_64/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/HighAvailability/x86_64/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/HighAvailability/source/tree",

+         ],

+         "ppc64": [

+         ],

+         "ppc64le": [

+             "file:///compose/trees/latest-CentOS-Stream/compose/BaseOS/ppc64le/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/BaseOS/ppc64le/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/BaseOS/source/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/AppStream/ppc64le/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/AppStream/ppc64le/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/AppStream/source/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/PowerTools/ppc64le/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/PowerTools/ppc64le/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/PowerTools/source/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/HighAvailability/ppc64le/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/HighAvailability/ppc64le/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/HighAvailability/source/tree",

+         ],

+         "s390x": [

+         ],

+         "aarch64": [

+             "file:///compose/trees/latest-CentOS-Stream/compose/BaseOS/aarch64/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/BaseOS/aarch64/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/BaseOS/source/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/AppStream/aarch64/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/AppStream/aarch64/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/AppStream/source/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/PowerTools/aarch64/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/PowerTools/aarch64/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/PowerTools/source/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/HighAvailability/aarch64/os",

+             "file:///compose/trees/latest-CentOS-Stream/compose/HighAvailability/aarch64/os/debug/tree",

+             "file:///compose/trees/latest-CentOS-Stream/compose/HighAvailability/source/tree",

+         ],

+     }),

+ ]

+ 

+ productimg = False

+ 

+ translate_paths = [

+ 	("/mnt/koji", "https://koji.mbox.centos.org/pkgs"),

+ 	# ("/compose", "http://172.22.0.123/compose"),

+ ]

+ 

@@ -0,0 +1,13 @@ 

+ <?xml version="1.0" encoding="UTF-8"?>

+ <!DOCTYPE comps PUBLIC "-//CentOS//DTD Comps info//EN" "comps.dtd">

+ <comps>

+   <group variant="Devel">

+     <id>centos-stream-devel</id>

+     <default>false</default>

+     <uservisible>false</uservisible>

+     <packagelist>

+       <packagereq type="mandatory">argparse-manpage</packagereq>

+       <packagereq type="mandatory">libuv-devel</packagereq>

+     </packagelist>

+   </group>

+ </comps>

file modified
+70

@@ -1,4 +1,74 @@ 

  filter_packages = [

+     ("^Devel$", {

+         "*": [

+             "glibc*",

+             # This is a massive hack... using diff | egrep -v '^[+-]' | perl -pe 's/(.*)-[^-]+-[^-]+[.]rpm/$1/' | sort -u

+  "acl-debuginfo",

+  "attr-debuginfo",

+  "bash",

+  "bzip2-debuginfo",

+  "bzip2-libs",

+  "chkconfig",

+  "coreutils",

+  "coreutils-common",

+  "coreutils-single",

+  "e2fsprogs-debuginfo",

+  "expat",

+  "filesystem",

+  "gawk",

+  "gdbm",

+  "gdbm-libs",

+  "gmp",

+  "grep",

+  "info",

+  "keyutils-debuginfo",

+  "keyutils-libs",

+  "krb5-debuginfo",

+  "krb5-libs",

+  "libacl",

+  "libattr",

+  "libcap",

+  "libcom_err",

+  "libffi",

+  "libnsl2",

+  "libpkgconf",

+  "libselinux",

+  "libsepol",

+  "libsigsegv",

+  "libtasn1",

+  "libtirpc",

+  "libuv",

+  "libverto",

+  "libxcrypt",

+  "mpfr",

+  "ncurses",

+  "ncurses-base",

+  "ncurses-libs",

+  "openssl-debuginfo",

+  "openssl-libs",

+  "p11-kit",

+  "p11-kit-trust",

+  "pcre",

+  "pcre2",

+  "pkgconf",

+  "pkgconf-m4",

+  "pkgconf-pkg-config",

+  "platform-python",

+  "platform-python-pip",

+  "platform-python-setuptools",

+  "popt",

+  "popt-devel",

+  "python3-libs",

+  "python3-pip-wheel",

+  "python3-setuptools-wheel",

+  "readline",

+  "sed",

+  "xz-debuginfo",

+  "xz-libs",

+  "zlib",

+         ]

+     }),

+ 

      ("^(BaseOS|AppStream)$", {

          "*": [

              "python36",

file added
+17

@@ -0,0 +1,17 @@ 

+ <?xml version="1.0" encoding="UTF-8"?>

+ <!DOCTYPE variants PUBLIC "-//Red Hat, Inc.//DTD Variants info//EN" "variants2012.dtd">

+ <variants>

+   <variant id="Devel" name="Devel" type="variant" has_optional="false">

+     <!-- List of architectures for BaseOS compose variant -->

+     <arches>

+       <arch>aarch64</arch>

+       <arch>x86_64</arch>

+       <arch>ppc64le</arch>

+     </arches>

+     <!-- List of comps groups that should be part of Devel compose variant -->

+     <groups>

+       <group default="true">centos-stream-devel</group>

+     </groups>

+   </variant>

+ 

+ </variants>

Packages are in the local comps-centos-8-stream-devel.xml file currently.

Initial version, mainly for discussion/feedback.

Input is just:

<packagelist>
  <packagereq type="mandatory">argparse-manpage</packagereq>
  <packagereq type="mandatory">libuv-devel</packagereq>
</packagelist>

Output gives:

libuv-devel-1.23.1-1.el8.*.rpm
argparse-manpage-1.1-2.el8.noarch.rpm
python3-argparse-manpage-1.1-2.el8.noarch.rpm
argparse-manpage-1.1-2.el8.src.rpm

rebased onto 9c70ca1

2 years ago

Pull-Request has been merged by bstinson

2 years ago