Compare commits

...
32 Commits
Author SHA1 Message Date
clrbuilder 12537cbfb0 Update packages file for version 23240
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-22 18:02:37 +00:00
clrbuilder d397ee463a Update packages file for version 23230
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-22 12:02:16 +00:00
clrbuilder dfe55331e6 Update packages file for version 23200
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-21 18:02:34 +00:00
Patrick McCarty 0c69bfb9a9 Add OVMF.fd to the repo
Fixes #4

Because start_qemu.sh references OVMF.fd, it is convenient for OVMF.fd
to live alongside that script for ease of use.

Note that this version of OVMF.fd is a copy of /usr/share/qemu/OVMF.fd
in Clear Linux OS builds 22930 and newer from the edk2 package
(edk2-2-8, built using the recent UDK2018 release).

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-06-19 15:52:23 -07:00
William Douglas 689e48a2f7 start_qemu.sh: Add virtio-rng-pci device
In order to avoid issues
(https://github.com/clearlinux/distribution/issues/97) where the
VM is unable to procede to boot due to lack of entropy, add the
virtio-rng-pci device via the start_qemu.sh script.
2018-06-19 18:01:55 +00:00
Patrick McCarty 82e334a93a Make start_qemu.sh executable
Fixes #3

The other shell scripts in this repo are executable, so there's no
reason this one should not be.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-06-18 12:46:27 -07:00
clrbuilder ab6c4a674f Update packages file for version 23110
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-18 13:02:45 +00:00
clrbuilder 78de1a6a13 Update packages file for version 23100
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-16 03:50:04 +00:00
clrbuilder 74e79ffea2 Update packages file for version 23080
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-15 19:02:11 +00:00
clrbuilder bb21809c73 Update packages file for version 23050
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-15 03:23:35 +00:00
clrbuilder e912d4e6ae Update packages file for version 23040
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-14 19:02:20 +00:00
clrbuilder 340b6a74d4 Update packages file for version 23030
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-14 13:11:14 +00:00
clrbuilder 2e8f9ef0ab Update packages file for version 23010
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-13 19:07:40 +00:00
Patrick McCarty 4bdd1765c5 Remove explicit cachedir from dnf.conf
DNF doesn't fall back to /var/tmp if it cannot write to the cachedir
location specified in dnf.conf (unlike YUM). Removing the explicit
cachedir setting in dnf.conf enables the fallback behavior, which we
will need for autospec use.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-06-13 12:00:01 -07:00
clrbuilder 45f39671d6 Update packages file for version 22970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-12 13:02:00 +00:00
clrbuilder 1d46a683e0 Update packages file for version 22950
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-11 19:05:51 +00:00
clrbuilder 41d2113b8a Update packages file for version 22940
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-11 13:09:51 +00:00
clrbuilder 528cd77168 Update packages file for version 22900
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-10 05:08:19 +00:00
Patrick McCarty 916ce142bb pull: skip repos that do not exist locally
Since the user-setup script does not clone package repos by default
anymore, 'make pull' can be made more user-friendly by not printing
warnings if some/all/most of the package repos are not already present
in the packages/ directory.

Instead, only populate the package "pull" list with names from the
packages file that are currently present in the packages/ directory.

Package repos that are not present can be cloned as before: 'make clone'
to clone all missing package repos, or 'make clone_PKG' to clone a
selected package repo.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-06-08 12:01:18 -07:00
clrbuilder e2a3b113f2 Update packages file for version 22860
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-07 19:02:21 +00:00
clrbuilder 0acf617611 Update packages file for version 22850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-07 13:02:11 +00:00
clrbuilder 39aeb852fe Update packages file for version 22830
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-06 13:02:13 +00:00
clrbuilder 0e7d7e336d Update packages file for version 22800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-05 16:06:47 +00:00
clrbuilder 2323c9924f Update packages file for version 22770
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-04 13:02:08 +00:00
clrbuilder da1f1f7483 Update packages file for version 22760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-03 06:49:53 +00:00
clrbuilder 723a925ed8 Update packages file for version 22730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-01 13:02:38 +00:00
clrbuilder 7e9ee1949d Update packages file for version 22720
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-31 21:08:28 +00:00
clrbuilder f0df3f7809 Update packages file for version 22710
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-31 16:14:03 +00:00
Patrick McCarty 9f77c5b172 Adjust mock config for improved caching
Not setting "keepcache=1" results to DNF removing cached RPMs after
every local build.

Also, naming the cachedir "/var/cache/dnf" is important for the cache to
stick around and be stored in /var/cache/mock/clear/dnf_cache.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-30 13:17:34 -07:00
Patrick McCarty 3c52bbd7d7 Add a dnf.conf, and use it by default
The new dnf.conf is very similar to the yum.conf, but because the
in-tree Mock config specifies to use DNF, we should track a dnf.conf
here as well and use it by default.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-30 13:15:17 -07:00
Patrick McCarty 7203329212 Move conf files into dedicated "conf" directory
The "image-creator" and "koji-client-files" subdirectories are named as
such to reflect their purpose from long ago. In the present, the names
are confusing, so I am shuffling files around a bit to reflect current
usage.

All conf files (or conf file templates) have been moved to "conf"
instead, and some documentation has been added to explain what the files
are used for, and how they can be customized.

Also, after moving the conf files, the last file remaining in one of the
old subdirectories is "start_qemu.sh", so move it to the toplevel dir.
We could eventually move the miscellaneous scripts into a dedicated
directory too, but I will save that for another time.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-30 13:15:17 -07:00
clrbuilder b76562fe35 Update packages file for version 22680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-30 13:02:40 +00:00
14 changed files with 102 additions and 13 deletions
+4 -4
View File
@@ -54,17 +54,17 @@ LATEST_SRPMS = $(LATEST_RELEASE)/source/SRPMS
PACKAGES_FILE = $(TOPLVL)/projects/common/packages PACKAGES_FILE = $(TOPLVL)/projects/common/packages
# Configuration file for autospec. # Configuration file for autospec.
AUTOSPEC_CONF = $(TOPLVL)/projects/common/autospec.conf AUTOSPEC_CONF = $(TOPLVL)/projects/common/conf/autospec.conf
# Set this variable to any non-empty value to use the package mappings stored # Set this variable to any non-empty value to use the package mappings stored
# in "pkg-mapping" for cloning/pulling package repos. # in "pkg-mapping" for cloning/pulling package repos.
USE_PACKAGE_MAPPING = yes USE_PACKAGE_MAPPING = yes
# Package manager config file. Default to the in-tree copy. # Package manager config file. Default to the in-tree copy of dnf.conf.
PM_CONF = $(TOPLVL)/projects/common/image-creator/yum.conf PM_CONF = $(TOPLVL)/projects/common/conf/dnf.conf
# Mock configuration file. Default to the in-tree copy. # Mock configuration file. Default to the in-tree copy.
MOCK_CONF = $(TOPLVL)/projects/common/koji-client-files/clear.cfg MOCK_CONF = $(TOPLVL)/projects/common/conf/clear.cfg
# Include any site local configuration variables. These variables may override # Include any site local configuration variables. These variables may override
+2 -1
View File
@@ -10,6 +10,7 @@ include $(TOPLVL)/projects/common/Makefile.shared
SHELL = /bin/bash SHELL = /bin/bash
PKGS = $(shell cat $(PACKAGES_FILE)) PKGS = $(shell cat $(PACKAGES_FILE))
PKGS_LOCAL = $(sort $(filter ${PKGS},$(subst packages/,,$(wildcard packages/*))))
proj_PKGS = $(addprefix proj_,$(PROJ_PKGS)) proj_PKGS = $(addprefix proj_,$(PROJ_PKGS))
clone_PKGS = $(addprefix clone_,$(PKGS)) clone_PKGS = $(addprefix clone_,$(PKGS))
@@ -64,7 +65,7 @@ cvecheck:
#help of merge commits, while displaying any changes since your last pull. It is #help of merge commits, while displaying any changes since your last pull. It is
#help silent if there are no changes. #help silent if there are no changes.
.PHONY: pull ${PULL_PKGS} .PHONY: pull ${PULL_PKGS}
PULL_PKGS:= $(addprefix PULL_projects/,$(PROJ_PKGS)) $(addprefix PULL_packages/,$(PKGS)) PULL_PKGS:= $(addprefix PULL_projects/,$(PROJ_PKGS)) $(addprefix PULL_packages/,${PKGS_LOCAL})
${PULL_PKGS}: ${PULL_PKGS}:
@p=$(patsubst PULL_%,%,$@) ; \ @p=$(patsubst PULL_%,%,$@) ; \
if [ ! -d "$$p/.git" ]; then echo "Nothing to pull for $$p - $$p/.git missing"; exit 0; fi; \ if [ ! -d "$$p/.git" ]; then echo "Nothing to pull for $$p - $$p/.git missing"; exit 0; fi; \
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -118,7 +118,7 @@ $ make build
In the past, the various make commands that call `mock` required a mock config In the past, the various make commands that call `mock` required a mock config
installed at `/etc/mock/clear.cfg`. However, at present, the commands will installed at `/etc/mock/clear.cfg`. However, at present, the commands will
instead use the mock config within this repo (`koji-client-files/clear.cfg`). instead use the mock config within this repo (`conf/clear.cfg`).
If you wish to use a custom mock config, you must override the `MOCK_CONF` If you wish to use a custom mock config, you must override the `MOCK_CONF`
variable to specify a different value to pass to mock's `-r` option. The value variable to specify a different value to pass to mock's `-r` option. The value
+31
View File
@@ -0,0 +1,31 @@
# Configuration files
This directory contains various configuration files used by the developer
tooling framework.
Unless otherwise noted in the config file documentation below, the config files
can be modified with custom, site-local changes by modifying a variable in
`Makefile.config.site_local` to point to a location of your choice (e.g.
somewhere in `/etc`). The framework will then read the config file from the
location you have specified instead, so copy the in-tree copy to that location
as a starting point if you need to.
* `autospec.conf`: default Autospec configuration file used by `make autospec`
and `make autospecnew`. All configuration is commented out by default, so
default Autospec settings are used. Config variable: `AUTOSPEC_CONF`
* `clear.cfg`: default Mock configuration file used by various targets that
call out to Mock. Config variable: `MOCK_CONF`
* `dnf.conf`: DNF conf for use as the package manager configuration file, made
available for the framework's local repo support. Config variable: `PM_CONF`
* `yum.conf`: YUM conf for use as the package manager configuration file, made
available for the framework's local repo support. Config variable: `PM_CONF`
* `koji.conf`: template Koji configuration file. It is installed by
`user-setup.sh` to `/etc/koji.conf`, and the in-tree copy is not used. If you
are using Koji with the framework, you will need to modify `/etc/koji.conf`
according to how the Koji instance is set up for your environment. Configuring
the installation location via `Makefile.config.site_local` is not possible at
the moment but is a planned feature.
+1 -1
View File
@@ -18,6 +18,6 @@
# an absolute path or a path relative to this autospec.conf. # an absolute path or a path relative to this autospec.conf.
#packages_file = #packages_file =
# Path to yum config, used for generating whatrequires. It can be an absolute # Path to dnf/yum config, used for generating whatrequires. It can be an absolute
# path or a path relative to this autospec.conf. # path or a path relative to this autospec.conf.
#yum_conf = #yum_conf =
@@ -10,13 +10,14 @@ config_opts['releasever'] = 'clear'
config_opts['package_manager'] = 'dnf' config_opts['package_manager'] = 'dnf'
config_opts['yum.conf'] = """ config_opts['dnf.conf'] = """
[main] [main]
cachedir=/var/cache/yum cachedir=/var/cache/dnf
keepcache=1
debuglevel=1 debuglevel=1
reposdir=/dev/null reposdir=/dev/null
logfile=/var/log/yum.log logfile=/var/log/dnf.log
retries=20 retries=20
obsoletes=1 obsoletes=1
gpgcheck=0 gpgcheck=0
+24
View File
@@ -0,0 +1,24 @@
[main]
keepcache=1
debuglevel=1
logfile=/var/log/dnf.log
exactarch=1
obsoletes=1
gpgcheck=0
plugins=0
retries=10
installonly_limit=3
reposdir=/root/mash
[clear]
name=Clear
baseurl=https://cdn.download.clearlinux.org/current/x86_64/os/
enabled=1
gpgcheck=0
[clear-source]
name=Clear sources
failovermethod=priority
baseurl=https://cdn.download.clearlinux.org/current/source/SRPMS/
enabled=1
gpgcheck=0
+32 -1
View File
@@ -7,6 +7,8 @@ FreeRDP
GConf GConf
Jinja2 Jinja2
Keras Keras
Keras_Applications
Keras_Preprocessing
LS_COLORS LS_COLORS
LVM2 LVM2
LibRaw LibRaw
@@ -25,6 +27,7 @@ OpenSP
Paste Paste
PasteDeploy PasteDeploy
Pillow Pillow
PyMySQL
PyWavelets PyWavelets
PyYAML PyYAML
Pygments Pygments
@@ -222,6 +225,7 @@ R-flexmix
R-forcats R-forcats
R-foreach R-foreach
R-formatR R-formatR
R-fossil
R-fpc R-fpc
R-futile.logger R-futile.logger
R-futile.options R-futile.options
@@ -437,6 +441,7 @@ R-setRNG
R-sfsmisc R-sfsmisc
R-sgeostat R-sgeostat
R-shape R-shape
R-shapefiles
R-shiny R-shiny
R-shinyjs R-shinyjs
R-shinystan R-shinystan
@@ -481,6 +486,7 @@ R-tidyr
R-tidyselect R-tidyselect
R-tidyverse R-tidyverse
R-timeDate R-timeDate
R-tinytex
R-tis R-tis
R-tm R-tm
R-topicmodels R-topicmodels
@@ -505,6 +511,7 @@ R-xtable
R-xts R-xts
R-yaml R-yaml
R-zCompositions R-zCompositions
R-zip
R-zoo R-zoo
Remmina Remmina
SDL SDL
@@ -541,7 +548,6 @@ accountsservice
acl acl
acme acme
acpica-unix2 acpica-unix2
acrn-devicemodel
acrn-hypervisor acrn-hypervisor
adwaita-icon-theme adwaita-icon-theme
aeon aeon
@@ -735,6 +741,7 @@ connect-proxy
connman connman
connman-gtk connman-gtk
conntrack-tools conntrack-tools
console-autostart
containerd containerd
contextlib2 contextlib2
coreutils coreutils
@@ -903,6 +910,7 @@ gevent
gexiv2 gexiv2
gfbgraph gfbgraph
gflags gflags
gftp
ghostscript ghostscript
gimp gimp
git git
@@ -1111,6 +1119,11 @@ jupyter_core
jupyterlab jupyterlab
jupyterlab_launcher jupyterlab_launcher
kafka-dep kafka-dep
kata-image
kata-proxy
kata-qemu-lite
kata-runtime
kata-shim
kbd kbd
kernel-install kernel-install
kexec-tools kexec-tools
@@ -1216,6 +1229,7 @@ libisofs
libjpeg-turbo libjpeg-turbo
libjpeg-turbo-soname8 libjpeg-turbo-soname8
libksba libksba
libmbim
libmediaart libmediaart
libmnl libmnl
libmspack libmspack
@@ -1241,6 +1255,7 @@ libpipeline
libpng libpng
libpthread-stubs libpthread-stubs
libpwquality libpwquality
libqmi
librepo librepo
librsvg librsvg
librtlsdr librtlsdr
@@ -1269,6 +1284,7 @@ libunistring
libunwind libunwind
libusb libusb
libuser libuser
libuv
libva libva
libva-intel-driver libva-intel-driver
libva-utils libva-utils
@@ -1305,6 +1321,7 @@ linux-gce
linux-hyperv linux-hyperv
linux-hyperv-lts linux-hyperv-lts
linux-hyperv-mini linux-hyperv-mini
linux-kata
linux-kvm linux-kvm
linux-libc-headers linux-libc-headers
linux-lts linux-lts
@@ -1341,11 +1358,14 @@ mc
mccabe mccabe
mcelog mcelog
mdadm mdadm
meld
memkind
memshrinker memshrinker
mesa mesa
mesa-demos mesa-demos
meson meson
metacity metacity
metrics-discovery
micro-config-drive micro-config-drive
micro-config-drive-aws micro-config-drive-aws
micro-config-drive-oci micro-config-drive-oci
@@ -1362,6 +1382,7 @@ mock
mod_wsgi mod_wsgi
moka-icon-theme moka-icon-theme
more-itertools more-itertools
moreutils
mosh mosh
motd-update motd-update
motif motif
@@ -1489,6 +1510,7 @@ patch
patchutils patchutils
pavucontrol pavucontrol
pbr pbr
pbr-legacy
pbzip2 pbzip2
pciutils pciutils
pcre pcre
@@ -1585,6 +1607,7 @@ perl-Test-NoWarnings
perl-Test-Output perl-Test-Output
perl-Test-Pod perl-Test-Pod
perl-Test-Requires perl-Test-Requires
perl-Test-RequiresInternet
perl-Test-Simple perl-Test-Simple
perl-Test-Taint perl-Test-Taint
perl-Test-Warn perl-Test-Warn
@@ -1619,6 +1642,7 @@ pidgin-sipe
pigz pigz
pinentry pinentry
pip pip
pip-legacy
pixman pixman
pkcs11-helper pkcs11-helper
pkg-config pkg-config
@@ -1685,6 +1709,7 @@ python-augeas
python-dateutil python-dateutil
python-future python-future
python-gflags python-gflags
python-kconfiglib
python-krbV python-krbV
python-magic python-magic
python-memcached python-memcached
@@ -1694,6 +1719,7 @@ python-multilib
python-pkgconfig python-pkgconfig
python-pocketlint python-pocketlint
python-polib python-polib
python-rpm-legacypython
python-subunit python-subunit
python-systemd python-systemd
python-tappy python-tappy
@@ -1758,6 +1784,7 @@ rpm
rr rr
rsa rsa
rsync rsync
rt-tests
ruby ruby
runc runc
rust-std32 rust-std32
@@ -1788,6 +1815,7 @@ serf
setproctitle setproctitle
setserial setserial
setuptools setuptools
setuptools-legacy
setuptools_scm setuptools_scm
setuptools_scm_git_archive setuptools_scm_git_archive
shadow shadow
@@ -1826,11 +1854,13 @@ spice-protocol
spyder-notebook spyder-notebook
sqlite-autoconf sqlite-autoconf
sqlparse sqlparse
squashfs-tools
sshfs sshfs
stack stack
startup-notification startup-notification
stow stow
strace strace
stress-ng
subunit subunit
subversion subversion
sudo sudo
@@ -1935,6 +1965,7 @@ volume_key
vsqlite vsqlite
vte vte
vulkan-sdk vulkan-sdk
waffle
waitress waitress
wayland wayland
wayland-protocols wayland-protocols
+1 -1
View File
@@ -23,7 +23,7 @@ if [ "$#" -eq 0 ]; then
fi fi
if [ ! -e /etc/yum.conf ]; then if [ ! -e /etc/yum.conf ]; then
echo "Error: yum.conf is missing. Please copy projects/common/image-creator/yum.conf to /etc" echo "Error: yum.conf is missing. Please copy projects/common/conf/yum.conf to /etc"
exit 1 exit 1
fi fi
+1
View File
@@ -54,4 +54,5 @@ qemu-system-x86_64 \
-drive file="$IMAGE",if=virtio,aio=threads,format=raw \ -drive file="$IMAGE",if=virtio,aio=threads,format=raw \
-netdev user,id=mynet0,hostfwd=tcp::${VMN}0022-:22,hostfwd=tcp::${VMN}2375-:2375 \ -netdev user,id=mynet0,hostfwd=tcp::${VMN}0022-:22,hostfwd=tcp::${VMN}2375-:2375 \
-device virtio-net-pci,netdev=mynet0 \ -device virtio-net-pci,netdev=mynet0 \
-device virtio-rng-pci \
-debugcon file:debug.log -global isa-debugcon.iobase=0x402 $@ -debugcon file:debug.log -global isa-debugcon.iobase=0x402 $@
+1 -1
View File
@@ -142,7 +142,7 @@ if [ "$USE_KOJI" ]; then
if [ ! -f /etc/koji.conf ]; then if [ ! -f /etc/koji.conf ]; then
echo "Setting up koji config . . ." echo "Setting up koji config . . ."
sudo cp projects/common/koji-client-files/koji.conf /etc sudo cp projects/common/conf/koji.conf /etc
fi fi
fi fi