mirror of
https://github.com/clearlinux/common.git
synced 2026-07-14 00:35:53 +00:00
Compare commits
73 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6bec4f7dd7 | |||
| 7d26584649 | |||
| d309e565a7 | |||
| 8a5f1ccf07 | |||
| 5c3916cd20 | |||
| d3ba502fa7 | |||
| 3fb868c3a9 | |||
| 9c109bcd84 | |||
| 3f723df7db | |||
| e5d8879be6 | |||
| 51d154950f | |||
| c1db07181a | |||
| a3635036b3 | |||
| bcdaa56d6d | |||
| 1ff6b2708d | |||
| f2e52a194e | |||
| 261c6a8cfd | |||
| 3fd783daf9 | |||
| 09df0bd218 | |||
| 80513e6a77 | |||
| c727ce3e5e | |||
| 7b3623e199 | |||
| 2aed8ce561 | |||
| 908afb2637 | |||
| 13d61f38fc | |||
| 3a34726589 | |||
| f7747fad82 | |||
| f562dba8ac | |||
| a875acb1fe | |||
| 2de768ab6d | |||
| 6ce9826071 | |||
| d96968cc98 | |||
| 4b284ecb9b | |||
| 746d69c99b | |||
| 14f1e53183 | |||
| a734764581 | |||
| 0c9a4e6802 | |||
| c44e74f556 | |||
| 16e5086381 | |||
| ae3cbddb46 | |||
| 7b1ffd3045 | |||
| 75610ac5f7 | |||
| 8b98eabe53 | |||
| 8b7cfc2cf1 | |||
| ddb800af7e | |||
| c514292f56 | |||
| a1b55a619a | |||
| 0896766e26 | |||
| 68da68007d | |||
| 35cdf3d618 | |||
| c646187f11 | |||
| af28bdadf7 | |||
| 39c9a566a6 | |||
| b0ab451ae0 | |||
| ac1c648189 | |||
| 2939f3c5f8 | |||
| e361b3ab2f | |||
| 6081437611 | |||
| d6c8858c6e | |||
| 9d5c67d124 | |||
| 72406d0525 | |||
| 1368df937f | |||
| 4668b03fdd | |||
| d612ea1d6d | |||
| 36d49108a6 | |||
| cbfa62d79e | |||
| 312f6398a9 | |||
| ee431ed33f | |||
| 349d8c6645 | |||
| 1aecb3dcf5 | |||
| be88b856de | |||
| e610c46517 | |||
| f78b8dad99 |
+59
-4
@@ -20,7 +20,7 @@ LATEST_RPMS = $(wildcard rpms/*.rpm)
|
|||||||
DEBUGINFO_RPM = $(wildcard rpms/${PKG_NAME}-debuginfo-$(shell $(call queryspec,%{V}-%{R},${SPECFILE})).*.rpm)
|
DEBUGINFO_RPM = $(wildcard rpms/${PKG_NAME}-debuginfo-$(shell $(call queryspec,%{V}-%{R},${SPECFILE})).*.rpm)
|
||||||
RPMS ?= $(LATEST_RPMS)
|
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_CONFIG_VAL is set in Makefile.shared
|
||||||
MOCK_SMP_FLAGS=$(patsubst -j%, -D_smp_mflags\ -j%,$(filter -j%, $(MAKEFLAGS)))
|
MOCK_SMP_FLAGS=$(patsubst -j%, -D_smp_mflags\ -j%,$(filter -j%, $(MAKEFLAGS)))
|
||||||
@@ -217,14 +217,24 @@ autospecnostate:
|
|||||||
scanlicense:
|
scanlicense:
|
||||||
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --config $(AUTOSPEC_CONF) --license-only $(firstword $(NEWURL) $(URL)) --name $(PKG_NAME)
|
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:
|
bump:
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
$(MAKE) bumpnogit
|
$(MAKE) bumpnogit
|
||||||
git add $(SPECFILE) release
|
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:
|
bumpnogit:
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
oldrel=$(shell $(call queryspec,%{RELEASE}\n,$(SPECFILE))); \
|
oldrel=$(shell $(call queryspec,%{RELEASE}\n,$(SPECFILE))); \
|
||||||
@@ -329,6 +339,13 @@ koji: prekoji-checks kojidef
|
|||||||
git tag $(SRPMVERS)
|
git tag $(SRPMVERS)
|
||||||
git push origin $(CURRENT_BRANCH):main 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)
|
$(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 rekoji: In case a previous 'make koji' failed, trigger a rebuild for the
|
||||||
#help same tag.
|
#help same tag.
|
||||||
@@ -352,6 +369,44 @@ koji-nowait:
|
|||||||
rekoji-nowait:
|
rekoji-nowait:
|
||||||
$(MAKE) KOJI_NOWAIT="--nowait --background" rekoji
|
$(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:
|
logcheck:
|
||||||
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -52,7 +52,7 @@ $(clone_PKGS): $(PACKAGES_FILE) packages/common/Makefile.common
|
|||||||
remotepkg=$(call remotepkgname,$$pkg); \
|
remotepkg=$(call remotepkgname,$$pkg); \
|
||||||
[ -d packages/$$pkg ] || ( \
|
[ -d packages/$$pkg ] || ( \
|
||||||
echo "Checking out: packages/$$pkg"; \
|
echo "Checking out: packages/$$pkg"; \
|
||||||
git clone $(PKG_BASE_URL)/$$remotepkg packages/$$pkg; \
|
git clone -b main $(PKG_BASE_URL)/$$remotepkg packages/$$pkg; \
|
||||||
cd packages/$$pkg; \
|
cd packages/$$pkg; \
|
||||||
$(call gitoliteurl,packages/$$pkg); \
|
$(call gitoliteurl,packages/$$pkg); \
|
||||||
$(call subjectprefix,$$pkg); \
|
$(call subjectprefix,$$pkg); \
|
||||||
@@ -168,7 +168,7 @@ status: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
|||||||
#help the --stat flag.
|
#help the --stat flag.
|
||||||
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
|
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
|
||||||
(cd $$p; git status --porcelain | grep -vq '^?? ' && (echo "Uncommitted changes in: $$p"; git diff --stat); :) ;\
|
(cd $$p; git status --porcelain | grep -vq '^?? ' && (echo "Uncommitted changes in: $$p"; git --no-pager diff --stat); :) ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
#help log: Run git log origin/main..HEAD for all package repos, thus
|
#help log: Run git log origin/main..HEAD for all package repos, thus
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ Apache-1.0
|
|||||||
Apache-1.1
|
Apache-1.1
|
||||||
Apache-2.0
|
Apache-2.0
|
||||||
App-s2p
|
App-s2p
|
||||||
|
Arphic-1999
|
||||||
Artistic-1.0
|
Artistic-1.0
|
||||||
Artistic-1.0-Perl
|
Artistic-1.0-Perl
|
||||||
Artistic-1.0-cl8
|
Artistic-1.0-cl8
|
||||||
@@ -59,11 +60,13 @@ BSD-Protection
|
|||||||
BSD-Source-Code
|
BSD-Source-Code
|
||||||
BSL-1.0
|
BSL-1.0
|
||||||
BUSL-1.1
|
BUSL-1.1
|
||||||
|
Baekmuk
|
||||||
Bahyph
|
Bahyph
|
||||||
Barr
|
Barr
|
||||||
Beerware
|
Beerware
|
||||||
BitTorrent-1.0
|
BitTorrent-1.0
|
||||||
BitTorrent-1.1
|
BitTorrent-1.1
|
||||||
|
Bitstream-Vera
|
||||||
BlueOak-1.0.0
|
BlueOak-1.0.0
|
||||||
Borceux
|
Borceux
|
||||||
C-UDA-1.0
|
C-UDA-1.0
|
||||||
@@ -77,6 +80,7 @@ CC-BY-2.5-AU
|
|||||||
CC-BY-3.0
|
CC-BY-3.0
|
||||||
CC-BY-3.0-AT
|
CC-BY-3.0-AT
|
||||||
CC-BY-3.0-DE
|
CC-BY-3.0-DE
|
||||||
|
CC-BY-3.0-IGO
|
||||||
CC-BY-3.0-NL
|
CC-BY-3.0-NL
|
||||||
CC-BY-3.0-US
|
CC-BY-3.0-US
|
||||||
CC-BY-4.0
|
CC-BY-4.0
|
||||||
@@ -176,6 +180,7 @@ FDK-AAC
|
|||||||
FSFAP
|
FSFAP
|
||||||
FSFUL
|
FSFUL
|
||||||
FSFULLR
|
FSFULLR
|
||||||
|
FSFULLRWD
|
||||||
FTL
|
FTL
|
||||||
Fair
|
Fair
|
||||||
Frameworx-1.0
|
Frameworx-1.0
|
||||||
@@ -248,6 +253,7 @@ JPNIC
|
|||||||
JSON
|
JSON
|
||||||
Jam
|
Jam
|
||||||
JasPer-2.0
|
JasPer-2.0
|
||||||
|
Knuth-CTAN
|
||||||
LAL-1.2
|
LAL-1.2
|
||||||
LAL-1.3
|
LAL-1.3
|
||||||
LGPL-2.0
|
LGPL-2.0
|
||||||
@@ -270,6 +276,8 @@ LPPL-1.1
|
|||||||
LPPL-1.2
|
LPPL-1.2
|
||||||
LPPL-1.3a
|
LPPL-1.3a
|
||||||
LPPL-1.3c
|
LPPL-1.3c
|
||||||
|
LZMA-SDK-9.11-to-9.20
|
||||||
|
LZMA-SDK-9.22
|
||||||
Latex2e
|
Latex2e
|
||||||
Leptonica
|
Leptonica
|
||||||
LiLiQ-P-1.1
|
LiLiQ-P-1.1
|
||||||
@@ -291,10 +299,12 @@ MPL-1.0
|
|||||||
MPL-1.1
|
MPL-1.1
|
||||||
MPL-2.0
|
MPL-2.0
|
||||||
MPL-2.0-no-copyleft-exception
|
MPL-2.0-no-copyleft-exception
|
||||||
|
MS-LPL
|
||||||
MS-PL
|
MS-PL
|
||||||
MS-RL
|
MS-RL
|
||||||
MTLL
|
MTLL
|
||||||
MakeIndex
|
MakeIndex
|
||||||
|
Minpack
|
||||||
MirOS
|
MirOS
|
||||||
Motosoto
|
Motosoto
|
||||||
MulanPSL-1.0
|
MulanPSL-1.0
|
||||||
@@ -307,6 +317,7 @@ NBPL-1.0
|
|||||||
NCGL-UK-2.0
|
NCGL-UK-2.0
|
||||||
NCSA
|
NCSA
|
||||||
NGPL
|
NGPL
|
||||||
|
NICTA-1.0
|
||||||
NIST-PD
|
NIST-PD
|
||||||
NIST-PD-fallback
|
NIST-PD-fallback
|
||||||
NLOD-1.0
|
NLOD-1.0
|
||||||
@@ -381,6 +392,7 @@ PolyForm-Noncommercial-1.0.0
|
|||||||
PolyForm-Small-Business-1.0.0
|
PolyForm-Small-Business-1.0.0
|
||||||
PostgreSQL
|
PostgreSQL
|
||||||
Python-2.0
|
Python-2.0
|
||||||
|
Python-2.0.1
|
||||||
QPL-1.0
|
QPL-1.0
|
||||||
Qhull
|
Qhull
|
||||||
RHeCos-1.1
|
RHeCos-1.1
|
||||||
@@ -461,6 +473,7 @@ Zlib
|
|||||||
blessing
|
blessing
|
||||||
bzip2-1.0.5
|
bzip2-1.0.5
|
||||||
bzip2-1.0.6
|
bzip2-1.0.6
|
||||||
|
checkmk
|
||||||
copyleft-next-0.3.0
|
copyleft-next-0.3.0
|
||||||
copyleft-next-0.3.1
|
copyleft-next-0.3.1
|
||||||
curl
|
curl
|
||||||
@@ -475,7 +488,10 @@ iMatix
|
|||||||
libpng-2.0
|
libpng-2.0
|
||||||
libselinux-1.0
|
libselinux-1.0
|
||||||
libtiff
|
libtiff
|
||||||
|
libutil-David-Nugent
|
||||||
|
mpi-permissive
|
||||||
mpich2
|
mpich2
|
||||||
|
mplus
|
||||||
psfrag
|
psfrag
|
||||||
psutils
|
psutils
|
||||||
wxWindows
|
wxWindows
|
||||||
|
|||||||
Reference in New Issue
Block a user