99 Commits

Author SHA1 Message Date
clrbuilder
cc16065a09 Update packages file for version 21790
Signed-off-by: clrbuilder <clrbuilder@intel.com>
21800 21790
2018-04-11 13:01:37 +00:00
clrbuilder
45f2185a25 Update packages file for version 21780
Signed-off-by: clrbuilder <clrbuilder@intel.com>
21780
2018-04-10 19:05:07 +00:00
clrbuilder
9ffc0b9640 Update packages file for version 21770
Signed-off-by: clrbuilder <clrbuilder@intel.com>
21770
2018-04-10 13:03:01 +00:00
clrbuilder
98c5937801 Update packages file for version 21760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
21760
2018-04-09 20:56:43 +00:00
clrbuilder
a50450212c Update packages file for version 21720
Signed-off-by: clrbuilder <clrbuilder@intel.com>
21740
2018-04-08 13:28:18 +00:00
clrbuilder
ab77a99a47 Update packages file for version 21710
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-07 17:41:19 +00:00
clrbuilder
090bb77f92 Update packages file for version 21690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
21700
2018-04-06 15:50:48 +00:00
clrbuilder
f2b7a30d12 Update packages file for version 21670
Signed-off-by: clrbuilder <clrbuilder@intel.com>
21680 21670
2018-04-05 13:07:37 +00:00
clrbuilder
c26e27ce65 Update packages file for version 21640
Signed-off-by: clrbuilder <clrbuilder@intel.com>
21660 21650
2018-04-03 20:07:19 +00:00
clrbuilder
6fa010e10b Update packages file for version 21610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
21630
2018-04-03 13:25:42 +00:00
clrbuilder
173673b5c6 Update packages file for version 21600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
21600
2018-04-02 19:07:05 +00:00
clrbuilder
eea34ccd7f Update packages file for version 21590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-02 13:49:46 +00:00
clrbuilder
fa58b00fb7 Update packages file for version 21580
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-03-30 19:24:39 +00:00
Patrick McCarty
cd9b9c1319 user-setup: remove suggestion to run 'newgrp kvm'
If you run `newgrp kvm` after the user-setup script completes, and then
proceed to run `make build`, `make autospec`, etc. within a package
repo, mock will fail because it tries to `groupadd mockbuild` in the
package chroot with the wrong group ID. Logging out and logging back in
results in correct behavior, so leave that as the sole recommendation.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
21570
2018-03-29 10:52:16 -07:00
Patrick McCarty
d22e4f985d Minor style fix in Makefile.toplevel
In my previous commit, one of the changed lines used a combination of
tabs and spaces, but it should have used tabs only.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-28 22:19:37 -07:00
clrbuilder
eb58950c17 Update packages file for version 21540
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-03-28 16:51:30 +00:00
Patrick McCarty
8ff80b0be2 Sync options for 'autospec' and 'autospecnew' commands
Over time, the autospec options used for 'autospec' and 'autospecnew'
commands have diverged. They are meant to be in sync, so do that here,
and format the recipe in a way that eases future changes.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-26 14:12:38 -07:00
Patrick McCarty
05634010e9 Disable recipe echo and set -x for 'pullrebase'
The echo commands at key points of the pullrebase should be sufficient
for users to know what action pullrebase performed.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
21520 21530
2018-03-23 16:42:20 -07:00
Patrick McCarty
f6442a0e7f Improve behavior of 'make autospec' for new repos
If a new package repo is created with make autospecnew, and then make
autospec is run immediately afterward, a git fetch is performed, but
the remote repo is not likely to exist yet.

Address this issue by only running the git fetch if the remote origin is
initialized locally via a git push, git pull, etc.

In addition to properly supporting the workflow described above, this
change also enables developers to build packages that are *not* intended
to be included in Clear Linux OS, thus not destined to appear in the
'packages' file. Package repos of this nature might have different,
manually configured remotes, or the remote may never be initialized at
all if builds are only run locally.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-23 11:59:56 -07:00
clrbuilder
d6250a68cd Update packages file for version 21500
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21510 21500
2018-03-23 06:01:38 -07:00
clrbuilder
a0208a0509 Update packages file for version 21490
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21490
2018-03-22 12:48:08 -07:00
clrbuilder
7ff122463b Update packages file for version 21480
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
2018-03-22 07:16:18 -07:00
clrbuilder
08498361a4 Update packages file for version 21470
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
2018-03-22 06:01:51 -07:00
clrbuilder
1b8c8d250d Update packages file for version 21440
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21460 21450 21440
2018-03-20 12:03:00 -07:00
clrbuilder
4eccb104d5 Update packages file for version 21420
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21430 21420
2018-03-19 12:04:45 -07:00
clrbuilder
4ac2b829d3 Update packages file for version 21410
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21410
2018-03-19 06:51:50 -07:00
clrbuilder
052fa48e83 Update packages file for version 21400
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21400
2018-03-16 15:00:30 -07:00
clrbuilder
382ed28176 Update packages file for version 21390
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21390
2018-03-16 08:16:43 -07:00
Patrick McCarty
e695db8c80 Fix 'make pull' to honor the autospec pushurl
A 'make clone' sets the proper git pushurl for autospec, but a
subsequent 'make pull' does not honor override. Fix by adding a special
condition for 'make pull'.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
21380
2018-03-14 17:30:10 -07:00
clrbuilder
f12e7e48ea Update packages file for version 21340
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21360 21350
2018-03-14 12:01:52 -07:00
clrbuilder
f269683632 Update packages file for version 21310
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21330
2018-03-13 15:52:23 -07:00
clrbuilder
a2c4413083 Update packages file for version 21220
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21290 21280 21270 21260
2018-03-08 17:29:54 -08:00
Patrick McCarty
cc6e70bb29 Enable local repo notice for autospec commands
Similar to how a notice is printed for 'make build', enable the same
notice for 'make autospec' and 'make autospecnew'.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-08 14:01:48 -08:00
Patrick McCarty
f3989c0d5a Enable local repo support for autospec
Local repo support was recently added for 'make build', so do the same
for 'make autospec' and 'make autospecnew'.

