From 7d78ee904bd81a909b51a85440b2f5e1ee05779d Mon Sep 17 00:00:00 2001 From: Merlin Mathesius Date: Aug 07 2020 20:25:23 +0000 Subject: Make an unsupported ELN mock configuration file available for download Signed-off-by: Merlin Mathesius --- diff --git a/modules/ROOT/assets/attachments/eln-x86_64.cfg b/modules/ROOT/assets/attachments/eln-x86_64.cfg new file mode 100644 index 0000000..5cb4609 --- /dev/null +++ b/modules/ROOT/assets/attachments/eln-x86_64.cfg @@ -0,0 +1,43 @@ +config_opts['releasever'] = 'eln' +config_opts['target_arch'] = 'x86_64' +config_opts['legal_host_arches'] = ('x86_64',) + +config_opts['root'] = 'eln-{{ target_arch }}' + +config_opts['chroot_setup_cmd'] = 'groupinstall build' + +config_opts['dist'] = 'eln' # only useful for --resultdir variable subst +config_opts['extra_chroot_dirs'] = [ '/run/lock', ] +# config_opts['releasever'] = 'eln' +config_opts['package_manager'] = 'dnf' + +config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.eln%{eln}%{?with_bootstrap:~bootstrap}' +config_opts['macros']['%eln'] = '100' +config_opts['macros']['%fedora'] = '%{nil}' +config_opts['macros']['%rhel'] = '9' + +config_opts['yum.conf'] = """ +[main] +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= +install_weak_deps=0 +metadata_expire=0 +best=1 +protected_packages= + +# repos + +[eln] +name=ELN +baseurl=https://kojipkgs.fedoraproject.org/repos/eln-build/latest/$basearch +enabled=1 +skip_if_unavailable=False +""" diff --git a/modules/ROOT/pages/buildroot.adoc b/modules/ROOT/pages/buildroot.adoc index a98a1e8..435a9ce 100644 --- a/modules/ROOT/pages/buildroot.adoc +++ b/modules/ROOT/pages/buildroot.adoc @@ -46,4 +46,9 @@ koji edit-tag \ == Compiler flags and other tweaks -There are no changes in compiler flags yet. \ No newline at end of file +There are no changes in compiler flags yet. + +== Testing environment + +An unsupported `mock` configuration file that can be used for testing builds and checking out the +ELN environment can be downloaded link:{attachmentsdir}/eln-x86_64.cfg[here].