mirror of
https://github.com/clearlinux/common.git
synced 2026-07-14 00:35:53 +00:00
Compare commits
203 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1dae5422cc | |||
| b4860a0d82 | |||
| 4760d853bb | |||
| 4331a0a193 | |||
| ca68988393 | |||
| 37879628f7 | |||
| 7f158c6e91 | |||
| 4b9b44feef | |||
| 20e55005ac | |||
| ceeee94f0c | |||
| 852b6e83c9 | |||
| ae9f0610d6 | |||
| fa65110479 | |||
| 4259e8dbf0 | |||
| 56a38edc64 | |||
| d5cdd5d1c5 | |||
| 806a1f5593 | |||
| b82d61d686 | |||
| d7404ca99d | |||
| c81774a23c | |||
| b1ef20b90b | |||
| b100150ca3 | |||
| 482940952d | |||
| b50fabd346 | |||
| c383979d14 | |||
| 08138ad889 | |||
| b78940d18a | |||
| bb74ceef8d | |||
| 12800a51fa | |||
| 9b445f1116 | |||
| 40898f6ce0 | |||
| 3b4b1b3053 | |||
| e26fd3e022 | |||
| 677fe6cbd5 | |||
| 9e54179aea | |||
| 1145477b30 | |||
| 19cb72b28e | |||
| 497059b257 | |||
| fbda0655f2 | |||
| 1b32d114f3 | |||
| 90a4ceb162 | |||
| 2947369532 | |||
| 26bb3f43f8 | |||
| fd509a2295 | |||
| eb4fcd4085 | |||
| 4fd9e54785 | |||
| 5bc6cc856b | |||
| 3bfdb39ee1 | |||
| b495687f7c | |||
| c719db89dd | |||
| ba9e38f3f0 | |||
| 0d4b01ec83 | |||
| 4867cefcb7 | |||
| e88fcdc4bc | |||
| a381875001 | |||
| 114936fc23 | |||
| 3739bc0e0f | |||
| f43a186a78 | |||
| da562cb750 | |||
| 16467cfbc0 | |||
| 16466cac02 | |||
| 6e8d00eb30 | |||
| c160c30218 | |||
| 9b09c217da | |||
| 00230e7d1d | |||
| ff40498428 | |||
| 6483c7dd86 | |||
| d1079234d9 | |||
| 51a2c03a4a | |||
| 3d8c98b0d8 | |||
| 243ad03d32 | |||
| e1072736aa | |||
| 9a557531f4 | |||
| d8cb4987e5 | |||
| 6719c0f7df | |||
| 7166df721b | |||
| a70cf49f45 | |||
| 781eae34bb | |||
| ee17bc50a9 | |||
| 1fcfde404c | |||
| 36716ffe26 | |||
| eab92f6841 | |||
| 903919de2f | |||
| 69000f2f2e | |||
| 8b8f649dcb | |||
| 91ba5c1c6b | |||
| 70e5280ae4 | |||
| dbc677ddca | |||
| c2ff34b4ca | |||
| df917a0aa2 | |||
| c0e95c9bcd | |||
| 979430e742 | |||
| 61d9b5ab29 | |||
| 557bc87774 | |||
| fb869ea5a2 | |||
| 665a2546f8 | |||
| d8f18e5f6d | |||
| 255935f4fb | |||
| 34df391482 | |||
| 3d9fd9fd67 | |||
| 8894658b0a | |||
| f2d0972aab | |||
| 64c2b82443 | |||
| 3963a1f319 | |||
| 68cd34db8f | |||
| b9952701c5 | |||
| 3671774e8a | |||
| fa7c45049f | |||
| 768bdc7550 | |||
| 6372c11a12 | |||
| 5629731f54 | |||
| a0f8fd9a50 | |||
| cad2e6081d | |||
| 2daf8a48b2 | |||
| 26582bd9f2 | |||
| c6a2d6fabd | |||
| 2d8fc9a155 | |||
| 1eadce9aad | |||
| 6613644b9c | |||
| 93115e4073 | |||
| 12537cbfb0 | |||
| d397ee463a | |||
| dfe55331e6 | |||
| 0c69bfb9a9 | |||
| 689e48a2f7 | |||
| 82e334a93a | |||
| ab6c4a674f | |||
| 78de1a6a13 | |||
| 74e79ffea2 | |||
| bb21809c73 | |||
| e912d4e6ae | |||
| 340b6a74d4 | |||
| 2e8f9ef0ab | |||
| 4bdd1765c5 | |||
| 45f39671d6 | |||
| 1d46a683e0 | |||
| 41d2113b8a | |||
| 528cd77168 | |||
| 916ce142bb | |||
| e2a3b113f2 | |||
| 0acf617611 | |||
| 39aeb852fe | |||
| 0e7d7e336d | |||
| 2323c9924f | |||
| da1f1f7483 | |||
| 723a925ed8 | |||
| 7e9ee1949d | |||
| f0df3f7809 | |||
| 9f77c5b172 | |||
| 3c52bbd7d7 | |||
| 7203329212 | |||
| b76562fe35 | |||
| 657bf44505 | |||
| c0e4bbf18e | |||
| 38b5e792cd | |||
| 43a333f08f | |||
| 9985956b7c | |||
| 7a62e62b28 | |||
| 92977583a6 | |||
| b8d121260a | |||
| ace60d849e | |||
| a2759eca40 | |||
| 7d0977c785 | |||
| 9184a2fd62 | |||
| e80c6eb4bd | |||
| 5cf5fd71cb | |||
| 4b01a5a9cd | |||
| 4910ef0882 | |||
| 1518adace0 | |||
| ef0e792c3d | |||
| 1bb7b0c471 | |||
| 51dc7a7c24 | |||
| c8848dbdb2 | |||
| 92e045116a | |||
| 1f3475a1ef | |||
| f836786e2d | |||
| 7dc88fd01a | |||
| 250efaef8f | |||
| c6532c6759 | |||
| f1c85e3294 | |||
| f5abc3a8d3 | |||
| 74d5bc42f5 | |||
| d6cc120a3c | |||
| 71c1bd013f | |||
| aadbd40a21 | |||
| 60020aebcc | |||
| 3a00f7eda4 | |||
| 0470861400 | |||
| 4fac58a65e | |||
| 743041a30c | |||
| 59f9bb1f7a | |||
| 1e74d17500 | |||
| 6a7fac08d9 | |||
| 932c2236a7 | |||
| 6c92ce3160 | |||
| 3e2219c07e | |||
| f0d2523151 | |||
| de39e64e29 | |||
| 877fee6375 | |||
| e921a2a883 | |||
| e00c76846b | |||
| af2c0bea72 | |||
| b99b7e8c25 |
@@ -17,5 +17,9 @@ update:
|
|||||||
curl -f -o packages ${BASE_URL}/source/package-sources
|
curl -f -o packages ${BASE_URL}/source/package-sources
|
||||||
cut -f1 packages | LC_ALL=C sort > packages.new && mv packages.new packages
|
cut -f1 packages | LC_ALL=C sort > packages.new && mv packages.new packages
|
||||||
|
|
||||||
|
.PHONY: spdx
|
||||||
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
|
||||||
|
|||||||
+115
-59
@@ -14,14 +14,13 @@ SPECFILE = $(addsuffix .spec, $(PKG_NAME))
|
|||||||
SRPMVERS = $(shell [ ! -f $(SPECFILE) ] || rpmspec -D '_vendor clr' --srpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n' $(SPECFILE))
|
SRPMVERS = $(shell [ ! -f $(SPECFILE) ] || rpmspec -D '_vendor clr' --srpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n' $(SPECFILE))
|
||||||
SRPMFILE = results/$(SRPMVERS).src.rpm
|
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)
|
||||||
RPMS ?= $(LATEST_RPMS)
|
RPMS ?= $(LATEST_RPMS)
|
||||||
|
|
||||||
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
|
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
|
||||||
|
|
||||||
# MOCK_CONFIG_VAL is set in Makefile.shared
|
# 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),)
|
ifneq ($(wildcard upstream),)
|
||||||
__allsources := $(notdir $(strip $(shell cat upstream)))
|
__allsources := $(notdir $(strip $(shell cat upstream)))
|
||||||
@@ -29,22 +28,24 @@ __missingsources := $(filter-out $(wildcard ${__allsources}), ${__allsources})
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(SPECFILE):
|
$(SPECFILE):
|
||||||
@echo Error: $(SPECFILE) is missing. Please run \`make autospec\` to try and auto
|
@[[ -f "$@" ]] || (\
|
||||||
@echo Error: generate one for you.
|
echo Error: $@ is missing. Please run \`make autospec\` to try and auto;\
|
||||||
@exit 1
|
echo Error: generate one for you.;\
|
||||||
|
exit 1 )
|
||||||
|
|
||||||
upstream:
|
upstream:
|
||||||
@echo Error: The \"upstream\" file is missing. Try running \`make autospec\` to
|
@[[ -f "$@" ]] || (\
|
||||||
@echo Error: auto generate one for you. If you are not using autospec to
|
echo Error: The \"$@\" file is missing. Try running \`make autospec\` to;\
|
||||||
@echo Error: generate a spec file, specify the proper "Source*" entries in the
|
echo Error: auto generate one for you. If you are not using autospec to;\
|
||||||
@echo Error: spec header, and try running \`make generateupstream\`.
|
echo Error: generate a spec file, specify the proper "Source*" entries in the;\
|
||||||
@exit 1
|
echo Error: spec header, and try running \`make generateupstream\`.;\
|
||||||
|
exit 1 )
|
||||||
|
|
||||||
#help spdxcheck: Checks that the package license is a valid SPDX license,
|
#help spdxcheck: Checks that the package license is a valid SPDX license,
|
||||||
#help or that it is in the exceptions list.
|
#help or that it is in the exceptions list.
|
||||||
spdxcheck: $(SPECFILE)
|
spdxcheck: $(SPECFILE)
|
||||||
@for LICENSE in `rpmspec -D '_vendor clr' --srpm -q --queryformat '%{LICENSE}\n' $(SPECFILE)`; do \
|
@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"
|
done; test -z "$$FAIL"
|
||||||
|
|
||||||
#help cvecheck: Checks
|
#help cvecheck: Checks
|
||||||
@@ -89,8 +90,10 @@ prebuild-checks:
|
|||||||
#help files and rpms in the results directory of your package. If there
|
#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 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 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)
|
build: prebuild-checks configemail $(SPECFILE) upstream $(SRPMFILE)
|
||||||
$(MOCK) $(SRPMFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
|
$(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/logcheck.pl results/build.log
|
||||||
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
|
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
|
||||||
@$(MAKE) checkblacklist
|
@$(MAKE) checkblacklist
|
||||||
@@ -98,6 +101,7 @@ build: prebuild-checks configemail $(SPECFILE) upstream $(SRPMFILE)
|
|||||||
#help build-nocheck: Same as 'make build', but do not run the package's test suite.
|
#help build-nocheck: Same as 'make build', but do not run the package's test suite.
|
||||||
build-nocheck: configemail $(SPECFILE) upstream $(SRPMFILE)
|
build-nocheck: configemail $(SPECFILE) upstream $(SRPMFILE)
|
||||||
$(MOCK) $(SRPMFILE) --nocheck --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
|
$(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/logcheck.pl results/build.log
|
||||||
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
|
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
|
||||||
@$(MAKE) checkblacklist
|
@$(MAKE) checkblacklist
|
||||||
@@ -115,9 +119,11 @@ shell:
|
|||||||
|
|
||||||
# Always rebuild the source rpm
|
# Always rebuild the source rpm
|
||||||
.PHONY: $(SRPMFILE)
|
.PHONY: $(SRPMFILE)
|
||||||
$(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice
|
$(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice clean-old-content
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
$(MOCK) --buildsrpm --source=./ --spec=$(SPECFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
|
$(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
|
# 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
|
# commits from the remote. A git fetch/rebase is used rather than a git pull so
|
||||||
@@ -150,10 +156,11 @@ pullrebase:
|
|||||||
|
|
||||||
#help autospec: automatically generates a specfile. If there is
|
#help autospec: automatically generates a specfile. If there is
|
||||||
#help already a specfile, it will be overwritten. Several files used by
|
#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 autospec will be created in the process.
|
||||||
#help the project at https://github.com/clearlinux/autospec
|
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options
|
||||||
autospec: pullrebase localreponotice
|
#help to autospec.
|
||||||
rm -f results/*src.rpm
|
#help For more information, see the project at https://github.com/clearlinux/autospec
|
||||||
|
autospec: pullrebase localreponotice clean-old-content
|
||||||
@if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \
|
@if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \
|
||||||
echo "Specfile already exists and was not created by autospec.py! Aborting."; \
|
echo "Specfile already exists and was not created by autospec.py! Aborting."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
@@ -166,9 +173,11 @@ autospec: pullrebase localreponotice
|
|||||||
--name $(PKG_NAME) \
|
--name $(PKG_NAME) \
|
||||||
--archives $(ARCHIVES) \
|
--archives $(ARCHIVES) \
|
||||||
--mock-config $(MOCK_CONFIG_VAL) \
|
--mock-config $(MOCK_CONFIG_VAL) \
|
||||||
|
--mock-opts "$(MOCK_OPTS)" \
|
||||||
$${SETVERSION:+ --version $${SETVERSION}} \
|
$${SETVERSION:+ --version $${SETVERSION}} \
|
||||||
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
||||||
$(firstword $(NEWURL) $(URL));
|
$(firstword $(NEWURL) $(URL));
|
||||||
|
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
@$(MAKE) checkblacklist
|
@$(MAKE) checkblacklist
|
||||||
@if [ -e update_changelog.sh ] && [ -z "$$SKIP_GIT" ] ; then \
|
@if [ -e update_changelog.sh ] && [ -z "$$SKIP_GIT" ] ; then \
|
||||||
@@ -205,30 +214,12 @@ bumpnogit:
|
|||||||
|
|
||||||
$(__missingsources): sources
|
$(__missingsources): sources
|
||||||
|
|
||||||
#help sources: If SOURCES_URL is defined, download required upstream source
|
# First argument is a Clear Linux build number (e.g. 22000)
|
||||||
#help files from that location. Otherwise, try to extract source files from the
|
define fetch-from-srpm
|
||||||
#help SRPM in the latest Clear Linux release, as specified by the LATEST_SRPMS
|
tmp=$$(mktemp -d -p "."); \
|
||||||
#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 "."); \
|
|
||||||
srpm=$$(rpmspec --srpm -q --qf "%{NVR}.src.rpm\n" $(SPECFILE)); \
|
srpm=$$(rpmspec --srpm -q --qf "%{NVR}.src.rpm\n" $(SPECFILE)); \
|
||||||
if cd "$$tmp" && ! curl -f -L -O $(LATEST_SRPMS)/$$srpm; then \
|
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 latest Clear Linux release." >&2; \
|
echo "Failed to download $$srpm from Clear Linux release $(1)." >&2; \
|
||||||
echo "Run \"git pull\" and try again." >&2; \
|
|
||||||
cd .. && rm -rf "$$tmp"; \
|
cd .. && rm -rf "$$tmp"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
@@ -236,14 +227,58 @@ else
|
|||||||
cd ..; \
|
cd ..; \
|
||||||
srclist=$$(rpmspec --srpm -q --qf "[%{SOURCE}\n]" $(SPECFILE)); \
|
srclist=$$(rpmspec --srpm -q --qf "[%{SOURCE}\n]" $(SPECFILE)); \
|
||||||
for s in $$srclist; do \
|
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; \
|
echo "Missing source file \"$$s\" in $${srpm}." >&2; \
|
||||||
rm -rf "$$tmp"; \
|
rm -rf "$$tmp"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
echo "Retrieved source file $$s ..."; \
|
echo "Retrieved source file $$s ..."; \
|
||||||
done; \
|
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))"; \
|
||||||
|
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
|
endif
|
||||||
|
|
||||||
prekoji-checks:
|
prekoji-checks:
|
||||||
@@ -257,8 +292,14 @@ koji: prekoji-checks kojidef
|
|||||||
@if ! git branch | grep -q -E '^\* master'; then \
|
@if ! git branch | grep -q -E '^\* master'; then \
|
||||||
echo "Error: Must be on the master branch to submit to koji" >&2; \
|
echo "Error: Must be on the master branch to submit to koji" >&2; \
|
||||||
exit 1; \
|
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/master > /dev/null; then \
|
||||||
|
git pull --rebase; \
|
||||||
fi
|
fi
|
||||||
git pull --rebase
|
|
||||||
git tag $(SRPMVERS)
|
git tag $(SRPMVERS)
|
||||||
git push origin master refs/tags/$(SRPMVERS)
|
git push origin master 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)
|
||||||
@@ -296,19 +337,24 @@ $(TOPLVL)/repo:
|
|||||||
#help repoadd: Adds locally-built RPMs for this package to the local RPM
|
#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 repository. If this repository does not yet exist, it is created and
|
||||||
#help enabled.
|
#help enabled.
|
||||||
repoadd: results/build.log $(TOPLVL)/repo
|
repoadd: $(TOPLVL)/repo
|
||||||
@if [ -z "`grep '^Wrote: .*$(shell basename $(SRPMFILE))$$' results/build.log`" ]; then \
|
@if [ -z "${LATEST_RPMS}" ]; then \
|
||||||
echo "You have not yet succesfully built this release yet"; exit 1; \
|
echo "No rpms found in rpms/ directory."; \
|
||||||
fi
|
exit 1; \
|
||||||
@if [ -f .repo-index ]; then \
|
fi; \
|
||||||
|
if [ -f .repo-index ]; then \
|
||||||
echo "Cleaning old rpms:"; \
|
echo "Cleaning old rpms:"; \
|
||||||
for r in `cat .repo-index`; do \
|
for r in `cat .repo-index`; do \
|
||||||
echo "-$$r"; \
|
echo "-$$r"; \
|
||||||
rm -f $(TOPLVL)/repo/$$r; \
|
rm -f $(TOPLVL)/repo/$$r; \
|
||||||
done; \
|
done; \
|
||||||
rm .repo-index; \
|
rm .repo-index; \
|
||||||
fi
|
fi; \
|
||||||
for r in $(LATEST_RPMS); do echo "+$$r"; echo $$(basename $$r) >> .repo-index; cp $$r $(TOPLVL)/repo; done
|
for r in ${LATEST_RPMS}; do \
|
||||||
|
echo "+$$r"; \
|
||||||
|
echo $$(basename $$r) >> .repo-index; \
|
||||||
|
ln -f $$r $(TOPLVL)/repo/; \
|
||||||
|
done
|
||||||
$(MAKE) localrepocreate
|
$(MAKE) localrepocreate
|
||||||
$(call localrepoenable,${PM_CONF},${MOCK_CONF})
|
$(call localrepoenable,${PM_CONF},${MOCK_CONF})
|
||||||
|
|
||||||
@@ -362,18 +408,25 @@ install:
|
|||||||
|
|
||||||
#help generateupstream: Run this rule to create or update the 'upstream' file
|
#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 by downloading the upstream source tarballs listed in the spec file and
|
||||||
#help calculating their hashes. Autospec performs this step automatically, so ignore
|
#help calculating their hashes. Autospec performs this step automatically, so
|
||||||
#help it for packages managed with autospec.
|
#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:
|
generateupstream:
|
||||||
@rm -f upstream
|
@[ -e upstream ] && mv upstream upstream.bak; \
|
||||||
@urls=$$(rpmspec -D '_vendor clr' -P $(SPECFILE) | grep Source | cut -d: -f2- | grep '://'); \
|
urls=$$(rpmspec -D '_vendor clr' -P $(SPECFILE) | sed -n "s|^Source[0-9]*[[:blank:]]*:[[:blank:]]*\(..*://..*\)$$|\1|p"); \
|
||||||
for url in $$urls; do \
|
for url in $$urls; do \
|
||||||
filename=$$(basename $$url); \
|
filename=$$(basename $$url); \
|
||||||
if [ ! -e $$filename ]; then \
|
if [ ! -e $$filename ]; then \
|
||||||
curl --fail -L -O $$url; \
|
if ! curl --fail -L -O $(CURL_OPTS) $$url; then \
|
||||||
fi; \
|
echo "Failed to download $$url"; \
|
||||||
echo $$(sha1sum $$filename | cut -d\ -f1)/$$filename >> upstream; \
|
[ -e upstream.bak ] && mv --no-clobber upstream.bak upstream; \
|
||||||
|
exit 1; \
|
||||||
|
fi; \
|
||||||
|
fi; \
|
||||||
|
echo $$(sha1sum $$filename | cut -d\ -f1)/$$filename >> upstream; \
|
||||||
done
|
done
|
||||||
|
@rm -f upstream.bak
|
||||||
@cat upstream
|
@cat upstream
|
||||||
|
|
||||||
#help drop-abandoned: Remove all unused patches from the git tree
|
#help drop-abandoned: Remove all unused patches from the git tree
|
||||||
@@ -382,3 +435,6 @@ drop-abandoned: $(SPECFILE)
|
|||||||
|
|
||||||
# Define site local common targets in a separate makefile
|
# Define site local common targets in a separate makefile
|
||||||
-include $(TOPLVL)/projects/common/Makefile.common.site_local
|
-include $(TOPLVL)/projects/common/Makefile.common.site_local
|
||||||
|
|
||||||
|
# Include optional extended makefiles from individual package repos
|
||||||
|
-include Makefile.custom
|
||||||
|
|||||||
+10
-4
@@ -26,6 +26,9 @@ CGIT_BASE_URL =
|
|||||||
# Location of upstream tarball cache used by 'make build', 'make sources', etc.
|
# Location of upstream tarball cache used by 'make build', 'make sources', etc.
|
||||||
SOURCES_URL =
|
SOURCES_URL =
|
||||||
|
|
||||||
|
# Additional curl options to use when downloading files from SOURCES_URL
|
||||||
|
SOURCES_CURL_OPTS =
|
||||||
|
|
||||||
# Location where package repos are hosted.
|
# Location where package repos are hosted.
|
||||||
PKG_BASE_URL = https://github.com/clearlinux-pkgs
|
PKG_BASE_URL = https://github.com/clearlinux-pkgs
|
||||||
|
|
||||||
@@ -38,6 +41,9 @@ PROJ_PKGS = autospec clr-bundles common
|
|||||||
# Clear Linux download mirror to use
|
# Clear Linux download mirror to use
|
||||||
DOWNLOAD_MIRROR = https://cdn.download.clearlinux.org
|
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
|
# Location of release content from latest Clear Linux release
|
||||||
LATEST_RELEASE = $(DOWNLOAD_MIRROR)/current
|
LATEST_RELEASE = $(DOWNLOAD_MIRROR)/current
|
||||||
|
|
||||||
@@ -48,17 +54,17 @@ LATEST_SRPMS = $(LATEST_RELEASE)/source/SRPMS
|
|||||||
PACKAGES_FILE = $(TOPLVL)/projects/common/packages
|
PACKAGES_FILE = $(TOPLVL)/projects/common/packages
|
||||||
|
|
||||||
# Configuration file for autospec.
|
# 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
|
# Set this variable to any non-empty value to use the package mappings stored
|
||||||
# in "pkg-mapping" for cloning/pulling package repos.
|
# in "pkg-mapping" for cloning/pulling package repos.
|
||||||
USE_PACKAGE_MAPPING = yes
|
USE_PACKAGE_MAPPING = yes
|
||||||
|
|
||||||
# Package manager config file. Default to the in-tree copy.
|
# Package manager config file. Default to the in-tree copy of dnf.conf.
|
||||||
PM_CONF = $(TOPLVL)/projects/common/image-creator/yum.conf
|
PM_CONF = $(TOPLVL)/projects/common/conf/dnf.conf
|
||||||
|
|
||||||
# Mock configuration file. Default to the in-tree copy.
|
# 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
|
# Include any site local configuration variables. These variables may override
|
||||||
|
|||||||
+26
-2
@@ -14,9 +14,9 @@ define loopup
|
|||||||
@sudo partprobe /dev/loop$(DEVICE)
|
@sudo partprobe /dev/loop$(DEVICE)
|
||||||
@sleep 1
|
@sleep 1
|
||||||
@if [ -e /dev/loop$(DEVICE)p3 ]; then \
|
@if [ -e /dev/loop$(DEVICE)p3 ]; then \
|
||||||
sudo mount /dev/loop$(DEVICE)p3 $(TOPLVL)/image; \
|
sudo mount /dev/loop$(DEVICE)p3 $(TOPLVL)/image; \
|
||||||
else \
|
else \
|
||||||
sudo mount /dev/loop$(DEVICE)p2 $(TOPLVL)/image; \
|
sudo mount /dev/loop$(DEVICE)p2 $(TOPLVL)/image; \
|
||||||
fi
|
fi
|
||||||
@sudo mount /dev/loop$(DEVICE)p1 $(TOPLVL)/image/boot
|
@sudo mount /dev/loop$(DEVICE)p1 $(TOPLVL)/image/boot
|
||||||
endef
|
endef
|
||||||
@@ -138,6 +138,30 @@ localreponotice:
|
|||||||
[ -f $(TOPLVL)/repo/opt-in-build ] || sleep 3; \
|
[ -f $(TOPLVL)/repo/opt-in-build ] || sleep 3; \
|
||||||
fi >&2
|
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
|
.PHONY: help
|
||||||
##### Code
|
##### Code
|
||||||
# Make sure that HELPSPACE has exactly HELPLEN spaces in it
|
# Make sure that HELPSPACE has exactly HELPLEN spaces in it
|
||||||
|
|||||||
+21
-14
@@ -10,6 +10,7 @@ include $(TOPLVL)/projects/common/Makefile.shared
|
|||||||
SHELL = /bin/bash
|
SHELL = /bin/bash
|
||||||
|
|
||||||
PKGS = $(shell cat $(PACKAGES_FILE))
|
PKGS = $(shell cat $(PACKAGES_FILE))
|
||||||
|
PKGS_LOCAL = $(sort $(filter ${PKGS},$(subst packages/,,$(wildcard packages/*))))
|
||||||
|
|
||||||
proj_PKGS = $(addprefix proj_,$(PROJ_PKGS))
|
proj_PKGS = $(addprefix proj_,$(PROJ_PKGS))
|
||||||
clone_PKGS = $(addprefix clone_,$(PKGS))
|
clone_PKGS = $(addprefix clone_,$(PKGS))
|
||||||
@@ -64,7 +65,7 @@ cvecheck:
|
|||||||
#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.
|
||||||
.PHONY: pull ${PULL_PKGS}
|
.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}:
|
${PULL_PKGS}:
|
||||||
@p=$(patsubst PULL_%,%,$@) ; \
|
@p=$(patsubst PULL_%,%,$@) ; \
|
||||||
if [ ! -d "$$p/.git" ]; then echo "Nothing to pull for $$p - $$p/.git missing"; exit 0; fi; \
|
if [ ! -d "$$p/.git" ]; then echo "Nothing to pull for $$p - $$p/.git missing"; exit 0; fi; \
|
||||||
@@ -135,11 +136,11 @@ clean-pkgs-dir: $(PACKAGES_FILE)
|
|||||||
done
|
done
|
||||||
@echo "packages directory cleaned";
|
@echo "packages directory cleaned";
|
||||||
|
|
||||||
clean_PKGS = $(addprefix clean_,$(PKGS))
|
clean_PKGS = $(addprefix clean_,$(PKGS_LOCAL))
|
||||||
#help clean: Run 'make clean' for every package.
|
#help clean: Run 'make clean' for every package.
|
||||||
clean: $(clean_PKGS)
|
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 proper: Run 'make proper' for every package, and purge the local
|
||||||
#help repo and image.
|
#help repo and image.
|
||||||
proper: $(proper_PKGS)
|
proper: $(proper_PKGS)
|
||||||
@@ -153,34 +154,34 @@ proper: $(proper_PKGS)
|
|||||||
|
|
||||||
$(clean_PKGS):
|
$(clean_PKGS):
|
||||||
@echo "cleaning $(patsubst clean_%,%,$@)"
|
@echo "cleaning $(patsubst clean_%,%,$@)"
|
||||||
-@$(MAKE) -s -j -C $(addprefix packages/,$(patsubst clean_%,%,$@)) clean
|
-@$(MAKE) -s -C $(addprefix packages/,$(patsubst clean_%,%,$@)) clean
|
||||||
|
|
||||||
$(proper_PKGS):
|
$(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 status: Runs git status for all package repos, thus displaying untracked
|
||||||
#help and unstaged files in addition to staged files.
|
#help and unstaged files in addition to staged files.
|
||||||
status: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
|
status: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in projects/common $(addprefix packages/,$(PKGS)); do \
|
@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 ;\
|
if [ -d "$$p/.git" ] && [ -n "$$(git -C $$p status -uno --porcelain)" ]; then echo "Uncommitted changes in $$p:"; git -C "$$p" status --short; fi ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
#help diff: Runs git diff for all package repos and displays the output using
|
#help diff: Runs git diff for all package repos and displays the output using
|
||||||
#help diffstat. Requires that diffstat is installed.
|
#help diffstat. Requires that diffstat is installed.
|
||||||
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
|
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in projects/common $(addprefix packages/,$(PKGS)); do \
|
@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)) ;\
|
(cd $$p ; git status | grep -q 'nothing to commit, working [^ ]* clean' || (echo "Uncommitted changes in: $$p"; git diff |diffstat -p1)) ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
#help versions: Displays the version of each package in the ./packages tree.
|
#help versions: Displays the version of each package in the ./packages tree.
|
||||||
versions: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
|
versions: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in $(addprefix packages/,$(PKGS)); do \
|
@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) ;\
|
(cd $$p; if ls *.spec &> /dev/null; then rpmspec -q --queryformat '%{NAME}-%{VERSION}\n' *.spec | head -n1; fi) ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
#help releases: Like 'make versions', but also displays the release number.
|
#help releases: Like 'make versions', but also displays the release number.
|
||||||
releases: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
|
releases: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in $(addprefix packages/,$(PKGS)); do \
|
@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) ;\
|
(cd $$p; if ls *.spec &> /dev/null; then rpmspec -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n' *.spec | head -n1; fi) ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -191,12 +192,16 @@ provides:
|
|||||||
|
|
||||||
#help autospecnew: Creates a new autospec package with for a given URL=$(URL)
|
#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 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
|
#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: localreponotice
|
autospecnew: localreponotice
|
||||||
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \
|
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \
|
||||||
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
|
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
-$(MAKE) clone_$(NAME)
|
||||||
@if [ ! -d $(TOPLVL)/packages/$(NAME)/.git ]; then \
|
@if [ ! -d $(TOPLVL)/packages/$(NAME)/.git ]; then \
|
||||||
echo "no remote repository found, creating new package repository and running autospec"; \
|
echo "no remote repository found, creating new package repository and running autospec"; \
|
||||||
mkdir -p $(TOPLVL)/packages/$(NAME); \
|
mkdir -p $(TOPLVL)/packages/$(NAME); \
|
||||||
@@ -215,9 +220,11 @@ autospecnew: localreponotice
|
|||||||
--name $(NAME) \
|
--name $(NAME) \
|
||||||
--archives $(ARCHIVES) \
|
--archives $(ARCHIVES) \
|
||||||
--mock-config $(MOCK_CONFIG_VAL) \
|
--mock-config $(MOCK_CONFIG_VAL) \
|
||||||
|
--mock-opts "$(MOCK_OPTS)" \
|
||||||
$${SETVERSION:+ --version $${SETVERSION}} \
|
$${SETVERSION:+ --version $${SETVERSION}} \
|
||||||
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
||||||
$(URL); \
|
$(URL); \
|
||||||
|
[ $$? -eq 0 ] && $(MAKE) link-new-rpms PKG_REPO_DIR="${TOPLVL}/packages/${NAME}"; \
|
||||||
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
|
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
|
||||||
else \
|
else \
|
||||||
echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \
|
echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \
|
||||||
|
|||||||
@@ -31,43 +31,13 @@ $ ./user-setup.sh
|
|||||||
After the script completes, make sure to logout and login again to complete the
|
After the script completes, make sure to logout and login again to complete the
|
||||||
setup process.
|
setup process.
|
||||||
|
|
||||||
The script either accepts no options, or all (3) options in case you are
|
The script accepts several options, or no options at all. The options are
|
||||||
configuring the Koji CLI for remote building on a Koji server. The options are
|
documented in the script's `--help` output. Note that if you are supplying any
|
||||||
documented in the script's `--help` output.
|
of the three Koji cert options (`-k`, `-s`, or `-c`), the other two options
|
||||||
|
must be supplied as well.
|
||||||
|
|
||||||
### Manual setup
|
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.
|
||||||
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.
|
|
||||||
|
|
||||||
## Example usage
|
## Example usage
|
||||||
|
|
||||||
@@ -132,6 +102,10 @@ $ echo missing-build-req >> buildreq_add
|
|||||||
$ make autospec
|
$ 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
|
### Bump the release number for a package
|
||||||
|
|
||||||
If you simply need to increment a package's release number and rebuild the
|
If you simply need to increment a package's release number and rebuild the
|
||||||
@@ -141,3 +115,76 @@ package, a `make bump` command is available for this purpose.
|
|||||||
$ make bump
|
$ make bump
|
||||||
$ make build
|
$ 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
|
||||||
|
|
||||||
|
If you did not run the user-setup script (see "Automated setup" section above),
|
||||||
|
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.
|
||||||
|
|||||||
@@ -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.
|
||||||
@@ -18,6 +18,10 @@
|
|||||||
# an absolute path or a path relative to this autospec.conf.
|
# an absolute path or a path relative to this autospec.conf.
|
||||||
#packages_file =
|
#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.
|
# path or a path relative to this autospec.conf.
|
||||||
#yum_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['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['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']['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['releasever'] = 'clear'
|
||||||
config_opts['package_manager'] = 'dnf'
|
config_opts['package_manager'] = 'dnf'
|
||||||
|
config_opts['chrootgroup'] = 'mockbuild'
|
||||||
|
config_opts['use_bootstrap_container'] = False
|
||||||
|
|
||||||
|
|
||||||
config_opts['yum.conf'] = """
|
config_opts['dnf.conf'] = """
|
||||||
|
|
||||||
[main]
|
[main]
|
||||||
cachedir=/var/cache/yum
|
cachedir=/var/cache/dnf
|
||||||
|
keepcache=1
|
||||||
debuglevel=1
|
debuglevel=1
|
||||||
reposdir=/dev/null
|
reposdir=/dev/null
|
||||||
logfile=/var/log/yum.log
|
logfile=/var/log/dnf.log
|
||||||
retries=20
|
retries=20
|
||||||
obsoletes=1
|
obsoletes=1
|
||||||
gpgcheck=0
|
gpgcheck=0
|
||||||
@@ -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
@@ -82,7 +82,7 @@ sub find_file {
|
|||||||
return $file;
|
return $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
open(BUILD_LOG, '<', "results/build.log") or die $!;
|
open(BUILD_LOG, '<', "results/logs/build.log") or die $!;
|
||||||
while (<BUILD_LOG>) {
|
while (<BUILD_LOG>) {
|
||||||
if($_ =~ /(\S+):([0-9]*):([0-9]*): note: (basic block|loop) (vectorized)/) {
|
if($_ =~ /(\S+):([0-9]*):([0-9]*): note: (basic block|loop) (vectorized)/) {
|
||||||
$fmv->{s_name} = (split('/',$1))[-1];
|
$fmv->{s_name} = (split('/',$1))[-1];
|
||||||
|
|||||||
@@ -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
|
||||||
+150
-87
@@ -1,56 +1,63 @@
|
|||||||
|
0BSD
|
||||||
AAL
|
AAL
|
||||||
Abstyles
|
|
||||||
Adobe-2006
|
|
||||||
Adobe-Glyph
|
|
||||||
ADSL
|
ADSL
|
||||||
AFL-1.1
|
AFL-1.1
|
||||||
AFL-1.2
|
AFL-1.2
|
||||||
AFL-2.0
|
AFL-2.0
|
||||||
AFL-2.1
|
AFL-2.1
|
||||||
AFL-3.0
|
AFL-3.0
|
||||||
Afmparse
|
|
||||||
AGPL-1.0
|
AGPL-1.0
|
||||||
|
AGPL-1.0-only
|
||||||
|
AGPL-1.0-or-later
|
||||||
AGPL-3.0
|
AGPL-3.0
|
||||||
Aladdin
|
AGPL-3.0-only
|
||||||
|
AGPL-3.0-or-later
|
||||||
AMDPLPA
|
AMDPLPA
|
||||||
AML
|
AML
|
||||||
AMPAS
|
AMPAS
|
||||||
ANTLR-PD
|
ANTLR-PD
|
||||||
Apache-1.0
|
|
||||||
Apache-1.1
|
|
||||||
Apache-2.0
|
|
||||||
APAFML
|
APAFML
|
||||||
APL-1.0
|
APL-1.0
|
||||||
APSL-1.0
|
APSL-1.0
|
||||||
APSL-1.1
|
APSL-1.1
|
||||||
APSL-1.2
|
APSL-1.2
|
||||||
APSL-2.0
|
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
|
||||||
Artistic-1.0-cl8
|
|
||||||
Artistic-1.0-Perl
|
Artistic-1.0-Perl
|
||||||
|
Artistic-1.0-cl8
|
||||||
Artistic-2.0
|
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-4-Clause
|
||||||
|
BSD-4-Clause-UC
|
||||||
|
BSD-Protection
|
||||||
|
BSD-Source-Code
|
||||||
|
BSL-1.0
|
||||||
Bahyph
|
Bahyph
|
||||||
Barr
|
Barr
|
||||||
Beerware
|
Beerware
|
||||||
BitTorrent-1.0
|
BitTorrent-1.0
|
||||||
BitTorrent-1.1
|
BitTorrent-1.1
|
||||||
Borceux
|
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
|
CATOSL-1.1
|
||||||
CC0-1.0
|
|
||||||
CC-BY-1.0
|
CC-BY-1.0
|
||||||
CC-BY-2.0
|
CC-BY-2.0
|
||||||
CC-BY-2.5
|
CC-BY-2.5
|
||||||
@@ -81,96 +88,117 @@ CC-BY-SA-2.0
|
|||||||
CC-BY-SA-2.5
|
CC-BY-SA-2.5
|
||||||
CC-BY-SA-3.0
|
CC-BY-SA-3.0
|
||||||
CC-BY-SA-4.0
|
CC-BY-SA-4.0
|
||||||
|
CC0-1.0
|
||||||
CDDL-1.0
|
CDDL-1.0
|
||||||
CDDL-1.1
|
CDDL-1.1
|
||||||
|
CDLA-Permissive-1.0
|
||||||
|
CDLA-Sharing-1.0
|
||||||
CECILL-1.0
|
CECILL-1.0
|
||||||
CECILL-1.1
|
CECILL-1.1
|
||||||
CECILL-2.0
|
CECILL-2.0
|
||||||
|
CECILL-2.1
|
||||||
CECILL-B
|
CECILL-B
|
||||||
CECILL-C
|
CECILL-C
|
||||||
ClArtistic
|
CNRI-Jython
|
||||||
CNRI-Python
|
CNRI-Python
|
||||||
CNRI-Python-GPL-Compatible
|
CNRI-Python-GPL-Compatible
|
||||||
Condor-1.1
|
|
||||||
CPAL-1.0
|
CPAL-1.0
|
||||||
CPL-1.0
|
CPL-1.0
|
||||||
CPOL-1.02
|
CPOL-1.02
|
||||||
Crossword
|
|
||||||
CUA-OPL-1.0
|
CUA-OPL-1.0
|
||||||
|
Caldera
|
||||||
|
ClArtistic
|
||||||
|
Condor-1.1
|
||||||
|
Crossword
|
||||||
|
CrystalStacker
|
||||||
Cube
|
Cube
|
||||||
D-FSL-1.0
|
D-FSL-1.0
|
||||||
diffmark
|
|
||||||
DOC
|
DOC
|
||||||
Dotseqn
|
|
||||||
DSDP
|
DSDP
|
||||||
dvipdfm
|
Dotseqn
|
||||||
ECL-1.0
|
ECL-1.0
|
||||||
ECL-2.0
|
ECL-2.0
|
||||||
eCos-2.0
|
|
||||||
EFL-1.0
|
EFL-1.0
|
||||||
EFL-2.0
|
EFL-2.0
|
||||||
eGenix
|
|
||||||
Entessa
|
|
||||||
EPL-1.0
|
EPL-1.0
|
||||||
ErlPL-1.1
|
EPL-2.0
|
||||||
EUDatagrid
|
EUDatagrid
|
||||||
EUPL-1.0
|
EUPL-1.0
|
||||||
EUPL-1.1
|
EUPL-1.1
|
||||||
|
EUPL-1.2
|
||||||
|
Entessa
|
||||||
|
ErlPL-1.1
|
||||||
Eurosym
|
Eurosym
|
||||||
Fair
|
FSFAP
|
||||||
Frameworx-1.0
|
|
||||||
FreeImage
|
|
||||||
FSFUL
|
FSFUL
|
||||||
FSFULLR
|
FSFULLR
|
||||||
FTL
|
FTL
|
||||||
|
Fair
|
||||||
|
Frameworx-1.0
|
||||||
|
FreeImage
|
||||||
GFDL-1.1
|
GFDL-1.1
|
||||||
|
GFDL-1.1-only
|
||||||
|
GFDL-1.1-or-later
|
||||||
GFDL-1.2
|
GFDL-1.2
|
||||||
|
GFDL-1.2-only
|
||||||
|
GFDL-1.2-or-later
|
||||||
GFDL-1.3
|
GFDL-1.3
|
||||||
GFDL-1.3+
|
GFDL-1.3-only
|
||||||
Giftware
|
GFDL-1.3-or-later
|
||||||
GL2PS
|
GL2PS
|
||||||
Glide
|
|
||||||
Glulxe
|
|
||||||
gnuplot
|
|
||||||
GPL-1.0
|
GPL-1.0
|
||||||
GPL-1.0+
|
GPL-1.0+
|
||||||
|
GPL-1.0-only
|
||||||
|
GPL-1.0-or-later
|
||||||
GPL-2.0
|
GPL-2.0
|
||||||
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-autoconf-exception
|
||||||
GPL-2.0-with-bison-exception
|
GPL-2.0-with-bison-exception
|
||||||
GPL-2.0-with-classpath-exception
|
GPL-2.0-with-classpath-exception
|
||||||
GPL-2.0-with-font-exception
|
GPL-2.0-with-font-exception
|
||||||
GPL-2.0-with-GCC-exception
|
|
||||||
GPL-3.0
|
GPL-3.0
|
||||||
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
|
GPL-3.0-with-GCC-exception
|
||||||
gSOAP-1.3b
|
GPL-3.0-with-autoconf-exception
|
||||||
HaskellReport
|
Giftware
|
||||||
|
Glide
|
||||||
|
Glulxe
|
||||||
HPND
|
HPND
|
||||||
|
HaskellReport
|
||||||
IBM-pibs
|
IBM-pibs
|
||||||
ICU
|
ICU
|
||||||
IJG
|
IJG
|
||||||
ImageMagick
|
|
||||||
iMatix
|
|
||||||
Imlib2
|
|
||||||
Intel
|
|
||||||
Intel-ACPI
|
|
||||||
IPA
|
IPA
|
||||||
IPL-1.0
|
IPL-1.0
|
||||||
ISC
|
ISC
|
||||||
JasPer-2.0
|
ImageMagick
|
||||||
|
Imlib2
|
||||||
|
Info-ZIP
|
||||||
|
Intel
|
||||||
|
Intel-ACPI
|
||||||
|
Interbase-1.0
|
||||||
JSON
|
JSON
|
||||||
Latex2e
|
JasPer-2.0
|
||||||
Leptonica
|
LAL-1.2
|
||||||
|
LAL-1.3
|
||||||
LGPL-2.0
|
LGPL-2.0
|
||||||
LGPL-2.0+
|
LGPL-2.0+
|
||||||
|
LGPL-2.0-only
|
||||||
|
LGPL-2.0-or-later
|
||||||
LGPL-2.1
|
LGPL-2.1
|
||||||
LGPL-2.1+
|
LGPL-2.1+
|
||||||
|
LGPL-2.1-only
|
||||||
|
LGPL-2.1-or-later
|
||||||
LGPL-3.0
|
LGPL-3.0
|
||||||
LGPL-3.0+
|
LGPL-3.0+
|
||||||
Libpng
|
LGPL-3.0-only
|
||||||
libtiff
|
LGPL-3.0-or-later
|
||||||
|
LGPLLR
|
||||||
LPL-1.0
|
LPL-1.0
|
||||||
LPL-1.02
|
LPL-1.02
|
||||||
LPPL-1.0
|
LPPL-1.0
|
||||||
@@ -178,17 +206,20 @@ LPPL-1.1
|
|||||||
LPPL-1.2
|
LPPL-1.2
|
||||||
LPPL-1.3a
|
LPPL-1.3a
|
||||||
LPPL-1.3c
|
LPPL-1.3c
|
||||||
MakeIndex
|
Latex2e
|
||||||
MirOS
|
Leptonica
|
||||||
|
LiLiQ-P-1.1
|
||||||
|
LiLiQ-R-1.1
|
||||||
|
LiLiQ-Rplus-1.1
|
||||||
|
Libpng
|
||||||
|
Linux-OpenIB
|
||||||
MIT
|
MIT
|
||||||
MIT-advertising
|
MIT-0
|
||||||
MIT-CMU
|
MIT-CMU
|
||||||
|
MIT-advertising
|
||||||
MIT-enna
|
MIT-enna
|
||||||
MIT-feh
|
MIT-feh
|
||||||
MIT-Opengroup
|
|
||||||
MITNFA
|
MITNFA
|
||||||
Motosoto
|
|
||||||
mpich2
|
|
||||||
MPL-1.0
|
MPL-1.0
|
||||||
MPL-1.1
|
MPL-1.1
|
||||||
MPL-2.0
|
MPL-2.0
|
||||||
@@ -196,26 +227,33 @@ MPL-2.0-no-copyleft-exception
|
|||||||
MS-PL
|
MS-PL
|
||||||
MS-RL
|
MS-RL
|
||||||
MTLL
|
MTLL
|
||||||
|
MakeIndex
|
||||||
|
MirOS
|
||||||
|
Motosoto
|
||||||
Multics
|
Multics
|
||||||
Mup
|
Mup
|
||||||
NASA-1.3
|
NASA-1.3
|
||||||
Naumen
|
|
||||||
NBPL-1.0
|
NBPL-1.0
|
||||||
NCSA
|
NCSA
|
||||||
NetCDF
|
|
||||||
Newsletr
|
|
||||||
NGPL
|
NGPL
|
||||||
|
NLOD-1.0
|
||||||
NLPL
|
NLPL
|
||||||
Nokia
|
|
||||||
NOSL
|
NOSL
|
||||||
Noweb
|
|
||||||
NPL-1.0
|
NPL-1.0
|
||||||
NPL-1.1
|
NPL-1.1
|
||||||
NPOSL-3.0
|
NPOSL-3.0
|
||||||
NRL
|
NRL
|
||||||
NTP
|
NTP
|
||||||
|
Naumen
|
||||||
|
Net-SNMP
|
||||||
|
NetCDF
|
||||||
|
Newsletr
|
||||||
|
Nokia
|
||||||
|
Noweb
|
||||||
Nunit
|
Nunit
|
||||||
|
OCCT-PL
|
||||||
OCLC-2.0
|
OCLC-2.0
|
||||||
|
ODC-By-1.0
|
||||||
ODbL-1.0
|
ODbL-1.0
|
||||||
OFL-1.0
|
OFL-1.0
|
||||||
OFL-1.1
|
OFL-1.1
|
||||||
@@ -237,77 +275,102 @@ OLDAP-2.6
|
|||||||
OLDAP-2.7
|
OLDAP-2.7
|
||||||
OLDAP-2.8
|
OLDAP-2.8
|
||||||
OML
|
OML
|
||||||
OpenSSL
|
|
||||||
OPL-1.0
|
OPL-1.0
|
||||||
|
OSET-PL-2.1
|
||||||
OSL-1.0
|
OSL-1.0
|
||||||
OSL-1.1
|
OSL-1.1
|
||||||
OSL-2.0
|
OSL-2.0
|
||||||
OSL-2.1
|
OSL-2.1
|
||||||
OSL-3.0
|
OSL-3.0
|
||||||
|
OpenSSL
|
||||||
PDDL-1.0
|
PDDL-1.0
|
||||||
PHP-3.0
|
PHP-3.0
|
||||||
PHP-3.01
|
PHP-3.01
|
||||||
Plexus
|
Plexus
|
||||||
PostgreSQL
|
PostgreSQL
|
||||||
psfrag
|
|
||||||
psutils
|
|
||||||
Python-2.0
|
Python-2.0
|
||||||
Qhull
|
|
||||||
QPL-1.0
|
QPL-1.0
|
||||||
Rdisc
|
Qhull
|
||||||
RHeCos-1.1
|
RHeCos-1.1
|
||||||
RPL-1.1
|
RPL-1.1
|
||||||
RPL-1.5
|
RPL-1.5
|
||||||
RPSL-1.0
|
RPSL-1.0
|
||||||
|
RSA-MD
|
||||||
RSCPL
|
RSCPL
|
||||||
|
Rdisc
|
||||||
Ruby
|
Ruby
|
||||||
Saxpath
|
|
||||||
SAX-PD
|
SAX-PD
|
||||||
SCEA
|
SCEA
|
||||||
SGI-B-1.0
|
SGI-B-1.0
|
||||||
SGI-B-1.1
|
SGI-B-1.1
|
||||||
SGI-B-2.0
|
SGI-B-2.0
|
||||||
SimPL-2.0
|
|
||||||
SISSL
|
SISSL
|
||||||
SISSL-1.2
|
SISSL-1.2
|
||||||
Sleepycat
|
|
||||||
SMLNJ
|
SMLNJ
|
||||||
|
SMPPL
|
||||||
SNIA
|
SNIA
|
||||||
SPL-1.0
|
SPL-1.0
|
||||||
|
SWL
|
||||||
|
Saxpath
|
||||||
|
Sendmail
|
||||||
|
SimPL-2.0
|
||||||
|
Sleepycat
|
||||||
|
Spencer-86
|
||||||
|
Spencer-94
|
||||||
|
Spencer-99
|
||||||
StandardML-NJ
|
StandardML-NJ
|
||||||
SugarCRM-1.1.3
|
SugarCRM-1.1.3
|
||||||
SWL
|
|
||||||
TCL
|
TCL
|
||||||
|
TCP-wrappers
|
||||||
TMate
|
TMate
|
||||||
TORQUE-1.1
|
TORQUE-1.1
|
||||||
TOSL
|
TOSL
|
||||||
|
TU-Berlin-1.0
|
||||||
|
TU-Berlin-2.0
|
||||||
|
UPL-1.0
|
||||||
|
Unicode-DFS-2015
|
||||||
|
Unicode-DFS-2016
|
||||||
Unicode-TOU
|
Unicode-TOU
|
||||||
Unlicense
|
Unlicense
|
||||||
Vim
|
|
||||||
VOSTROM
|
VOSTROM
|
||||||
VSL-1.0
|
VSL-1.0
|
||||||
|
Vim
|
||||||
W3C
|
W3C
|
||||||
W3C-19980720
|
W3C-19980720
|
||||||
|
W3C-20150513
|
||||||
|
WTFPL
|
||||||
Watcom-1.0
|
Watcom-1.0
|
||||||
Wsuipa
|
Wsuipa
|
||||||
WTFPL
|
|
||||||
WXwindows
|
|
||||||
X11
|
X11
|
||||||
Xerox
|
|
||||||
XFree86-1.1
|
XFree86-1.1
|
||||||
xinetd
|
|
||||||
Xnet
|
|
||||||
xpp
|
|
||||||
XSkat
|
XSkat
|
||||||
|
Xerox
|
||||||
|
Xnet
|
||||||
YPL-1.0
|
YPL-1.0
|
||||||
YPL-1.1
|
YPL-1.1
|
||||||
|
ZPL-1.1
|
||||||
|
ZPL-2.0
|
||||||
|
ZPL-2.1
|
||||||
Zed
|
Zed
|
||||||
Zend-2.0
|
Zend-2.0
|
||||||
Zimbra-1.3
|
Zimbra-1.3
|
||||||
Zimbra-1.4
|
Zimbra-1.4
|
||||||
Zlib
|
Zlib
|
||||||
|
bzip2-1.0.5
|
||||||
|
bzip2-1.0.6
|
||||||
|
curl
|
||||||
|
diffmark
|
||||||
|
dvipdfm
|
||||||
|
eCos-2.0
|
||||||
|
eGenix
|
||||||
|
gSOAP-1.3b
|
||||||
|
gnuplot
|
||||||
|
iMatix
|
||||||
|
libtiff
|
||||||
|
mpich2
|
||||||
|
psfrag
|
||||||
|
psutils
|
||||||
|
wxWindows
|
||||||
|
xinetd
|
||||||
|
xpp
|
||||||
zlib-acknowledgement
|
zlib-acknowledgement
|
||||||
ZPL-1.1
|
|
||||||
ZPL-2.0
|
|
||||||
ZPL-2.1
|
|
||||||
w3c
|
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ if [ "$#" -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e /etc/yum.conf ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Regular → Executable
+1
@@ -54,4 +54,5 @@ qemu-system-x86_64 \
|
|||||||
-drive file="$IMAGE",if=virtio,aio=threads,format=raw \
|
-drive file="$IMAGE",if=virtio,aio=threads,format=raw \
|
||||||
-netdev user,id=mynet0,hostfwd=tcp::${VMN}0022-:22,hostfwd=tcp::${VMN}2375-:2375 \
|
-netdev user,id=mynet0,hostfwd=tcp::${VMN}0022-:22,hostfwd=tcp::${VMN}2375-:2375 \
|
||||||
-device virtio-net-pci,netdev=mynet0 \
|
-device virtio-net-pci,netdev=mynet0 \
|
||||||
|
-device virtio-rng-pci \
|
||||||
-debugcon file:debug.log -global isa-debugcon.iobase=0x402 $@
|
-debugcon file:debug.log -global isa-debugcon.iobase=0x402 $@
|
||||||
+133
-100
@@ -1,102 +1,131 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPT=$(/usr/bin/basename $0)
|
SCRIPT=$(/usr/bin/basename $0)
|
||||||
PEM=""
|
PEM=""
|
||||||
SERVERCA=""
|
SERVERCA=""
|
||||||
CLIENTCA=""
|
CLIENTCA=""
|
||||||
|
WORKSPACE="clearlinux"
|
||||||
|
PACKAGE_REPOS=
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
printf "%s\n" >&2 "Usage: $SCRIPT [options]" \
|
printf "%s\n" >&2 "Usage: $SCRIPT [options]" \
|
||||||
"" \
|
"" \
|
||||||
"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" \
|
"-d --directory NAME: Set up workspace in the given directory." \
|
||||||
"-c --client-ca PEM_FILE: Enable client CA cert for koji configuration; requires a PEM file argument" \
|
"-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
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"--help"|"-h")
|
"--help"|"-h")
|
||||||
help
|
help
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
"--client-cert"|"-k")
|
"--client-cert"|"-k")
|
||||||
shift
|
shift
|
||||||
PEM="$PWD/$1"
|
PEM="$(realpath $1)"
|
||||||
;;
|
;;
|
||||||
"--server-ca"|"-s")
|
"--server-ca"|"-s")
|
||||||
shift
|
shift
|
||||||
SERVERCA="$PWD/$1"
|
SERVERCA="$(realpath $1)"
|
||||||
;;
|
;;
|
||||||
"--client-ca"|"-c")
|
"--client-ca"|"-c")
|
||||||
shift
|
shift
|
||||||
CLIENTCA="$PWD/$1"
|
CLIENTCA="$(realpath $1)"
|
||||||
;;
|
;;
|
||||||
*)
|
"--jobs"|"-j")
|
||||||
help
|
if echo "$2" | grep -qx "[1-9][0-9]*"; then
|
||||||
exit 1
|
shift
|
||||||
;;
|
JOBS="$1"
|
||||||
esac
|
elif [ -f /proc/cpuinfo ]; then
|
||||||
shift
|
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
|
done
|
||||||
|
|
||||||
error() {
|
|
||||||
echo -e "Error: $1\n" >&2
|
|
||||||
help
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -z "$PEM" ] && [ -z "$SERVERCA" ] && [ -z "$CLIENTCA" ]; then
|
if [ -z "$PEM" ] && [ -z "$SERVERCA" ] && [ -z "$CLIENTCA" ]; then
|
||||||
USE_KOJI=
|
USE_KOJI=
|
||||||
else
|
else
|
||||||
if [ -z "$PEM" ] || [ -z "$SERVERCA" ] || [ -z "$CLIENTCA" ]; then
|
if [ -z "$PEM" ] || [ -z "$SERVERCA" ] || [ -z "$CLIENTCA" ]; then
|
||||||
error "Must specify all three command line options (or none)"
|
error "Must specify all three command line options (or none)"
|
||||||
fi
|
fi
|
||||||
if [ ! -f "$PEM" ]; then
|
if [ ! -f "$PEM" ]; then
|
||||||
error "Missing koji client PEM key file"
|
error "Missing koji client PEM key file"
|
||||||
fi
|
fi
|
||||||
if [ ! -f "$SERVERCA" ]; then
|
if [ ! -f "$SERVERCA" ]; then
|
||||||
error "Missing koji server CA PEM file"
|
error "Missing koji server CA PEM file"
|
||||||
fi
|
fi
|
||||||
if [ ! -f "$CLIENTCA" ]; then
|
if [ ! -f "$CLIENTCA" ]; then
|
||||||
error "Missing koji client CA PEM file"
|
error "Missing koji client CA PEM file"
|
||||||
fi
|
fi
|
||||||
USE_KOJI="yes"
|
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
|
fi
|
||||||
|
|
||||||
required_progs() {
|
required_progs() {
|
||||||
local bindir="/usr/bin"
|
local bindir="/usr/bin"
|
||||||
for f in git mock rpm rpmbuild ; do
|
for f in git mock rpm rpmbuild ; do
|
||||||
[ ! -x "${bindir}/${f}" ] && missing+="${f} "
|
[ ! -x "${bindir}/${f}" ] && missing+="${f} "
|
||||||
done
|
done
|
||||||
[ "$PEM" ] && [ ! -x /usr/bin/koji ] && missing+="koji "
|
[ "$PEM" ] && [ ! -x /usr/bin/koji ] && missing+="koji "
|
||||||
if [ -n "$missing" ]; then
|
if [ -n "$missing" ]; then
|
||||||
echo "Install the following programs and re-run this script:" >&2
|
echo "Install the following programs and re-run this script:" >&2
|
||||||
echo $missing >&2
|
echo $missing >&2
|
||||||
echo 'All programs should be provided in the "os-clr-on-clr" bundle.' >&2
|
echo 'All programs should be provided in the "os-clr-on-clr" bundle.' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
required_progs
|
required_progs
|
||||||
|
|
||||||
echo 'Initializing development workspace in "clearlinux" . . .'
|
echo "Initializing development workspace in \"$WORKSPACE\" . . ."
|
||||||
if [ -d "clearlinux" ]; then
|
|
||||||
echo 'Directory "clearlinux" already exists in current directory.' >&2
|
|
||||||
echo "Cannot initialize workspace." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir clearlinux
|
mkdir "$WORKSPACE"
|
||||||
cd clearlinux
|
cd "$WORKSPACE"
|
||||||
|
|
||||||
echo "Setting up common repo . . ."
|
echo "Setting up common repo . . ."
|
||||||
mkdir projects
|
mkdir projects
|
||||||
git clone https://github.com/clearlinux/common projects/common
|
git clone https://github.com/clearlinux/common projects/common
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Failed to clone common repo." >&2
|
echo "Failed to clone common repo." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Finish setup for packages/projects hierarchy
|
# Finish setup for packages/projects hierarchy
|
||||||
@@ -105,48 +134,52 @@ mkdir -p packages/common
|
|||||||
ln -sf ../../projects/common/Makefile.common packages/common/Makefile.common
|
ln -sf ../../projects/common/Makefile.common packages/common/Makefile.common
|
||||||
|
|
||||||
if [ "$USE_KOJI" ]; then
|
if [ "$USE_KOJI" ]; then
|
||||||
echo "Setting up koji certs . . ."
|
echo "Setting up koji certs . . ."
|
||||||
mkdir -p ~/.koji
|
mkdir -p ~/.koji
|
||||||
cp "$PEM" ~/.koji/client.crt
|
cp "$PEM" ~/.koji/client.crt
|
||||||
cp "$CLIENTCA" ~/.koji/clientca.crt
|
cp "$CLIENTCA" ~/.koji/clientca.crt
|
||||||
cp "$SERVERCA" ~/.koji/serverca.crt
|
cp "$SERVERCA" ~/.koji/serverca.crt
|
||||||
|
|
||||||
if [ ! -f /etc/koji.conf ]; then
|
if [ ! -f /etc/koji.conf ]; then
|
||||||
echo "Setting up koji config . . ."
|
echo "Setting up koji config . . ."
|
||||||
sudo cp projects/common/koji-client-files/koji.conf /etc
|
sudo cp projects/common/conf/koji.conf /etc
|
||||||
fi
|
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
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Adding user to kvm group . . ."
|
echo "Adding user to kvm group . . ."
|
||||||
sudo usermod -a -G kvm $USER
|
sudo usermod -a -G kvm $USER
|
||||||
|
|
||||||
echo "Cloning special project repositories . . ."
|
echo "Cloning special project repositories . . ."
|
||||||
make clone-projects
|
make ${JOBS_ARG} clone-projects
|
||||||
|
|
||||||
if [ -z "$NO_PACKAGE_REPOS" ]; then
|
if [ -n "$PACKAGE_REPOS" ]; then
|
||||||
echo "Cloning all package repositories . . ."
|
echo "Cloning all package repositories . . ."
|
||||||
make clone-packages
|
make ${JOBS_ARG} clone-packages
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Creating mix workspace . . ."
|
||||||
|
mkdir -p mix
|
||||||
|
|
||||||
if [ "$USE_KOJI" ]; then
|
if [ "$USE_KOJI" ]; then
|
||||||
echo "Testing koji installation . . ."
|
echo "Testing koji installation . . ."
|
||||||
if koji moshimoshi; then
|
if koji moshimoshi; then
|
||||||
echo -en "\n************************\n\n"
|
echo -en "\n************************\n\n"
|
||||||
echo "Koji installed and configured successfully"
|
echo "Koji installed and configured successfully"
|
||||||
else
|
else
|
||||||
echo -en "\n************************\n\n"
|
echo -en "\n************************\n\n"
|
||||||
echo "Error with koji installation or configuration" >&2
|
echo "Error with koji installation or configuration" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -en "\n************************\n"
|
echo -en "\n************************\n"
|
||||||
|
|
||||||
echo 'Workspace has been set up in the "clearlinux" directory'
|
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
|
||||||
echo 'NOTE: logout and log back in to finalize the setup process'
|
echo 'NOTE: logout and log back in to finalize the setup process'
|
||||||
|
|
||||||
|
|
||||||
|
# vi: ft=sh sw=2 et sts=2
|
||||||
|
|||||||
Reference in New Issue
Block a user