Note that to make mock invocations work at both package-level and
toplevel, I am resolving MOCK_CONFIG_VAL with the realpath function.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-07 16:36:41 -08:00
Patrick McCarty
f697b227e8 Rename Makefile.functions to Makefile.shared
The name "shared" makes more sense at this point, since the makefile
does not contain only functions, and it is meant to be shared between
Makefile.common and Makefile.toplevel.

Also, reorder the makefile includes, since Makefile.shared should be
able to use variables defined in Makefile.config.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-07 16:00:24 -08:00
clrbuilder
01e548b268 Update packages file for version 21180
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21180
2018-03-07 12:02:02 -08:00
Patrick McCarty
128799fa02 local repo: unhide local repo conf files
To make sure the conf files are more visible in the local repo
directory, unhide them by installing them without a leading dot
character.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
21170
2018-03-06 16:56:47 -08:00
Patrick McCarty
ad77e695dc local repo: instantiate repo after creating the directory
DNF seems to ignore an uninitialized repo, but Yum does not. To fix,
make sure to run createrepo immediately after creating the local repo
directory.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-06 16:56:47 -08:00
Patrick McCarty
8bf6c59e96 Enable local repo support for 'make build'
With this change, 'make build' will automatically use the local repo, if
enabled. A notice is printed in case the user didn't want to use the
local repo and wishes to disable it with 'make repodisable'.

Another functional change here is that 'make build' will use the in-tree
mock config (clear.cfg) instead of the /etc/mock/clear.cfg. If this
behavior is not desired, then MOCK_CONF can be modified in
Makefile.config, or overridden by a Makefile.config.site_local.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-06 16:56:47 -08:00
Patrick McCarty
ac3f1898f6 local repo: forcibly remove RPMs from the local dir
In case the user runs 'make repoclean' followed by 'make repoadd' in a
package repo dir, 'rm' will complain. Add the -f option to silence those
warnings.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-06 16:56:47 -08:00
Patrick McCarty
905b1d1c06 local repo: add toplevel 'repoclean' command
In case the user wants to remove all RPMs from the local repo, they can
now run 'make repoclean' at toplevel.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-06 16:56:47 -08:00
Patrick McCarty
e3b1adedd8 local repo: add 'repostatus' command
This new command displays a helpful summary of what packages exist in
the local RPM repo and whether it is enabled for Yum/DNF, Mock, or both.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-06 16:56:47 -08:00
Patrick McCarty
ab142ead38 local repo: run createrepo after 'repodel' removes RPMs
To ensure that RPM repo metadata is always up-to-date for the local
repo, make sure createrepo is run after removing the RPMs.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-06 16:56:47 -08:00
Patrick McCarty
a9982b4064 local repo: add Mock support and enable/disable commands
An interface for a local RPM repository already exists, so extend it by
adding Mock support and the ability to enable and disable the
repository, at package level and at toplevel.

Integration for commands that use Mock will be added in separate
commits.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-06 16:56:47 -08:00
clrbuilder
9f8869fdff Update packages file for version 21150
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21160 21150
2018-03-06 06:01:44 -08:00
Patrick McCarty
9892e87aec autospecnew: never clone the remote repo
With the assumption that developers will be keeping up-to-date by
running 'make pull; make clone', trying to clone the remote repo here is
not necessary.

If the package git repo already exists locally, no action is taken.
Otherwise, create a local package git repo, and then run autospec.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
21140 21130 21110 21100 21070 21080 21060 21010
2018-02-26 13:34:52 -08:00
clrbuilder
100ad5965e Update packages file for version 20920
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
21000 20960 20940 20920
2018-02-22 12:01:34 -08:00
clrbuilder
61db58c057 Update packages file for version 20910
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
20910
2018-02-22 06:01:30 -08:00
clrbuilder
abe044ee0c Update packages file for version 20890
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
20890
2018-02-21 06:01:43 -08:00
clrbuilder
8997c889f8 Update packages file for version 20870
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
20880 20870
2018-02-20 06:28:36 -08:00