Compare commits

..

21 Commits

Author SHA1 Message Date
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
13 changed files with 91 additions and 12 deletions
+4 -4
View File
@@ -54,17 +54,17 @@ LATEST_SRPMS = $(LATEST_RELEASE)/source/SRPMS
PACKAGES_FILE = $(TOPLVL)/projects/common/packages
# 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
# in "pkg-mapping" for cloning/pulling package repos.
USE_PACKAGE_MAPPING = yes
# Package manager config file. Default to the in-tree copy.
PM_CONF = $(TOPLVL)/projects/common/image-creator/yum.conf
# Package manager config file. Default to the in-tree copy of dnf.conf.
PM_CONF = $(TOPLVL)/projects/common/conf/dnf.conf
# 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
+2 -1
View File
@@ -10,6 +10,7 @@ include $(TOPLVL)/projects/common/Makefile.shared
SHELL = /bin/bash
PKGS = $(shell cat $(PACKAGES_FILE))
PKGS_LOCAL = $(sort $(filter ${PKGS},$(subst packages/,,$(wildcard packages/*))))
proj_PKGS = $(addprefix proj_,$(PROJ_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 silent if there are no changes.
.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}:
@p=$(patsubst PULL_%,%,$@) ; \
if [ ! -d "$$p/.git" ]; then echo "Nothing to pull for $$p - $$p/.git missing"; exit 0; fi; \
+1 -1
View File
@@ -118,7 +118,7 @@ $ make build
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
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`
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.
#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.
#yum_conf =
@@ -10,13 +10,14 @@ config_opts['releasever'] = 'clear'
config_opts['package_manager'] = 'dnf'
config_opts['yum.conf'] = """
config_opts['dnf.conf'] = """
[main]
cachedir=/var/cache/yum
cachedir=/var/cache/dnf
keepcache=1
debuglevel=1
reposdir=/dev/null
logfile=/var/log/yum.log
logfile=/var/log/dnf.log
retries=20
obsoletes=1
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
+22
View File
@@ -7,6 +7,8 @@ FreeRDP
GConf
Jinja2
Keras
Keras_Applications
Keras_Preprocessing
LS_COLORS
LVM2
LibRaw
@@ -25,6 +27,7 @@ OpenSP
Paste
PasteDeploy
Pillow
PyMySQL
PyWavelets
PyYAML
Pygments
@@ -222,6 +225,7 @@ R-flexmix
R-forcats
R-foreach
R-formatR
R-fossil
R-fpc
R-futile.logger
R-futile.options
@@ -437,6 +441,7 @@ R-setRNG
R-sfsmisc
R-sgeostat
R-shape
R-shapefiles
R-shiny
R-shinyjs
R-shinystan
@@ -505,6 +510,7 @@ R-xtable
R-xts
R-yaml
R-zCompositions
R-zip
R-zoo
Remmina
SDL
@@ -735,6 +741,7 @@ connect-proxy
connman
connman-gtk
conntrack-tools
console-autostart
containerd
contextlib2
coreutils
@@ -903,6 +910,7 @@ gevent
gexiv2
gfbgraph
gflags
gftp
ghostscript
gimp
git
@@ -1111,6 +1119,11 @@ jupyter_core
jupyterlab
jupyterlab_launcher
kafka-dep
kata-image
kata-proxy
kata-qemu-lite
kata-runtime
kata-shim
kbd
kernel-install
kexec-tools
@@ -1216,6 +1229,7 @@ libisofs
libjpeg-turbo
libjpeg-turbo-soname8
libksba
libmbim
libmediaart
libmnl
libmspack
@@ -1241,6 +1255,7 @@ libpipeline
libpng
libpthread-stubs
libpwquality
libqmi
librepo
librsvg
librtlsdr
@@ -1305,6 +1320,7 @@ linux-gce
linux-hyperv
linux-hyperv-lts
linux-hyperv-mini
linux-kata
linux-kvm
linux-libc-headers
linux-lts
@@ -1341,11 +1357,13 @@ mc
mccabe
mcelog
mdadm
memkind
memshrinker
mesa
mesa-demos
meson
metacity
metrics-discovery
micro-config-drive
micro-config-drive-aws
micro-config-drive-oci
@@ -1362,6 +1380,7 @@ mock
mod_wsgi
moka-icon-theme
more-itertools
moreutils
mosh
motd-update
motif
@@ -1685,6 +1704,7 @@ python-augeas
python-dateutil
python-future
python-gflags
python-kconfiglib
python-krbV
python-magic
python-memcached
@@ -1758,6 +1778,7 @@ rpm
rr
rsa
rsync
rt-tests
ruby
runc
rust-std32
@@ -1831,6 +1852,7 @@ stack
startup-notification
stow
strace
stress-ng
subunit
subversion
sudo
+1 -1
View File
@@ -23,7 +23,7 @@ if [ "$#" -eq 0 ]; then
fi
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
fi
+1 -1
View File
@@ -142,7 +142,7 @@ if [ "$USE_KOJI" ]; then
if [ ! -f /etc/koji.conf ]; then
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