Compare commits

..

109 Commits

Author SHA1 Message Date
clrbuilder 6ce9826071 Update packages file for version 37400
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-10-06 04:16:28 -07:00
clrbuilder d96968cc98 Update packages file for version 37360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-30 11:40:26 -07:00
clrbuilder 4b284ecb9b Update packages file for version 37340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-29 08:28:29 -07:00
clrbuilder 746d69c99b Update packages file for version 37330
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-28 12:13:33 -07:00
clrbuilder 14f1e53183 Update packages file for version 37320
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-27 04:12:23 -07:00
Patrick McCarty a734764581 common: default to always use sudo
The conditional setting of WITH_SUDO has been a no-op for several years,
so just set the default value to `sudo`.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-09-26 22:10:53 +00:00
clrbuilder 0c9a4e6802 Update packages file for version 37310
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-26 07:43:46 -07:00
Patrick McCarty c44e74f556 Ensure make diff output is not piped to a pager
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-09-26 03:14:50 +00:00
clrbuilder 16e5086381 Update packages file for version 37300
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-22 18:37:05 -07:00
clrbuilder ae3cbddb46 Update packages file for version 37230
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-21 06:28:45 -07:00
clrbuilder 7b1ffd3045 Update packages file for version 37220
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-20 04:12:29 -07:00
clrbuilder 75610ac5f7 Update packages file for version 37210
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-19 17:57:48 -07:00
clrbuilder 8b98eabe53 Update packages file for version 37200
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-19 10:01:28 -07:00
clrbuilder 8b7cfc2cf1 Update packages file for version 37130
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-12 11:48:21 -07:00
clrbuilder ddb800af7e Update packages file for version 37070
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-07 12:43:19 -07:00
clrbuilder c514292f56 Update packages file for version 37010
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-02 10:36:13 -07:00
clrbuilder a1b55a619a Update packages file for version 36990
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-09-01 04:09:36 -07:00
clrbuilder 0896766e26 Update packages file for version 36950
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-29 14:07:22 -07:00
clrbuilder 68da68007d Update packages file for version 36940
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-26 16:50:07 -07:00
clrbuilder 35cdf3d618 Update packages file for version 36920
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-25 13:42:14 -07:00
clrbuilder c646187f11 Update packages file for version 36910
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-25 04:10:45 -07:00
clrbuilder af28bdadf7 Update packages file for version 36850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-16 04:09:43 -07:00
Patrick McCarty 39c9a566a6 Update for SPDX 3.18 release
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-08-12 00:34:50 +00:00
clrbuilder b0ab451ae0 Update packages file for version 36800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-11 04:09:08 -07:00
clrbuilder ac1c648189 Update packages file for version 36760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-08 16:15:44 -07:00
clrbuilder 2939f3c5f8 Update packages file for version 36740
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-04 04:10:29 -07:00
clrbuilder e361b3ab2f Update packages file for version 36730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-03 07:20:11 -07:00
clrbuilder 6081437611 Update packages file for version 36720
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-02 16:07:38 -07:00
clrbuilder d6c8858c6e Update packages file for version 36710
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-08-02 04:12:42 -07:00
clrbuilder 9d5c67d124 Update packages file for version 36700
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-07-28 11:59:18 -07:00
Patrick McCarty 72406d0525 koji: set custom bump message for each package in bump.list
This change will make the commits for bumped packages (from bump.list)
more useful in identifying the original reason for the bumps.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-07-28 06:02:05 +00:00
clrbuilder 1368df937f Update packages file for version 36680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-07-27 13:20:49 -07:00
clrbuilder 4668b03fdd Update packages file for version 36650
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-07-26 04:29:52 -07:00
Patrick McCarty d612ea1d6d bumpnogit: revise docs to align with bump target
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-07-22 22:38:41 +00:00
Patrick McCarty 36d49108a6 bump: add custom commit summary support
To add a custom commit summary for a `make bump`, set the BUMP_MSG
variable to the desired summary.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-07-22 22:37:18 +00:00
clrbuilder cbfa62d79e Update packages file for version 36630
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-07-19 04:09:53 -07:00
clrbuilder 312f6398a9 Update packages file for version 36620
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-07-14 04:10:43 -07:00
clrbuilder ee431ed33f Update packages file for version 36610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-07-12 04:11:32 -07:00
William Douglas 349d8c6645 Add CLEANUP=1 for when update runs autospec 2022-07-08 08:17:29 -07:00
William Douglas 1aecb3dcf5 Add an update target to common
Add an update target to common whose purpose is to be able to check if
a new version exists, update to the new version and push the updated
version to koji.

