mirror of
https://github.com/clearlinux/common.git
synced 2026-09-06 13:41:33 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed15af71c8 | ||
|
|
3c20fc2ad8 | ||
|
|
d7f6ddcce1 | ||
|
|
22a927e26b | ||
|
|
4a29a2d5c1 | ||
|
|
81ef638151 | ||
|
|
50b8b07d34 | ||
|
|
47b634bc75 | ||
|
|
292ea0bde9 | ||
|
|
b0f7bbfb90 | ||
|
|
20d0fece07 | ||
|
|
0f546b20f5 | ||
|
|
16a09f7fa6 | ||
|
|
5a438328f2 | ||
|
|
9ffb55be69 | ||
|
|
af3c84505d | ||
|
|
a865a99283 | ||
|
|
9e8f0a6ff0 | ||
|
|
76301d4b78 | ||
|
|
08bef91443 | ||
|
|
93202eb3b5 | ||
|
|
14977f527c | ||
|
|
fa93c354e1 | ||
|
|
6a54f15cb6 | ||
|
|
fa42020aa9 | ||
|
|
a727fe3722 | ||
|
|
c41eeea37a | ||
|
|
a07f64294f | ||
|
|
59a3a29c4c | ||
|
|
cba91e5044 | ||
|
|
a5d39507cc | ||
|
|
dc644c29a0 | ||
|
|
13e5e26cbf |
+6
-11
@@ -49,13 +49,6 @@ spdxcheck: $(SPECFILE)
|
|||||||
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; \
|
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"
|
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.
|
#help clean: Cleans up the src.rpm file. but not the rpm files or log files.
|
||||||
clean:
|
clean:
|
||||||
rm -f $(SRPMFILE)
|
rm -f $(SRPMFILE)
|
||||||
@@ -181,7 +174,9 @@ autospec: preautospec-checks pullrebase localreponotice clean-old-content
|
|||||||
--mock-config $(MOCK_CONFIG_VAL) \
|
--mock-config $(MOCK_CONFIG_VAL) \
|
||||||
--mock-opts "$(MOCK_OPTS)" \
|
--mock-opts "$(MOCK_OPTS)" \
|
||||||
$${SETVERSION:+ --version $${SETVERSION}} \
|
$${SETVERSION:+ --version $${SETVERSION}} \
|
||||||
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
$${NON_INTERACTIVE:+ --non_interactive} \
|
||||||
|
$${SKIP_GIT:+ --skip-git} \
|
||||||
|
$${CLEANUP:+ -C} \
|
||||||
$(firstword $(NEWURL) $(URL));
|
$(firstword $(NEWURL) $(URL));
|
||||||
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
@@ -206,12 +201,12 @@ for-review.txt:
|
|||||||
|
|
||||||
#help autospecnogit: Runs autospec, but does not create a commit
|
#help autospecnogit: Runs autospec, but does not create a commit
|
||||||
autospecnogit:
|
autospecnogit:
|
||||||
$(MAKE) SKIP_GIT=--skip-git autospec
|
$(MAKE) autospec SKIP_GIT=1
|
||||||
|
|
||||||
#help autospecnostate: Runs autospec, but cleans up mock chroots
|
#help autospecnostate: Runs autospec, but cleans up mock chroots
|
||||||
#help and disables interactive mode.
|
#help and disables interactive mode.
|
||||||
autospecnostate:
|
autospecnostate:
|
||||||
$(MAKE) CLEANUP=-C NON_INTERACTIVE=--non_interactive autospec
|
$(MAKE) autospec CLEANUP=1 NON_INTERACTIVE=1
|
||||||
|
|
||||||
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)
|
||||||
@@ -220,7 +215,7 @@ scanlicense:
|
|||||||
bump:
|
bump:
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
$(MAKE) bumpnogit
|
$(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)`"
|
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.
|
#help bumpnogit: Increments the release file by one and does not commit changes.
|
||||||
|
|||||||
+2
-8
@@ -34,7 +34,7 @@ $(proj_PKGS):
|
|||||||
git clone $(PRJ_BASE_URL)/$$proj projects/$$proj; \
|
git clone $(PRJ_BASE_URL)/$$proj projects/$$proj; \
|
||||||
cd projects/$$proj; \
|
cd projects/$$proj; \
|
||||||
if [ "$$proj" = "autospec" ] ; then \
|
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 \
|
else \
|
||||||
$(call gitoliteurl,projects/$$proj); \
|
$(call gitoliteurl,projects/$$proj); \
|
||||||
fi; \
|
fi; \
|
||||||
@@ -56,12 +56,6 @@ $(clone_PKGS): $(PACKAGES_FILE) packages/common/Makefile.common
|
|||||||
$(call subjectprefix,$$pkg); \
|
$(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 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 of merge commits, while displaying any changes since your last pull. It is
|
||||||
#help silent if there are no changes.
|
#help silent if there are no changes.
|
||||||
@@ -83,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; \
|
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 ; \
|
fi ; \
|
||||||
if [ "$$p" = "projects/autospec" ] ; then \
|
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 \
|
else \
|
||||||
$(call gitoliteurl,$$p); \
|
$(call gitoliteurl,$$p); \
|
||||||
fi ; \
|
fi ; \
|
||||||
|
|||||||
@@ -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.
|
||||||
@@ -152,39 +152,4 @@ If `Makefile.config.site_local` doesn't exist already, create it.
|
|||||||
|
|
||||||
### Manual setup
|
### Manual setup
|
||||||
|
|
||||||
If you did not run the user-setup script (see "Automated setup" section above),
|
See the [Manual setup](README-advanced.md#manual-setup) documentation.
|
||||||
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.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user