Compare commits

..

747 Commits

Author SHA1 Message Date
clrbuilder 97edcccc6f Update packages file for version 32550
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-06 06:09:30 +00:00
clrbuilder 16fb031192 Update packages file for version 32540
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-05 06:10:39 +00:00
clrbuilder 46d98726d5 Update packages file for version 32530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-04 06:11:22 +00:00
Arjan van de Ven 0fa3b3812c reduce more spec file noise 2020-03-03 17:27:52 +00:00
Arjan van de Ven c6ae76c720 reduce noise in review some more 2020-03-03 17:21:40 +00:00
Arjan van de Ven b1cfa8f828 avoid ehx poisoning 2020-03-03 17:20:50 +00:00
Arjan van de Ven 2f03d06fc4 also drop .asc files from the review... avoid hex poisoning 2020-03-03 17:18:51 +00:00
clrbuilder 514dbd5f33 Update packages file for version 32520
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-03 08:11:55 +00:00
clrbuilder 97894ec9b3 Update packages file for version 32510
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-02 06:10:25 +00:00
clrbuilder 4512f3ae00 Update packages file for version 32500
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-28 17:45:41 +00:00
clrbuilder 4bbdd450d4 Update packages file for version 32490
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-28 06:10:11 +00:00
puneetse f2a32480ae Add diffstat in required programs check
diffstat is required to geenrate the for-review.txt
2020-02-26 19:44:50 +00:00
Patrick McCarty 8aa923a5a6 Replace gitdb2/smmap2 with gitdb/smmap
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-02-24 16:20:26 -08:00
clrbuilder a757a26828 Update packages file for version 32390
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-24 18:20:28 +00:00
clrbuilder c69acb2821 Update packages file for version 32380
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-21 06:09:31 +00:00
Arzhan Kinzhalin cbb1d9688e make koji: check remote tag exists beforehand 2020-02-20 10:17:32 -08:00
clrbuilder 9b778e9f80 Update packages file for version 32370
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-20 06:09:16 +00:00
clrbuilder 0894cd7083 Update packages file for version 32360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-19 06:11:53 +00:00
clrbuilder f07e797a3b Update packages file for version 32350
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-18 06:09:34 +00:00
clrbuilder 6b614da982 Update packages file for version 32340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-17 06:10:46 +00:00
clrbuilder 56fd505d76 Update packages file for version 32330
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-14 06:10:52 +00:00
clrbuilder 60fe195c79 Update packages file for version 32310
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-12 06:09:47 +00:00
Patrick McCarty f56e102bc1 new package: R-R.cache
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-02-10 18:59:22 -08:00
clrbuilder 8d829d1b6e Update packages file for version 32280
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-10 06:10:16 +00:00
Patrick McCarty f6921f41e9 Update license list for SPDX 3.8
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-02-09 15:49:35 -08:00
clrbuilder 1988c8296f Update packages file for version 32260
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-06 06:09:47 +00:00
clrbuilder d5056dcee3 Update packages file for version 32250
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-05 06:10:27 +00:00
clrbuilder e83915a24d Update packages file for version 32240
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-02-01 02:02:33 +00:00
clrbuilder 8de4c25ecc Update packages file for version 32230
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-31 06:10:10 +00:00
clrbuilder 9feee99965 Update packages file for version 32220
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-30 06:09:51 +00:00
clrbuilder 9396728fca Update packages file for version 32200
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-28 06:09:37 +00:00
clrbuilder 974734a9c2 Update packages file for version 32190
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-27 06:11:01 +00:00
clrbuilder 97aec0b795 Update packages file for version 32170
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-23 06:09:20 +00:00
clrbuilder 46c0cf7449 Update packages file for version 32160
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-22 06:09:35 +00:00
clrbuilder 9993ccf733 Update packages file for version 32140
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-20 06:10:17 +00:00
clrbuilder 9f39df7d55 Update packages file for version 32130
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-17 22:25:10 +00:00
clrbuilder a5e894a480 Update packages file for version 32120
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-17 06:10:02 +00:00
clrbuilder 7eb9678104 Update packages file for version 32110
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-16 06:10:18 +00:00
clrbuilder 3d0f911262 Update packages file for version 32100
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-15 06:09:36 +00:00
clrbuilder 01888ddee2 Update packages file for version 32090
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-14 06:09:48 +00:00
clrbuilder c0c61628a8 Update packages file for version 32070
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-10 06:09:40 +00:00
clrbuilder c858d8c2e1 Update packages file for version 32060
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-09 06:09:27 +00:00
Patrick McCarty 450e84f809 Set priority=1 for local repo
The RPMs from repo `localrepo` should have priority over RPMs from the
main repo, so set `priority=1` for it.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-01-08 17:18:19 -08:00
clrbuilder d36cb4c6c3 Update packages file for version 32050
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-08 06:10:39 +00:00
Patrick McCarty 139a6e4a14 Add new package: R-pROC
New dependency for R-caret

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-01-07 16:25:41 -08:00
clrbuilder 37bda022bb Update packages file for version 32040
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-07 06:09:58 +00:00
Arjan van de Ven ddc326e53c more patterns 2020-01-06 17:01:48 +00:00
Arjan van de Ven a3a27cd156 more patterns 2020-01-06 17:00:22 +00:00
clrbuilder 4579fa3816 Update packages file for version 32030
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-01-06 06:10:18 +00:00
clrbuilder c14cac39e5 Update packages file for version 31970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-12-23 06:09:52 +00:00
clrbuilder 070be802aa Update packages file for version 31960
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-12-20 06:10:00 +00:00
clrbuilder 4102816787 Update packages file for version 31950
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-12-19 06:10:27 +00:00
Arjan van de Ven 4c9c2abd21 add some more filters 2019-12-18 15:04:13 +00:00
clrbuilder 70b4977b53 Update packages file for version 31940
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-12-18 06:11:09 +00:00
clrbuilder 7276bc89e9 Update packages file for version 31930
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-12-17 06:22:47 +00:00
clrbuilder fffa8f1e78 Update packages file for version 31920
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-12-16 06:09:29 +00:00
clrbuilder 9cc15023ed Update packages file for version 31890
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-12-12 02:42:43 +00:00
clrbuilder 7f5674bf08 Update packages file for version 31820
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-12-06 06:16:06 +00:00
clrbuilder de60634e85 Update packages file for version 31800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-12-04 06:16:58 +00:00
clrbuilder 2b6b201866 Update packages file for version 31780
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-12-02 06:09:56 +00:00
clrbuilder b24f00531c Update packages file for version 31760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-28 06:09:32 +00:00
clrbuilder bf4c541b1d Update packages file for version 31740
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-27 00:47:09 +00:00
clrbuilder 25ea756641 Update packages file for version 31730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-26 17:44:35 +00:00
clrbuilder 367aa5c4de Update packages file for version 31700
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-22 06:19:07 +00:00
Patrick McCarty 073d828fa2 Add R-farver, needed for latest R-scales
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-11-20 22:36:46 -08:00
Patrick McCarty ce049d2064 Add R-leaflet.providers, needed for latest R-leaflet
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-11-20 22:35:47 -08:00
clrbuilder c2d67c1502 Update packages file for version 31690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-21 06:08:25 +00:00
clrbuilder 98cf84d3f3 Update packages file for version 31680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-20 06:09:57 +00:00
clrbuilder 2c3c1225bf Update packages file for version 31670
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-19 06:10:36 +00:00
clrbuilder 65dcbd3bc9 Update packages file for version 31650
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-15 06:09:40 +00:00
clrbuilder 76ae6fd76f Update packages file for version 31640
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-14 06:08:33 +00:00
clrbuilder 69164ec2ca Update packages file for version 31630
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-13 06:10:19 +00:00
Patrick McCarty 185dec68b8 Improve handling of autospec's --mock-opts option
This change allows specifying short/long mock options via MOCK_OPTS
without a leading backslash escape.

For example, `MOCK_OPTS="\--old-chroot --no-clean"` can now be specified
as `MOCK_OPTS="--old-chroot --no-clean"`.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-11-11 12:52:26 -08:00
clrbuilder cc9b2ee03b Update packages file for version 31570
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-11 19:59:55 +00:00
clrbuilder 0b9161a6d7 Update packages file for version 31560
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-11 17:03:02 +00:00
clrbuilder 7c92a06cb9 Update packages file for version 31550
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-11 06:10:16 +00:00
Brett T. Warden 214ace3bd0 Add ISSL to license exceptions 2019-11-07 13:28:07 -08:00
clrbuilder 8d82f1d245 Update packages file for version 31530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-07 06:16:23 +00:00
clrbuilder b250cfe2b0 Update packages file for version 31510
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-05 19:04:10 +00:00
clrbuilder c7eae41e54 Update packages file for version 31500
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-05 06:16:01 +00:00
clrbuilder 55a3d9c6bf Update packages file for version 31480
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-03 21:13:55 +00:00
clrbuilder 41ed095a08 Update packages file for version 31470
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-11-01 05:16:04 +00:00
clrbuilder 7a653585b2 Update packages file for version 31460
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-31 05:20:16 +00:00
clrbuilder 8ffb3603dc Update packages file for version 31450
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-30 05:15:32 +00:00
Patrick McCarty b895daa84f Add R-sets package
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-10-29 12:24:37 -07:00
clrbuilder 48fbe7cd3e Update packages file for version 31410
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-28 05:16:01 +00:00
clrbuilder 39aed7cee7 Update packages file for version 31400
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-25 05:15:01 +00:00
clrbuilder 23c281b1c8 Update packages file for version 31390
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-24 05:25:58 +00:00
Patrick McCarty d402ae1449 Update license list for SPDX 3.7
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-10-23 20:46:27 -07:00
clrbuilder 72cc059f89 Update packages file for version 31370
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-22 05:19:22 +00:00
clrbuilder 0d56579421 Update packages file for version 31360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-21 05:16:13 +00:00
clrbuilder 02d46e6db4 Update packages file for version 31350
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-18 05:15:50 +00:00
clrbuilder 4adb7a1524 Update packages file for version 31340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-17 17:04:57 +00:00
clrbuilder be21e942aa Update packages file for version 31330
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-17 05:15:57 +00:00
clrbuilder 4e9b844267 Update packages file for version 31320
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-16 05:15:38 +00:00
clrbuilder facb8827f7 Update packages file for version 31310
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-15 05:16:13 +00:00
clrbuilder 77c5172cf9 Update packages file for version 31300
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-14 05:17:15 +00:00
Arjan van de Ven ae4ea46b1c flatten-json mapping 2019-10-13 18:10:01 +00:00
clrbuilder 8e18acca7a Update packages file for version 31280
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-10 05:15:57 +00:00
clrbuilder ed15af71c8 Update packages file for version 31270
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-09 05:28:26 +00:00
clrbuilder 3c20fc2ad8 Update packages file for version 31260
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-08 19:16:31 +00:00
santoshkumar d7f6ddcce1 make bump : Replaced *.spec to package specfilic specfile variable $(SPECFILE).
In the submmitter's local pacakge directory can have mulptiple spec file present,
or swap file thus to avoid adding multiple specfile in git add better only add package
specific specfile.

Signed-off-by: santoshkumar <santoshkumar.laxminarayan.rai@intel.com>
2019-10-03 10:15:36 -07:00
Alex Jaramillo 22a927e26b Removing cve-check-tool
This tool no longer works and the repo looks abandoned (last commit
04/27/2017). The NVD cve database has changed format since.

Signed-off-by: Alex Jaramillo <alex.v.jaramillo@intel.com>
2019-10-01 22:24:48 +00:00
clrbuilder 4a29a2d5c1 Update packages file for version 31140
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-10-01 06:40:52 +00:00
Patrick McCarty 81ef638151 autospec: establish different calling convention for setting cli booleans
For the `make autospec` variants, use a simpler calling convention so
that the callers do not need to know the boolean option names.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-09-29 13:30:41 -07:00
clrbuilder 50b8b07d34 Update packages file for version 31120
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-27 05:03:55 +00:00
clrbuilder 47b634bc75 Update packages file for version 31110
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-26 05:03:18 +00:00
clrbuilder 292ea0bde9 Update packages file for version 31100
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-25 05:04:12 +00:00
clrbuilder b0f7bbfb90 Update packages file for version 31090
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-24 05:03:00 +00:00
Patrick McCarty 20d0fece07 Add R-covr and R-lifecycle
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-09-23 12:46:13 -07:00
clrbuilder 0f546b20f5 Update packages file for version 31080
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-23 05:03:25 +00:00
clrbuilder 16a09f7fa6 Update packages file for version 31070
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-20 05:06:44 +00:00
clrbuilder 5a438328f2 Update packages file for version 31060
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-19 05:10:42 +00:00
clrbuilder 9ffb55be69 Update packages file for version 31050
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-18 05:03:03 +00:00
Patrick McCarty af3c84505d toplevel: set autospec pushurl to ssh instead of https
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-09-17 14:34:16 -07:00
clrbuilder a865a99283 Update packages file for version 31020
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-14 05:28:57 +00:00
clrbuilder 9e8f0a6ff0 Update packages file for version 31010
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-13 05:02:30 +00:00
clrbuilder 76301d4b78 Update packages file for version 31000
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-12 05:02:38 +00:00
clrbuilder 08bef91443 Update packages file for version 30990
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-11 05:03:26 +00:00
clrbuilder 93202eb3b5 Update packages file for version 30970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-09 05:02:59 +00:00
clrbuilder 14977f527c Update packages file for version 30960
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-06 05:06:16 +00:00
clrbuilder fa93c354e1 Update packages file for version 30950
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-09-05 05:03:15 +00:00
Patrick McCarty 6a54f15cb6 Add new package: R-systemfonts
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-09-03 21:14:03 -07:00
clrbuilder fa42020aa9 Update packages file for version 30910
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-31 23:58:25 +00:00
clrbuilder a727fe3722 Update packages file for version 30900
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-30 05:03:46 +00:00
clrbuilder c41eeea37a Update packages file for version 30890
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-29 05:03:31 +00:00
clrbuilder a07f64294f Update packages file for version 30870
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-27 05:03:19 +00:00
clrbuilder 59a3a29c4c Update packages file for version 30840
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-22 05:02:48 +00:00
clrbuilder cba91e5044 Update packages file for version 30830
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-21 05:02:27 +00:00
Patrick McCarty a5d39507cc Merge tag 'refs/tags/30820' into master 2019-08-20 21:09:12 -07:00
clrbuilder dc644c29a0 Update packages file for version 30820
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-20 05:02:31 +00:00
clrbuilder f5febd9cd6 Update packages file for version 30810
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-17 05:02:00 +00:00
clrbuilder 33911b18e5 Update packages file for version 30800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-16 05:02:20 +00:00
Patrick McCarty 13e5e26cbf Move manual setup steps to a separate file
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-08-14 17:57:18 -07:00
clrbuilder 4845303ae6 Update packages file for version 30780
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-14 05:03:31 +00:00
clrbuilder 6fdc492121 Update packages file for version 30740
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-10 05:02:49 +00:00
clrbuilder 7614474aba Update packages file for version 30720
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-08 18:20:52 +00:00
clrbuilder 5bee2e96d2 Update packages file for version 30710
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-08 05:02:42 +00:00
clrbuilder 6cc08f74e7 Update packages file for version 30700
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-07 05:03:04 +00:00
clrbuilder 5b64c9b888 Update packages file for version 30690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-06 14:03:17 +00:00
clrbuilder 88c420528d Update packages file for version 30680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-06 05:02:55 +00:00
clrbuilder 98c7c4cb76 Update packages file for version 30670
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-05 14:12:19 +00:00
clrbuilder e2ce4353b6 Update packages file for version 30660
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-03 05:03:25 +00:00
clrbuilder 08512d3f2b Update packages file for version 30620
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-08-01 05:06:06 +00:00
Patrick McCarty f6be3f440a Unzap the addition of GCC_IGNORE_WERROR lines
Once this line is added to a package spec, it is likely to never show up
again, and its initial appearance may have a significant impact on the
build, so it is good to keep to not lose context.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-07-31 20:55:30 -07:00
clrbuilder 1a79ab1700 Update packages file for version 30600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-31 05:04:26 +00:00
clrbuilder a6fa6599bb Update packages file for version 30580
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-30 05:23:32 +00:00
Patrick McCarty 9d6c5e6677 Fix call to the go-builder wrapper script
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-07-29 17:44:24 -07:00
William Douglas 460ce05217 Add go-builder.py and autospecnewgo target
This change enables recurive dependency resolution and packaging when
creating new go packages. To do so the 'autospecnewgo' target is
created and the autospecnew target is slightly modified to align
make target exit code expectations for failure handling.
2019-07-29 17:44:24 -07:00
William Douglas 8a2da3412d Add repostage target
When building large numbers of packages that are interdependent,
recreating the rpm repository for each package can create a large
overhead during processing. 'repostage' is intended to provide an
intermediate target for adding a package to a repository that can
later be built using localrepocreate.
2019-07-29 17:44:24 -07:00
clrbuilder 94624262ae Update packages file for version 30570
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-29 14:07:14 +00:00
clrbuilder 15a220803f Update packages file for version 30550
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-26 22:33:53 +00:00
Patrick McCarty 4130c1c97d Add new package R-mvnfast
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-07-25 12:18:01 -07:00
Patrick McCarty 7c28f0608d Add new package R-linprog
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-07-25 11:37:50 -07:00
clrbuilder 1b0945c33d Update packages file for version 30530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-25 18:04:39 +00:00
Patrick McCarty 1300eba2b4 Refresh SPDX license list
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-07-23 15:53:16 -07:00
clrbuilder 91a900675e Update packages file for version 30490
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-23 16:02:12 +00:00
clrbuilder b137543491 Update packages file for version 30480
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-23 08:02:29 +00:00
clrbuilder bb27567407 Update packages file for version 30470
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-22 17:05:41 +00:00
clrbuilder 2973364b2e Update packages file for version 30460
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-20 16:36:42 +00:00
clrbuilder 865997ad69 Update packages file for version 30450
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-19 08:02:20 +00:00
clrbuilder 70bfbe8c17 Update packages file for version 30440
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-18 08:02:19 +00:00
Patrick McCarty 3b1e4e5558 pullrebase: skip rebase if current branch is up-to-date
Any attempt at rebasing is unnecessary when the current branch is
up-to-date with the remote, so skip the rebase in this case.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-07-17 12:54:04 -07:00
clrbuilder 2465219907 Update packages file for version 30420
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-17 16:15:58 +00:00
clrbuilder 77775f060c Update packages file for version 30410
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-16 18:03:37 +00:00
clrbuilder 67406f7be2 Update packages file for version 30400
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-16 10:01:43 +00:00
clrbuilder 9bece241c0 Update packages file for version 30380
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-15 10:02:02 +00:00
clrbuilder 602cc9563f Update packages file for version 30360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-13 17:54:20 +00:00
George T Kramer 02b5ad93e3 Place koji user configuration in user folder
Avoid placing koji.conf in a system-level directory

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2019-07-11 17:10:09 -07:00
clrbuilder fb40533923 Update packages file for version 30320
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-11 12:02:13 +00:00
clrbuilder 06dd86a3b9 Update packages file for version 30290
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-10 00:47:12 +00:00
clrbuilder 9db26c3041 Update packages file for version 30280
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-09 18:12:07 +00:00
clrbuilder ade6194a0c Update packages file for version 30270
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-09 12:02:10 +00:00
clrbuilder a8d18b2f92 Update packages file for version 30260
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-07 17:52:48 +00:00
Arjan van de Ven c2d637b438 don't shhow version changes in the 32 bit / avx copies 2019-07-05 13:02:00 +00:00
clrbuilder 48d06e458d Update packages file for version 30230
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-05 05:53:08 +00:00
clrbuilder 0ba3b95dad Update packages file for version 30200
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-04 08:19:58 +00:00
Miguel Bernal Marin 9749d00c56 update OVMF* files
Clear Linux edk2 package was updated to stable201905

https://github.com/clearlinux-pkgs/edk2/commit/7b191c6ae982a550f2a335cd4cd4cf2857d94b49

Let's update OVMF.fd and OVMF_CODE.fd

Note:  OVMF_VARS.fd has the same hash and is not updated.

Note2: that these version of OVMF* are a copy from /usr/share/qemu
       in Clear Linux OS 30170.

$ sha512sum /usr/share/qemu/OVMF*
c6630296e4a82dc4a24b20522e815171fd9c1689403a36abf7ec070c7fce85af63b88b328721a94c415f513ffd2423f71e591ae9713e65850b5a29ebd1edac89  /usr/share/qemu/OVMF_CODE.fd
f48de15ce6dbc19c6a0770677a874f289a69df813f31add873d30324df6b96ae0a0756af52fef3101f5077280851f095120663ec68bb6d19b12a6b0937f86df8  /usr/share/qemu/OVMF.fd
448412fd7ba267b4180db8ade6edb67af467e5b9b3e3ff8dfd583a2fded4070f6951667297e6896ce8bd9f4d2ec3dd8a5a70b6e9a2f686efec9a57124fec512a  /usr/share/qemu/OVMF_VARS.fd
2019-07-03 14:22:51 -05:00
clrbuilder 7841d4dd5c Update packages file for version 30190
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-03 18:04:39 +00:00
clrbuilder 91c89fe47d Update packages file for version 30180
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-03 12:02:25 +00:00
Patrick McCarty 9d696fee5a Add R-R2jags and R-R2WinBUGS packages
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-07-02 11:48:05 -07:00
clrbuilder 54aea8a696 Update packages file for version 30160
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-02 12:02:28 +00:00
clrbuilder a4545eb4b0 Update packages file for version 30140
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-07-01 12:02:28 +00:00
clrbuilder 35d4f2c00f Update packages file for version 30130
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-28 18:01:41 +00:00
clrbuilder 15c22ac4eb Update packages file for version 30110
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-26 18:08:11 +00:00
clrbuilder 1c672f7638 Update packages file for version 30100
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-26 12:02:25 +00:00
clrbuilder d0832c89f4 Update packages file for version 30090
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-25 18:03:08 +00:00
clrbuilder 3a87e928c5 Update packages file for version 30080
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-25 12:02:17 +00:00
clrbuilder 5ba1a7e1e3 Update packages file for version 30070
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-24 18:03:08 +00:00
clrbuilder ba02bc2a4f Update packages file for version 30060
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-24 12:02:30 +00:00
clrbuilder 0ef90a4704 Update packages file for version 30050
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-23 15:45:31 +00:00
clrbuilder 0b39553aa6 Update packages file for version 30040
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-21 18:03:19 +00:00
Tan, Yew Wayne 7cd52ed2fd ltsutils: Fix PackageRepo.getNVR for package names that contain '-'
Refactor unit tests, add test case for MySQL-python package
2019-06-21 09:12:15 -07:00
Tan, Yew Wayne a379bdd1e5 ltsutils: prompt: Timeout after 60 seconds
Signed-off-by: Tan, Yew Wayne <yew.wayne.tan@intel.com>
2019-06-21 09:12:15 -07:00
Tan, Yew Wayne b8eaa3c103 ltsutils: make lts-koji: Modify koji target for building on LTS infrastructure
Differences:
- Restrict to submit from an active branch instead of master branch
- git pull --rebase from matching remote LTS branch if available
- Add "-lts" suffix to git tag
- Assume koji buildtag name is identical to branch name

Signed-off-by: Tan, Yew Wayne <yew.wayne.tan@intel.com>
2019-06-21 09:12:15 -07:00
Tan, Yew Wayne 0664274e0a ltsutils: make lts-build: Build RPM or reuse existing build
Todo: can-reuse-binary simply compares package versions to determine if
Koji builds can be shared between branches. Work is in progress to
implement ABI compatiblity testing.