This target will cause bump.list content to be rebuilt as well.

Signed-off-by: William Douglas <william.douglas@intel.com>
2022-07-08 08:03:07 -07:00
clrbuilder be88b856de Update packages file for version 36600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-07-07 04:10:52 -07:00
William Douglas e610c46517 Makefile.common: Add bump.list to make koji
Add the ability for make koji to look a bump.list file in the package
directory and make and koji all the packages listed in that file.

This is useful for package's that depend on the updated package and
should be rebuilt after the original package is.

If for some reason this functionality isn't desired make koji-nowait
will not look at the bump.list.

Signed-off-by: William Douglas <william.douglas@intel.com>
2022-07-05 12:01:09 -07:00
Patrick McCarty f78b8dad99 common: add new koji-waitrepo command
This command wraps `koji wait-repo` for convenient use within the common
tooling.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-07-05 18:21:59 +00:00
clrbuilder 19e7a08dee Update packages file for version 36590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-07-05 04:11:08 -07:00
clrbuilder 3a7b28e5fa Update packages file for version 36580
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-06-30 04:17:23 -07:00
clrbuilder 8997481daf Update packages file for version 36530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-06-23 04:10:06 -07:00
clrbuilder 896832831f Update packages file for version 36510
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-06-17 09:40:52 -07:00
clrbuilder 1978d3268c Update packages file for version 36460
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-06-09 12:16:28 -07:00
clrbuilder 7d9588c779 Update packages file for version 36440
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-06-07 04:10:08 -07:00
clrbuilder 7794fa715c Update packages file for version 36420
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-05-31 04:09:27 -07:00
clrbuilder 1c79b04db3 Update packages file for version 36400
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-05-24 13:30:28 -07:00
clrbuilder b52570a7ad Update packages file for version 36390
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-05-24 04:09:27 -07:00
clrbuilder 1a0e21943f Update packages file for version 36380
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-05-23 06:36:33 -07:00
clrbuilder c4fe341972 Update packages file for version 36360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-05-19 04:09:30 -07:00
clrbuilder 23cc04134a Update packages file for version 36340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-05-17 04:10:06 -07:00
clrbuilder 9614d9e14e Update packages file for version 36290
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-05-12 04:09:28 -07:00
clrbuilder 7f94ad0fc5 Update packages file for version 36280
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-05-10 04:11:21 -07:00
clrbuilder 443c6b9694 Update packages file for version 36270
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-05-05 04:09:25 -07:00
clrbuilder 5d7039fb9a Update packages file for version 36250
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-04-28 04:09:45 -07:00
clrbuilder f2de7b7dc6 Update packages file for version 36230
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-04-26 04:10:30 -07:00
clrbuilder 446c96bf65 Update packages file for version 36220
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-04-21 06:17:20 -07:00
clrbuilder 0e420e434d Update packages file for version 36210
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-04-19 05:29:14 -07:00
clrbuilder be0cdd6c5d Update packages file for version 36200
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-04-18 07:47:06 -07:00
clrbuilder 7111d57d6c Update packages file for version 36170
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-04-14 04:08:26 -07:00
clrbuilder 96850c538a Update packages file for version 36160
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-04-12 04:27:31 -07:00
Patrick McCarty 96fd23e88b Specify branch name of main for git init of package repos
The default package repo branches are now `main`.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-04-11 16:13:18 -07:00
William Douglas 6f5fd11673 Move packages content over to main branch
World has moved to main, start updating accordingly.

Signed-off-by: William Douglas <william.douglas@intel.com>
2022-04-08 01:22:35 -07:00
clrbuilder 7ea85257af Update packages file for version 36140
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-04-06 12:50:53 -07:00
Patrick McCarty 4ccec6a4d0 diff: use git diff --stat instead of requiring diffstat
Using the --stat flag also has the benefit of automatically colorizing
the output when appropriate.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-04-05 12:35:09 -07:00
clrbuilder c76272e46a Update packages file for version 36130
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-04-05 04:10:03 -07:00
Patrick McCarty 1559d4e0b5 log: improve query results
Comparing whether commit hashes for `HEAD` and `origin/master` are not
equal captures three typical scenarios:

1. HEAD is behind origin/master
2. HEAD is ahead of origin/master
3. HEAD is ahead of an older commit in origin/master

The intent of `make log` is to capture cases #2 and #3, and not #1, so
use `git rev-list ...` with the appropriate commit range instead.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-03-31 22:28:23 -07:00
clrbuilder 3ab672318e Update packages file for version 36120
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-03-31 04:09:14 -07:00
Patrick McCarty 890363f65f Handle CLEANUP variable similarly for make autospec
To make the handling of the variable more uniform, set autospec's
cleanup flag using make conditional constructs rather than shell
expansion.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-03-30 11:07:02 -07:00
Patrick McCarty e90b6f8c72 Support CLEANUP environment variable for more commands
Now, whenever the `CLEANUP` variable is set in the environment, `make
build` and `make build-nocheck` will automatically clean up the build
chroot after a build completes. The same feature has been supported by
`make autospec` for many years.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-03-30 11:06:28 -07:00
clrbuilder 684a600f80 Update packages file for version 36070
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-03-24 04:08:20 -07:00
clrbuilder a45fc62812 Update packages file for version 36060
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-03-22 13:13:41 -07:00
clrbuilder 511bd629c9 Update packages file for version 36040
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-03-22 04:09:58 -07:00
clrbuilder b0e3083d75 Update packages file for version 36020
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-03-15 04:09:07 -07:00
clrbuilder 493f2a79af Update packages file for version 36010
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-03-10 04:10:03 -08:00
clrbuilder 26e68a0cc8 Update packages file for version 35980
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-03-07 07:14:09 -08:00
clrbuilder 27e4f02f58 Update packages file for version 35970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-03-03 10:02:33 -08:00
clrbuilder 2e28a2e579 Update packages file for version 35960
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-03-03 00:13:10 -08:00
clrbuilder abf5c5748d Update packages file for version 35950
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-03-01 00:14:01 -08:00
clrbuilder 8290cda118 Update packages file for version 35930
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-22 00:09:54 -08:00
clrbuilder b9bb464a1a Update packages file for version 35920
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-17 07:56:21 -08:00
clrbuilder 0121236923 Update packages file for version 35910
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-15 16:12:20 -08:00
clrbuilder 01b1bf2d23 Update packages file for version 35890
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-14 10:34:01 -08:00
clrbuilder dc5a8bd4ed Update packages file for version 35860
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-10 00:09:16 -08:00
clrbuilder 337699759e Update packages file for version 35850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-09 10:41:36 -08:00
clrbuilder b4742ce76d Update packages file for version 35830
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-08 15:58:07 -08:00
clrbuilder 2a95bfa0ba Update packages file for version 35820
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-08 00:07:44 -08:00
clrbuilder a11d59cbb5 Update packages file for version 35810
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-07 08:33:38 -08:00
Patrick McCarty f0cc040b91 Update for SPDX 3.16 release
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-02-06 23:23:05 -08:00
clrbuilder c55b2aee12 Update packages file for version 35800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-03 00:09:55 -08:00
clrbuilder 1e12976a64 Update packages file for version 35790
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-02-01 00:08:04 -08:00
clrbuilder 165d207f03 Update packages file for version 35780
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-30 13:58:29 -08:00
clrbuilder 7e1da9a64b Update packages file for version 35750
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-27 04:34:40 -08:00
clrbuilder 23503a41af Update packages file for version 35740
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-25 19:26:18 -08:00
clrbuilder d06ca6b262 Update packages file for version 35730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-24 12:43:41 -08:00
clrbuilder 8e0d099005 Update packages file for version 35690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-23 12:55:46 -08:00
clrbuilder c89e0eb2fd Update packages file for version 35660
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-20 00:08:14 -08:00
clrbuilder e2f31cb9a0 Update packages file for version 35650
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-18 00:08:32 -08:00
clrbuilder a733e9f48f Update packages file for version 35640
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-16 14:46:43 -08:00
clrbuilder 57f1b9f792 Update packages file for version 35620
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-12 12:16:54 -08:00
clrbuilder 08452bcc6f Update packages file for version 35610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-11 07:11:05 -08:00
clrbuilder 648e696701 Update packages file for version 35600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-10 09:47:40 -08:00
clrbuilder aa87b84d0d Update packages file for version 35590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-07 06:15:21 -08:00
clrbuilder a601daae51 Update packages file for version 35570
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-06 13:27:27 -08:00
clrbuilder 0e69bbe5f1 Update packages file for version 35560
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2022-01-06 09:01:12 -08:00
5 changed files with 970 additions and 751 deletions
+73 -15
View File
@@ -20,12 +20,15 @@ LATEST_RPMS = $(wildcard rpms/*.rpm)
DEBUGINFO_RPM = $(wildcard rpms/${PKG_NAME}-debuginfo-$(shell $(call queryspec,%{V}-%{R},${SPECFILE})).*.rpm)
RPMS ?= $(LATEST_RPMS)
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
WITH_SUDO = sudo
# MOCK_CONFIG_VAL is set in Makefile.shared
MOCK_SMP_FLAGS=$(patsubst -j%, -D_smp_mflags\ -j%,$(filter -j%, $(MAKEFLAGS)))
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONFIG_VAL) $(MOCK_SMP_FLAGS) $(MOCK_OPTS)
MOCK_CLEANUP_OPT := $(if $(CLEANUP),--cleanup-after,--no-cleanup-after)
AUTOSPEC_CLEANUP_OPT := $(if $(CLEANUP),-C)
ifneq ($(wildcard upstream),)
__allsources := $(notdir $(strip $(shell cat upstream)))
__missingsources := $(filter-out $(wildcard ${__allsources}), ${__allsources})
@@ -71,7 +74,7 @@ mockproper:
$(MOCK) --clean --uniqueext=$(PKG_NAME)
configemail:
@test -d .git || git init
@test -d .git || git init -b main
@$(call subjectprefix,$(PKG_NAME))
@echo -n "Subject prefix email configured to: "
@git config --get format.subjectPrefix
@@ -88,7 +91,7 @@ prebuild-checks:
#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)
$(MOCK) $(SRPMFILE) --result=results/ $(MOCK_CLEANUP_OPT) --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
@@ -96,7 +99,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)
$(MOCK) $(SRPMFILE) --nocheck --result=results/ $(MOCK_CLEANUP_OPT) --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
@@ -117,7 +120,7 @@ shell:
.PHONY: $(SRPMFILE)
$(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice clean-old-content
@$(MAKE) spdxcheck
$(MOCK) --buildsrpm --source=./ --spec=$(SPECFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
$(MOCK) --buildsrpm --source=./ --spec=$(SPECFILE) --result=results/ $(MOCK_CLEANUP_OPT) --uniqueext=$(PKG_NAME)
mv results/root.log results/srpm-root.log
mv results/build.log results/srpm-build.log
@@ -129,7 +132,7 @@ $(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice clean-old-content
# initialized locally, or if the remote contains no commits.
pullrebase:
@if [ -z "$$SKIP_GIT" ] && [ -e .git ]; then \
if ! git rev-parse --verify --quiet origin/master > /dev/null; then \
if ! git rev-parse --verify --quiet origin/main > /dev/null; then \
echo "Remote not yet initialized. Continuing."; \
exit 0; \
fi; \
@@ -143,7 +146,7 @@ pullrebase:
echo "Current branch up-to-date. Continuing."; \
exit 0; \
fi; \
echo "Rebasing to origin/master"; \
echo "Rebasing to origin/main"; \
if git status --porcelain | grep -q '^.[^?]'; \
then \
git stash save; \
@@ -179,7 +182,7 @@ autospec: preautospec-checks pullrebase localreponotice clean-old-content
$${SETVERSION:+ --version $${SETVERSION}} \
$${NON_INTERACTIVE:+ --non_interactive} \
$${SKIP_GIT:+ --skip-git} \
$${CLEANUP:+ -C} \
$(AUTOSPEC_CLEANUP_OPT) \
$(firstword $(NEWURL) $(URL));
$(MAKE) link-new-rpms PKG_REPO_DIR="."
@$(MAKE) spdxcheck
@@ -214,14 +217,24 @@ autospecnostate:
scanlicense:
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --config $(AUTOSPEC_CONF) --license-only $(firstword $(NEWURL) $(URL)) --name $(PKG_NAME)
#help bump: Increments the release file by one.
#help bump: Increments the package release number by one and commits the result. If
#help the variable BUMP_MSG is set, its value is used as the commit summary.
#help Otherwise a generic commit summary is used.
bump:
git pull --rebase
$(MAKE) bumpnogit
git add $(SPECFILE) release
git commit -a -m "version bump from $(shell $(call queryspec,%{VERSION}-%{RELEASE}\n,$(SPECFILE))) to `$(call queryspec,%{VERSION}-%{RELEASE}\n,$(SPECFILE))`"
fromver=$(shell $(call queryspec,%{VERSION}-%{RELEASE}\n,$(SPECFILE))); \
tover=`$(call queryspec,%{VERSION}-%{RELEASE}\n,$(SPECFILE))`; \
if [[ -n "$(BUMP_MSG)" ]]; then \
bumpmsg="$(BUMP_MSG)"; \
else \
bumpmsg="version bump from $$fromver to $$tover"; \
fi; \
git commit -a -m "$$bumpmsg"
#help bumpnogit: Increments the release file by one and does not commit changes.
#help bumpnogit: Increments the package release number by one and does not commit
#help changes.
bumpnogit:
@$(MAKE) spdxcheck
oldrel=$(shell $(call queryspec,%{RELEASE}\n,$(SPECFILE))); \
@@ -307,8 +320,8 @@ prekoji-checks:
koji: prekoji-checks kojidef
@$(MAKE) spdxcheck
@$(MAKE) checkblacklist
@if [ "$(CURRENT_BRANCH)" != "master" ] && [ "$(CURRENT_BRANCH)" != "main" ]; then \
echo "Error: Must be on the \"master\" or \"main\" branch to submit to koji" >&2; \
@if [ "$(CURRENT_BRANCH)" != "main" ]; then \
echo "Error: Must be on the \"main\" branch to submit to koji" >&2; \
exit 1; \
fi; \
if ! git diff --quiet HEAD -- ${SPECFILE}; then \
@@ -316,7 +329,7 @@ koji: prekoji-checks kojidef
exit 1; \
fi; \
git fetch; \
if git rev-parse --verify --quiet origin/master >/dev/null; then \
if git rev-parse --verify --quiet origin/main >/dev/null; then \
git pull --rebase; \
fi; \
if git ls-remote --tags --exit-code origin $(SRPMVERS) >/dev/null; then \
@@ -324,8 +337,15 @@ koji: prekoji-checks kojidef
exit 1; \
fi
git tag $(SRPMVERS)
git push origin $(CURRENT_BRANCH):master refs/tags/$(SRPMVERS)
git push origin $(CURRENT_BRANCH):main refs/tags/$(SRPMVERS)
$(KOJI_CMD) build $$KOJI_NOWAIT $(KOJI_TAG) $(PKG_BASE_URL)/$(PKG_NAME)?#$(SRPMVERS)
@if [ -f bump.list ]; then \
$(MAKE) koji-waitrepo; \
msg="Bump for $(shell $(call queryspec,%{NAME} %{VERSION}\n,$(SPECFILE)))"; \
for bump_dep in $$(cat bump.list); do \
(cd ../"$$bump_dep" && $(MAKE) bump BUMP_MSG="$$msg" && $(MAKE) koji-nowait) \
done \
fi
#help rekoji: In case a previous 'make koji' failed, trigger a rebuild for the
#help same tag.
@@ -349,6 +369,44 @@ koji-nowait:
rekoji-nowait:
$(MAKE) KOJI_NOWAIT="--nowait --background" rekoji
#help koji-waitrepo: Wait for current package changes to become available in the
#help koji repo. If PKG_NAME is overridden on the command line, wait on changes for
#help that package instead. This capability allows the developer to "chain" builds
#help for submission to koji according to the state of the package repos on their
#help system. Additional options for `koji wait-repo` can be specified via the
#help WAIT_OPTS variable.
koji-waitrepo: kojidef
@if [[ ! "${PKG_NAME}" =~ ^[A-Za-z0-9._+-]+$$ ]]; then \
echo "[ERROR] Invalid package name \"${PKG_NAME}\""; \
exit 1; \
fi; \
if [[ "${PKG_NAME}" != "$(notdir ${CURDIR})" ]]; then \
$(MAKE) -s -C ../${PKG_NAME} koji-waitrepo; \
else \
koji wait-repo --build=${SRPMVERS} ${WAIT_OPTS} ${KOJI_TAG}-build; \
fi
update-versions:
.PHONY: update
#help update: Tries to run update.sh if it exists. update.sh is expected
#help to check for version updates, exit (successfully) if none are found
#help or update the package and push the update to koji.
#help If no update.sh exists, update the version, autospec and push the
#help update to koji (bumping the bump.list if found).
update:
@if [ -f update.sh ]; then \
./update.sh; \
else \
$(MAKE) -s update-versions && \
$(MAKE) autospec CLEANUP=1 && \
if [ -f bump.list ]; then \
$(MAKE) -s koji; \
else \
$(MAKE) -s koji-nowait; \
fi \
fi \
logcheck:
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
+17 -12
View File
@@ -68,13 +68,18 @@ ${PULL_PKGS}:
if [ ! -d "$$p/.git" ]; then echo "Nothing to pull for $$p - $$p/.git missing"; exit 0; fi; \
cd "$$p" ; \
if git remote | grep origin >/dev/null 2>&1; then \
O=$$(git rev-parse origin/master 2>/dev/null); \
case "$$p" in \
("projects/"*) BRANCH=master ;; \
("packages/"*) BRANCH=main ;; \
(*) BRANCH=master ;; \
esac; \
O=$$(git rev-parse origin/"$$BRANCH" 2>/dev/null); \
git fetch --tags origin >/dev/null 2>&1; \
N=$$(git rev-parse origin/master); \
N=$$(git rev-parse origin/"$$BRANCH"); \
if [ "$$O" != "$$N" ]; then \
echo "Updating: $$p"; \
if ! git merge --ff-only origin/master 2>/dev/null; then \
echo "$$p: Cannot fast-forward $$(git rev-parse --abbrev-ref HEAD) to origin/master" ; \
if ! git merge --ff-only origin/"$$BRANCH" 2>/dev/null; then \
echo "$$p: Cannot fast-forward $$(git rev-parse --abbrev-ref HEAD) to origin/$$BRANCH" ; \
fi ; \
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 ; \
@@ -159,19 +164,19 @@ status: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
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.
#help diff: Runs git diff for all package repos and displays the diffstat using
#help the --stat flag.
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
(cd $$p; git status --porcelain | grep -vq '^?? ' && (echo "Uncommitted changes in: $$p"; git diff | diffstat -p1); :) ;\
(cd $$p; git status --porcelain | grep -vq '^?? ' && (echo "Uncommitted changes in: $$p"; git --no-pager diff --stat); :) ;\
done
#help log: Run git log origin/master..HEAD for all package repos, thus
#help log: Run git log origin/main..HEAD for all package repos, thus
#help displaying any committed but unpushed changes.
log: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
( cd $$p; if [ "$$(git rev-parse --verify HEAD)" != "$$(git rev-parse --verify origin/master)" ] ; then \
echo $$p ; git --no-pager log --pretty="format:%s" origin/master..HEAD ; echo ; echo;\
( cd $$p; if [ -n "$$(git rev-list origin/main..HEAD)" ] ; then \
echo $$p ; git --no-pager log --pretty="format:%s" origin/main..HEAD ; echo ; echo;\
fi ; ) \
done
@@ -211,7 +216,7 @@ autospecnew: preautospecnew-checks localreponotice
mkdir -p $(TOPLVL)/packages/$(NAME); \
( \
cd $(TOPLVL)/packages/$(NAME); \
git init; \
git init -b main; \
git remote add origin $(PKG_BASE_URL)/$(NAME); \
$(call gitoliteurl,packages/$(NAME)); \
$(call subjectprefix,$(NAME)); \
@@ -262,7 +267,7 @@ autospecnewgo: preautospecnew-checks localreponotice
mkdir -p $(TOPLVL)/packages/$(NAME); \
( \
cd $(TOPLVL)/packages/$(NAME); \
git init; \
git init -b main; \
git remote add origin $(PKG_BASE_URL)/$(NAME); \
$(call gitoliteurl,packages/$(NAME)); \
$(call subjectprefix,$(NAME)); \
+1 -1
View File
@@ -23,7 +23,7 @@ Download the [user setup](user-setup.sh) script and run it on your Clear Linux
system as an unprivileged user.
```
$ curl -O https://raw.githubusercontent.com/clearlinux/common/master/user-setup.sh
$ curl -O https://raw.githubusercontent.com/clearlinux/common/main/user-setup.sh
$ chmod +x user-setup.sh
$ ./user-setup.sh
```
+22
View File
@@ -31,6 +31,8 @@ Aladdin
Apache-1.0
Apache-1.1
Apache-2.0
App-s2p
Arphic-1999
Artistic-1.0
Artistic-1.0-Perl
Artistic-1.0-cl8
@@ -58,11 +60,13 @@ BSD-Protection
BSD-Source-Code
BSL-1.0
BUSL-1.1
Baekmuk
Bahyph
Barr
Beerware
BitTorrent-1.0
BitTorrent-1.1
Bitstream-Vera
BlueOak-1.0.0
Borceux
C-UDA-1.0
@@ -76,6 +80,7 @@ CC-BY-2.5-AU
CC-BY-3.0
CC-BY-3.0-AT
CC-BY-3.0-DE
CC-BY-3.0-IGO
CC-BY-3.0-NL
CC-BY-3.0-US
CC-BY-4.0
@@ -138,17 +143,20 @@ CERN-OHL-W-2.0
CNRI-Jython
CNRI-Python
CNRI-Python-GPL-Compatible
COIL-1.0
CPAL-1.0
CPL-1.0
CPOL-1.02
CUA-OPL-1.0
Caldera
ClArtistic
Community-Spec-1.0
Condor-1.1
Crossword
CrystalStacker
Cube
D-FSL-1.0
DL-DE-BY-2.0
DOC
DRL-1.0
DSDP
@@ -164,9 +172,11 @@ EUDatagrid
EUPL-1.0
EUPL-1.1
EUPL-1.2
Elastic-2.0
Entessa
ErlPL-1.1
Eurosym
FDK-AAC
FSFAP
FSFUL
FSFULLR
@@ -240,6 +250,7 @@ Intel-ACPI
Interbase-1.0
JPNIC
JSON
Jam
JasPer-2.0
LAL-1.2
LAL-1.3
@@ -263,6 +274,8 @@ LPPL-1.1
LPPL-1.2
LPPL-1.3a
LPPL-1.3c
LZMA-SDK-9.11-to-9.20
LZMA-SDK-9.22
Latex2e
Leptonica
LiLiQ-P-1.1
@@ -270,6 +283,7 @@ LiLiQ-R-1.1
LiLiQ-Rplus-1.1
Libpng
Linux-OpenIB
Linux-man-pages-copyleft
MIT
MIT-0
MIT-CMU
@@ -283,10 +297,12 @@ MPL-1.0
MPL-1.1
MPL-2.0
MPL-2.0-no-copyleft-exception
MS-LPL
MS-PL
MS-RL
MTLL
MakeIndex
Minpack
MirOS
Motosoto
MulanPSL-1.0
@@ -299,6 +315,7 @@ NBPL-1.0
NCGL-UK-2.0
NCSA
NGPL
NICTA-1.0
NIST-PD
NIST-PD-fallback
NLOD-1.0
@@ -373,6 +390,7 @@ PolyForm-Noncommercial-1.0.0
PolyForm-Small-Business-1.0.0
PostgreSQL
Python-2.0
Python-2.0.1
QPL-1.0
Qhull
RHeCos-1.1
@@ -401,6 +419,7 @@ SSH-short
SSPL-1.0
SWL
Saxpath
SchemeReport
Sendmail
Sendmail-8.23
SimPL-2.0
@@ -434,6 +453,7 @@ WTFPL
Watcom-1.0
Wsuipa
X11
X11-distribute-modifications-variant
XFree86-1.1
XSkat
Xerox
@@ -465,7 +485,9 @@ iMatix
libpng-2.0
libselinux-1.0
libtiff
mpi-permissive
mpich2
mplus
psfrag
psutils
wxWindows
+857 -723
View File
File diff suppressed because it is too large Load Diff