Signed-off-by: Tan, Yew Wayne <yew.wayne.tan@intel.com>
2019-06-21 09:12:15 -07:00
Tan, Yew Wayne 69cee2fcd7 LTS package maintenance utility (ltsutils): initial commit
This tooling is designed to automate 2 main tasks that are part of
the package maintenance workflow of Clear Linux LTS. These tasks are:
- Back-porting of a patch (e.g. security fix) to older branches.
- (Not implemented yet) Building RPMs with the intent of sharing binaries of
  older LTS branches to newer branches whenever possible.

2 new targets are defined in Makefile.common.lts:
- lts-show: Show a summary of active LTS branches
- lts-backport: Attempt to fast-forward the previous active branch to the current branch

"Active" branches correspond to LTS releases that currently have support.
They are listed in a flat file "active-branches" in "lts" directory, from
oldest to newest. New entries are added by Clear Linux LTS developers as
new releases become available, and entries removed as releases become
obsolete.

Note: For CVE patching, the tool is not aware of CVE severity levels or
the minimum supported severity level of each LTS branch. For now it is
the user's responsibility to know when a CVE does not apply to older
branches and stop calling "make lts-backport".

Signed-off-by: Tan, Yew Wayne <yew.wayne.tan@intel.com>
2019-06-21 09:12:15 -07:00
clrbuilder 19d7dfcc56 Update packages file for version 30030
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-21 12:02:15 +00:00
clrbuilder 25e60b8d7f Update packages file for version 30020
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-20 18:02:35 +00:00
clrbuilder c6749e0569 Update packages file for version 30010
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-19 20:21:46 +00:00
Geoffroy Van Cutsem 79b17335fa Really set 'latest_builds' to the latest value of the day
Consider the following scenario:
* System being set-up on day 0 (by running user-setup.sh script)
* The github.com/clearlinux/common repo is cloned under projects/common
* Fast-forward in the future
* Clone a package for which there is no reachable upstream URL
	(e.g. clr-power-tweaks or clr-systemd-config
* Run 'make sources'
That operation will fail because it will search for the src.rpm files starting
with the Clear Linux build determined by looking up the latest tag in the
project/common repo (and the latest is the one from day 0). So it will only find
older versions of those src.rpm, and will eventually fail.

This patch adds a line that fetches all the latest tags from the upstream
projects/common repo so the 'latest_builds' variable is *really* set to the
latest of the day.

Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
2019-06-19 11:03:00 -07:00
clrbuilder 18503d7ff9 Update packages file for version 30000
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-19 15:32:37 +00:00
clrbuilder d4a14d4b51 Update packages file for version 29990
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-19 12:02:34 +00:00
Patrick McCarty 67f9a85781 toplevel: simplify clean-pkgs-dir command
Create a PKGS_ORPHANED list containing all orphaned package repos (i.e.
package repos for packages not listed in projects/common/packages,
excluding the local compatibility packages/common directory), and use
that list for the `clean-pkgs-dir` command.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-06-18 17:30:19 -07:00
clrbuilder 2ab93bc546 Update packages file for version 29980
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-18 18:06:21 +00:00
clrbuilder 0697a48265 Update packages file for version 29970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-18 12:02:24 +00:00
clrbuilder 3488d9df0b Update packages file for version 29960
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-17 17:58:32 +00:00
clrbuilder 7eda6b13d5 Update packages file for version 29950
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-17 11:58:06 +00:00
clrbuilder 22cf4d9aaa Update packages file for version 29940
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-14 17:57:53 +00:00
Arjan van de Ven abf88fe302 add some more boilerplate patterns 2019-06-14 14:48:13 +00:00
Arjan van de Ven e7d86e5ace make it clear there's no point in submitting routine stuff for review
as it only slows things down
2019-06-14 14:41:28 +00:00
clrbuilder 0ca8a71a6a Update packages file for version 29930
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-14 11:57:34 +00:00
clrbuilder c594d50d97 Update packages file for version 29920
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-13 17:58:36 +00:00
clrbuilder 923b813833 Update packages file for version 29910
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-13 11:57:26 +00:00
Thiago Macieira facfc57d55 Update message for the for-review.txt on how to recreate
People SHOULD update commit messages if it's not a simple bump or
version update.

Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
2019-06-12 16:05:52 -07:00
clrbuilder 9e0d404e52 Update packages file for version 29900
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-12 17:58:01 +00:00
clrbuilder 9d954cb33a Update packages file for version 29890
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-12 11:57:25 +00:00
Patrick McCarty 158c743fde Rename typed-ast -> typed_ast
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-06-11 20:48:41 -07:00
clrbuilder c5969bbd83 Update packages file for version 29880
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-11 17:58:21 +00:00
clrbuilder cb01f2b9ef Update packages file for version 29850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-10 11:58:23 +00:00
clrbuilder c58e39da50 Update packages file for version 29840
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-07 17:58:47 +00:00
clrbuilder 26dea91314 Update packages file for version 29830
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-07 12:01:05 +00:00
clrbuilder efa4e1bcf8 Update packages file for version 29820
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-06 17:59:00 +00:00
clrbuilder 9fba303a7b Update packages file for version 29800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-05 20:28:24 +00:00
clrbuilder eefffcb4cd Update packages file for version 29780
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-05 04:24:22 +00:00
clrbuilder ae59dd4aa9 Update packages file for version 29770
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-06-04 21:01:00 +00:00
Patrick McCarty 9ed6cf64eb Add notice about for-review.txt; make compatible with git send-email
The for-review.txt files were being generated with `git show` and thus
not compatible with `git send-email`. Use `git format-patch` instead to
fix this issue.

Also add a more prominent notice about the existence of for-review.txt
and its intended purpose.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-06-03 15:17:49 -07:00
clrbuilder 1e1a52e948 Update packages file for version 29680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-29 13:05:05 +00:00
clrbuilder b9d3725172 Update packages file for version 29660
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-28 13:41:13 +00:00
clrbuilder d2c0eea1d2 Update packages file for version 29620
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-24 11:58:40 +00:00
clrbuilder 038007f64a Update packages file for version 29600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-23 11:58:43 +00:00
clrbuilder 930a8bd3f7 Update packages file for version 29590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-22 19:40:13 +00:00
clrbuilder 33c27808a6 Update packages file for version 29570
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-22 11:59:13 +00:00
Patrick McCarty f9b7f544be scratch-wait: explicitly specify the wait option
We always want the koji CLI to wait for `make scratch-wait`, regardless
of the environment koji detects it is being run under.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-05-22 00:44:24 -07:00
clrbuilder 6fe60137f4 Update packages file for version 29530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-21 11:58:35 +00:00
clrbuilder b32e466635 Update packages file for version 29520
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-20 17:59:07 +00:00
clrbuilder 755bd91716 Update packages file for version 29510
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-20 11:59:04 +00:00
clrbuilder d2b615d14b Update packages file for version 29500
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-18 19:01:47 +00:00
clrbuilder 71b5075a7b Update packages file for version 29480
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-17 18:36:33 +00:00
clrbuilder fd6bcb7b24 Update packages file for version 29410
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-14 12:00:16 +00:00
clrbuilder 771b704606 Update packages file for version 29400
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-13 18:00:17 +00:00
clrbuilder b3ea1cd421 Update packages file for version 29390
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-13 11:59:22 +00:00
clrbuilder 752274f532 Update packages file for version 29380
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-12 00:18:48 +00:00
clrbuilder 1addfd447d Update packages file for version 29360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-10 12:02:05 +00:00
clrbuilder 8546a126bd Update packages file for version 29340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-09 11:59:29 +00:00
clrbuilder 280d5471d7 Update packages file for version 29320
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-08 20:28:09 +00:00
clrbuilder 025c9a74f1 Update packages file for version 29310
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-08 16:33:20 +00:00
clrbuilder b03db840a6 Update packages file for version 29280
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-07 20:23:05 +00:00
Patrick McCarty 59dfc2236f install-debuginfo-local: fix installation with new lookaside locations
Debuginfo packages now install binary debuginfo to /usr/share/debug and
source debuginfo to /usr/share/debug/src.

The purpose for the migration is for these new locations to serve as
"lookaside" directories used by future versions of clr-debug-info,
enabling select debuginfo packages to be installed in bundles and safely
coexist with the FUSE mounts.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-05-07 10:58:47 -07:00
clrbuilder e61ebaafc6 Update packages file for version 29260
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-06 22:59:08 +00:00
clrbuilder 4bcceb402e Update packages file for version 29250
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-06 17:59:59 +00:00
clrbuilder 5e15b47efc Update packages file for version 29240
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-06 12:00:02 +00:00
clrbuilder 043265171f Update packages file for version 29220
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-05 19:41:10 +00:00
clrbuilder 982d58e0e6 Update packages file for version 29210
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-05 04:24:30 +00:00
clrbuilder accf578c02 Update packages file for version 29190
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-03 11:59:52 +00:00
clrbuilder efe2b2bccf Update packages file for version 29170
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-05-02 12:01:06 +00:00
clrbuilder 9f77cbb6e3 Update packages file for version 29110
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-29 15:52:05 +00:00
Arjan van de Ven bd6c14938b also zap ChangeLog 2019-04-29 15:11:11 +00:00
clrbuilder 32729558d9 Update packages file for version 29080
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-26 12:00:00 +00:00
Patrick McCarty b2ad8dbda8 patchreview: exclude whatrequires file
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-04-25 16:26:06 -07:00
Patrick McCarty e545190de3 Fixups for autospecnew
- Run git commands within the newly created package repo
- Only run these commands if autospec succeeds

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-04-25 15:24:24 -07:00
Arjan van de Ven 9921115897 git diff not git show 2019-04-25 21:59:43 +00:00
clrbuilder 8d5f8e37c5 Update packages file for version 29070
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-25 18:25:09 +00:00
Arjan van de Ven 6bc5718c25 Add patchfilter to autsopecnew 2019-04-25 18:21:11 +00:00
clrbuilder a21156767e Update packages file for version 29040
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-24 11:59:52 +00:00
clrbuilder 9dd5bb895b Update packages file for version 29020
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-23 12:00:10 +00:00
clrbuilder 67b7ef2bf4 Update packages file for version 29000
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-22 17:39:28 +00:00
clrbuilder 6ad56934fd Update packages file for version 28990
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-21 22:26:53 +00:00
Arjan van de Ven 7b08135720 fix backtrace 2019-04-20 17:07:54 +00:00
Arjan van de Ven 168c9b8606 add a for-review filtered patch 2019-04-20 00:32:37 +00:00
clrbuilder 3ff4181689 Update packages file for version 28970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-19 19:51:00 +00:00
clrbuilder a581ac8fbf Update packages file for version 28960
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-19 14:41:20 +00:00
clrbuilder 601ca9e0fc Update packages file for version 28910
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-17 11:58:00 +00:00
clrbuilder 8848658fcf Update packages file for version 28890
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-16 11:58:13 +00:00
clrbuilder b76a7bc7f8 Update packages file for version 28870
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-15 17:58:35 +00:00
clrbuilder f8f9619eec Update packages file for version 28860
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-15 11:58:14 +00:00
clrbuilder b7b8774581 Update packages file for version 28850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-14 17:36:23 +00:00
clrbuilder b3618cc43c Update packages file for version 28840
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-14 01:54:03 +00:00
clrbuilder 921ac270fe Update packages file for version 28820
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-12 11:58:41 +00:00
clrbuilder f41acbdeb0 Update packages file for version 28810
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-11 19:36:11 +00:00
Patrick McCarty 83a461fe40 Print progress messages for install-local and install-debuginfo-local
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-04-11 10:59:21 -07:00
Patrick McCarty 6876f3d11e Skip debuginfo install if the required rpm does not exist
Some packages in the distro do not generate debuginfo subpackages, so
make sure to skip the debuginfo install in this situation.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-04-11 10:46:49 -07:00
clrbuilder 5a4dd4451a Update packages file for version 28800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-11 15:27:28 +00:00
clrbuilder d48889eb29 Update packages file for version 28770
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-10 17:58:50 +00:00
clrbuilder b402f2bbdf Update packages file for version 28760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-10 11:58:29 +00:00
clrbuilder 1fcaa4aea6 Update packages file for version 28740
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-09 11:58:30 +00:00
clrbuilder 71b927321f Update packages file for version 28730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-09 02:59:16 +00:00
clrbuilder 40f17091a6 Update packages file for version 28720
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-08 17:59:02 +00:00
clrbuilder 3b062e1b45 Update packages file for version 28700
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-07 02:22:41 +00:00
clrbuilder 3c3fc1a16c Update packages file for version 28690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-05 22:27:02 +00:00
clrbuilder 3c7aac6a8e Update packages file for version 28670
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-05 11:58:38 +00:00
Patrick McCarty baf555428f Update license list for SPDX 3.5
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-04-05 00:23:35 -07:00
clrbuilder 262d005c62 Update packages file for version 28660
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-04 18:20:29 +00:00
clrbuilder ceff8301a1 Update packages file for version 28650
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-04 11:58:41 +00:00
clrbuilder 8eb7264597 Update packages file for version 28630
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-03 11:58:45 +00:00
clrbuilder c10d558ee6 Update packages file for version 28600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-01 17:59:44 +00:00
clrbuilder bd75d90fc7 Update packages file for version 28590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-04-01 12:01:36 +00:00
clrbuilder 081c620f82 Update packages file for version 28560
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-29 11:58:42 +00:00
clrbuilder 7e017ee247 Update packages file for version 28540
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-28 11:59:08 +00:00
clrbuilder 5b43360fe8 Update packages file for version 28520
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-27 11:59:02 +00:00
clrbuilder eb8879f0f0 Update packages file for version 28510
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-26 17:59:36 +00:00
clrbuilder f18ba9060d Update packages file for version 28470
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-25 02:40:10 +00:00
California Sullivan 9fc1471023 Makefile.common: mockproper: only remove the chroot
The caches are not package-specific, and --scrub=all will clean all
caches even with the --uniqueext option. For that, we have 'make
mockclean' instead.

Using both --clean and --scrub=chroot is also unnecessary, as --clean
already removes the chroot.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2019-03-22 16:39:29 -07:00
clrbuilder 9885cdbf9b Update packages file for version 28450
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-22 17:59:43 +00:00
clrbuilder ce12c754ba Update packages file for version 28440
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-22 12:00:33 +00:00
clrbuilder b363871adf Update packages file for version 28430
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-21 15:20:02 +00:00
clrbuilder c028ea0072 Update packages file for version 28420
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-20 18:58:37 +00:00
clrbuilder 7dc414433f Update packages file for version 28400
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-19 17:59:24 +00:00
clrbuilder 50f18a0146 Update packages file for version 28390
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-19 11:59:15 +00:00
clrbuilder 51c26d9a01 Update packages file for version 28380
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-18 19:27:37 +00:00
clrbuilder c143f7ee95 Update packages file for version 28360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-18 11:59:34 +00:00
clrbuilder 81bd7f5e54 Update packages file for version 28350
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-17 01:59:21 +00:00
clrbuilder 5d8e976a2a Update packages file for version 28340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-15 17:59:55 +00:00
clrbuilder 7d624ab7ae Update packages file for version 28330
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-15 11:59:48 +00:00
clrbuilder ba14c4e50f Update packages file for version 28310
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-14 11:59:44 +00:00
clrbuilder 34fb007895 Update packages file for version 28280
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-12 17:59:43 +00:00
clrbuilder 153c8cf8f7 Update packages file for version 28260
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-11 18:00:19 +00:00
clrbuilder be45cbcf9e Update packages file for version 28240
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-10 16:19:48 +00:00
clrbuilder 853cc64dff Update packages file for version 28230
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-08 19:27:45 +00:00
clrbuilder 7e81742862 Update packages file for version 28210
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-07 19:54:20 +00:00
clrbuilder a6eceb3613 Update packages file for version 28190
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-06 21:34:36 +00:00
clrbuilder 9956be75dc Update packages file for version 28170
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-06 12:59:53 +00:00
clrbuilder c99415521e Update packages file for version 28140
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-05 04:06:17 +00:00
clrbuilder 775d77c942 Update packages file for version 28130
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-04 12:59:50 +00:00
clrbuilder 0c80ea9b2d Update packages file for version 28100
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-01 19:29:11 +00:00
clrbuilder e75cdd1186 Update packages file for version 28090
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-03-01 13:00:44 +00:00
clrbuilder 90f2aab33a Update packages file for version 28080
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-28 19:00:50 +00:00
clrbuilder 64fa18b676 Update packages file for version 28070
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-28 13:00:11 +00:00
clrbuilder dc6677df7e Update packages file for version 28060
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-27 19:55:02 +00:00
clrbuilder 68d78be45d Update packages file for version 28050
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-27 13:00:21 +00:00
clrbuilder 47e3b379d9 Update packages file for version 28040
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-26 22:05:55 +00:00
clrbuilder b089c2eee1 Update packages file for version 28030
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-26 13:01:14 +00:00
clrbuilder b66637b940 Update packages file for version 28020
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-25 19:01:19 +00:00
Patrick McCarty 0802f3932b Update license list for SPDX 3.4
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-02-25 09:51:43 -08:00
clrbuilder 2507032cba Update packages file for version 28000
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-24 18:01:41 +00:00
clrbuilder 5a1d5567ca Update packages file for version 27990
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-23 14:56:58 +00:00
clrbuilder 05a7063d8e Update packages file for version 27980
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-22 19:01:06 +00:00
clrbuilder 11ebc1c8fc Update packages file for version 27970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-22 12:59:34 +00:00
clrbuilder 463ae178c2 Update packages file for version 27960
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-21 21:03:32 +00:00
clrbuilder 1d4aba3f8f Update packages file for version 27930
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-20 19:01:37 +00:00
clrbuilder c7fc2c3961 Update packages file for version 27920
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-20 12:59:49 +00:00
clrbuilder 82cd0ecd3f Update packages file for version 27910
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-19 19:03:37 +00:00
clrbuilder f754a866c0 Update packages file for version 27900
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-19 13:00:16 +00:00
clrbuilder 5d17b16122 Update packages file for version 27890
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-18 19:02:02 +00:00
clrbuilder 51b040bccb Update packages file for version 27860
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-17 22:46:46 +00:00
clrbuilder ad94d692e1 Update packages file for version 27850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-16 18:27:49 +00:00
clrbuilder 8f08161958 Update packages file for version 27840
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-15 19:02:21 +00:00
clrbuilder 490bd76041 Update packages file for version 27810
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-14 19:01:29 +00:00
clrbuilder 461918321b Update packages file for version 27800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-14 13:00:32 +00:00
clrbuilder 836969dddf Update packages file for version 27770
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-13 01:58:55 +00:00
clrbuilder cabadbf7e3 Update packages file for version 27760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-12 19:01:35 +00:00
clrbuilder 2e20586c58 Update packages file for version 27750
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-12 13:00:20 +00:00
clrbuilder bd721579a7 Update packages file for version 27730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-11 13:00:37 +00:00
clrbuilder f75cf1807e Update packages file for version 27720
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-10 03:17:03 +00:00
clrbuilder 49f6d1b502 Update packages file for version 27710
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-08 19:03:40 +00:00
clrbuilder 284ad47e91 Update packages file for version 27700
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-08 13:00:28 +00:00
clrbuilder 7b3321fa58 Update packages file for version 27680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-07 21:03:54 +00:00
clrbuilder b2c8135aad Update packages file for version 27670
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-07 13:55:21 +00:00
clrbuilder 8150769596 Update packages file for version 27650
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-05 19:01:52 +00:00
clrbuilder a093411597 Update packages file for version 27640
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-05 13:00:57 +00:00
clrbuilder e429dcaa45 Update packages file for version 27630
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-04 19:04:30 +00:00
clrbuilder 06d1a29dc1 Update packages file for version 27620
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-04 12:59:56 +00:00
clrbuilder 1548275e4b Update packages file for version 27610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-02 21:51:59 +00:00
clrbuilder fd0963167b Update packages file for version 27600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-02-01 19:02:32 +00:00
clrbuilder 517f5bc371 Update packages file for version 27570
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-31 19:01:33 +00:00
clrbuilder 284ccd9ce0 Update packages file for version 27550
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-30 22:55:46 +00:00
clrbuilder 43d436eec3 Update packages file for version 27530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-30 12:59:52 +00:00
clrbuilder 2bb93912f6 Update packages file for version 27520
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-29 19:03:15 +00:00
Thiago Macieira 3a0c58c76f Add a target to install the RPMs in the image accessed via 'make shell'
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
2019-01-29 09:35:04 -08:00
clrbuilder 5519d04178 Update packages file for version 27480
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-27 16:38:08 +00:00
clrbuilder e733b31a68 Update packages file for version 27470
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-26 16:47:20 +00:00
clrbuilder 46bb95d483 Update packages file for version 27450
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-25 13:00:30 +00:00
clrbuilder afafad1ed9 Update packages file for version 27440
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-24 19:01:22 +00:00
clrbuilder bd030b99fe Update packages file for version 27430
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-24 13:00:14 +00:00
clrbuilder 179cec491a Update packages file for version 27410
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-23 13:00:47 +00:00
clrbuilder 3f9a4421d4 Update packages file for version 27390
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-22 13:00:03 +00:00
clrbuilder 519fe3ef50 Update packages file for version 27360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-21 13:00:14 +00:00
clrbuilder a95343b9d1 Update packages file for version 27350
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-20 17:42:37 +00:00
clrbuilder 4ffa3d7af0 Update packages file for version 27330
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-18 13:00:31 +00:00
clrbuilder 05115e1bc3 Update packages file for version 27320
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-17 20:49:59 +00:00
clrbuilder fff95669db Update packages file for version 27310
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-17 13:00:27 +00:00
clrbuilder 36d363d533 Update packages file for version 27270
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-15 21:20:30 +00:00
clrbuilder 74028d1094 Update packages file for version 27250
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-15 19:00:39 +00:00
clrbuilder e9baf282b5 Update packages file for version 27220
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-15 03:24:23 +00:00
clrbuilder fa36a19fe7 Update packages file for version 27190
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-13 19:55:55 +00:00
clrbuilder cf4599a923 Update packages file for version 27170
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-11 13:03:22 +00:00
clrbuilder 3e7a03c6b6 Update packages file for version 27160
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-10 19:06:21 +00:00
clrbuilder c4e133da04 Update packages file for version 27140
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-08 22:36:57 +00:00
clrbuilder 295db72a7c Update packages file for version 27110
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-07 19:08:20 +00:00
clrbuilder a4927695e0 Update packages file for version 27100
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-07 16:39:50 +00:00
clrbuilder e2ede0ec09 Update packages file for version 27076
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-07 13:02:54 +00:00
clrbuilder d3f7e72d7c Update packages file for version 27050
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-04 21:01:42 +00:00
clrbuilder ce67fd374a Update packages file for version 27040
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-03 19:16:15 +00:00
clrbuilder 1feea0f15e Update packages file for version 27020
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2019-01-03 02:32:42 +00:00
clrbuilder 4c1c55f03e Update packages file for version 26890
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-26 19:54:22 +00:00
clrbuilder 214ebc3f93 Update packages file for version 26870
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-23 18:45:58 +00:00
clrbuilder 00997dcd48 Update packages file for version 26860
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-22 13:49:06 +00:00
clrbuilder 07fdbe3153 Update packages file for version 26830
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-20 05:28:07 +00:00
Auke Kok b671ab5709 Add cloc target for common tooling.
Produces and displays `results/cloc.txt`. Useful to determine code
metrics.
2018-12-19 09:30:04 -08:00
clrbuilder fc29b4c1c3 Update packages file for version 26800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-14 19:11:05 +00:00
clrbuilder f108ac36d6 Update packages file for version 26780
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-13 19:14:41 +00:00
clrbuilder 1c2bc9d50c Update packages file for version 26770
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-13 13:04:52 +00:00
clrbuilder 8952175bc9 Update packages file for version 26740
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-10 21:27:06 +00:00
clrbuilder 3812469ac2 Update packages file for version 26730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-07 17:54:59 +00:00
clrbuilder d1b434583a Update packages file for version 26720
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-06 20:37:16 +00:00
clrbuilder dbd3c9accf Update packages file for version 26690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-05 13:33:43 +00:00
clrbuilder 6214fa5e9f Update packages file for version 26680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-04 19:02:55 +00:00
clrbuilder 8e9dd55e0f Update packages file for version 26670
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-04 13:02:35 +00:00
clrbuilder 9ee80a2635 Update packages file for version 26650
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-03 19:02:24 +00:00
clrbuilder 653105ffdf Update packages file for version 26640
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-03 13:02:31 +00:00
clrbuilder a67fe47e39 Update packages file for version 26620
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-02 21:27:58 +00:00
clrbuilder 103222eb4e Update packages file for version 26610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-12-02 16:23:53 +00:00
clrbuilder 0304bbd6b1 Update packages file for version 26590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-30 13:02:24 +00:00
clrbuilder 4ca1662790 Update packages file for version 26570
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-29 13:01:54 +00:00
clrbuilder 94e2c39146 Update packages file for version 26560
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-28 21:18:03 +00:00
clrbuilder d67be8a71b Update packages file for version 26550
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-28 13:02:18 +00:00
clrbuilder 130f0f089e Update packages file for version 26540
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-28 02:46:45 +00:00
clrbuilder a75e19a379 Update packages file for version 26530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-27 19:02:51 +00:00
clrbuilder d2e1c72c33 Update packages file for version 26520
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-27 13:03:47 +00:00
clrbuilder b94a1c537f Update packages file for version 26510
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-26 19:02:46 +00:00
clrbuilder 164dd8300e Update packages file for version 26500
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-26 13:03:05 +00:00
clrbuilder 32141b9181 Update packages file for version 26470
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-23 13:03:04 +00:00
clrbuilder bc66045b2d Update packages file for version 26460
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-22 19:02:18 +00:00
clrbuilder 649a59bf12 Update packages file for version 26450
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-22 13:02:19 +00:00
clrbuilder b1706fe2c4 Update packages file for version 26420
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-21 13:03:40 +00:00
clrbuilder 6548a7a206 Update packages file for version 26410
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-20 19:06:29 +00:00
clrbuilder a3fcd6a943 Update packages file for version 26380
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-19 19:03:43 +00:00
clrbuilder 3c834e4761 Update packages file for version 26370
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-19 13:46:48 +00:00
clrbuilder 77c334ec1a Update packages file for version 26360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-17 13:55:58 +00:00
clrbuilder 7c013dd5df Update packages file for version 26350
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-17 02:49:17 +00:00
clrbuilder a499f61626 Update packages file for version 26340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-16 19:02:43 +00:00
clrbuilder 794174863b Update packages file for version 26330
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-16 13:02:55 +00:00
clrbuilder dedad8c6c7 Update packages file for version 26300
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-15 05:05:18 +00:00
clrbuilder 54737f7d97 Update packages file for version 26280
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-14 09:47:38 +00:00
clrbuilder 56fdddbca3 Update packages file for version 26270
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-13 18:55:42 +00:00
clrbuilder 58dff13c12 Update packages file for version 26210
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-12 01:47:52 +00:00
clrbuilder 45a416f269 Update packages file for version 26200
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-10 18:29:25 +00:00
clrbuilder b09ef7403e Update packages file for version 26190
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-09 19:03:13 +00:00
clrbuilder 2059376f34 Update packages file for version 26160
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-08 13:03:07 +00:00
clrbuilder 4501493d03 Update packages file for version 26150
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-07 23:09:14 +00:00
clrbuilder df3579f538 Update packages file for version 26140
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-07 19:13:23 +00:00
clrbuilder 3c01990ffc Update packages file for version 26130
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-07 13:02:30 +00:00
clrbuilder 991e0baaaa Update packages file for version 26080
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-05 13:02:13 +00:00
clrbuilder 434ab82632 Update packages file for version 26070
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-04 17:44:04 +00:00
clrbuilder 0f814b2df9 Update packages file for version 26060
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-03 17:49:13 +00:00
clrbuilder f2c3f4f95b Update packages file for version 26050
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-02 18:26:52 +00:00
clrbuilder 590efe2b9c Update packages file for version 26040
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-02 12:02:27 +00:00
clrbuilder 7919adae9f Update packages file for version 26020
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-11-01 12:02:26 +00:00
clrbuilder 8ea05f2ae4 Update packages file for version 26000
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-31 12:02:56 +00:00
clrbuilder 3560600fb6 Update packages file for version 25940
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-29 12:32:27 +00:00
clrbuilder 0e54abbb3f Update packages file for version 25930
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-28 22:58:40 +00:00
clrbuilder 3e7f5be6fc Update packages file for version 25900
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-26 16:32:33 +00:00
clrbuilder 36d3edd56c Update packages file for version 25880
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-26 00:32:14 +00:00
Miguel Bernal Marin 9008cbccba start_qemu.sh: enable OVMF CODE and VARS usage
Currently, we use the traditional BIOS flag "-bios" to specify the OVMF
firmware device file. Ken proposes changing to pflash type BIOS and separate
BIOS code and variable.

-drive file=OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on \
-drive file=OVMF_VARS.fd,if=pflash,format=raw,unit=1 \

Ken has following reasons:
  1. -bios can only support single flash binary, but the actual BIOS binary
      is consisted by many parts like SEC, PEI(Boot Block), DXE(Main Block)
      and Variable area as non-volatile storage for BIOS settings. During
      OMVF booting, a file called NvVars.bin will be created at
      <Disk>/<ESP Partition>/NvVars.bin for BIOS variable storage.
      This will pollute original Clearlinux-xxx.img.

  2. In future, we can add secure signed SEC BIOS part to enable full
      secure boot for Clear Linux via pflash.

  3. Some version of open stack, it requires separate Var Store NV instead
      of OVMF.fd. Ken meet with this issue recently. So if can show the separate
      pflash BIOS file via start_qemu.sh as example.

Suggested-by: "Lu, Ken" <ken.lu@intel.com>
2018-10-25 16:44:58 -05:00
clrbuilder 04022fb765 Update packages file for version 25870
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-25 21:32:21 +00:00
Miguel Bernal Marin 424c34140e Add OVMF CODE and VARS to repo
As from 0c69bfb9a9 ("Add OVMF.fd to the repo"), the CODE and VARS will
be used by start_qemu.sh.

Note that these version of OVMF_* are a copy from /usr/share/qemu
in Clear Linux OS 25840.

$ sha512sum /usr/share/qemu/OVMF_*
efea56944ad8153ed956390863c30c1a61eb4e52c43a8a0e3e6e3a71e56796f3c6a1c32e107a3d86e7a2e59faa462c7ffb10916b62a73d110bd0b0b84a60e02a  /usr/share/qemu/OVMF_CODE.fd
448412fd7ba267b4180db8ade6edb67af467e5b9b3e3ff8dfd583a2fded4070f6951667297e6896ce8bd9f4d2ec3dd8a5a70b6e9a2f686efec9a57124fec512a  /usr/share/qemu/OVMF_VARS.fd
2018-10-25 15:36:19 -05:00
clrbuilder f85cd42756 Update packages file for version 25840
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-25 14:00:41 +00:00
clrbuilder e7afb1ae5e Update packages file for version 25800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-24 18:57:09 +00:00
clrbuilder 2c52a5ab39 Update packages file for version 25780
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-23 22:38:57 +00:00
Patrick McCarty d84fec113e Remove duplicate swupd-client package
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-10-22 15:44:37 -07:00
clrbuilder f1b1424db4 Update packages file for version 25760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-22 21:57:08 +00:00
clrbuilder df8b789d60 Update packages file for version 25730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-22 01:08:44 +00:00
clrbuilder 78d7b4366b Update packages file for version 25720
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-19 18:03:15 +00:00
clrbuilder 7be12344b6 Update packages file for version 25710
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-19 12:02:56 +00:00
clrbuilder 04e58480cb Update packages file for version 25700
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-18 18:05:45 +00:00
clrbuilder ebcc67f00b Update packages file for version 25690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-18 12:02:51 +00:00
clrbuilder f5b1aa8c87 Update packages file for version 25680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-17 18:03:13 +00:00
clrbuilder c61c91f9f2 Update packages file for version 25670
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-17 12:03:10 +00:00
clrbuilder a57af837d8 Update packages file for version 25630
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-16 03:45:15 +00:00
clrbuilder 03ba957d5f Update packages file for version 25610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-15 13:22:48 +00:00
Patrick McCarty d661496a4c Fix packages list again
The repos are in an unusual state for 25600 (just like for 25590) in
that two swupd-client packages were added. The tooling for updating this
packages file does not expect that condition, so revert the change.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-10-12 20:52:51 -07:00
clrbuilder 4e1ce01d4e Update packages file for version 25600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-13 00:38:15 +00:00
Patrick McCarty dfeb8f9862 There is only swupd-client in the distro...
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-10-12 15:18:46 -07:00
clrbuilder 79c4befdea Update packages file for version 25590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-12 21:06:15 +00:00
clrbuilder c8c0c08100 Update packages file for version 25580
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-12 18:03:15 +00:00
clrbuilder 877cd04101 Update packages file for version 25570
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-12 12:02:52 +00:00
clrbuilder 7453e26bc7 Update packages file for version 25540
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-10 21:05:34 +00:00
Patrick McCarty 11e0b5baee Add new commands for installing rpms on the running system
For testing purposes only, if developers want to install RPMs they just
built onto their development system, potentially overwriting content
that is tracked by swupd, they can now run 'make install-local' to
install all of the RPMs, or 'make install-debuginfo-local' to just
install the debuginfo package.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-10-10 13:09:20 -07:00
clrbuilder 54c652944f Update packages file for version 25530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-10 18:03:02 +00:00
clrbuilder ef5179c975 Update packages file for version 25520
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-10 12:02:42 +00:00
clrbuilder fc9793ff4e Update packages file for version 25460
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-08 02:13:02 +00:00
clrbuilder 1508582709 Update packages file for version 25430
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-05 12:02:24 +00:00
clrbuilder fca82072fa Update packages file for version 25420
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-04 18:04:01 +00:00
clrbuilder 7fb07fdb29 Update packages file for version 25410
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-04 12:03:09 +00:00
Patrick McCarty 387cb23c79 Only add kvm group if needed
The user may have run the user-setup script previously, or they may
already belong to the 'kvm' group to begin with, so avoid running the
usermod command in these situations.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-10-03 16:28:44 -07:00
clrbuilder c63ed02014 Update packages file for version 25380
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-03 01:40:23 +00:00
clrbuilder d0773602f5 Update packages file for version 25360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-02 00:47:15 +00:00
clrbuilder 7b2b947843 Update packages file for version 25340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-10-01 16:18:23 +00:00
clrbuilder e619aeeab5 Update packages file for version 25330
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-29 00:43:51 +00:00
clrbuilder f041821042 Update packages file for version 25310
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-28 05:19:12 +00:00
clrbuilder 04e79ac6f7 Update packages file for version 25280
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-26 23:06:46 +00:00
clrbuilder 942c21283f Update packages file for version 25260
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-25 22:41:48 +00:00
clrbuilder 0803beead9 Update packages file for version 25240
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-25 22:10:02 +00:00
clrbuilder 8bf3888935 Update packages file for version 25220
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-25 21:12:26 +00:00
clrbuilder 3f2c7de583 Update packages file for version 25180
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-25 12:02:49 +00:00
clrbuilder 514048840f Update packages file for version 25160
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-24 02:55:14 +00:00
Patrick McCarty 012a1a3767 Support pre-checks for autospec and autospecnew too
For some commands, it is useful to be able to add custom prerequisites.
We already support this for `make koji` and `make build`, and there was
just a request to add it for `make autospec` and `make autospecnew`.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-09-21 12:12:23 -07:00
clrbuilder 0168eb6258 Update packages file for version 25150
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-21 18:31:40 +00:00
clrbuilder 2212f350e9 Update packages file for version 25140
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-21 12:02:20 +00:00
Patrick McCarty 75a06769ea Revert "Update packages file for version 24761"
Likely a test change that should not have been pushed to this repo.

This reverts commit 797f6c050c.
2018-09-20 23:21:09 -07:00
clrbuilder 797f6c050c Update packages file for version 24761
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-20 21:19:58 +00:00
clrbuilder 3169a8db4c Update packages file for version 25130
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-20 18:02:16 +00:00
clrbuilder c6e5d09862 Update packages file for version 25120
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-20 12:01:57 +00:00
clrbuilder 76d551ae77 Update packages file for version 25100
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-19 18:27:12 +00:00
clrbuilder 92202763aa Update packages file for version 25090
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-19 12:02:39 +00:00
clrbuilder 3a666723c1 Update packages file for version 25080
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-18 18:16:01 +00:00
clrbuilder ed7e63d752 Update packages file for version 25070
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-18 12:02:33 +00:00
clrbuilder bf6c49b8b9 Update packages file for version 25050
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-17 12:05:14 +00:00
clrbuilder cc0b7da35a Update packages file for version 25030
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-14 18:30:46 +00:00
clrbuilder 33febf4489 Update packages file for version 25020
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-14 12:02:36 +00:00
clrbuilder 52ab50a9c7 Update packages file for version 25010
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-13 19:45:38 +00:00
clrbuilder 70d40d9b59 Update packages file for version 24970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-11 22:25:01 +00:00
clrbuilder 8b709c2e1b Update packages file for version 24960
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-11 12:02:50 +00:00
clrbuilder ea4e713277 Update packages file for version 24950
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-10 18:05:09 +00:00
clrbuilder ca817a8c5e Update packages file for version 24940
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-10 13:23:06 +00:00
clrbuilder db80ffd052 Update packages file for version 24930
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-08 16:01:57 +00:00
clrbuilder 54e7c47bd6 Update packages file for version 24920
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-07 19:38:38 +00:00
clrbuilder 60cb8aa36a Update packages file for version 24900
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-07 12:03:24 +00:00
clrbuilder 3a5c12aa29 Update packages file for version 24890
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-06 18:03:08 +00:00
clrbuilder 118120ca01 Update packages file for version 24880
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-06 12:02:33 +00:00
Thiago Macieira f59a650cf4 Also delete the rpms/ subdir when making proper
Autospec has begun putting the files there.

Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
2018-09-05 16:29:59 -07:00
clrbuilder 1dae5422cc Update packages file for version 24870
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-05 18:03:47 +00:00
clrbuilder b4860a0d82 Update packages file for version 24860
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-05 08:48:46 +00:00
clrbuilder 4760d853bb Update packages file for version 24850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-04 21:56:55 +00:00
clrbuilder 4331a0a193 Update packages file for version 24840
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-04 18:03:11 +00:00
clrbuilder ca68988393 Update packages file for version 24810
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-03 15:34:07 +00:00
clrbuilder 37879628f7 Update packages file for version 24800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-03 12:20:03 +00:00
clrbuilder 7f158c6e91 Update packages file for version 24780
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-09-01 05:26:47 +00:00
clrbuilder 4b9b44feef Update packages file for version 24760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-31 12:02:44 +00:00
clrbuilder 20e55005ac Update packages file for version 24750
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-30 18:02:42 +00:00
clrbuilder ceeee94f0c Update packages file for version 24740
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-30 12:02:35 +00:00
Patrick McCarty 852b6e83c9 Refresh SPDX license list to latest (version 3.2)
Make the SPDX puller code more robust by reading from JSON sources
rather than parsing HTML. Also, keep all deprecated license identifiers
for now, since they are still present in the spdx list.

Four identifiers were removed since the last refresh, but we are keeping
them for backwards compatibility. The removed license IDs now reside in
the licenses-extra file. At

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-29 17:19:34 -07:00
Patrick McCarty ae9f0610d6 Sort SPDX license list with LC_COLLATE=C
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-29 16:10:18 -07:00
Auke Kok fa65110479 Adding 2 new spdx identifiers 2018-08-29 14:28:31 -07:00
clrbuilder 4259e8dbf0 Update packages file for version 24730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-29 18:02:48 +00:00
clrbuilder 56a38edc64 Update packages file for version 24720
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-29 12:05:15 +00:00
clrbuilder d5cdd5d1c5 Update packages file for version 24700
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-28 12:02:54 +00:00
Patrick McCarty 806a1f5593 Fix several commands to use PKGS_LOCAL
Several commands should be using PKGS_LOCAL, which is the list of all
package repos that are present on the system, since the user might not
have all repos from PKGS cloned.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-27 14:40:57 -07:00
Patrick McCarty b82d61d686 clean/proper: honor toplevel --jobs value
This fixes integration with the GNU Make jobserver such that the
-j/--jobs value passed to make is actually honored.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-27 14:28:58 -07:00
clrbuilder d7404ca99d Update packages file for version 24690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-27 21:02:15 +00:00
clrbuilder c81774a23c Update packages file for version 24680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-27 12:02:27 +00:00
clrbuilder b1ef20b90b Update packages file for version 24670
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-26 21:44:17 +00:00
clrbuilder b100150ca3 Update packages file for version 24660
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-25 15:25:50 +00:00
clrbuilder 482940952d Update packages file for version 24650
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-24 18:12:40 +00:00
clrbuilder b50fabd346 Update packages file for version 24640
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-24 12:35:46 +00:00
clrbuilder c383979d14 Update packages file for version 24610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-23 12:28:01 +00:00
clrbuilder 08138ad889 Update packages file for version 24580
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-23 05:51:59 +00:00
clrbuilder b78940d18a Update packages file for version 24550
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-21 20:15:48 +00:00
clrbuilder bb74ceef8d Update packages file for version 24540
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-20 18:47:37 +00:00
clrbuilder 12800a51fa Update packages file for version 24520
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-19 18:30:26 +00:00
clrbuilder 9b445f1116 Update packages file for version 24510
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-18 20:38:58 +00:00
clrbuilder 40898f6ce0 Update packages file for version 24490
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-17 12:02:29 +00:00
clrbuilder 3b4b1b3053 Update packages file for version 24480
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-16 18:02:40 +00:00
clrbuilder e26fd3e022 Update packages file for version 24440
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-15 18:02:29 +00:00
clrbuilder 677fe6cbd5 Update packages file for version 24430
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-15 00:53:37 +00:00
clrbuilder 9e54179aea Update packages file for version 24410
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-14 12:02:12 +00:00
Kevron Rees 1145477b30 Add section to documentation about updating package version
Document includes a description for pumping the release, but what
if there is a completely new upstream version?  This patch adds a
section that describes how to update the upstream url for a
package and update the package information accordingly.

Signed-off-by: Kevron Rees <kevron.m.rees@intel.com>
2018-08-13 10:51:27 -07:00
Kevron Rees 19cb72b28e add link to autospec documentation
Documentation only describes how to tweak autospec behavior by
modifying one file ("buildreq_add").  A new developer might not be
aware that there are several other files that can be modified that
will change autospec behavior.  Link to the autospec documentation
so that developers can learn of the other files and how autospec
uses them.

Signed-off-by: Kevron Rees <kevron.m.rees@intel.com>
2018-08-13 10:51:27 -07:00
clrbuilder 497059b257 Update packages file for version 24390
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-13 12:02:49 +00:00
clrbuilder fbda0655f2 Update packages file for version 24370
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-11 23:16:43 +00:00
clrbuilder 1b32d114f3 Update packages file for version 24360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-10 18:00:13 +00:00
clrbuilder 90a4ceb162 Update packages file for version 24340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-10 12:02:33 +00:00
clrbuilder 2947369532 Update packages file for version 24330
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-09 18:03:38 +00:00
clrbuilder 26bb3f43f8 Update packages file for version 24310
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-09 06:14:47 +00:00
Patrick McCarty fd509a2295 Hardlink only the rpms created by Mock
In case git repos cloned by autospec into results/ contain RPMs, we do
not want to hardlink those files to rpms/.

Fix the issue by limiting the find depth to 1 level so that the tooling
only hardlinks rpms created by Mock.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-08 19:14:19 -07:00
clrbuilder eb4fcd4085 Update packages file for version 24300
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-08 18:51:20 +00:00
clrbuilder 4fd9e54785 Update packages file for version 24290
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-08 01:11:27 +00:00
Brett T. Warden 5bc6cc856b Error on specfile and upstreams only when missing
Previously, we always emitted an error and failed when the specfile or
upstream target was requested, breaking the -B switch. Now, we only fail
if the file doesn't actually exist, not just that it was requested via
make.
2018-08-07 09:03:54 -07:00
clrbuilder 3bfdb39ee1 Update packages file for version 24270
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-07 12:02:19 +00:00
clrbuilder b495687f7c Update packages file for version 24240
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-06 12:02:12 +00:00
clrbuilder c719db89dd Update packages file for version 24230
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-05 20:07:59 +00:00
clrbuilder ba9e38f3f0 Update packages file for version 24220
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-04 13:04:54 +00:00
clrbuilder 0d4b01ec83 Update packages file for version 24210
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-03 21:33:20 +00:00
clrbuilder 4867cefcb7 Update packages file for version 24200
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-03 18:02:54 +00:00
clrbuilder e88fcdc4bc Update packages file for version 24190
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-03 12:02:14 +00:00
clrbuilder a381875001 Update packages file for version 24150
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-02 07:07:54 +00:00
clrbuilder 114936fc23 Update packages file for version 24140
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-02 04:52:55 +00:00
Patrick McCarty 3739bc0e0f repoadd: use new rpms directory, and hardlink instead
Since binary RPMs are now stored in the "rpms" directory, follow a
similar method for storing them in the local repo, too.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-01 09:38:27 -07:00
Patrick McCarty f43a186a78 Store copies of binary RPMs in "rpms" dir
To improve visibility of which RPMs a user may want to install after a
build, copy (hardlink) them to a separate "rpms" directory.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-01 09:38:27 -07:00
Patrick McCarty da562cb750 Always clean rpms and logs from previous builds
I often find myself running "make clean proper", when by default, I
think the old build artifacts should be removed so that the results
directory is pristine at the start of a new build.

As a result, if users wish to keep all build artifacts from a previous
"make build" or "make autospec", they must keep manual backups, as the
tooling no longer keeps them around.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-01 09:38:27 -07:00
Patrick McCarty 16467cfbc0 Avoid appending to srpm logs
Mock will append the binary rpm build logs to the srpm logs, but this is
confusing. After the srpm finishes building, rename the log files to
avoid this behavior.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-01 09:38:27 -07:00
Patrick McCarty 16466cac02 Make results/ directory un-nested again
Because Mock dumps its logs and and resulting rpms in the same directory
(results), shuffling the logs and rpms only after a successful build is
confusing, since they will be untouched for the error case.

It's simpler to avoid moving the files entirely. The only exceptions
will be to avoid clobbering existing log files. Changes of this nature
will appear in later commits and in autospec.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-01 09:38:27 -07:00
clrbuilder 6e8d00eb30 Update packages file for version 24120
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-08-01 12:02:17 +00:00
clrbuilder c160c30218 Update packages file for version 24110
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-31 18:17:35 +00:00
clrbuilder 9b09c217da Update packages file for version 24100
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-31 12:02:22 +00:00
Thiago Macieira 00230e7d1d Use zstd for compressing the mock root cache
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
2018-07-30 19:33:17 -07:00
Arjan van de Ven ff40498428 packages update 2018-07-31 01:40:40 +00:00
clrbuilder 6483c7dd86 Update packages file for version 24090
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-30 18:02:43 +00:00
clrbuilder d1079234d9 Update packages file for version 24080
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-30 12:03:58 +00:00
clrbuilder 51a2c03a4a Update packages file for version 24070
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-29 20:42:57 +00:00
clrbuilder 3d8c98b0d8 Update packages file for version 24060
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-29 14:30:22 +00:00
clrbuilder 243ad03d32 Update packages file for version 24030
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-27 14:38:37 +00:00
clrbuilder e1072736aa Update packages file for version 24010
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-27 02:28:58 +00:00
clrbuilder 9a557531f4 Update packages file for version 23980
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-26 12:02:28 +00:00
clrbuilder d8cb4987e5 Update packages file for version 23960
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-25 18:03:16 +00:00
clrbuilder 6719c0f7df Update packages file for version 23950
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-25 12:44:51 +00:00
clrbuilder 7166df721b Update packages file for version 23940
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-24 23:07:56 +00:00
Brett T. Warden a70cf49f45 Include Makefile.custom from package repo 2018-07-24 15:42:12 -07:00
clrbuilder 781eae34bb Update packages file for version 23930
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-24 18:57:22 +00:00
clrbuilder ee17bc50a9 Update packages file for version 23910
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-24 02:17:42 +00:00
clrbuilder 1fcfde404c Update packages file for version 23900
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-23 18:03:30 +00:00
clrbuilder 36716ffe26 Update packages file for version 23890
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-23 12:04:23 +00:00
clrbuilder eab92f6841 Update packages file for version 23880
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-22 21:31:54 +00:00
clrbuilder 903919de2f Update packages file for version 23870
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-21 21:44:43 +00:00
clrbuilder 69000f2f2e Update packages file for version 23860
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-21 16:28:26 +00:00
clrbuilder 8b8f649dcb Update packages file for version 23850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-20 18:02:47 +00:00
clrbuilder 91ba5c1c6b Update packages file for version 23840
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-20 12:02:24 +00:00
clrbuilder 70e5280ae4 Update packages file for version 23830
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-19 18:02:28 +00:00
clrbuilder dbc677ddca Update packages file for version 23820
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-19 12:04:19 +00:00
clrbuilder c2ff34b4ca Update packages file for version 23810
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-18 18:02:33 +00:00
clrbuilder df917a0aa2 Update packages file for version 23800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-18 15:09:48 +00:00
clrbuilder c0e95c9bcd Update packages file for version 23790
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-18 12:02:06 +00:00
clrbuilder 979430e742 Update packages file for version 23730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-16 12:03:05 +00:00
clrbuilder 61d9b5ab29 Update packages file for version 23710
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-13 18:03:00 +00:00
clrbuilder 557bc87774 Update packages file for version 23700
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-13 12:02:48 +00:00
clrbuilder fb869ea5a2 Update packages file for version 23690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-12 18:03:06 +00:00
clrbuilder 665a2546f8 Update packages file for version 23680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-12 12:02:43 +00:00
clrbuilder d8f18e5f6d Update packages file for version 23650
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-11 12:02:35 +00:00
William Douglas 255935f4fb Add pattern directory configuration option
The failed_pattern_dir contains a path to a location containing
additonal configuration files for failed_commands, ignored_commands,
maven_jars, gems, license_hashes, license_translations,
license_blacklist, and qt_modules.
2018-07-10 17:55:31 +00:00
clrbuilder 34df391482 Update packages file for version 23630
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-10 14:51:38 +00:00
clrbuilder 3d9fd9fd67 Update packages file for version 23620
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-10 12:02:50 +00:00
clrbuilder 8894658b0a Update packages file for version 23610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-09 18:02:33 +00:00
clrbuilder f2d0972aab Update packages file for version 23590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-07 20:43:42 +00:00
clrbuilder 64c2b82443 Update packages file for version 23580
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-07 14:47:01 +00:00
clrbuilder 3963a1f319 Update packages file for version 23570
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-07 00:51:08 +00:00
clrbuilder 68cd34db8f Update packages file for version 23550
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-06 16:40:29 +00:00
clrbuilder b9952701c5 Update packages file for version 23480
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-04 03:33:26 +00:00
Patrick McCarty 3671774e8a Support newer versions of Mock (part 1)
In Mock version 1.4.4, the chroot group was changed from "mockbuild" to
"mock". This creates a problem for running Mock on Clear Linux because
(a) the distro already has group "mock", and (b) Mock tries to `groupdel
mock` within the chroot and fails, since the group is defined in
/usr/share/defaults/etc/group and not in /etc/group. Mock treats the
groupdel failure as fatal. Fortunately there is a workaround: set the
"chrootgroup" config to a group not already defined in the OS. I am
setting the group to "mockbuild" in the default config to restore the
behavior of previous Mock versions. Thanks to Mark Horn for adding this
feature upstream! It was merged for Mock 1.4.7.

Also, disable the new bootstrap container feature, added in Mock version
1.4.1. It was disabled by default in version 1.4.2, but keep the
explicit setting in case upstream enables it in the future.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-07-02 21:57:19 -07:00
clrbuilder fa7c45049f Update packages file for version 23450
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-03 04:11:59 +00:00
Patrick McCarty 768bdc7550 Ignore mv failure when debuginfo package is missing
Fixes #6

Not all Clear Linux packages have debuginfo subpackages, so ignore
errors when attempting to move them to the results/debuginfo/ directory.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-07-02 16:48:08 -07:00
clrbuilder 6372c11a12 Update packages file for version 23430
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-02 16:25:53 +00:00
clrbuilder 5629731f54 Update packages file for version 23410
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-01 17:14:56 +00:00
clrbuilder a0f8fd9a50 Update packages file for version 23400
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-01 14:55:29 +00:00
clrbuilder cad2e6081d Update packages file for version 23390
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-07-01 01:47:50 +00:00
clrbuilder 2daf8a48b2 Update packages file for version 23380
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-30 23:32:42 +00:00
clrbuilder 26582bd9f2 Update packages file for version 23370
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-29 19:42:57 +00:00
clrbuilder c6a2d6fabd Update packages file for version 23350
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-29 12:03:01 +00:00
Patrick McCarty 2d8fc9a155 koji: exit early if spec has uncommitted changes
When running 'make koji', the tooling will attempt to create a new git
tag with a name constructed from the spec file's NVR.

However, if there are uncommitted changes to the Name, Version, or
Release fields (collectively, NVR) in that file, the new tag's name will
not match the NVR in the spec file referenced by commit HEAD.

Protect against the mismatch by exiting early from a 'make koji' if any
spec file modifications are not yet committed to the repo, and alert the
user what the problem is.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-06-27 17:46:25 -07:00
Patrick McCarty 1eadce9aad Fix 'make repoadd'
The debuginfo RPMs are stored in a separate directory now, so the rpm
copy pipeline needed a slight adjustment.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-06-27 14:48:52 -07:00
Tudor Marcu 6613644b9c Update folder structure in results/
The logs, srpms, and debuginfo should all be split into their own
directory, so it is less confusing about which RPMs can be used when
creating mixes. They are mainly for extra metadata, and should not be
left in the main RPM results location.

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2018-06-27 14:04:12 -07:00
clrbuilder 93115e4073 Update packages file for version 23310
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-06-27 18:02:45 +00:00
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
clrbuilder 657bf44505 Update packages file for version 22630
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-26 17:06:00 +00:00
clrbuilder c0e4bbf18e Update packages file for version 22610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-25 13:40:50 +00:00
clrbuilder 38b5e792cd Update packages file for version 22600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-24 18:31:08 +00:00
clrbuilder 43a333f08f Update packages file for version 22590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-24 05:43:36 +00:00
clrbuilder 9985956b7c Update packages file for version 22580
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-24 00:19:37 +00:00
clrbuilder 7a62e62b28 Update packages file for version 22540
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-22 13:02:25 +00:00
Patrick McCarty 92977583a6 user-setup: stop installing mock config to /etc
The common tooling behavior changed a while back with respect to the
mock config usage, so update the user-setup script to reflect the
changes. Also add documentation about how to customize the mock config,
which can be leveraged to revert back to the original behavior as well.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-21 16:32:52 -07:00
Patrick McCarty b8d121260a user-setup: create 'mix' directory for future use
To enable future shared workflows between the common tooling and mixer,
create a directory named 'mix' within the tooling workspace.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-21 16:12:44 -07:00
clrbuilder ace60d849e Update packages file for version 22530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-21 13:02:36 +00:00
clrbuilder a2759eca40 Update packages file for version 22520
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-20 14:28:39 +00:00
clrbuilder 7d0977c785 Update packages file for version 22450
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-17 02:48:06 +00:00
Patrick McCarty 9184a2fd62 user-setup: support abs/rel paths for cert options
Support both absolute and relative paths for the cert options, instead
of relative paths only, by using realpath(1) to resolve the arguments.

(Note that the script cannot reference the path arguments verbatim
because much of the script operates in the workspace's toplevel
directory, which is a different location than where the script is
invoked. In that situation, relative paths would not resolve.)

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-15 14:50:09 -07:00
clrbuilder e80c6eb4bd Update packages file for version 22420
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-15 17:22:37 +00:00
clrbuilder 5cf5fd71cb Update packages file for version 22410
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-15 13:02:06 +00:00
clrbuilder 4b01a5a9cd Update packages file for version 22390
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-14 19:02:44 +00:00
Patrick McCarty 4910ef0882 koji: only pull --rebase if remote is initialized
After running 'make autospecnew', the freshly created repo only exists locally,
so the repo remote is not yet initialized. The 'git pull --rebase' (via 'make
koji') will then fail due to the uninitialized remote. Improve this case by
only rebasing when the remote is initialized.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-14 11:49:26 -07:00
clrbuilder 1518adace0 Update packages file for version 22380
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-14 02:27:47 +00:00
clrbuilder ef0e792c3d Update packages file for version 22370
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-12 02:19:56 +00:00
Patrick McCarty 1bb7b0c471 autospecnew: try to clone repo first
If the user tries to create a new package with 'make autospecnew', a
package repo will be created from scratch, even if a repo exists with
the same name at PKG_BASE_URL.

This problem stems from 'make autospecnew' assuming that all tracked
package repos are cloned already, but is a bad assumption, given the
recent change of behavior for user-setup.sh (not cloning package repos
by default).

Resolve it by first trying to clone the repo with "make clone_PKGNAME";
clone_PKGNAME targets are automatically defined for all packages listed
in the projects/common/packages file. As long as users have an
up-to-date packages file (i.e. are running 'make pull' regularly), then
this solution works well. The case not covered is when packages are
added, then later removed; package repos will already exist remotely in
this case. However, this is a relatively rare case, so I opted to only
handle the common case where a package is added and never removed from
the distro at a later point.

(Side note: I originally wanted to 'git ls-remote REPO' to check remote
repo existence, but this does not work well with Github, as Github
prompts for username/password for remotes that appear to not exist,
since they might be private repos. Prompting a Github username/password
in this case is not very user-friendly. Using the Github API looks
viable, but I would rather not special case the handling of Github repos
in the common tooling.)

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-11 11:21:41 -07:00
Leandro Dorileo 51dc7a7c24 autospec: use MOCK_OPTS
Also make autospec use MOCK_OPTS to pass down arbitrary mock options.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-05-10 15:48:26 -07:00
George T Kramer c8848dbdb2 Allow additional curl options for fetching sources
The DOWNLOAD_MIRROR server, the SOURCES_URL server, and upstream
source tarballs may be hosted in many different environments.
Allow users to supply additional curl options via a config to use
whenever connecting to the DOWNLOAD_MIRROR and SOURCES_URL servers and
work better with their particular hosting environment.  Because upstream
source tarballs can come from many different locations, do not offer a
global config and instead allow users to define this manually as needed
when the rule is used.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2018-05-10 15:22:57 -07:00
Leandro Dorileo 92e045116a mock: add MOCK_OPTS
Eventually developers - when they know what they're doing - want to
manipulate a little bit the mock arguments to i.e skip a few stages
in the mock build cycle while they're hacking a package.

One example is when developers are testing changes to a spec file but
not touching dependencies and they're [re]running the build multiple times
it would be nice to not cleanup before the build and run a rebuild
for example with: --rebuild --no-clean

With this patch one should only do:

make build MOCK_OPTS="--rebuild --no-clean"

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-05-10 14:56:22 -07:00
Patrick McCarty 1f3475a1ef Move "Manual setup" section to end of README
Users are encouraged to run the user-setup script as documented in the
"Automated setup" section. To clarify that the "Manual setup" section is
an alternative to "Automated setup", move those docs to the end of the
README instead.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-10 13:28:18 -07:00
Patrick McCarty f836786e2d user-setup: update docs in the README
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-10 13:23:34 -07:00
Patrick McCarty 7dc88fd01a user-setup: do not clone package repos by default
Because the package repo cloning process can take a lot of time, do not
clone them by default. Instead, add a new --clone-packages|-a option to
perform this task.

Also, immediately before the script exits, document some possible next
steps when *not* cloning package repos (the new default).

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-10 12:01:25 -07:00
Patrick McCarty 250efaef8f user-setup: enable a configurable workspace name
To allow setting up multiple workspaces in the same directory, or if the
name "clearlinux" is not the desired name, add a --directory|-d option
to let the user configure it.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-10 11:46:52 -07:00
Patrick McCarty c6532c6759 user-setup: enable parallel repo cloning
Since Clear Linux has many package repos, cloning them all in serial can
take a long time. Add a -j option to the script to let users speed up
the process.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-10 11:19:15 -07:00
Patrick McCarty f1c85e3294 user-setup: switch to 2-space indent
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-10 10:45:12 -07:00
clrbuilder f5abc3a8d3 Update packages file for version 22340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-09 19:02:00 +00:00
clrbuilder 74d5bc42f5 Update packages file for version 22330
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-09 13:02:01 +00:00
clrbuilder d6cc120a3c Update packages file for version 22310
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-08 14:07:03 +00:00
clrbuilder 71c1bd013f Update packages file for version 22290
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-07 13:19:54 +00:00
clrbuilder aadbd40a21 Update packages file for version 22250
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-03 19:38:24 +00:00
clrbuilder 60020aebcc Update packages file for version 22230
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-03 13:01:47 +00:00
clrbuilder 3a00f7eda4 Update packages file for version 22220
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-02 19:02:26 +00:00
clrbuilder 0470861400 Update packages file for version 22210
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-02 13:01:58 +00:00
clrbuilder 4fac58a65e Update packages file for version 22190
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-01 13:02:34 +00:00
clrbuilder 743041a30c Update packages file for version 22180
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-30 17:25:53 +00:00
clrbuilder 59f9bb1f7a Update packages file for version 22150
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-28 21:26:16 +00:00
clrbuilder 1e74d17500 Update packages file for version 22120
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-26 19:20:29 +00:00
clrbuilder 6a7fac08d9 Update packages file for version 22060
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-24 19:02:11 +00:00
Patrick McCarty 932c2236a7 generateupstream: fix upstream file handling
My previous change to handling of the 'upstream' file assumed that the
file exists already, but this need not be true.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-04-24 10:12:34 -07:00
Patrick McCarty 6c92ce3160 sources: download files directly if SOURCES_URL undefined
When SOURCES_URL is not defined, the current behavior of extracting
source files from SRPMs in the latest published Clear Linux release has
proven to not work so well: It is not optimal when users are adding new
packages, modifying existing packages, not building from latest master,
etc.

Instead, run 'generateupstream' automatically so that source files are
downloaded from the remote locations listed in the spec file. This
target creates the 'upstream' file too, which becomes useful if the user
later defines SOURCES_URL, when 'upstream' is actively consumed.

In the event that download errors occur, as a fallback mechanism, try to
find the corresponding SRPM from a published release of Clear Linux OS.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-04-23 16:07:33 -07:00
Patrick McCarty 3e2219c07e sources: move srpm fetch code to separate target
I will reusing this code (largely unmodified) in the next commit, so
move it into a separate target to easily inspect changes.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-04-23 16:07:33 -07:00
Patrick McCarty f0d2523151 sources/generateupstream: properly handle curl errors
If any of the curl commands fail, it's better for the entire target to
fail. In this way, developers will be properly notified.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-04-23 14:25:51 -07:00
Patrick McCarty de39e64e29 Fix some indentation issues
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-04-23 14:15:58 -07:00
Patrick McCarty 877fee6375 sources: follow SOURCES_URL redirects; remove noproxy requirement
The curl --no-proxy hint is not needed anymore, since Clear Linux OS has
an autoproxy, and curl will honor proxy environment variables.

Also, pass -L to curl to follow redirects, similarly to other curl calls
in this makefile.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-04-23 13:47:24 -07:00
Patrick McCarty e921a2a883 generateupstream: make URL extraction more robust
Improve the detection of source URLs by matching only non-commented
Source* lines with "://" present.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-04-23 13:30:21 -07:00
clrbuilder e00c76846b Update packages file for version 22010
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-20 18:32:15 +00:00
clrbuilder af2c0bea72 Update packages file for version 21970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-18 19:02:08 +00:00
clrbuilder b99b7e8c25 Update packages file for version 21960
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-18 12:47:49 +00:00
clrbuilder 359d2a8379 Update packages file for version 21860
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-16 02:52:02 +00:00
clrbuilder d828f3a3ce Update packages file for version 21850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-14 20:29:27 +00:00
clrbuilder 330876d190 Update packages file for version 21830
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-13 13:01:54 +00:00
Patrick McCarty 3bf5f39687 Revert "autospecnew: master branch should track origin/master"
The 'git branch' command fails at this stage because the master branch
is not initialized locally, but because the remote is also not
initialized, additional special incantations are needed to make this
work. Revert it for now so that users do not see an error message from
the 'git branch' command. A proper fix will follow later.

This reverts commit 71d9699bdd.
2018-04-12 18:05:45 -07:00
Patrick McCarty 71d9699bdd autospecnew: master branch should track origin/master
Because 'make koji' expects that master should track origin/master,
initialize the tracking branch during the autospecnew.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-04-12 17:46:01 -07:00
clrbuilder ded920ccb3 Update packages file for version 21810
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-12 13:01:47 +00:00
clrbuilder cc16065a09 Update packages file for version 21790
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-11 13:01:37 +00:00
clrbuilder 45f2185a25 Update packages file for version 21780
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-10 19:05:07 +00:00
clrbuilder 9ffc0b9640 Update packages file for version 21770
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-10 13:03:01 +00:00
clrbuilder 98c5937801 Update packages file for version 21760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-09 20:56:43 +00:00
clrbuilder a50450212c Update packages file for version 21720
Signed-off-by: clrbuilder <clrbuilder@intel.com>
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>
2018-04-06 15:50:48 +00:00
clrbuilder f2b7a30d12 Update packages file for version 21670
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-05 13:07:37 +00:00
clrbuilder c26e27ce65 Update packages file for version 21640
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-03 20:07:19 +00:00
clrbuilder 6fa010e10b Update packages file for version 21610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-04-03 13:25:42 +00:00
clrbuilder 173673b5c6 Update packages file for version 21600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
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>
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
37 changed files with 5657 additions and 469 deletions
+5 -1
View File
@@ -17,5 +17,9 @@ update:
curl -f -o packages ${BASE_URL}/source/package-sources
cut -f1 packages | LC_ALL=C sort > packages.new && mv packages.new packages
.PHONY: spdx
spdx:
curl -s spdx.org/licenses/ | sed '0,/<tbody>/d;/<\/tbody>/q;s/<tr>/\f/g;s/$$/,/g;s/<[^>]*>//g' | awk 'BEGIN{RS="\f";FS=","} {print $$4}' | sed '/^$$/d;s/^[ ]*//' > spdx
JSON=$$(mktemp); \
trap "rm $$JSON" EXIT; \
curl -f -S -s https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json > $$JSON || exit 1; \
jq -r '.licenses[] | .licenseId' < $$JSON | LC_COLLATE=C sort > licenses-spdx
+241 -80
View File
@@ -14,14 +14,14 @@ SPECFILE = $(addsuffix .spec, $(PKG_NAME))
SRPMVERS = $(shell [ ! -f $(SPECFILE) ] || rpmspec -D '_vendor clr' --srpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n' $(SPECFILE))
SRPMFILE = results/$(SRPMVERS).src.rpm
LATEST_RPMS = $(shell [ ! -s results/build.log ] || for r in `egrep 'Wrote.*/RPMS/.*.rpm' results/build.log | sed 's/.*\///'` ; do echo "results/$$r"; done)
LATEST_RPMS = $(wildcard rpms/*.rpm)
DEBUGINFO_RPM = $(wildcard rpms/*-debuginfo-*.rpm)
RPMS ?= $(LATEST_RPMS)
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
# MOCK_CONFIG_VAL is set in Makefile.shared
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONFIG_VAL)
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONFIG_VAL) $(MOCK_OPTS)
ifneq ($(wildcard upstream),)
__allsources := $(notdir $(strip $(shell cat upstream)))
@@ -29,38 +29,33 @@ __missingsources := $(filter-out $(wildcard ${__allsources}), ${__allsources})
endif
$(SPECFILE):
@echo Error: $(SPECFILE) is missing. Please run \`make autospec\` to try and auto
@echo Error: generate one for you.
@exit 1
@[[ -f "$@" ]] || (\
echo Error: $@ is missing. Please run \`make autospec\` to try and auto;\
echo Error: generate one for you.;\
exit 1 )
upstream:
@echo Error: The \"upstream\" file is missing. Try running \`make autospec\` to
@echo Error: auto generate one for you. If you are not using autospec to
@echo Error: generate a spec file, specify the proper "Source*" entries in the
@echo Error: spec header, and try running \`make generateupstream\`.
@exit 1
@[[ -f "$@" ]] || (\
echo Error: The \"$@\" file is missing. Try running \`make autospec\` to;\
echo Error: auto generate one for you. If you are not using autospec to;\
echo Error: generate a spec file, specify the proper "Source*" entries in the;\
echo Error: spec header, and try running \`make generateupstream\`.;\
exit 1 )
#help spdxcheck: Checks that the package license is a valid SPDX license,
#help or that it is in the exceptions list.
spdxcheck: $(SPECFILE)
@for LICENSE in `rpmspec -D '_vendor clr' --srpm -q --queryformat '%{LICENSE}\n' $(SPECFILE)`; do \
if ! grep -q "^$$LICENSE$$" $(TOPLVL)/projects/common/licenses-spdx && ! grep -q "$$LICENSE$$" $(TOPLVL)/projects/common/licenses-exceptions; then FAIL=yes; echo "ERROR: License '$$LICENSE' is not an allowed SPDX license ID"; fi; \
if ! grep -qx "$$LICENSE" $(TOPLVL)/projects/common/licenses-{spdx,exceptions,extra}; then FAIL=yes; echo "ERROR: License '$$LICENSE' is not an allowed SPDX license ID"; fi; \
done; test -z "$$FAIL"
#help cvecheck: Checks
#help for common vulnerabilities and exposures in your package.
cvecheck:
# https://github.com/ikeydoherty/cve-check-tool
# Installation: https://github.com/ikeydoherty/cve-check-tool/wiki
cve-check-tool -M $(TOPLVL)/projects/common/mapping $(SPECFILE)
#help clean: Cleans up the src.rpm file. but not the rpm files or log files.
clean:
rm -f $(SRPMFILE)
#help proper: Brings your copy of the package to a nearly clean git checkout state.
proper: repodel
rm -rf results
rm -rf results rpms
rm -f build.log.round*
rm -f mock_build.log mock_srpm.log $(__allsources) report.html
@@ -68,10 +63,9 @@ proper: repodel
mockclean:
$(MOCK) --clean --scrub=all
#help mockproper: Clean mock chroot and cache directories for this package.
#help mockproper: Clean mock chroot
mockproper:
$(MOCK) --clean --scrub=all --uniqueext=$(PKG_NAME)
$(MOCK) --clean --scrub=chroot --uniqueext=$(PKG_NAME)
$(MOCK) --clean --uniqueext=$(PKG_NAME)
configemail:
@test -d .git || git init
@@ -89,8 +83,10 @@ prebuild-checks:
#help files and rpms in the results directory of your package. If there
#help are mutlple tar.gz files for a package, make will do make sources,
#help which creates a src.rpm file from the spec file.
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options.
build: prebuild-checks configemail $(SPECFILE) upstream $(SRPMFILE)
$(MOCK) $(SRPMFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
$(MAKE) link-new-rpms PKG_REPO_DIR="."
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
@$(MAKE) checkblacklist
@@ -98,6 +94,7 @@ build: prebuild-checks configemail $(SPECFILE) upstream $(SRPMFILE)
#help build-nocheck: Same as 'make build', but do not run the package's test suite.
build-nocheck: configemail $(SPECFILE) upstream $(SRPMFILE)
$(MOCK) $(SRPMFILE) --nocheck --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
$(MAKE) link-new-rpms PKG_REPO_DIR="."
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
@$(MAKE) checkblacklist
@@ -115,9 +112,11 @@ shell:
# Always rebuild the source rpm
.PHONY: $(SRPMFILE)
$(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice
$(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice clean-old-content
@$(MAKE) spdxcheck
$(MOCK) --buildsrpm --source=./ --spec=$(SPECFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
mv results/root.log results/srpm-root.log
mv results/build.log results/srpm-build.log
# Do a git fetch and a git rebase to apply local commits on top of latest
# commits from the remote. A git fetch/rebase is used rather than a git pull so
@@ -137,6 +136,10 @@ pullrebase:
echo "No commits exist in remote. Continuing."; \
exit 0; \
fi; \
if [ "$$(git rev-list FETCH_HEAD | head -n 1)" = "$$(git rev-list HEAD | head -n 1)" ]; then \
echo "Current branch up-to-date. Continuing."; \
exit 0; \
fi; \
echo "Rebasing to origin/master"; \
if git status --porcelain | grep -q '^.[^?]'; \
then \
@@ -148,37 +151,62 @@ pullrebase:
fi \
fi
preautospec-checks:
#help autospec: automatically generates a specfile. If there is
#help already a specfile, it will be overwritten. Several files used by
#help autospec will be created in the process. For more information, see
#help the project at https://github.com/clearlinux/autospec
autospec: pullrebase localreponotice
rm -f results/*src.rpm
#help autospec will be created in the process.
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options
#help to autospec.
#help For more information, see the project at https://github.com/clearlinux/autospec
autospec: preautospec-checks pullrebase localreponotice clean-old-content
@if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \
echo "Specfile already exists and was not created by autospec.py! Aborting."; \
exit 1; \
fi
@printf 'PKG_NAME := %s\nURL = %s\nARCHIVES = %s\n\ninclude ../common/Makefile.common\n' $(PKG_NAME) '$(firstword $(value NEWURL) $(value URL))' '$(value ARCHIVES)' > Makefile
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --integrity \
${NON_INTERACTIVE} --config "$(AUTOSPEC_CONF)" ${SKIP_GIT} \
$(firstword $(NEWURL) $(URL)) --name $(PKG_NAME) ${CLEANUP} \
$${SETVERSION:+ -v $${SETVERSION}} -a $(ARCHIVES) \
-m $(MOCK_CONFIG_VAL)
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py \
--target . \
--integrity \
--config "$(AUTOSPEC_CONF)" \
--name $(PKG_NAME) \
--archives $(ARCHIVES) \
--mock-config $(MOCK_CONFIG_VAL) \
--mock-opts="$(MOCK_OPTS)" \
$${SETVERSION:+ --version $${SETVERSION}} \
$${NON_INTERACTIVE:+ --non_interactive} \
$${SKIP_GIT:+ --skip-git} \
$${CLEANUP:+ -C} \
$(firstword $(NEWURL) $(URL));
$(MAKE) link-new-rpms PKG_REPO_DIR="."
@$(MAKE) spdxcheck
@$(MAKE) checkblacklist
@if [ -e update_changelog.sh ] && [ -z "$$SKIP_GIT" ] ; then \
bash update_changelog.sh ; \
git commit --amend --no-edit Change* ; \
fi
@$(MAKE) -s for-review.txt
diffstat for-review.txt
@printf "\n**\n"
@printf "** NOTICE: A patch with changes is available in the file for-review.txt\n"
@printf "** To recreate (e.g., after git commit --amend), run make for-review.txt\n"
@printf "** To submit for review: git send-email --to <recipient> for-review.txt\n"
@printf "**\n\n"
#help for-review.txt: Creates the for-review.txt file, which is
#help a minimized version of the Git commit, suitable for code review.
for-review.txt:
git diff | grep -q index || python3 $(TOPLVL)/projects/common/patchfilter.py > for-review.txt
.PHONY: for-review.txt
#help autospecnogit: Runs autospec, but does not create a commit
autospecnogit:
$(MAKE) SKIP_GIT=--skip-git autospec
$(MAKE) autospec SKIP_GIT=1
#help autospecnostate: Runs autospec, but cleans up mock chroots
#help and disables interactive mode.
autospecnostate:
$(MAKE) CLEANUP=-C NON_INTERACTIVE=--non_interactive autospec
$(MAKE) autospec CLEANUP=1 NON_INTERACTIVE=1
scanlicense:
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --config $(AUTOSPEC_CONF) --license-only $(firstword $(NEWURL) $(URL)) --name $(PKG_NAME)
@@ -187,7 +215,7 @@ scanlicense:
bump:
git pull --rebase
$(MAKE) bumpnogit
git add *.spec release
git add $(SPECFILE) release
git commit -a -m "version bump from $(shell rpmspec -D '_vendor clr' --srpm -q --queryformat '%{VERSION}-%{RELEASE}\n' $(SPECFILE)) to `rpmspec -D '_vendor clr' --srpm -q --queryformat '%{VERSION}-%{RELEASE}\n' $(SPECFILE)`"
#help bumpnogit: Increments the release file by one and does not commit changes.
@@ -200,30 +228,12 @@ bumpnogit:
$(__missingsources): sources
#help sources: If SOURCES_URL is defined, download required upstream source
#help files from that location. Otherwise, try to extract source files from the
#help SRPM in the latest Clear Linux release, as specified by the LATEST_SRPMS
#help variable. This will run automatically, as a dependency. NOTE: A Koji
#help server can make use of this "make sources" command, since it lives in a
#help repo named "common". If you use this makefile in Koji, ensure
#help "make sources" continues to work for both remote and local builds, since
#help it is a prerequisite of several commands for building packages.
sources: upstream
ifneq ($(strip $(SOURCES_URL)),)
while read u; do \
case "$$u" in \
"") continue ;; \
*://*) n="$$u" ;; \
*) n="$(SOURCES_URL)/$$u" ;; \
esac; \
curl --fail --noproxy "*" "$$n" -o `basename "$$n"`; \
done < upstream
else
@tmp=$$(mktemp -d -p "."); \
# First argument is a Clear Linux build number (e.g. 22000)
define fetch-from-srpm
tmp=$$(mktemp -d -p "."); \
srpm=$$(rpmspec --srpm -q --qf "%{NVR}.src.rpm\n" $(SPECFILE)); \
if cd "$$tmp" && ! curl -f -L -O $(LATEST_SRPMS)/$$srpm; then \
echo "Failed to download $$srpm from latest Clear Linux release." >&2; \
echo "Run \"git pull\" and try again." >&2; \
if cd "$$tmp" && ! curl -s -S -f -L -O $(MIRROR_CURL_OPTS) $(DOWNLOAD_MIRROR)/releases/$(1)/clear/source/SRPMS/$$srpm; then \
echo "Failed to download $$srpm from Clear Linux release $(1)." >&2; \
cd .. && rm -rf "$$tmp"; \
exit 1; \
fi; \
@@ -231,14 +241,59 @@ else
cd ..; \
srclist=$$(rpmspec --srpm -q --qf "[%{SOURCE}\n]" $(SPECFILE)); \
for s in $$srclist; do \
if ! mv "$$tmp"/$$s .; then \
if ! mv --no-clobber "$$tmp"/$$s .; then \
echo "Missing source file \"$$s\" in $${srpm}." >&2; \
rm -rf "$$tmp"; \
exit 1; \
fi; \
echo "Retrieved source file $$s ..."; \
done; \
rm -rf "$$tmp";
rm -rf "$$tmp"
endef
#help sources: If SOURCES_URL is defined, download required upstream source files
#help from that location. Otherwise, try to download source files according to the
#help URLs listed in the spec file. If any of the source files fail to download,
#help check for the relevant SRPM from published releases of Clear Linux OS, and
#help extract the files if found. Note that SRPMs are taken from the DOWNLOAD_MIRROR
#help location. This will run automatically, as a dependency. NOTE: A Koji server can
#help make use of this "make sources" command, since it lives in a repo named
#help "common". If you use this makefile in Koji, ensure "make sources" continues to
#help work for both remote and local builds, since it is a prerequisite of several
#help commands for building packages.
ifneq ($(strip $(SOURCES_URL)),)
sources: upstream
while read u; do \
case "$$u" in \
"") continue ;; \
*://*) n="$$u" ;; \
*) n="$(SOURCES_URL)/$$u" ;; \
esac; \
if ! curl --fail -L -o `basename "$$n"` $(SOURCES_CURL_OPTS) "$$n"; then \
echo "Failed to download $$n"; \
exit 1; \
fi; \
done < upstream
else
sources:
@$(MAKE) generateupstream; \
[ $$? -eq 0 ] && exit 0; \
nvr="$$(rpmspec --srpm -q --qf '%{NAME}\t%{VERSION}\t%{RELEASE}\n' $(SPECFILE))"; \
git -C $(TOPLVL)/projects/common fetch --tags >/dev/null 2>&1; \
latest_builds=$$(git -C $(TOPLVL)/projects/common tag -l | sort -rn); \
for b in $$latest_builds; do \
url="$(DOWNLOAD_MIRROR)/releases/$$b/clear/source/package-sources"; \
echo "Checking for source files in build $$b ..."; \
if grep -q "$$nvr" <(curl -s -f -L $(MIRROR_CURL_OPTS) $$url); then \
$(call fetch-from-srpm,$$b); \
if [ $$? -eq 0 ]; then \
echo "Source files retrieved from build $$b"; \
exit 0; \
fi; \
fi; \
done; \
echo "Source files not found for package"; \
exit 1
endif
prekoji-checks:
@@ -249,11 +304,22 @@ prekoji-checks:
koji: prekoji-checks kojidef
@$(MAKE) spdxcheck
@$(MAKE) checkblacklist
@if ! git branch | grep -q -E '^\* master'; then \
@if [ "$$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then \
echo "Error: Must be on the master branch to submit to koji" >&2; \
exit 1; \
fi; \
if ! git diff --quiet HEAD -- ${SPECFILE}; then \
echo "Error: All changes to ${SPECFILE} must be committed first" >&2; \
exit 1; \
fi; \
git fetch; \
if git rev-parse --verify --quiet origin/master >/dev/null; then \
git pull --rebase; \
fi; \
if git ls-remote --tags --exit-code origin $(SRPMVERS) >/dev/null; then \
echo "Error: remote tag $(SRPMVERS) already exists" >&2; \
exit 1; \
fi
git pull --rebase
git tag $(SRPMVERS)
git push origin master refs/tags/$(SRPMVERS)
$(KOJI_CMD) build $$KOJI_NOWAIT $(KOJI_TAG) $(PKG_BASE_URL)/$(PKG_NAME)?#$(SRPMVERS)
@@ -270,7 +336,7 @@ scratch: $(SPECFILE) upstream $(SRPMFILE) kojidef
#help scratch-wait: Performs scratch-build on package.
scratch-wait: $(SPECFILE) upstream $(SRPMFILE) kojidef
$(KOJI_CMD) build --scratch $(KOJI_TAG) $(SRPMFILE)
$(KOJI_CMD) build --scratch --wait $(KOJI_TAG) $(SRPMFILE)
#help koji-nowait: Same as 'make koji', but do not block
koji-nowait:
@@ -291,22 +357,49 @@ $(TOPLVL)/repo:
#help repoadd: Adds locally-built RPMs for this package to the local RPM
#help repository. If this repository does not yet exist, it is created and
#help enabled.
repoadd: results/build.log $(TOPLVL)/repo
@if [ -z "`grep '^Wrote: .*$(shell basename $(SRPMFILE))$$' results/build.log`" ]; then \
echo "You have not yet succesfully built this release yet"; exit 1; \
fi
@if [ -f .repo-index ]; then \
repoadd: $(TOPLVL)/repo
@if [ -z "${LATEST_RPMS}" ]; then \
echo "No rpms found in rpms/ directory."; \
exit 1; \
fi; \
if [ -f .repo-index ]; then \
echo "Cleaning old rpms:"; \
for r in `cat .repo-index`; do \
echo "-$$r"; \
rm -f $(TOPLVL)/repo/$$r; \
done; \
rm .repo-index; \
fi
for r in $(LATEST_RPMS); do echo "+$$r"; echo $$(basename $$r) >> .repo-index; cp $$r $(TOPLVL)/repo; done
fi; \
for r in ${LATEST_RPMS}; do \
echo "+$$r"; \
echo $$(basename $$r) >> .repo-index; \
ln -f $$r $(TOPLVL)/repo/; \
done
$(MAKE) localrepocreate
$(call localrepoenable,${PM_CONF},${MOCK_CONF})
#help repostage: Stages locally-built RPMs for this package to the local RPM
#help directory. If this directory does not yet exist, it is created and
#help enabled.
repostage: $(TOPLVL)/repo
@if [ -z "${LATEST_RPMS}" ]; then \
echo "No rpms found in rpms/ directory."; \
exit 1; \
fi; \
if [ -f .repo-index ]; then \
echo "Cleaning old rpms:"; \
for r in `cat .repo-index`; do \
echo "-$$r"; \
rm -f $(TOPLVL)/repo/$$r; \
done; \
rm .repo-index; \
fi; \
for r in ${LATEST_RPMS}; do \
echo "+$$r"; \
echo $$(basename $$r) >> .repo-index; \
ln -f $$r $(TOPLVL)/repo/; \
done
#help repodel: Removes RPMs from the local RPM repository that were
#help previously added by 'make repoadd' for this package.
repodel:
@@ -355,25 +448,93 @@ install:
done
@$(MAKE) loop-down DEVICE=6
#help install-debuginfo-local: Install locally built debuginfo RPM to
#help the automatic debuginfo cache location (/var/cache/debuginfo)
install-debuginfo-local:
@if [ -z "${DEBUGINFO_RPM}" ]; then \
echo "No debuginfo to install... skipping"; \
exit 0; \
fi; \
echo -n "Installing ${DEBUGINFO_RPM}... "; \
tmpdir=$$(mktemp -d); \
rpm2cpio ${DEBUGINFO_RPM} | ( cd $$tmpdir; cpio -i -d -u 2> /dev/null); \
dest=/var/cache/debuginfo/lib; \
find $$tmpdir/usr/lib/debug/ -mindepth 1 -maxdepth 1 2> /dev/null | while read -r d; do \
sudo chown -R dbginfo:dbginfo "$$d"; \
sudo cp -a "$$d" $$dest/; \
done; \
find $$tmpdir/usr/share/debug/ -mindepth 1 -maxdepth 1 -regextype awk -regex '.*/(.build-id|boot|lib|sbin|usr)$$' 2> /dev/null | while read -r d; do \
sudo chown -R dbginfo:dbginfo "$$d"; \
sudo cp -a "$$d" $$dest/; \
done; \
dest=/var/cache/debuginfo/src; \
find $$tmpdir/usr/src/debug/ -mindepth 1 -maxdepth 1 2> /dev/null | while read -r d; do \
sudo chown -R dbginfo:dbginfo "$$d"; \
sudo cp -a "$$d" $$dest/; \
done; \
find $$tmpdir/usr/share/debug/src/ -mindepth 1 -maxdepth 1 2> /dev/null | while read -r d; do \
sudo chown -R dbginfo:dbginfo "$$d"; \
sudo cp -a "$$d" $$dest/; \
done; \
sudo rm -rf $$tmpdir; \
echo "done"
#help install-local: Install locally built RPMs to the root filesystem. Note that the
#help debuginfo RPM installs to /var/cache/debuginfo
install-local:
@for r in $(filter-out ${DEBUGINFO_RPM},${RPMS}); do \
echo -n "Installing $$r... "; \
rpm2cpio $$r | (cd /; sudo cpio -i -d -u 2> /dev/null); \
echo "done"; \
done
@$(MAKE) -s install-debuginfo-local
#help install-mock: Install locally built RPMs to the mock rootcache
#help filesystem. This command is usually used with "make shell".
install-mock: repoadd
$(MOCK) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME) -i $(filter-out ${DEBUGINFO_RPM},${RPMS})
#help generateupstream: Run this rule to create or update the 'upstream' file
#help by downloading the upstream source tarballs listed in the spec file and
#help calculating their hashes. Autospec performs this step automatically, so ignore
#help it for packages managed with autospec.
#help calculating their hashes. Autospec performs this step automatically, so
#help ignore it for packages managed with autospec. Additional curl options
#help may be used for downloading the upstream source tarballs by defining the
#help CURL_OPTS variable for this rule.
generateupstream:
@rm -f upstream
@urls=$$(rpmspec -D '_vendor clr' -P $(SPECFILE) | grep Source | cut -d: -f2- | grep '://'); \
@[ -e upstream ] && mv upstream upstream.bak; \
urls=$$(rpmspec -D '_vendor clr' -P $(SPECFILE) | sed -n "s|^Source[0-9]*[[:blank:]]*:[[:blank:]]*\(..*://..*\)$$|\1|p"); \
for url in $$urls; do \
filename=$$(basename $$url); \
if [ ! -e $$filename ]; then \
curl --fail -L -O $$url; \
fi; \
echo $$(sha1sum $$filename | cut -d\ -f1)/$$filename >> upstream; \
filename=$$(basename $$url); \
if [ ! -e $$filename ]; then \
if ! curl --fail -L -O $(CURL_OPTS) $$url; then \
echo "Failed to download $$url"; \
[ -e upstream.bak ] && mv --no-clobber upstream.bak upstream; \
exit 1; \
fi; \
fi; \
echo $$(sha1sum $$filename | cut -d\ -f1)/$$filename >> upstream; \
done
@rm -f upstream.bak
@cat upstream
#help drop-abandoned: Remove all unused patches from the git tree
drop-abandoned: $(SPECFILE)
python3 $(TOPLVL)/projects/common/drop-abandoned-patches.py $(SPECFILE)
#help cloc: Count lines of code with the `cloc` tool on the full sources of package
cloc: $(SRPMFILE)
@$(MOCK) -r $(TOPLVL)/repo/clear.cfg $(SRPMFILE) --result=results/ --no-cleanup-after
@$(MOCK) --chroot --copyin /usr/bin/cloc /usr/bin/cloc --result=results/ --no-cleanup-after
@$(MOCK) --result=results/ --no-cleanup-after --chroot '/usr/bin/cloc /builddir > /tmp/cloc.txt'
@$(MOCK) --copyout /tmp/cloc.txt results/ --result=results/
@$(MOCK) --clean --scrub=chroot --uniqueext=$(PKG_NAME)
cat results/cloc.txt
# Define LTS-specific targets in a separate makefile
-include $(TOPLVL)/projects/common/Makefile.common.lts
# Define site local common targets in a separate makefile
-include $(TOPLVL)/projects/common/Makefile.common.site_local
# Include optional extended makefiles from individual package repos
-include Makefile.custom
+90
View File
@@ -0,0 +1,90 @@
#-*-makefile-*-
LTSUTILS = python $(TOPLVL)/projects/common/lts/main.py $(PKG_NAME)
#help lts-show: Display a summary of active LTS branches.
lts-show:
@$(LTSUTILS) sanity-check
@while read b; do \
if git show-ref $$b > /dev/null; then \
echo $$b $$(git log --oneline -1 $$b); \
else \
echo $$b Not found; \
fi; \
done < $(TOPLVL)/projects/common/lts/active-branches
#help lts-backport: Fast-forward the previous active branch to the current
#help branch.
lts-backport:
@$(LTSUTILS) sanity-check
@newer=$$(git symbolic-ref HEAD); \
newer=$${newer#refs/heads/}; \
if ! $(LTSUTILS) prev-branch --checkout; then \
echo Could not check out previous active branch.; \
exit 0; \
fi; \
if $(LTSUTILS) is-same-version $$newer; then \
$(LTSUTILS) fast-forward $$newer; \
else \
echo Most likely a patch needs to be manually re-applied for this version.; \
echo Alternatively, use \"git merge --ff-only $$newer\" to upgrade the package version.; \
fi
#help lts-build: Build RPM in Koji, or reuse existing build from older LTS
#help branch.
lts-build:
@$(LTSUTILS) sanity-check
@tag=$$(git tag --points-at); \
if [[ -z $$tag ]]; then \
echo This commit does not have a tag.; \
echo Proceeding to run \"make lts-koji\".; \
$(LTSUTILS) prompt || exit; \
$(MAKE) lts-koji; \
exit; \
fi; \
older=$$($(LTSUTILS) prev-branch); \
if [[ -z $$older ]]; then \
echo Could not determine previous active branch.; \
exit 1; \
fi; \
current=$$($(LTSUTILS) current-branch); \
if [[ $$(git rev-parse $$older) != $$(git rev-parse $$current) ]]; then \
echo Previous branch and current branch have different commits.; \
for b in $$older $$current; do echo $$b $$(git log --oneline -1 $$b); done; \
echo Proceeding to run \"make lts-koji\".; \
$(LTSUTILS) prompt || exit; \
$(MAKE) lts-koji; \
exit; \
fi; \
if $(LTSUTILS) can-reuse-binary $$older; then \
echo Reusing binary from $$older.; \
$(KOJI_CMD) tag-build $$current $(SRPMVERS); \
else \
echo Could not reuse binary from $$older.; \
echo Proceeding to run \"make bump lts-koji\".; \
$(LTSUTILS) prompt || exit; \
$(MAKE) bump lts-koji; \
fi
@$(LTSUTILS) next-branch --checkout
#help lts-koji: Same as "koji" but for working on LTS branches. Should not
#help be called directly, use lts-build instead.
lts-koji: prekoji-checks kojidef
@$(LTSUTILS) sanity-check
@$(MAKE) spdxcheck
@$(MAKE) checkblacklist
@current=$$($(LTSUTILS) current-branch); \
if ! grep $$current $(TOPLVL)/projects/common/lts/active-branches; then \
echo "Error: Must be on an active branch to submit to koji" >&2; \
exit 1; \
fi; \
if ! git diff --quiet HEAD ${SPECFILE}; then \
echo "Error: All changes to ${SPECFILE} must be committed first" >&2; \
exit 1; \
fi; \
if git rev-parse --verify --quiet origin/$$current > /dev/null; then \
git pull --rebase; \
fi
git tag $(SRPMVERS)-lts
git push origin $$($(LTSUTILS) current-branch) refs/tags/$(SRPMVERS)-lts
$(KOJI_CMD) build $$KOJI_NOWAIT $$($(LTSUTILS) current-branch) $(PKG_BASE_URL)/$(PKG_NAME)?#$(SRPMVERS)-lts
+10 -4
View File
@@ -26,6 +26,9 @@ CGIT_BASE_URL =
# Location of upstream tarball cache used by 'make build', 'make sources', etc.
SOURCES_URL =
# Additional curl options to use when downloading files from SOURCES_URL
SOURCES_CURL_OPTS =
# Location where package repos are hosted.
PKG_BASE_URL = https://github.com/clearlinux-pkgs
@@ -38,6 +41,9 @@ PROJ_PKGS = autospec clr-bundles common
# Clear Linux download mirror to use
DOWNLOAD_MIRROR = https://cdn.download.clearlinux.org
# Additional curl options to use when downloading files from DOWNLOAD_MIRROR
MIRROR_CURL_OPTS =
# Location of release content from latest Clear Linux release
LATEST_RELEASE = $(DOWNLOAD_MIRROR)/current
@@ -48,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
+28 -4
View File
@@ -14,9 +14,9 @@ define loopup
@sudo partprobe /dev/loop$(DEVICE)
@sleep 1
@if [ -e /dev/loop$(DEVICE)p3 ]; then \
sudo mount /dev/loop$(DEVICE)p3 $(TOPLVL)/image; \
sudo mount /dev/loop$(DEVICE)p3 $(TOPLVL)/image; \
else \
sudo mount /dev/loop$(DEVICE)p2 $(TOPLVL)/image; \
sudo mount /dev/loop$(DEVICE)p2 $(TOPLVL)/image; \
fi
@sudo mount /dev/loop$(DEVICE)p1 $(TOPLVL)/image/boot
endef
@@ -68,10 +68,10 @@ endef
# augmented for local repo support.
define localrepoenable
@cp $(1) $(TOPLVL)/repo/yum.conf
@printf "\n\n[local]\nname=Local\nfailovermethod=priority\nenabled=1\ngpgcheck=0\n" >> $(TOPLVL)/repo/yum.conf
@printf "\n\n[local]\nname=Local\nfailovermethod=priority\nenabled=1\ngpgcheck=0\npriority=1\n" >> $(TOPLVL)/repo/yum.conf
@printf "baseurl=file://$$(realpath $(TOPLVL))/repo/\n\n" >> $(TOPLVL)/repo/yum.conf
@cp $(2) $(TOPLVL)/repo/clear.cfg
@printf "\n\n[localrepo]\nname=Local repo\nfailovermethod=priority\nenabled=1\ngpgcheck=0\n" >> $(TOPLVL)/repo/clear.cfg
@printf "\n\n[localrepo]\nname=Local repo\nfailovermethod=priority\nenabled=1\ngpgcheck=0\npriority=1\n" >> $(TOPLVL)/repo/clear.cfg
@printf "baseurl=file://$$(realpath $(TOPLVL))/repo/\n\n" >> $(TOPLVL)/repo/clear.cfg
@sed -i '/^"""/d; $$a"""' $(TOPLVL)/repo/clear.cfg
endef
@@ -138,6 +138,30 @@ localreponotice:
[ -f $(TOPLVL)/repo/opt-in-build ] || sleep 3; \
fi >&2
.PHONY: clean-old-rpms clean-old-logs clean-old-content
clean-old-rpms:
rm -rf ./rpms
rm -f ./results/*.rpm
clean-old-logs:
rm -f ./results/*.log
clean-old-content: clean-old-rpms clean-old-logs
.PHONY: require-pkg-repo-dir link-new-rpms
require-pkg-repo-dir:
@if [ -z ${PKG_REPO_DIR} ]; then \
echo "Please specify PKG_REPO_DIR to indicate package repo location."; \
exit 1; \
fi
link-new-rpms: require-pkg-repo-dir
mkdir -p ${PKG_REPO_DIR}/rpms
rm -f ${PKG_REPO_DIR}/rpms/*.rpm
find ${PKG_REPO_DIR}/results -maxdepth 1 -name '*.rpm' -exec ln {} ${PKG_REPO_DIR}/rpms/ \;
rm -f ${PKG_REPO_DIR}/rpms/*.src.rpm
.PHONY: help
##### Code
# Make sure that HELPSPACE has exactly HELPLEN spaces in it
+96 -30
View File
@@ -10,6 +10,8 @@ include $(TOPLVL)/projects/common/Makefile.shared
SHELL = /bin/bash
PKGS = $(shell cat $(PACKAGES_FILE))
PKGS_LOCAL = $(sort $(filter ${PKGS},$(subst packages/,,$(wildcard packages/*))))
PKGS_ORPHANED = $(sort $(filter-out common ${PKGS},$(subst packages/,,$(wildcard packages/*))))
proj_PKGS = $(addprefix proj_,$(PROJ_PKGS))
clone_PKGS = $(addprefix clone_,$(PKGS))
@@ -32,7 +34,7 @@ $(proj_PKGS):
git clone $(PRJ_BASE_URL)/$$proj projects/$$proj; \
cd projects/$$proj; \
if [ "$$proj" = "autospec" ] ; then \
git remote set-url --push origin https://github.com/clearlinux/autospec.git; \
git remote set-url --push origin git@github.com:clearlinux/autospec.git; \
else \
$(call gitoliteurl,projects/$$proj); \
fi; \
@@ -54,17 +56,11 @@ $(clone_PKGS): $(PACKAGES_FILE) packages/common/Makefile.common
$(call subjectprefix,$$pkg); \
)
#help cvecheck: Checks for common vulnerabilities and exposures in your code.
cvecheck:
# https://github.com/ikeydoherty/cve-check-tool
# Installation: https://github.com/ikeydoherty/cve-check-tool/wiki
cve-check-tool -n -M $(TOPLVL)/projects/common/mapping $(PACKAGES_FILE)
#help pull: Performs a git pull --rebase for each package repo, avoiding the creation
#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; \
@@ -81,7 +77,7 @@ ${PULL_PKGS}:
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit $$O..$$N; echo; \
fi ; \
if [ "$$p" = "projects/autospec" ] ; then \
git remote set-url --push origin https://github.com/clearlinux/autospec.git; \
git remote set-url --push origin git@github.com:clearlinux/autospec.git; \
else \
$(call gitoliteurl,$$p); \
fi ; \
@@ -127,19 +123,17 @@ pull: ${PULL_PKGS}
#help clean-pkgs-dir: For packages that are no longer present in the distro,
#help removes the associated package repos from the ./packages tree
clean-pkgs-dir: $(PACKAGES_FILE)
@for p in `ls packages`; do \
if ! grep -wq "^$$p$$" "$<" && [ "$$p" != common ]; then \
echo "Removing $$p from packages, it is no longer in common/packages."; \
rm -rf packages/$$p; \
fi \
@for p in ${PKGS_ORPHANED}; do \
echo "Removing $$p from packages, it is no longer in common/packages."; \
rm -rf packages/$$p; \
done
@echo "packages directory cleaned";
clean_PKGS = $(addprefix clean_,$(PKGS))
clean_PKGS = $(addprefix clean_,$(PKGS_LOCAL))
#help clean: Run 'make clean' for every package.
clean: $(clean_PKGS)
proper_PKGS = $(addprefix proper_,$(PKGS))
proper_PKGS = $(addprefix proper_,$(PKGS_LOCAL))
#help proper: Run 'make proper' for every package, and purge the local
#help repo and image.
proper: $(proper_PKGS)
@@ -153,34 +147,34 @@ proper: $(proper_PKGS)
$(clean_PKGS):
@echo "cleaning $(patsubst clean_%,%,$@)"
-@$(MAKE) -s -j -C $(addprefix packages/,$(patsubst clean_%,%,$@)) clean
-@$(MAKE) -s -C $(addprefix packages/,$(patsubst clean_%,%,$@)) clean
$(proper_PKGS):
-@$(MAKE) -s -j -C $(addprefix packages/,$(patsubst proper_%,%,$@)) proper
-@$(MAKE) -s -C $(addprefix packages/,$(patsubst proper_%,%,$@)) proper
#help status: Runs git status for all package repos, thus displaying untracked
#help and unstaged files in addition to staged files.
status: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
@for p in projects/common $(addprefix packages/,$(PKGS)); do \
status: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
if [ -d "$$p/.git" ] && [ -n "$$(git -C $$p status -uno --porcelain)" ]; then echo "Uncommitted changes in $$p:"; git -C "$$p" status --short; fi ;\
done
#help diff: Runs git diff for all package repos and displays the output using
#help diffstat. Requires that diffstat is installed.
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
@for p in projects/common $(addprefix packages/,$(PKGS)); do \
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
(cd $$p ; git status | grep -q 'nothing to commit, working [^ ]* clean' || (echo "Uncommitted changes in: $$p"; git diff |diffstat -p1)) ;\
done
#help versions: Displays the version of each package in the ./packages tree.
versions: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
@for p in $(addprefix packages/,$(PKGS)); do \
versions: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
@for p in $(addprefix packages/,$(PKGS_LOCAL)); do \
(cd $$p; if ls *.spec &> /dev/null; then rpmspec -q --queryformat '%{NAME}-%{VERSION}\n' *.spec | head -n1; fi) ;\
done
#help releases: Like 'make versions', but also displays the release number.
releases: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
@for p in $(addprefix packages/,$(PKGS)); do \
releases: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
@for p in $(addprefix packages/,$(PKGS_LOCAL)); do \
(cd $$p; if ls *.spec &> /dev/null; then rpmspec -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n' *.spec | head -n1; fi) ;\
done
@@ -189,14 +183,20 @@ releases: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
provides:
@$(TOPLVL)/projects/common/provides.sh -f $(FP) -r $(RN)
preautospecnew-checks:
#help autospecnew: Creates a new autospec package with for a given URL=$(URL)
#help with NAME=$(NAME). Several files used by autospec will be created in the
#help process. For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec
autospecnew: localreponotice
#help process.
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options
#help to autospec.
#help For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec
autospecnew: preautospecnew-checks localreponotice
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
exit 1; \
fi
-$(MAKE) clone_$(NAME)
@if [ ! -d $(TOPLVL)/packages/$(NAME)/.git ]; then \
echo "no remote repository found, creating new package repository and running autospec"; \
mkdir -p $(TOPLVL)/packages/$(NAME); \
@@ -208,8 +208,74 @@ autospecnew: localreponotice
$(call subjectprefix,$(NAME)); \
); \
printf 'PKG_NAME := %s\nURL = %s\nARCHIVES = %s\n\ninclude ../common/Makefile.common\n' $(NAME) '$(value URL)' '$(value ARCHIVES)' > $(TOPLVL)/packages/$(NAME)/Makefile; \
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py --integrity -t packages/$(NAME) --config $(AUTOSPEC_CONF) $(URL) --name $(NAME) -m $(MOCK_CONFIG_VAL); \
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py \
--target packages/$(NAME) \
--integrity \
--config "$(AUTOSPEC_CONF)" \
--name $(NAME) \
--archives $(ARCHIVES) \
--mock-config $(MOCK_CONFIG_VAL) \
--mock-opts="$(MOCK_OPTS)" \
$${SETVERSION:+ --version $${SETVERSION}} \
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
$(URL); \
if [ $$? -eq 0 ]; then \
$(MAKE) link-new-rpms PKG_REPO_DIR="${TOPLVL}/packages/${NAME}"; \
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
python3 $(TOPLVL)/projects/common/patchfilter.py <(git -C $(TOPLVL)/packages/$(NAME) format-patch -1 --stdout) > $(TOPLVL)/packages/$(NAME)/for-review.txt; \
printf "\n**\n"; \
printf "** NOTICE: A patch with changes is available in the file $(TOPLVL)/packages/$(NAME)/for-review.txt\n"; \
printf "** Please look through this file and if you are unsure, please submit for code review with git send-email\n"; \
printf "**\n\n"; \
else \
echo "Autospec of $(NAME) failed."; \
exit 1; \
fi; \
else \
echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \
exit 1; \
fi
#help autospecnewgo: Creates a new autospec package with (dependencies)
#help for a given URL=$(URL) with NAME=$(NAME). Several files used by
#help autospec will be created in the help process.
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options
#help to autospec.
#help For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec
autospecnewgo: preautospecnew-checks localreponotice
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
exit 1; \
fi
-$(MAKE) clone_$(NAME)
@if [ ! -d $(TOPLVL)/packages/$(NAME)/.git ]; then \
echo "no remote repository found, creating new package repository and running autospec"; \
mkdir -p $(TOPLVL)/packages/$(NAME); \
( \
cd $(TOPLVL)/packages/$(NAME); \
git init; \
git remote add origin $(PKG_BASE_URL)/$(NAME); \
$(call gitoliteurl,packages/$(NAME)); \
$(call subjectprefix,$(NAME)); \
); \
printf 'PKG_NAME := %s\nURL = %s\nARCHIVES = %s\n\ninclude ../common/Makefile.common\n' $(NAME) '$(value URL)' '$(value ARCHIVES)' > $(TOPLVL)/packages/$(NAME)/Makefile; \
python3 $(TOPLVL)/projects/common/go-builder.py \
--target packages/$(NAME) \
--integrity \
--config "$(AUTOSPEC_CONF)" \
--name $(NAME) \
--archives $(ARCHIVES) \
--mock-config $(MOCK_CONFIG_VAL) \
--mock-opts "$(MOCK_OPTS)" \
$(URL); \
if [ $$? -eq 0 ]; then \
$(MAKE) link-new-rpms PKG_REPO_DIR="${TOPLVL}/packages/${NAME}"; \
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
python3 $(TOPLVL)/projects/common/patchfilter.py <(git -C $(TOPLVL)/packages/$(NAME) show) > $(TOPLVL)/packages/$(NAME)/for-review.txt; \
python3 $(TOPLVL)/projects/common/patchfilter.py <(git -C $(TOPLVL)/packages/$(NAME) show); \
else \
exit 1; \
fi; \
else \
echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \
exit 1; \
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+40
View File
@@ -0,0 +1,40 @@
## Advanced topics
### Manual setup
If you did not run the user-setup script (see "Automated setup" section in the
[main README](README.md), you will want to set up the developer tooling
workspace manually. This section provides general documentation for the manual
setup process, and it is not meant to be exhaustive.
On your Clear Linux system, create a workspace for Clear Linux development
work:
```
$ mkdir clearlinux
```
Clone this repo into a `projects` directory within the workspace:
```
$ cd clearlinux
$ mkdir projects
$ git clone https://github.com/clearlinux/common projects/common
```
Create the toplevel tooling Makefile:
```
$ ln -s projects/common/Makefile.toplevel Makefile
```
Clone all Clear Linux package and project repositories:
```
$ make clone
```
Note: You can clone the repos in parallel by using make's `-j` option.
At this point, the `packages` directory will contain all Clear Linux package
repos, and `projects` will contain common, clr-bundles, and autospec repos.
+48 -36
View File
@@ -31,43 +31,13 @@ $ ./user-setup.sh
After the script completes, make sure to logout and login again to complete the
setup process.
The script either accepts no options, or all (3) options in case you are
configuring the Koji CLI for remote building on a Koji server. The options are
documented in the script's `--help` output.
The script accepts several options, or no options at all. The options are
documented in the script's `--help` output. Note that if you are supplying any
of the three Koji cert options (`-k`, `-s`, or `-c`), the other two options
must be supplied as well.
### Manual setup
On your Clear Linux system, create a workspace for Clear Linux development
work:
```
$ mkdir clearlinux
```
Clone this repo into a `projects` directory within the workspace:
```
$ cd clearlinux
$ mkdir projects
$ git clone https://github.com/clearlinux/common projects/common
```
Create the toplevel tooling Makefile:
```
$ ln -s projects/common/Makefile.toplevel Makefile
```
Clone all Clear Linux package and project repositories:
```
$ make clone
```
Note: You can clone the repos in parallel by using make's `-j` option.
At this point, the `packages` directory will contain all Clear Linux package
repos, and `projects` will contain common, clr-bundles, and autospec repos.
If you do not wish to run the user-setup script, see the "Manual setup" section
below for hints about how to initialize the tooling workspace.
## Example usage
@@ -132,6 +102,10 @@ $ echo missing-build-req >> buildreq_add
$ make autospec
```
Please see https://github.com/clearlinux/autospec#common-files for
documention on buildreq_add and the other files autospec uses during the
build process.
### Bump the release number for a package
If you simply need to increment a package's release number and rebuild the
@@ -141,3 +115,41 @@ package, a `make bump` command is available for this purpose.
$ make bump
$ make build
```
### Update the release version for a package
If you have an update release version for a package, you can change the url
for the new release in the package/example-pkg/Makefile. After modifying the
new url, run `make autospec` again to fetch the new package and rebuild.
```
$ make autospec
```
## Other topics
### Customizing the 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
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
is either a full path that ends with `.cfg`, or a config NAME installed at
`/etc/mock/<NAME>.cfg`. You can override the `MOCK_CONF` config variable by
redefining it in `Makefile.config.site_local`, which must reside at the
toplevel directory in this repo.
For example, to retain the old behavior of mock using `/etc/mock/clear.cfg`,
add this line to `Makefile.config.site_local`:
```
MOCK_CONF = /etc/mock/clear.cfg
```
If `Makefile.config.site_local` doesn't exist already, create it.
### Manual setup
See the [Manual setup](README-advanced.md#manual-setup) documentation.
+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.
+5 -1
View File
@@ -18,6 +18,10 @@
# 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 =
# Path to autospec failed patterns directory, used to match build failure lines to
# package dependencies.
#failed_pattern_dir =
@@ -6,17 +6,22 @@ config_opts['dist'] = 'clear' # only useful for --resultdir variable subst
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d %(home)s %(user)s'
config_opts['plugin_conf']['ccache_enable'] = False
config_opts['plugin_conf']['root_cache_opts']['compress_program'] = 'zstd -5'
config_opts['plugin_conf']['root_cache_opts']['extension'] = '.zst'
config_opts['releasever'] = 'clear'
config_opts['package_manager'] = 'dnf'
config_opts['chrootgroup'] = 'mockbuild'
config_opts['use_bootstrap_container'] = False
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
+1 -1
View File
@@ -82,7 +82,7 @@ sub find_file {
return $file;
}
open(BUILD_LOG, '<', "results/build.log") or die $!;
open(BUILD_LOG, '<', "results/logs/build.log") or die $!;
while (<BUILD_LOG>) {
if($_ =~ /(\S+):([0-9]*):([0-9]*): note: (basic block|loop) (vectorized)/) {
$fmv->{s_name} = (split('/',$1))[-1];
Executable
+285
View File
@@ -0,0 +1,285 @@
#!/usr/bin/env python3
#
# gowrap.py - part of autospec
# Copyright (C) 2019 Intel Corporation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import argparse
import os
import shutil
import subprocess
import sys
import tempfile
def parse_args():
"""Parse commandline arguments."""
parser = argparse.ArgumentParser()
parser.add_argument("url", help="Location of package archive")
parser.add_argument("-t", "--target", dest="target", action="store",
default=None,
help="Target location to create or reuse")
parser.add_argument("-c", "--config", dest="config", action="store",
default="/usr/share/defaults/autospec/autospec.conf",
help="Set configuration file to use")
parser.add_argument("-n", "--name", action="store", dest="name", default="",
help="Override the package name")
parser.add_argument("-i", "--integrity", action="store_true",
default=False,
help="Search for package signature from source URL and "
"attempt to verify package")
parser.add_argument("-m", "--mock-config", action="store", default="clear",
help="Value to pass with Mock's -r option. Defaults to "
"\"clear\", meaning that Mock will use "
"/etc/mock/clear.cfg.")
parser.add_argument("-o", "--mock-opts", action="store", default="",
help="Arbitrary options to pass down to mock when "
"building a package.")
parser.add_argument('-a', "--archives", action="store",
dest="archives", default=[], nargs='*',
help="tarball URLs for additional source archives and"
" a location for the sources to be extacted to (e.g."
" http://example.com/downloads/dependency.tar.gz"
" /directory/relative/to/extract/root )")
return parser.parse_args()
def missing_dependencies(name):
"""Check if the build failed due to missing dependencies."""
root_log = os.path.join("packages", name, "results", "root.log")
if not os.path.exists(root_log):
return False
with open(root_log, "r") as lfile:
for line in lfile.readlines():
if "No matching package to install" in line:
return True
return False
def already_built(name, version):
"""Check if the package and version are already built."""
if not os.path.exists(os.path.join("packages", name, "rpms")):
return False
vpath = os.path.join("packages", name, "versions")
if not os.path.exists(vpath):
return False
with open(vpath, "r") as vfile:
if version not in [x.strip() for x in vfile.readlines()]:
return False
return True
def build(path, args, name, url, version):
"""Try and build a package."""
if version:
ver_arg = ["-v", version]
else:
ver_arg = []
if already_built(name, version):
return True
print(f"Trying to autospec {name} - {version}")
proc = subprocess.run(["python3",
f"{path}/../autospec/autospec/autospec.py", url,
"-c", args.config, "-t", f"packages/{name}",
"-n", name, "-m", args.mock_config,
"-o", args.mock_opts, "-i"] + ver_arg, capture_output=True)
if proc.returncode == 0:
subprocess.run(["make", "link-new-rpms", f"PKG_REPO_DIR=packages/{name}"],
capture_output=True)
return proc.returncode == 0
def parse_go_mod(path):
"""Parse go.mod file for build requirements.
File content looks as follows:
module example.com/foo/bar
require (
github.com/BurntSushi/toml v0.3.1
git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999
github.com/inconshreveable/mousetrap v1.0.0 // indirect
"github.com/spf13/cobra" v0.0.3
github.com/spf13/pflag v1.0.3 // indirect
)
Need to handle all require lines including //indirect.
Skip requires that use .git for now. May need to be handled
differently.
"""
reqs = []
with open(path, "r") as gfile:
dep_start = False
for line in gfile.readlines():
# Ideally the mod file is generated and the format is
# always correct but add a few defenses just in case
line = line.strip()
if line.startswith("//"):
# Skip comments
continue
if dep_start:
# End of the require section
if line.startswith(")"):
break
req = line.split()[:2]
req[0] = req[0].replace('"', '')
if req[0].endswith(".git"):
continue
reqs.append(req)
continue
if line.startswith("require ("):
dep_start = True
return reqs
def get_dependencies(name):
"""Return path to the go.mod file if it exists."""
command = None
path = None
pdir = os.path.join("packages", name)
reqs = []
for fname in os.listdir(pdir):
# Find the archive
if fname.endswith("zip"):
command = ["unzip", fname]
elif ".tar." in fname:
command = ["tar", "xf", fname]
else:
command = None
if command:
# Decompress archive
tdir = tempfile.mkdtemp()
tfile = os.path.join(tdir, fname)
shutil.copyfile(os.path.join(pdir, fname), tfile)
proc = subprocess.run(command, cwd=tdir, capture_output=True)
if not proc.returncode:
# inspect contents for a "go.sum" file
for root, _, files in os.walk(tdir):
if "go.mod" in files:
path = f"{name}.gomod"
shutil.copyfile(os.path.join(root, "go.mod"), path)
reqs += parse_go_mod(path)
os.unlink(path)
shutil.rmtree(tdir)
return reqs
def encode_requirements(requirement):
"""Encode the project's module and version."""
# Default dependency base proxy url
base_url = "https://proxy.golang.org/"
# Encoding based on
# https://tip.golang.org/cmd/go/#hdr-Module_proxy_protocol
encoded_module = ""
for char in requirement[0]:
if char.isupper():
encoded_module += "!" + char.lower()
else:
encoded_module += char
encoded_version = ""
for char in requirement[1]:
if char.isupper():
encoded_version += "!" + char.lower()
else:
encoded_version += char
return (encoded_module, encoded_version)
def initialize_package(name, url, version, path, args):
"""Setup package and try to build it."""
if already_built(name, version):
return True
print(f"Trying to autospecnew {name} - {version}")
proc = subprocess.run(["make", "autospecnew", f"URL={url}", f"NAME={name}", f"SETVERSION={version}"], capture_output=True)
if f"{name} already exists at" in proc.stdout.decode("utf-8"):
return build(path, args, name, url, version)
return proc.returncode == 0
def build_recursive(path, args, name, url, version=None, success=None):
"""Try and recursively build packages."""
if not success:
# First package being built, common utilities already run
# so just use autospec directly
success = {}
ret = build(path, args, name, url, version)
else:
ret = initialize_package(name, url, version, path, args)
if ret:
# Completed so we are done!
return True
if not missing_dependencies(name):
# Failed but not due to missing dependencies, bail
print(f"Unknown error building {name} - {version}")
return False
reqs = get_dependencies(name)
if not reqs:
# Didn't try and add anything so don't need to build again
print(f"Build failed with no missing requirements: {name} - {version}")
return False
print(f"First attempt to build failed due to missing dependencies {name} - {version}\n")
for req in reqs:
ereq = encode_requirements(req)
rname = "go-" + req[0].replace("/", "-")
rurl = f"https://proxy.golang.org/{ereq[0]}/@v/list"
if (rname, req[1]) in success:
# Rebuild detected, figure out if it is okay or not
if success[(rname, req[1])]:
# Already succeeded building req short circuit success
continue
else:
# Encountered a build loop, bail out as this likely
# requires manual fixing
print(f"Detected build loop when building {rname} - {req[1]}")
return True
success[(rname, req[1])] = False
if not build_recursive(path, args, rname, rurl, req[1], success):
print(f"Failed to build dependency {rname} - {req[1]}")
return False
success[(rname, req[1])] = True
subprocess.run(["make", "repodel"], cwd=f"packages/{rname}", capture_output=True)
subprocess.run(["make", "repostage"], cwd=f"packages/{rname}", capture_output=True)
# Create the repo with the new packages added
subprocess.run(["make", "localrepocreate"], capture_output=True)
# Retry previously failed build assuming dependencies got added
print(f"Rebuilding after resolving dependencies {name} - {version}")
ret = build(path, args, name, url, version)
print("")
return ret
def main():
"""Start program execution."""
args = parse_args()
path = os.path.dirname(os.path.realpath(__file__))
return build_recursive(path, args, args.name, args.url)
if __name__ == '__main__':
if not main():
sys.exit(-1)
print("\n\nBuild completed\n\n")
+1
View File
@@ -1,4 +1,5 @@
Copyright
Distributable
ISSL
Public-Domain
sendmail
+7
View File
@@ -0,0 +1,7 @@
# This file contains SPDX license identifiers that are not defined in the
# latest version of SPDX but still needed (or possibly needed) for Clear Linux
# packages.
GFDL-1.3+
MIT-Opengroup
WXwindows
w3c
+183 -87
View File
@@ -1,56 +1,65 @@
0BSD
AAL
Abstyles
Adobe-2006
Adobe-Glyph
ADSL
AFL-1.1
AFL-1.2
AFL-2.0
AFL-2.1
AFL-3.0
Afmparse
AGPL-1.0
AGPL-1.0-only
AGPL-1.0-or-later
AGPL-3.0
Aladdin
AGPL-3.0-only
AGPL-3.0-or-later
AMDPLPA
AML
AMPAS
ANTLR-PD
Apache-1.0
Apache-1.1
Apache-2.0
APAFML
APL-1.0
APSL-1.0
APSL-1.1
APSL-1.2
APSL-2.0
Abstyles
Adobe-2006
Adobe-Glyph
Afmparse
Aladdin
Apache-1.0
Apache-1.1
Apache-2.0
Artistic-1.0
Artistic-1.0-cl8
Artistic-1.0-Perl
Artistic-1.0-cl8
Artistic-2.0
BSD-1-Clause
BSD-2-Clause
BSD-2-Clause-FreeBSD
BSD-2-Clause-NetBSD
BSD-2-Clause-Patent
BSD-3-Clause
BSD-3-Clause-Attribution
BSD-3-Clause-Clear
BSD-3-Clause-LBNL
BSD-3-Clause-No-Nuclear-License
BSD-3-Clause-No-Nuclear-License-2014
BSD-3-Clause-No-Nuclear-Warranty
BSD-3-Clause-Open-MPI
BSD-4-Clause
BSD-4-Clause-UC
BSD-Protection
BSD-Source-Code
BSL-1.0
Bahyph
Barr
Beerware
BitTorrent-1.0
BitTorrent-1.1
BlueOak-1.0.0
Borceux
BSD-2-Clause
BSD-2-Clause-FreeBSD
BSD-2-Clause-NetBSD
BSD-3-Clause
BSD-3-Clause-Attribution
BSD-3-Clause-Clear
BSD-3-Clause-LBNL
BSD-4-Clause
BSD-4-Clause-UC
BSD-Protection
BSL-1.0
bzip2-1.0.5
bzip2-1.0.6
Caldera
CATOSL-1.1
CC0-1.0
CC-BY-1.0
CC-BY-2.0
CC-BY-2.5
@@ -81,96 +90,122 @@ CC-BY-SA-2.0
CC-BY-SA-2.5
CC-BY-SA-3.0
CC-BY-SA-4.0
CC-PDDC
CC0-1.0
CDDL-1.0
CDDL-1.1
CDLA-Permissive-1.0
CDLA-Sharing-1.0
CECILL-1.0
CECILL-1.1
CECILL-2.0
CECILL-2.1
CECILL-B
CECILL-C
ClArtistic
CERN-OHL-1.1
CERN-OHL-1.2
CNRI-Jython
CNRI-Python
CNRI-Python-GPL-Compatible
Condor-1.1
CPAL-1.0
CPL-1.0
CPOL-1.02
Crossword
CUA-OPL-1.0
Caldera
ClArtistic
Condor-1.1
Crossword
CrystalStacker
Cube
D-FSL-1.0
diffmark
DOC
Dotseqn
DSDP
dvipdfm
Dotseqn
ECL-1.0
ECL-2.0
eCos-2.0
EFL-1.0
EFL-2.0
eGenix
Entessa
EPL-1.0
ErlPL-1.1
EPL-2.0
EUDatagrid
EUPL-1.0
EUPL-1.1
EUPL-1.2
Entessa
ErlPL-1.1
Eurosym
Fair
Frameworx-1.0
FreeImage
FSFAP
FSFUL
FSFULLR
FTL
Fair
Frameworx-1.0
FreeImage
GFDL-1.1
GFDL-1.1-only
GFDL-1.1-or-later
GFDL-1.2
GFDL-1.2-only
GFDL-1.2-or-later
GFDL-1.3
GFDL-1.3+
Giftware
GFDL-1.3-only
GFDL-1.3-or-later
GL2PS
Glide
Glulxe
gnuplot
GPL-1.0
GPL-1.0+
GPL-1.0-only
GPL-1.0-or-later
GPL-2.0
GPL-2.0+
GPL-2.0-only
GPL-2.0-or-later
GPL-2.0-with-GCC-exception
GPL-2.0-with-autoconf-exception
GPL-2.0-with-bison-exception
GPL-2.0-with-classpath-exception
GPL-2.0-with-font-exception
GPL-2.0-with-GCC-exception
GPL-3.0
GPL-3.0+
GPL-3.0-with-autoconf-exception
GPL-3.0-only
GPL-3.0-or-later
GPL-3.0-with-GCC-exception
gSOAP-1.3b
HaskellReport
GPL-3.0-with-autoconf-exception
Giftware
Glide
Glulxe
HPND
HPND-sell-variant
HaskellReport
IBM-pibs
ICU
IJG
ImageMagick
iMatix
Imlib2
Intel
Intel-ACPI
IPA
IPL-1.0
ISC
JasPer-2.0
ImageMagick
Imlib2
Info-ZIP
Intel
Intel-ACPI
Interbase-1.0
JPNIC
JSON
Latex2e
Leptonica
JasPer-2.0
LAL-1.2
LAL-1.3
LGPL-2.0
LGPL-2.0+
LGPL-2.0-only
LGPL-2.0-or-later
LGPL-2.1
LGPL-2.1+
LGPL-2.1-only
LGPL-2.1-or-later
LGPL-3.0
LGPL-3.0+
Libpng
libtiff
LGPL-3.0-only
LGPL-3.0-or-later
LGPLLR
LPL-1.0
LPL-1.02
LPPL-1.0
@@ -178,17 +213,20 @@ LPPL-1.1
LPPL-1.2
LPPL-1.3a
LPPL-1.3c
MakeIndex
MirOS
Latex2e
Leptonica
LiLiQ-P-1.1
LiLiQ-R-1.1
LiLiQ-Rplus-1.1
Libpng
Linux-OpenIB
MIT
MIT-advertising
MIT-0
MIT-CMU
MIT-advertising
MIT-enna
MIT-feh
MIT-Opengroup
MITNFA
Motosoto
mpich2
MPL-1.0
MPL-1.1
MPL-2.0
@@ -196,29 +234,46 @@ MPL-2.0-no-copyleft-exception
MS-PL
MS-RL
MTLL
MakeIndex
MirOS
Motosoto
MulanPSL-1.0
Multics
Mup
NASA-1.3
Naumen
NBPL-1.0
NCSA
NetCDF
Newsletr
NGPL
NLOD-1.0
NLPL
Nokia
NOSL
Noweb
NPL-1.0
NPL-1.1
NPOSL-3.0
NRL
NTP
NTP-0
Naumen
Net-SNMP
NetCDF
Newsletr
Nokia
Noweb
Nunit
OCCT-PL
OCLC-2.0
ODC-By-1.0
ODbL-1.0
OFL-1.0
OFL-1.0-RFN
OFL-1.0-no-RFN
OFL-1.1
OFL-1.1-RFN
OFL-1.1-no-RFN
OGL-Canada-2.0
OGL-UK-1.0
OGL-UK-2.0
OGL-UK-3.0
OGTSL
OLDAP-1.1
OLDAP-1.2
@@ -237,77 +292,118 @@ OLDAP-2.6
OLDAP-2.7
OLDAP-2.8
OML
OpenSSL
OPL-1.0
OSET-PL-2.1
OSL-1.0
OSL-1.1
OSL-2.0
OSL-2.1
OSL-3.0
OpenSSL
PDDL-1.0
PHP-3.0
PHP-3.01
PSF-2.0
Parity-6.0.0
Plexus
PostgreSQL
psfrag
psutils
Python-2.0
Qhull
QPL-1.0
Rdisc
Qhull
RHeCos-1.1
RPL-1.1
RPL-1.5
RPSL-1.0
RSA-MD
RSCPL
Rdisc
Ruby
Saxpath
SAX-PD
SCEA
SGI-B-1.0
SGI-B-1.1
SGI-B-2.0
SimPL-2.0
SHL-0.5
SHL-0.51
SISSL
SISSL-1.2
Sleepycat
SMLNJ
SMPPL
SNIA
SPL-1.0
SSH-OpenSSH
SSH-short
SSPL-1.0
SWL
Saxpath
Sendmail
Sendmail-8.23
SimPL-2.0
Sleepycat
Spencer-86
Spencer-94
Spencer-99
StandardML-NJ
SugarCRM-1.1.3
SWL
TAPR-OHL-1.0
TCL
TCP-wrappers
TMate
TORQUE-1.1
TOSL
TU-Berlin-1.0
TU-Berlin-2.0
UCL-1.0
UPL-1.0
Unicode-DFS-2015
Unicode-DFS-2016
Unicode-TOU
Unlicense
Vim
VOSTROM
VSL-1.0
Vim
W3C
W3C-19980720
W3C-20150513
WTFPL
Watcom-1.0
Wsuipa
WTFPL
WXwindows
X11
Xerox
XFree86-1.1
xinetd
Xnet
xpp
XSkat
Xerox
Xnet
YPL-1.0
YPL-1.1
ZPL-1.1
ZPL-2.0
ZPL-2.1
Zed
Zend-2.0
Zimbra-1.3
Zimbra-1.4
Zlib
blessing
bzip2-1.0.5
bzip2-1.0.6
copyleft-next-0.3.0
copyleft-next-0.3.1
curl
diffmark
dvipdfm
eCos-2.0
eGenix
etalab-2.0
gSOAP-1.3b
gnuplot
iMatix
libpng-2.0
libselinux-1.0
libtiff
mpich2
psfrag
psutils
wxWindows
xinetd
xpp
zlib-acknowledgement
ZPL-1.1
ZPL-2.0
ZPL-2.1
w3c
+5
View File
@@ -0,0 +1,5 @@
TEST = test.test_ltsutils
.PHONY: test
test:
PYTHONPATH=. python -m unittest -v -k .Test $(TEST)
+19
View File
@@ -0,0 +1,19 @@
# LTS package maintenance utility
This tooling is designed to automate 2 main tasks that are part of
the package maintenance workflow of Clear Linux LTS. These tasks are:
- Back-porting of a patch (e.g. security fix) to older branches.
- Building RPMs with the intent of sharing binaries of older LTS branches to
newer branches whenever possible.
There should be no need to run this tool directly. Instead use the following
targets defined in Makefile.common.lts:
- lts-show: Show a summary of active LTS branches
- lts-backport: Attempt to fast-forward the previous active branch to the current branch
- lts-build: Build RPM in Koji, or reuse existing build from older branch
"Active" branches correspond to LTS releases that currently have support.
They are listed in a flat file "active-branches" in "lts" directory, from
oldest to newest. New entries are added by Clear Linux LTS developers as
new releases become available, and entries removed as releases become
obsolete.
View File
View File
+52
View File
@@ -0,0 +1,52 @@
import pathlib
from subprocess import PIPE, CalledProcessError
from .shell import Shell
class PackageRepo:
'''Represents a package repository. Most methods are wrappers of git commands.'''
class UnknownCurrentBranchException(Exception): pass
class InvalidBranchException(Exception): pass
def __init__(self, name, path):
self.name = name
self.path = pathlib.Path(path)
self.sh = Shell(self.path)
def getNVR(self, commit='HEAD'):
with self.sh.popen(['git', 'show', '{}:{}.spec'.format(commit, self.name)], stdout=PIPE) as specfile:
nvr = self.sh.run('rpmspec --srpm -q --queryformat %{NVR} /dev/stdin', stdin=specfile.stdout)
return tuple(nvr.stdout.strip().rsplit('-', maxsplit=2))
def checkoutBranch(self, branch, allow_remote=False):
# allow_remote=True allows checking out a new remote-tracking branch
if not allow_remote and not self.hasBranch(branch):
raise self.InvalidBranchException(branch)
self.sh.run_args(['git', 'checkout', branch], capture_output=False)
def fastForwardBranch(self, old, new):
self.checkoutBranch(old)
if not self.hasBranch(new):
raise self.InvalidBranchException(new)
self.sh.run_args(['git', 'merge', '--ff-only', new], capture_output=False)
def getActiveBranches(self):
toplvl = pathlib.Path(self.path) / '../..'
common = toplvl / 'projects/common'
active_branches = common / 'lts/active-branches'
with active_branches.open() as f:
return [line.rstrip() for line in f]
def getCurrentBranch(self):
try:
head = self.sh.run('git symbolic-ref HEAD').stdout.strip()
except CalledProcessError:
raise self.UnknownCurrentBranchException
refs_heads = 'refs/heads/'
assert head.startswith(refs_heads)
head = head[len(refs_heads):]
return head
def hasBranch(self, branch):
p = self.sh.run_args(['git', 'rev-parse', 'refs/heads/'+branch], check=False)
return p.returncode == 0
+27
View File
@@ -0,0 +1,27 @@
import subprocess, shlex
class Shell:
# Default options passed to subprocess.run. May be customized per-instance.
cwd = None
check = True
capture_output = True
text = True
def __init__(self, cwd=None):
if cwd: self.cwd = cwd
def run_args(self, args, **kwargs):
kwargs1 = {
'check': self.check,
'capture_output': self.capture_output,
'text': self.text,
'cwd': self.cwd
}
kwargs1.update(kwargs)
return subprocess.run(args, **kwargs1)
def run(self, cmd, **kwargs):
return self.run_args(shlex.split(cmd), **kwargs)
def popen(self, args, **kwargs):
return subprocess.Popen(args, cwd=self.cwd, **kwargs)
+161
View File
@@ -0,0 +1,161 @@
#!/usr/bin/python
import sys,argparse
from ltsutils.package_repo import PackageRepo
def log(msg, **kwargs):
print(msg, file=sys.stderr)
def init_parser():
main = argparse.ArgumentParser()
main.add_argument('package_name', nargs=1)
subparsers = main.add_subparsers(dest='command', metavar='command', required=True)
# Package maintenance commands
p = subparsers.add_parser('prev-branch',
help='show previous branch')
p.add_argument('--checkout', action='store_true', help='checkout the branch')
p = subparsers.add_parser('next-branch',
help='show next branch')
p.add_argument('--checkout', action='store_true', help='checkout the branch')
p = subparsers.add_parser('current-branch',
help='show current branch')
p = subparsers.add_parser('is-same-version',
help='return true if package version is the same as the given branch')
p.add_argument('branch', nargs=1)
p = subparsers.add_parser('fast-forward',
help='fast-forward current branch to a newer branch')
p.add_argument('branch', nargs=1)
# RPM build commands
p = subparsers.add_parser('can-reuse-binary',
help='check if binary from another branch can be used in current branch')
p.add_argument('branch', nargs=1)
# Other commands
p = subparsers.add_parser('prompt',
help='prompt user to continue and return appropriate exit code')
p = subparsers.add_parser('sanity-check',
help='run sanity checks for data consistency')
return main
def prev_branch(args, repo):
active_branches = repo.getActiveBranches()
current = repo.getCurrentBranch()
i = active_branches.index(current)
if i == 0:
log('Already on oldest active branch.')
return False
prev = active_branches[i-1]
print(prev)
if args.checkout:
repo.checkoutBranch(prev, allow_remote=True)
def next_branch(args, repo):
active_branches = repo.getActiveBranches()
current = repo.getCurrentBranch()
i = active_branches.index(current)
if i == len(active_branches)-1:
log('Already on newest active branch.')
return False
next_ = active_branches[i+1]
print(next_)
if args.checkout:
repo.checkoutBranch(next_, allow_remote=False)
def current_branch(args, repo):
current = repo.getCurrentBranch()
print(current)
def is_same_version(args, other):
current = repo.getCurrentBranch()
other = args.branch[0]
assert repo.hasBranch(other), 'Branch %s not found' % other
v1, v2 = [repo.getNVR('refs/heads/'+b)[1] for b in (current, other)]
if v1 != v2:
log('Current version {} does not match version {} on branch {}'.format(v1, v2, other))
return v1 == v2
def fast_forward(args, repo):
current = repo.getCurrentBranch()
newer = args.branch[0]
log('Fast-forwarding {} to {}'.format(current, newer))
repo.fastForwardBranch(current, newer)
def sanity_check(args, repo):
ok = True
# HEAD must point to a branch
try:
current = repo.getCurrentBranch()
except PackageRepo.UnknownCurrentBranchException:
log('Unknown current branch. Has a branch been checked out?')
current = None
ok = False
# active-branches file must not be empty
active_branches = repo.getActiveBranches()
if not len(active_branches):
log('No active branches defined. Is active-branches file empty?')
ok = False
# current branch must be an active branch
elif current and current not in active_branches:
log('%s is not an active LTS branch.' % current)
ok = False
return ok
def can_reuse_binary(args, repo):
# Just compare versions for now
# TODO: ABI compatibility testing
current = repo.getCurrentBranch()
older = args.branch[0]
v1, v2 = [repo.getNVR('refs/heads/'+b)[1] for b in (older, current)]
return v1 == v2
def prompt(args, repo):
import selectors
timeout = 60
while True:
print('Continue? (y/N): ', end='', flush=True)
with selectors.DefaultSelector() as sel:
sel.register(sys.stdin, selectors.EVENT_READ)
events = sel.select(timeout)
if not len(events):
print('Timed out after {}s.'.format(timeout))
return False
else:
s = sys.stdin.readline().rstrip('\n')
if s in ('Y', 'y', 'N', 'n', ''):
break
if s in ('Y', 'y'):
return True
else:
print('Cancelled.')
return False
if __name__=='__main__':
args = init_parser().parse_args()
repo = PackageRepo(args.package_name[0], '.')
commands = {
'prev-branch': prev_branch,
'next-branch': next_branch,
'current-branch': current_branch,
'is-same-version': is_same_version,
'fast-forward': fast_forward,
'can-reuse-binary': can_reuse_binary,
'prompt': prompt,
'sanity-check': sanity_check,
}
ret = commands[args.command](args, repo)
if ret is not None:
exit(0 if ret else 1)
View File
+97
View File
@@ -0,0 +1,97 @@
import unittest
import os, pathlib, tempfile, logging
import subprocess, functools
from ltsutils.package_repo import PackageRepo
import ltsutils.shell
run = functools.partial(subprocess.run, check=True)
class Package:
def __init__(self, name):
self.name = name
self.repo_url = 'https://github.com/clearlinux-pkgs/{}.git'.format(name)
class LTSUtilsTestCase(unittest.TestCase):
toplvl = pathlib.Path('../../..')
packages = toplvl / 'packages'
def cloneOrExtractRepo(self):
tmpdir = pathlib.Path('/var/tmp/common-lts-test')
tmpdir.mkdir(mode=0o700, exist_ok=True)
tarball = tmpdir / '{}.tar.gz'.format(self.package.name)
if tarball.exists():
run(['tar', 'xf', tarball, '-C', self.workdir])
else:
run(['git', 'clone', self.package.repo_url, self.workdir])
run(['tar', 'czf', tarball, '-C', self.workdir, '.'])
def setUp(self):
self._tmpdir = tempfile.TemporaryDirectory(prefix='test-{}-'.format(self.package.name), dir=self.packages)
self.workdir = pathlib.Path(self._tmpdir.name)
self.cloneOrExtractRepo()
self.repo = PackageRepo(self.package.name, self.workdir)
self._sh = ltsutils.shell.Shell(self.workdir)
self._sh.capture_output = False
def sh(self, cmd):
return self._sh.run(cmd)
def sh_stdout(self, cmd):
return self._sh.run(cmd, capture_output=True).stdout.rstrip()
def tearDown(self):
self._tmpdir.cleanup()
class PackageRepoTestCase(LTSUtilsTestCase):
def setUp(self):
super().setUp()
self.L1 = self.package.L1
self.L2 = self.package.L2
self.sh('git branch L1 %s' % self.L1)
self.sh('git branch L2 %s' % self.L2)
def testGetNVR(self):
raise NotImplementedError
def testHasBranch(self):
self.assertTrue(self.repo.hasBranch('L2'))
self.assertFalse(self.repo.hasBranch('L3'))
def testCheckoutBranch(self):
self.repo.checkoutBranch('L2')
self.assertEqual(self.sh_stdout('git rev-parse HEAD'), self.L2)
self.assertRaises(PackageRepo.InvalidBranchException, self.repo.checkoutBranch, 'L3')
def testFastForward(self):
self.repo.fastForwardBranch('L1', 'L2')
self.assertEqual(self.sh_stdout('git rev-parse L1'), self.L2)
self.assertEqual(self.sh_stdout('git rev-parse L2'), self.L2)
def testGetCurrentBranch(self):
self.repo.checkoutBranch('L2')
b = self.repo.getCurrentBranch()
self.assertEqual(b, 'L2')
self.sh('git checkout --detach L2')
self.assertRaises(PackageRepo.UnknownCurrentBranchException, self.repo.getCurrentBranch)
class TestNano(PackageRepoTestCase):
package = Package('nano')
package.L1 = '3dcfa09f5217eedf6ec7539af7e243655d3abdb6' # 3.2-54
package.L2 = 'b8243dd54e8feb16a11474f848b8735f5591cf12' # 3.2-55
def testGetNVR(self):
nvr = self.repo.getNVR(self.L2)
self.assertEqual(nvr, ('nano', '3.2', '55'))
class TestMySQL_Python(PackageRepoTestCase):
package = Package('MySQL-python')
package.L1 = '386163d8fc9c857c7194c4e958374af4c4f071ed' # 1.2.5-31
package.L2 = 'f85bc5ec2141384f45f224d4464a0a44a981a4d4' # 1.2.5-33
def testGetNVR(self):
nvr = self.repo.getNVR(self.L2)
self.assertEqual(nvr, ('MySQL-python', '1.2.5', '33'))
+2 -1
View File
@@ -51,4 +51,5 @@ rack = rubygem-rack
compute = nova
international_components_for_unicode = icu4c
node.js = nodejs
jupyter-core = jupyter_core
jupyter-core = jupyter_core
flatten-json = flatten_json
+3644 -118
View File
File diff suppressed because it is too large Load Diff
+393
View File
@@ -0,0 +1,393 @@
#!/usr/bin/python3
import sys
import tempfile
import subprocess
header = list()
files = list()
files_chunks = dict() # dict to list
files_header = dict() # dict to list
def push_chunk(file, chunk):
global files_chunks
if len(chunk) == 0:
return
if file not in files_chunks:
files_chunks[file] = list()
files_chunks[file].append(chunk)
def parse_patch(lines):
global header
global files
global files_chunks
global files_header
phase = 0
currentfile = ""
currentchunk = list()
for line in lines:
line = line.replace("\n","")
if line.startswith("diff --git"):
push_chunk(currentfile, currentchunk)
currentchunk = list()
filename = line.replace("diff --git","")
index= filename.find("b/")
if index >= 0:
filename = filename[index:].strip()
currentfile = filename
files.append(currentfile)
phase = 1
if line.startswith("@@"):
push_chunk(currentfile, currentchunk)
currentchunk = list()
phase = 2
if phase == 0:
header.append(line)
if phase == 1:
if currentfile not in files_header:
files_header[currentfile] = list()
files_header[currentfile].append(line)
if phase == 2:
currentchunk.append(line)
push_chunk(currentfile, currentchunk)
currentchunk = list()
def print_all():
global header
global files
global files_chunks
global files_header
for line in header:
print(line)
for file in files:
for line in files_header[file]:
print(line)
if file in files_chunks:
for chunk in files_chunks[file]:
for line in chunk:
print(line)
def zap_entire_file(filename):
global header
global files
global files_chunks
global files_header
if filename in files:
files.remove(filename)
def zap_entire_file_end(filename):
global header
global files
global files_chunks
global files_header
for file in files:
if file.endswith(filename):
files.remove(file)
def zap_line_in_file_substring(filename, match):
global header
global files
global files_chunks
global files_header
for file in files:
if file.endswith(filename):
for chunk in files_chunks[file]:
to_delete = list()
for line in chunk:
if match in line:
to_delete.append(line)
for line in to_delete:
chunk.remove(line)
def zap_line_in_file(filename, match):
global header
global files
global files_chunks
global files_header
for file in files:
if file.endswith(filename):
for chunk in files_chunks[filename]:
to_delete = list()
for line in chunk:
if line == ("+" + match):
to_delete.append(line)
if line == ("-" + match):
to_delete.append(line)
for line in to_delete:
chunk.remove(line)
def zap_line_in_file_start(filename, match):
global header
global files
global files_chunks
global files_header
for file in files:
if file.endswith(filename):
for chunk in files_chunks[file]:
to_remove = list()
for line in chunk:
if line.startswith("+" + match):
to_remove.append(line)
if line.startswith("-" + match):
to_remove.append(line)
for line in to_remove:
chunk.remove(line)
def zap_plus_line_in_file(filename):
global header
global files
global files_chunks
global files_header
for file in files:
if file.endswith(filename):
for chunk in files_chunks[file]:
to_remove = list()
for line in chunk:
if line.startswith("+"):
to_remove.append(line)
for line in to_remove:
chunk.remove(line)
def chunk_empty(chunk):
for line in chunk:
if len(line) > 0 and line[0] == '+':
return False
return True
def zap_empty_chunks():
global header
global files
global files_chunks
global files_header
files_to_remove = list()
for file in files:
if file not in files_chunks:
files.remove(file)
continue
to_remove = list()
for chunk in files_chunks[file]:
if chunk_empty(chunk):
to_remove.append(chunk)
for c in to_remove:
files_chunks[file].remove(c)
if len(files_chunks[file]) == 0:
files_to_remove.append(file)
for file in files_to_remove:
files.remove(file)
def main():
if len(sys.argv) > 1:
filename = sys.argv[1]
with open (filename, "r") as myfile:
lines = myfile.readlines()
else:
output = subprocess.check_output("git format-patch -1 --stdout", shell=True).decode("latin-1")
lines = output.split("\n")
parse_patch(lines)
zap_entire_file("b/release")
zap_entire_file("b/buildreq_cache")
zap_entire_file("b/.gitignore")
zap_entire_file("b/upstream")
zap_entire_file("b/NEWS")
zap_entire_file("b/ChangeLog")
zap_entire_file_end("xz.sig")
zap_entire_file_end("gz.sig")
zap_entire_file_end("bz2.sig")
zap_entire_file_end("xz.asc")
zap_entire_file_end("gz.asc")
zap_entire_file_end("bz2.asc")
zap_entire_file_end(".pkey")
zap_line_in_file("b/testresults", "Total : 0")
zap_line_in_file("b/testresults", "Pass : 0")
zap_line_in_file("b/testresults", "Fail : 0")
zap_line_in_file("b/testresults", "XFail : 0")
zap_line_in_file("b/testresults", "Skip : 0")
zap_line_in_file("b/requires_ban", "#FOO")
zap_line_in_file("b/Makefile", "ARCHIVES = ")
zap_line_in_file("b/Makefile", "include ../common/Makefile.common")
zap_line_in_file("b/Makefile", "")
zap_line_in_file_start(".spec", "Release :")
zap_line_in_file_start(".spec", "Source99 :")
zap_line_in_file_start(".spec", "Source0 :")
zap_line_in_file_start(".spec", "export SOURCE_DATE_EPOCH")
zap_line_in_file_start(".spec", "export AR=gcc-ar")
zap_line_in_file_start(".spec", "export RANLIB=gcc-ranlib")
zap_line_in_file_start(".spec", "export NM=gcc-nm")
zap_line_in_file_start(".spec", "export CFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
zap_line_in_file_start(".spec", "export FCFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
zap_line_in_file_start(".spec", "export FFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
zap_line_in_file_start(".spec", "export CXXFLAGS=\"$CXXFLAGS -O3 -ffat-lto-objects -flto=4 \"")
zap_line_in_file_start(".spec", "%setup -q -n ")
zap_line_in_file_start(".spec", "URL :")
zap_line_in_file_start(".spec", "Version :")
zap_line_in_file_start(".spec", "Group : Development/Tools")
zap_line_in_file_start(".spec", "No detailed description available")
zap_line_in_file_start(".spec", "bin components for the")
zap_line_in_file_start(".spec", "dev components for the")
zap_line_in_file_start(".spec", "lib components for the")
zap_line_in_file_start(".spec", "data components for the")
zap_line_in_file_start(".spec", "locales components for the")
zap_line_in_file_start(".spec", "license components for the")
zap_line_in_file_start(".spec", "doc components for the")
zap_line_in_file_start(".spec", "Group: Default")
zap_line_in_file_start(".spec", "export http_proxy=http://127.0.0.1:9/")
zap_line_in_file_start(".spec", "export https_proxy=http://127.0.0.1:9/")
zap_line_in_file_start(".spec", "export ftp_proxy=http://127.0.0.1:9/")
zap_line_in_file_start(".spec", "export no_proxy=localhost,127.0.0.1,0.0.0.0")
zap_line_in_file_start(".spec", "Summary:")
zap_line_in_file_start(".spec", "Group: Development")
zap_line_in_file_start(".spec", "Group: Binaries")
zap_line_in_file_start(".spec", "Group: Data")
zap_line_in_file_start(".spec", "Group: Libraries")
zap_line_in_file_start(".spec", "Group: Documentation")
zap_line_in_file_start(".spec", "export LANG=C")
zap_line_in_file_start(".spec", "%description lib")
zap_line_in_file_start(".spec", "%description bin")
zap_line_in_file_start(".spec", "%description data")
zap_line_in_file_start(".spec", "%description doc")
zap_line_in_file_start(".spec", "%description locales")
zap_line_in_file_start(".spec", "%description dev")
zap_line_in_file_start(".spec", "%description license")
zap_line_in_file_start(".spec", "%package doc")
zap_line_in_file_start(".spec", "cp -a ")
zap_line_in_file_start(".spec", "cd %{_builddir}/")
zap_line_in_file_start(".spec", "export GCC_IGNORE_WERROR=1")
zap_line_in_file_start("b/Makefile", "URL =")
zap_line_in_file_start("b/Makefile", "PKG_NAME :=")
zap_line_in_file("b/options.conf", "archives = ")
zap_line_in_file("b/options.conf", "giturl = ")
zap_line_in_file("b/options.conf", "url = ")
zap_line_in_file("b/options.conf", "[package]")
zap_line_in_file("b/options.conf", "")
zap_line_in_file("b/options.conf", "[autospec]")
zap_line_in_file("b/options.conf", "# build 32 bit libraries")
zap_line_in_file("b/options.conf", "32bit = false")
zap_line_in_file("b/options.conf", "# allow package to build with test failures")
zap_line_in_file("b/options.conf", "allow_test_failures = false")
zap_line_in_file("b/options.conf", "# unset %build ld_as_needed variable")
zap_line_in_file("b/options.conf", "asneeded = false")
zap_line_in_file("b/options.conf", "# this package is trusted enough to automatically update (used by other tools)")
zap_line_in_file("b/options.conf", "autoupdate = false")
zap_line_in_file("b/options.conf", "# extend flags with '-std=gnu++98")
zap_line_in_file("b/options.conf", "broken_c++ = false")
zap_line_in_file("b/options.conf", "# disable parallelization during build")
zap_line_in_file("b/options.conf", "broken_parallel_build = false")
zap_line_in_file("b/options.conf", "# this package is a library compatability package and only ships versioned library files")
zap_line_in_file("b/options.conf", "# this package is a library compatibility package and only ships versioned library files")
zap_line_in_file("b/options.conf", "compat = false")
zap_line_in_file("b/options.conf", "# set conservative build flags")
zap_line_in_file("b/options.conf", "conservative_flags = false")
zap_line_in_file("b/options.conf", "# dev package requires the extras to be installed")
zap_line_in_file("b/options.conf", "dev_requires_extras = false")
zap_line_in_file("b/options.conf", "nodebug = false")
zap_line_in_file("b/options.conf", "# pass -ffast-math to compiler")
zap_line_in_file("b/options.conf", "fast-math = false")
zap_line_in_file("b/options.conf", "# optimize build for speed over size")
zap_line_in_file("b/options.conf", "funroll-loops = false")
zap_line_in_file("b/options.conf", "# set flags to smallest -02 flags possible")
zap_line_in_file("b/options.conf", "insecure_build = false")
zap_line_in_file("b/options.conf", "# do not remove static libraries")
zap_line_in_file("b/options.conf", "keepstatic = false")
zap_line_in_file("b/options.conf", "# do not require autostart subpackage")
zap_line_in_file("b/options.conf", "no_autostart = false")
zap_line_in_file("b/options.conf", "# disable stripping binaries")
zap_line_in_file("b/options.conf", "nostrip = false")
zap_line_in_file("b/options.conf", "# optimize build for size over speed")
zap_line_in_file("b/options.conf", "optimize_size = false")
zap_line_in_file("b/options.conf", "# set profile for pgo")
zap_line_in_file("b/options.conf", "pgo = false")
zap_line_in_file("b/options.conf", "# set flags for security-sensitive builds")
zap_line_in_file("b/options.conf", "security_sensitive = false")
zap_line_in_file("b/options.conf", "# do not run test suite")
zap_line_in_file("b/options.conf", "skip_tests = false")
zap_line_in_file("b/options.conf", "# add .so files to the lib package instead of dev")
zap_line_in_file("b/options.conf", "so_to_lib = false")
zap_line_in_file("b/options.conf", "# configure build for avx2")
zap_line_in_file("b/options.conf", "use_avx2 = false")
zap_line_in_file("b/options.conf", "# configure build for avx512")
zap_line_in_file("b/options.conf", "use_avx512 = false")
zap_line_in_file("b/options.conf", "# add clang flags")
zap_line_in_file("b/options.conf", "use_clang = false")
zap_line_in_file("b/options.conf", "# configure build for lto")
zap_line_in_file("b/options.conf", "use_lto = true")
zap_line_in_file("b/options.conf", "# require package verification for build")
zap_line_in_file("b/options.conf", "verify_required = true")
zap_line_in_file("b/options.conf", "# do not generate debuginfo for this package")
zap_line_in_file("b/options.conf", "nodebug = false")
zap_line_in_file("b/options.conf", "domain =")
zap_line_in_file("b/buildreq_add", "# This file contains additional build requirements that did not get")
zap_line_in_file("b/buildreq_add", "# picked up automatically. One name per line, no whitespace.")
zap_line_in_file("b/buildreq_ban", "# This file contains build requirements that get picked up but are")
zap_line_in_file("b/buildreq_ban", "# undesirable. One entry per line, no whitespace.")
zap_line_in_file("b/excludes", "# This file contains the output files that need %exclude. Full path")
zap_line_in_file("b/excludes", "# names, one per line.")
zap_line_in_file("b/pkgconfig_add", "# This file contains additional pkgconfig build requirements that did")
zap_line_in_file("b/pkgconfig_add", "# not get picked up automatically. One name per line, no whitespace.")
zap_line_in_file("b/pkgconfig_ban", "# This file contains pkgconfig build requirements that get picked up")
zap_line_in_file("b/pkgconfig_ban", "# but are undesirable. One entry per line, no whitespace.")
zap_line_in_file("b/requires_add", "# This file contains additional runtime requirements that did not get")
zap_line_in_file("b/requires_add", "# picked up automatically. One name per line, no whitespace.")
zap_line_in_file("b/requires_ban", "# This file contains runtime requirements that get picked up but are")
zap_line_in_file("b/requires_ban", "# undesirable. One entry per line, no whitespace.")
zap_line_in_file_start(".spec", "Summary : No detailed summary available")
zap_plus_line_in_file("symbols")
zap_plus_line_in_file("symbols32")
zap_entire_file("b/whatrequires")
zap_entire_file("b/versions")
zap_entire_file("b/.gitignore")
zap_line_in_file_substring(".spec", "%{buildroot}/usr/share/package-licenses") # version number change in license copy
zap_empty_chunks()
print_all()
if __name__ == '__main__':
with tempfile.TemporaryDirectory() as workingdir:
main()
+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
+10 -1
View File
@@ -43,15 +43,24 @@ if [ ! -f "$IMAGE" ]; then
fi
rm -f debug.log
# 10/25/2018: keep back compatibility for a while
UEFI_BIOS="-bios OVMF.fd"
if [ -f OVMF_VARS.fd -a -f OVMF_CODE.fd ]; then
UEFI_BIOS=" -drive file=OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on "
UEFI_BIOS+=" -drive file=OVMF_VARS.fd,if=pflash,format=raw,unit=1 "
fi
VMN=${VMN:=1}
qemu-system-x86_64 \
-enable-kvm \
-bios OVMF.fd \
${UEFI_BIOS} \
-smp sockets=1,cpus=4,cores=2 -cpu host \
-m 1024 \
-vga none -nographic \
-drive file="$IMAGE",if=virtio,aio=threads,format=raw \
-netdev user,id=mynet0,hostfwd=tcp::${VMN}0022-:22,hostfwd=tcp::${VMN}2375-:2375 \
-device virtio-net-pci,netdev=mynet0 \
-device virtio-rng-pci \
-debugcon file:debug.log -global isa-debugcon.iobase=0x402 $@
+143 -101
View File
@@ -1,102 +1,136 @@
#!/bin/sh
#!/bin/bash
SCRIPT=$(/usr/bin/basename $0)
PEM=""
SERVERCA=""
CLIENTCA=""
WORKSPACE="clearlinux"
PACKAGE_REPOS=
NEEDS_KVM_GROUP=
help() {
printf "%s\n" >&2 "Usage: $SCRIPT [options]" \
"" \
"Options:" \
"-k --client-cert PEM_FILE: Enable client user cert for koji configuration; requires a PEM file argument" \
"-s --server-ca PEM_FILE: Enable server CA cert for koji configuration; requires a PEM file argument" \
"-c --client-ca PEM_FILE: Enable client CA cert for koji configuration; requires a PEM file argument" \
""
printf "%s\n" >&2 "Usage: $SCRIPT [options]" \
"" \
"Options:" \
"" \
"-d --directory NAME: Set up workspace in the given directory." \
"-a --clone-packages: Clone all package repos." \
"-j --jobs [NUM]: Clone repos with NUM jobs. If NUM is not given, it is set to the available CPU count." \
"" \
"-k --client-cert PEM_FILE: Enable client user cert for koji configuration; requires a PEM file argument" \
"-s --server-ca PEM_FILE: Enable server CA cert for koji configuration; requires a PEM file argument" \
"-c --client-ca PEM_FILE: Enable client CA cert for koji configuration; requires a PEM file argument" \
""
}
error() {
echo -e "Error: $1\n" >&2
help
exit 1
}
while [ $# -gt 0 ]; do
case "$1" in
"--help"|"-h")
help
exit 0
;;
"--client-cert"|"-k")
shift
PEM="$PWD/$1"
;;
"--server-ca"|"-s")
shift
SERVERCA="$PWD/$1"
;;
"--client-ca"|"-c")
shift
CLIENTCA="$PWD/$1"
;;
*)
help
exit 1
;;
esac
shift
case "$1" in
"--help"|"-h")
help
exit 0
;;
"--client-cert"|"-k")
shift
PEM="$(realpath $1)"
;;
"--server-ca"|"-s")
shift
SERVERCA="$(realpath $1)"
;;
"--client-ca"|"-c")
shift
CLIENTCA="$(realpath $1)"
;;
"--jobs"|"-j")
if echo "$2" | grep -qx "[1-9][0-9]*"; then
shift
JOBS="$1"
elif [ -f /proc/cpuinfo ]; then
JOBS=$(grep -Ec '^processor.*:.*[0-9]+$' /proc/cpuinfo)
fi
;;
"--directory"|"-d")
[ -z "$2" ] && error "Must supply a directory name to the -d option"
[ "${2:0:1}" = "-" ] && error "Directory name cannot begin with \"-\""
shift
WORKSPACE="$1"
;;
"--clone-packages"|"-a")
PACKAGE_REPOS=1
;;
*)
help
exit 1
;;
esac
shift
done
error() {
echo -e "Error: $1\n" >&2
help
exit 1
}
if [ -z "$PEM" ] && [ -z "$SERVERCA" ] && [ -z "$CLIENTCA" ]; then
USE_KOJI=
USE_KOJI=
else
if [ -z "$PEM" ] || [ -z "$SERVERCA" ] || [ -z "$CLIENTCA" ]; then
error "Must specify all three command line options (or none)"
fi
if [ ! -f "$PEM" ]; then
error "Missing koji client PEM key file"
fi
if [ ! -f "$SERVERCA" ]; then
error "Missing koji server CA PEM file"
fi
if [ ! -f "$CLIENTCA" ]; then
error "Missing koji client CA PEM file"
fi
USE_KOJI="yes"
if [ -z "$PEM" ] || [ -z "$SERVERCA" ] || [ -z "$CLIENTCA" ]; then
error "Must specify all three command line options (or none)"
fi
if [ ! -f "$PEM" ]; then
error "Missing koji client PEM key file"
fi
if [ ! -f "$SERVERCA" ]; then
error "Missing koji server CA PEM file"
fi
if [ ! -f "$CLIENTCA" ]; then
error "Missing koji client CA PEM file"
fi
USE_KOJI="yes"
fi
if [ -n "$JOBS" ]; then
JOBS_ARG="-j $JOBS"
fi
if [ -d "$WORKSPACE" ]; then
error "Directory \"$WORKSPACE\" already exists. \
Either remove this workspace, or use a different workspace name."
fi
required_progs() {
local bindir="/usr/bin"
for f in git mock rpm rpmbuild ; do
[ ! -x "${bindir}/${f}" ] && missing+="${f} "
done
[ "$PEM" ] && [ ! -x /usr/bin/koji ] && missing+="koji "
if [ -n "$missing" ]; then
echo "Install the following programs and re-run this script:" >&2
echo $missing >&2
echo 'All programs should be provided in the "os-clr-on-clr" bundle.' >&2
exit 1
fi
local bindir="/usr/bin"
for f in git mock rpm rpmbuild diffstat ; do
[ ! -x "${bindir}/${f}" ] && missing+="${f} "
done
[ "$PEM" ] && [ ! -x /usr/bin/koji ] && missing+="koji "
if [ -n "$missing" ]; then
echo "Install the following programs and re-run this script:" >&2
echo $missing >&2
echo 'All programs should be provided in the "os-clr-on-clr" bundle.' >&2
exit 1
fi
}
required_progs
echo 'Initializing development workspace in "clearlinux" . . .'
if [ -d "clearlinux" ]; then
echo 'Directory "clearlinux" already exists in current directory.' >&2
echo "Cannot initialize workspace." >&2
exit 1
if ! groups | grep -qw kvm; then
NEEDS_KVM_GROUP=1
fi
mkdir clearlinux
cd clearlinux
echo "Initializing development workspace in \"$WORKSPACE\" . . ."
mkdir "$WORKSPACE"
cd "$WORKSPACE"
echo "Setting up common repo . . ."
mkdir projects
git clone https://github.com/clearlinux/common projects/common
if [ $? -ne 0 ]; then
echo "Failed to clone common repo." >&2
exit 1
echo "Failed to clone common repo." >&2
exit 1
fi
# Finish setup for packages/projects hierarchy
@@ -105,48 +139,56 @@ mkdir -p packages/common
ln -sf ../../projects/common/Makefile.common packages/common/Makefile.common
if [ "$USE_KOJI" ]; then
echo "Setting up koji certs . . ."
mkdir -p ~/.koji
cp "$PEM" ~/.koji/client.crt
cp "$CLIENTCA" ~/.koji/clientca.crt
cp "$SERVERCA" ~/.koji/serverca.crt
echo "Setting up koji certs . . ."
mkdir -p ~/.koji
cp "$PEM" ~/.koji/client.crt
cp "$CLIENTCA" ~/.koji/clientca.crt
cp "$SERVERCA" ~/.koji/serverca.crt
if [ ! -f /etc/koji.conf ]; then
echo "Setting up koji config . . ."
sudo cp projects/common/koji-client-files/koji.conf /etc
fi
if [ ! -f ~/.koji/config ]; then
echo "Setting up koji config . . ."
cp -f projects/common/conf/koji.conf ~/.koji/config
fi
fi
if [ ! -f /etc/mock/clear.cfg ]; then
echo "Setting up mock config . . ."
sudo mkdir -p /etc/mock
sudo cp projects/common/koji-client-files/clear.cfg /etc/mock
if [ -n "$NEEDS_KVM_GROUP" ]; then
echo "Adding user to kvm group . . ."
sudo usermod -a -G kvm $USER
fi
echo "Adding user to kvm group . . ."
sudo usermod -a -G kvm $USER
echo "Cloning special project repositories . . ."
make clone-projects
make ${JOBS_ARG} clone-projects
if [ -z "$NO_PACKAGE_REPOS" ]; then
echo "Cloning all package repositories . . ."
make clone-packages
if [ -n "$PACKAGE_REPOS" ]; then
echo "Cloning all package repositories . . ."
make ${JOBS_ARG} clone-packages
fi
echo "Creating mix workspace . . ."
mkdir -p mix
if [ "$USE_KOJI" ]; then
echo "Testing koji installation . . ."
if koji moshimoshi; then
echo -en "\n************************\n\n"
echo "Koji installed and configured successfully"
else
echo -en "\n************************\n\n"
echo "Error with koji installation or configuration" >&2
exit 1
fi
echo "Testing koji installation . . ."
if koji moshimoshi; then
echo -en "\n************************\n\n"
echo "Koji installed and configured successfully"
else
echo -en "\n************************\n\n"
echo "Error with koji installation or configuration" >&2
exit 1
fi
fi
echo -en "\n************************\n"
echo 'Workspace has been set up in the "clearlinux" directory'
echo 'NOTE: logout and log back in or run "newgrp kvm" to finalize the setup process'
echo "Workspace has been set up in \"$WORKSPACE\""
if [ -z "$PACKAGE_REPOS" ]; then
echo "NOTE: To clone all package repos, run \"cd $WORKSPACE; make [-j NUM] clone-packages\""
echo "NOTE: To clone a single package repo with NAME, run \"cd $WORKSPACE; make clone_NAME\""
fi
if [ -n "$NEEDS_KVM_GROUP" ]; then
echo 'NOTE: logout and log back in to finalize the setup process'
fi
# vi: ft=sh sw=2 et sts=2