mirror of
https://github.com/clearlinux/common.git
synced 2026-09-07 14:24:05 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6bc7acd818 | ||
|
|
3dca4d2ecc | ||
|
|
87d9c543ff | ||
|
|
789f1ca94c | ||
|
|
2b76e56f69 | ||
|
|
2ccf4b068a | ||
|
|
bf315f828f | ||
|
|
5a5bac8596 | ||
|
|
9e42d678ec | ||
|
|
60b1c5cf68 | ||
|
|
2325c43369 | ||
|
|
9f72f5fc40 | ||
|
|
757dcd348d | ||
|
|
d2e4833782 | ||
|
|
9e5766df8c | ||
|
|
009b7a10e1 | ||
|
|
249cbb0ea6 | ||
|
|
4a690a35dc | ||
|
|
d1a7caafcd | ||
|
|
1023b3c6cc | ||
|
|
2affe6047a | ||
|
|
2a10dd326d | ||
|
|
2d360228ce | ||
|
|
a8641f898f | ||
|
|
fd412b15a5 | ||
|
|
eb579ba11d | ||
|
|
c545a66185 | ||
|
|
f4f726d8e0 | ||
|
|
8f385c3366 | ||
|
|
305bf6f63b | ||
|
|
4797950600 | ||
|
|
18b1f4841d | ||
|
|
2a061d8ec2 | ||
|
|
47927ff332 | ||
|
|
80bb811f5f | ||
|
|
71827cbf99 | ||
|
|
84a9b62e3f | ||
|
|
0dfb2f6ef5 | ||
|
|
59a46563cf | ||
|
|
a198b2d0a0 | ||
|
|
9574f4ecde | ||
|
|
649f1e38de | ||
|
|
0b86a75a10 | ||
|
|
a06eab078d | ||
|
|
d4ea9f57dc | ||
|
|
ee0847f750 | ||
|
|
98047e4b8e | ||
|
|
aa98640939 | ||
|
|
2b355f3fcb | ||
|
|
57632934c0 | ||
|
|
a4b3da2bca | ||
|
|
f0f2ae6fdf | ||
|
|
9d82331cfa | ||
|
|
ea568f6239 | ||
|
|
4e2e716a76 | ||
|
|
c64bda09fc | ||
|
|
65c5758c08 | ||
|
|
3d334b1fd4 | ||
|
|
31399a1cb7 | ||
|
|
d7bff595de | ||
|
|
3f53222de8 | ||
|
|
4435eace17 | ||
|
|
e971c54843 | ||
|
|
c5df45b631 | ||
|
|
1123cf8edc | ||
|
|
779526d7a4 | ||
|
|
8280750fe8 | ||
|
|
72414dec9f | ||
|
|
61fa7c0655 | ||
|
|
c30c608d19 | ||
|
|
b9702018c7 | ||
|
|
50e2a1d14e | ||
|
|
941bc3100e | ||
|
|
2971492feb | ||
|
|
faa11f738d | ||
|
|
4db065fa34 | ||
|
|
07cf4c7085 | ||
|
|
82baba5b88 | ||
|
|
257ff7bc57 | ||
|
|
80d1f17444 | ||
|
|
4f059caffc | ||
|
|
7d2f1d5e1d | ||
|
|
d36404255b | ||
|
|
88dd353e21 | ||
|
|
c232a0f6c2 |
+31
-45
@@ -21,7 +21,8 @@ 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_OPTS)
|
MOCK_SMP_FLAGS=$(patsubst -j%, -D_smp_mflags\ -j%,$(filter -j%, $(MAKEFLAGS)))
|
||||||
|
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONFIG_VAL) $(MOCK_SMP_FLAGS) $(MOCK_OPTS)
|
||||||
|
|
||||||
ifneq ($(wildcard upstream),)
|
ifneq ($(wildcard upstream),)
|
||||||
__allsources := $(notdir $(strip $(shell cat upstream)))
|
__allsources := $(notdir $(strip $(shell cat upstream)))
|
||||||
@@ -172,7 +173,7 @@ autospec: preautospec-checks pullrebase localreponotice clean-old-content
|
|||||||
--name $(PKG_NAME) \
|
--name $(PKG_NAME) \
|
||||||
--archives $(ARCHIVES) \
|
--archives $(ARCHIVES) \
|
||||||
--mock-config $(MOCK_CONFIG_VAL) \
|
--mock-config $(MOCK_CONFIG_VAL) \
|
||||||
--mock-opts="$(MOCK_OPTS)" \
|
--mock-opts="$(MOCK_SMP_FLAGS) $(MOCK_OPTS)" \
|
||||||
$${SETVERSION:+ --version $${SETVERSION}} \
|
$${SETVERSION:+ --version $${SETVERSION}} \
|
||||||
$${NON_INTERACTIVE:+ --non_interactive} \
|
$${NON_INTERACTIVE:+ --non_interactive} \
|
||||||
$${SKIP_GIT:+ --skip-git} \
|
$${SKIP_GIT:+ --skip-git} \
|
||||||
@@ -349,11 +350,6 @@ rekoji-nowait:
|
|||||||
logcheck:
|
logcheck:
|
||||||
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
||||||
|
|
||||||
$(TOPLVL)/repo:
|
|
||||||
@echo "Creating local RPM repository $(TOPLVL)/repo"
|
|
||||||
mkdir $(TOPLVL)/repo
|
|
||||||
$(MAKE) localrepocreate
|
|
||||||
|
|
||||||
#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.
|
||||||
@@ -361,22 +357,16 @@ repoadd: $(TOPLVL)/repo
|
|||||||
@if [ -z "${LATEST_RPMS}" ]; then \
|
@if [ -z "${LATEST_RPMS}" ]; then \
|
||||||
echo "No rpms found in rpms/ directory."; \
|
echo "No rpms found in rpms/ directory."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi
|
||||||
if [ -f .repo-index ]; then \
|
$(MAKE) -s repodel NO_CREATEREPO=1
|
||||||
echo "Cleaning old rpms:"; \
|
@echo "Adding new rpms:"; \
|
||||||
for r in `cat .repo-index`; do \
|
for rpm in ${LATEST_RPMS}; do \
|
||||||
echo "-$$r"; \
|
echo "+$${rpm#rpms/}"; \
|
||||||
rm -f $(TOPLVL)/repo/$$r; \
|
echo "$${rpm#rpms/}" >> .repo-index; \
|
||||||
done; \
|
done; \
|
||||||
rm .repo-index; \
|
flock $</repo.lock ln -f -t $< ${LATEST_RPMS}
|
||||||
fi; \
|
$(MAKE) -s localrepocreate
|
||||||
for r in ${LATEST_RPMS}; do \
|
$(MAKE) -s localrepoenable
|
||||||
echo "+$$r"; \
|
|
||||||
echo $$(basename $$r) >> .repo-index; \
|
|
||||||
ln -f $$r $(TOPLVL)/repo/; \
|
|
||||||
done
|
|
||||||
$(MAKE) localrepocreate
|
|
||||||
$(call localrepoenable,${PM_CONF},${MOCK_CONF})
|
|
||||||
|
|
||||||
#help repostage: Stages locally-built RPMs for this package to the local RPM
|
#help repostage: Stages locally-built RPMs for this package to the local RPM
|
||||||
#help directory. If this directory does not yet exist, it is created and
|
#help directory. If this directory does not yet exist, it is created and
|
||||||
@@ -385,37 +375,33 @@ repostage: $(TOPLVL)/repo
|
|||||||
@if [ -z "${LATEST_RPMS}" ]; then \
|
@if [ -z "${LATEST_RPMS}" ]; then \
|
||||||
echo "No rpms found in rpms/ directory."; \
|
echo "No rpms found in rpms/ directory."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi
|
||||||
if [ -f .repo-index ]; then \
|
$(MAKE) -s repodel NO_CREATEREPO=1
|
||||||
echo "Cleaning old rpms:"; \
|
@for r in ${LATEST_RPMS}; do \
|
||||||
for r in `cat .repo-index`; do \
|
echo "+$${rpm#rpms/}"; \
|
||||||
echo "-$$r"; \
|
echo "$${rpm#rpms/}" >> .repo-index; \
|
||||||
rm -f $(TOPLVL)/repo/$$r; \
|
done; \
|
||||||
done; \
|
flock $</repo.lock ln -f -t $< ${LATEST_RPMS}
|
||||||
rm .repo-index; \
|
|
||||||
fi; \
|
|
||||||
for r in ${LATEST_RPMS}; do \
|
|
||||||
echo "+$$r"; \
|
|
||||||
echo $$(basename $$r) >> .repo-index; \
|
|
||||||
ln -f $$r $(TOPLVL)/repo/; \
|
|
||||||
done
|
|
||||||
|
|
||||||
#help repodel: Removes RPMs from the local RPM repository that were
|
#help repodel: Removes RPMs from the local RPM repository that were
|
||||||
#help previously added by 'make repoadd' for this package.
|
#help previously added by 'make repoadd' for this package.
|
||||||
repodel:
|
repodel: $(TOPLVL)/repo
|
||||||
@if [ -f .repo-index ]; then \
|
@if [ -f .repo-index ]; then \
|
||||||
echo "Cleaning old rpms:"; \
|
echo "Cleaning old rpms:"; \
|
||||||
for r in `cat .repo-index`; do \
|
mapfile -t rpms < <(sed 's|.*|$</&|' .repo-index); \
|
||||||
echo "-$$r"; \
|
for rpm in "$${rpms[@]}"; do \
|
||||||
rm -f $(TOPLVL)/repo/$$r; \
|
echo "-$${rpm#$</}"; \
|
||||||
done; \
|
done < .repo-index; \
|
||||||
|
flock $</repo.lock rm -f "$${rpms[@]}"; \
|
||||||
rm .repo-index; \
|
rm .repo-index; \
|
||||||
$(MAKE) localrepocreate; \
|
if [ -z "$$NO_CREATEREPO" ]; then \
|
||||||
|
$(MAKE) -s localrepocreate; \
|
||||||
|
fi; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#help repoenable: Enables the local RPM repository for use with Yum/DNF and
|
#help repoenable: Enables the local RPM repository for use with Yum/DNF and
|
||||||
#help Mock. If this repository does not yet exist, it is created.
|
#help Mock. If this repository does not yet exist, it is created.
|
||||||
repoenable: $(TOPLVL)/repo ; $(call localrepoenable,${PM_CONF},${MOCK_CONF})
|
repoenable: localrepoenable ;
|
||||||
|
|
||||||
#help repodisable: Disables the local RPM repository.
|
#help repodisable: Disables the local RPM repository.
|
||||||
repodisable: localrepodisable ;
|
repodisable: localrepodisable ;
|
||||||
@@ -512,7 +498,7 @@ generateupstream:
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
fi; \
|
fi; \
|
||||||
echo $$(sha1sum $$filename | cut -d\ -f1)/$$filename >> upstream; \
|
echo $$(sha1sum -- $$filename | cut -d\ -f1)/$$filename >> upstream; \
|
||||||
done
|
done
|
||||||
@rm -f upstream.bak
|
@rm -f upstream.bak
|
||||||
@cat upstream
|
@cat upstream
|
||||||
|
|||||||
+79
-17
@@ -62,33 +62,95 @@ define remotepkgname
|
|||||||
$(if $(USE_PACKAGE_MAPPING),$$(awk -v P="$(1)" '$$1 == P { res=$$2 } END { print res ? res : P }' $(TOPLVL)/projects/common/pkg-mapping),$(1))
|
$(if $(USE_PACKAGE_MAPPING),$$(awk -v P="$(1)" '$$1 == P { res=$$2 } END { print res ? res : P }' $(TOPLVL)/projects/common/pkg-mapping),$(1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# Clone repo from the configured gitolite instance, but only if the repo exists
|
||||||
|
# on that instance and matches the pattern "packages/..*".
|
||||||
|
define try-clone-gitolite
|
||||||
|
rpkg=$(call remotepkgname,$(1)); \
|
||||||
|
if ssh $(GITOLITE_BASE_URL) info "packages/$$rpkg" | grep --quiet "packages/$$rpkg$$"; then \
|
||||||
|
git clone $(PKG_BASE_URL)/$$rpkg packages/$(1); \
|
||||||
|
cd packages/$(1); \
|
||||||
|
$(call gitoliteurl,packages/$(1)); \
|
||||||
|
$(call subjectprefix,$(1)); \
|
||||||
|
fi
|
||||||
|
endef
|
||||||
|
|
||||||
|
# Clone repo from the configured package repo hosting location, as defined by
|
||||||
|
# the PKG_BASE_URL variable, but only if the repo exists.
|
||||||
|
define try-clone-other
|
||||||
|
rpkg=$(call remotepkgname,$(1)); \
|
||||||
|
if git ls-remote $(PKG_BASE_URL)/$$rpkg &> /dev/null; then \
|
||||||
|
git clone $(PKG_BASE_URL)/$$rpkg packages/$(1); \
|
||||||
|
cd packages/$(1); \
|
||||||
|
$(call subjectprefix,$(1)); \
|
||||||
|
fi
|
||||||
|
endef
|
||||||
|
|
||||||
|
# First, try running `make clone_PKG`, where PKG is the first argument. If that
|
||||||
|
# fails, proceed with fallback cloning strategies.
|
||||||
|
define clone-if-available
|
||||||
|
$(MAKE) clone_$(1) || { \
|
||||||
|
$(if $(GITOLITE_BASE_URL),$(call try-clone-gitolite,$(1)),$(call try-clone-other,$(1))); \
|
||||||
|
}
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(TOPLVL)/repo:
|
||||||
|
@echo "Creating local RPM repository $(TOPLVL)/repo"
|
||||||
|
mkdir $(TOPLVL)/repo
|
||||||
|
|
||||||
# Enables the local RPM repo by installing package manager and Mock configs.
|
# Enables the local RPM repo by installing package manager and Mock configs.
|
||||||
# First argument is the path to the package manager config, and the second
|
# First argument is the path to the package manager config, and the second
|
||||||
# argument is the path to the mock config. Each of these config files is
|
# argument is the path to the mock config. Each of these config files is
|
||||||
# augmented for local repo support.
|
# augmented for local repo support.
|
||||||
define localrepoenable
|
localrepoenable: $(TOPLVL)/repo
|
||||||
@cp $(1) $(TOPLVL)/repo/yum.conf
|
@if grep -qx '\[localrepo\]' ${PM_CONF}; then \
|
||||||
@printf "\n\n[local]\nname=Local\nfailovermethod=priority\nenabled=1\ngpgcheck=0\npriority=1\n" >> $(TOPLVL)/repo/yum.conf
|
echo "[ERROR] ${PM_CONF} contains section named [localrepo]."; \
|
||||||
@printf "baseurl=file://$$(realpath $(TOPLVL))/repo/\n\n" >> $(TOPLVL)/repo/yum.conf
|
echo "[ERROR] Remove that section and try again."; \
|
||||||
@cp $(2) $(TOPLVL)/repo/clear.cfg
|
exit 1; \
|
||||||
@printf "\n\n[localrepo]\nname=Local repo\nfailovermethod=priority\nenabled=1\ngpgcheck=0\npriority=1\n" >> $(TOPLVL)/repo/clear.cfg
|
fi >&2
|
||||||
@printf "baseurl=file://$$(realpath $(TOPLVL))/repo/\n\n" >> $(TOPLVL)/repo/clear.cfg
|
@if grep -qx '\[localrepo\]' ${MOCK_CONF}; then \
|
||||||
@sed -i '/^"""/d; $$a"""' $(TOPLVL)/repo/clear.cfg
|
echo "[ERROR] ${MOCK_CONF} contains section named [localrepo]."; \
|
||||||
endef
|
echo "[ERROR] Remove that section and try again."; \
|
||||||
|
exit 1; \
|
||||||
|
fi >&2
|
||||||
|
@last="$$(tail -n 1 ${MOCK_CONF})"; \
|
||||||
|
if [[ "$$last" != "\"\"\"" ]]; then \
|
||||||
|
echo "[ERROR] Last line of ${MOCK_CONF} is malformed; expected: \"\"\"; actual: $$last"; \
|
||||||
|
echo "[ERROR] Fix that line and try again."; \
|
||||||
|
exit 1; \
|
||||||
|
fi >&2
|
||||||
|
@pm_new=$$(mktemp -p $< yum.conf.XXXXXXX); \
|
||||||
|
pm_orig=$</yum.conf; \
|
||||||
|
mock_new=$$(mktemp -p $< clear.cfg.XXXXXXX); \
|
||||||
|
mock_orig=$</clear.cfg; \
|
||||||
|
cp ${PM_CONF} $$pm_new; \
|
||||||
|
printf "\n\n[localrepo]\nname=localrepo\nfailovermethod=priority\nenabled=1\ngpgcheck=0\npriority=1\n" >> $$pm_new; \
|
||||||
|
printf "baseurl=file://$$(realpath $<)/\n\n" >> $$pm_new; \
|
||||||
|
if ! cmp -s $$pm_new $$pm_orig; then \
|
||||||
|
flock $</repo.lock mv $$pm_new $$pm_orig; \
|
||||||
|
fi; \
|
||||||
|
rm -f $$pm_new; \
|
||||||
|
cp ${MOCK_CONF} $$mock_new; \
|
||||||
|
sed -i '$$d' $$mock_new; \
|
||||||
|
printf "\n\n[localrepo]\nname=localrepo\nfailovermethod=priority\nenabled=1\ngpgcheck=0\npriority=1\n" >> $$mock_new; \
|
||||||
|
printf "baseurl=file://$$(realpath $<)/\n\n" >> $$mock_new; \
|
||||||
|
sed -i '$$a"""' $$mock_new; \
|
||||||
|
if ! cmp -s $$mock_new $$mock_orig; then \
|
||||||
|
flock $</repo.lock mv $$mock_new $$mock_orig; \
|
||||||
|
fi; \
|
||||||
|
rm -f $$mock_new
|
||||||
|
|
||||||
# Disables the local RPM repo by removing the installed package manager and
|
# Disables the local RPM repo by removing the installed package manager and
|
||||||
# Mock configuration files.
|
# Mock configuration files.
|
||||||
localrepodisable:
|
localrepodisable: $(TOPLVL)/repo
|
||||||
@rm -f $(TOPLVL)/repo/yum.conf
|
flock $</repo.lock rm -f $</yum.conf $</clear.cfg
|
||||||
@rm -f $(TOPLVL)/repo/clear.cfg
|
|
||||||
|
|
||||||
# Runs createrepo_c (or createrepo) for the local RPM repo
|
# Runs createrepo_c for the local RPM repo
|
||||||
localrepocreate:
|
localrepocreate: $(TOPLVL)/repo
|
||||||
( cd $(TOPLVL)/repo ; if type createrepo_c 1>/dev/null 2>&1; then createrepo_c .; else createrepo .; fi );
|
cd $< && flock repo.lock createrepo_c .
|
||||||
|
|
||||||
# Remove all RPMs from the local RPM repo
|
# Remove all RPMs from the local RPM repo
|
||||||
localrepoclean:
|
localrepoclean: $(TOPLVL)/repo
|
||||||
@find $(TOPLVL)/repo -maxdepth 1 -name '*.rpm' -delete
|
flock $</repo.lock find $< -maxdepth 1 -name '*.rpm' -delete
|
||||||
|
|
||||||
# Summarizes the local RPM repo status
|
# Summarizes the local RPM repo status
|
||||||
localrepostatus:
|
localrepostatus:
|
||||||
|
|||||||
+11
-7
@@ -166,6 +166,15 @@ diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
|||||||
(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 log: Run git log origin/master..HEAD for all package repos, thus
|
||||||
|
#help displaying any committed but unpushed changes.
|
||||||
|
log: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
|
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
|
||||||
|
( cd $$p; if [ "$$(git rev-parse --verify HEAD)" != "$$(git rev-parse --verify origin/master)" ] ; then \
|
||||||
|
echo $$p ; git --no-pager log --pretty="format:%s" origin/master..HEAD ; echo ; echo;\
|
||||||
|
fi ; ) \
|
||||||
|
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_LOCAL))
|
versions: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in $(addprefix packages/,$(PKGS_LOCAL)); do \
|
@for p in $(addprefix packages/,$(PKGS_LOCAL)); do \
|
||||||
@@ -196,7 +205,7 @@ autospecnew: preautospecnew-checks localreponotice
|
|||||||
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)
|
$(call clone-if-available,$(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); \
|
||||||
@@ -281,14 +290,9 @@ autospecnewgo: preautospecnew-checks localreponotice
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(TOPLVL)/repo:
|
|
||||||
@echo "Creating local RPM repository $(TOPLVL)/repo"
|
|
||||||
mkdir $(TOPLVL)/repo
|
|
||||||
$(MAKE) localrepocreate
|
|
||||||
|
|
||||||
#help repoenable: Enables the local RPM repository for use with Yum/DNF and
|
#help repoenable: Enables the local RPM repository for use with Yum/DNF and
|
||||||
#help Mock. If this repository does not yet exist, it is created.
|
#help Mock. If this repository does not yet exist, it is created.
|
||||||
repoenable: $(TOPLVL)/repo ; $(call localrepoenable,${PM_CONF},${MOCK_CONF})
|
repoenable: localrepoenable ;
|
||||||
|
|
||||||
#help repodisable: Disables the local RPM repository.
|
#help repodisable: Disables the local RPM repository.
|
||||||
repodisable: localrepodisable ;
|
repodisable: localrepodisable ;
|
||||||
|
|||||||
+10
-2
@@ -244,14 +244,15 @@ def main():
|
|||||||
|
|
||||||
zap_line_in_file_start(".spec", "Release :")
|
zap_line_in_file_start(".spec", "Release :")
|
||||||
zap_line_in_file_start(".spec", "Source99 :")
|
zap_line_in_file_start(".spec", "Source99 :")
|
||||||
zap_line_in_file_start(".spec", "Source0 :")
|
|
||||||
zap_line_in_file_start(".spec", "export SOURCE_DATE_EPOCH")
|
zap_line_in_file_start(".spec", "export SOURCE_DATE_EPOCH")
|
||||||
zap_line_in_file_start(".spec", "export AR=gcc-ar")
|
zap_line_in_file_start(".spec", "export AR=gcc-ar")
|
||||||
zap_line_in_file_start(".spec", "export RANLIB=gcc-ranlib")
|
zap_line_in_file_start(".spec", "export RANLIB=gcc-ranlib")
|
||||||
zap_line_in_file_start(".spec", "export NM=gcc-nm")
|
zap_line_in_file_start(".spec", "export NM=gcc-nm")
|
||||||
zap_line_in_file_start(".spec", "export CFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
|
zap_line_in_file_start(".spec", "export CFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
|
||||||
zap_line_in_file_start(".spec", "export FCFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
|
zap_line_in_file_start(".spec", "export FCFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
|
||||||
|
zap_line_in_file_start(".spec", "export FCFLAGS=\"$FFLAGS -O3 -ffat-lto-objects -flto=4 \"")
|
||||||
zap_line_in_file_start(".spec", "export FFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
|
zap_line_in_file_start(".spec", "export FFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
|
||||||
|
zap_line_in_file_start(".spec", "export FFLAGS=\"$FFLAGS -O3 -ffat-lto-objects -flto=4 \"")
|
||||||
zap_line_in_file_start(".spec", "export CXXFLAGS=\"$CXXFLAGS -O3 -ffat-lto-objects -flto=4 \"")
|
zap_line_in_file_start(".spec", "export CXXFLAGS=\"$CXXFLAGS -O3 -ffat-lto-objects -flto=4 \"")
|
||||||
zap_line_in_file_start(".spec", "%setup -q -n ")
|
zap_line_in_file_start(".spec", "%setup -q -n ")
|
||||||
zap_line_in_file_start(".spec", "URL :")
|
zap_line_in_file_start(".spec", "URL :")
|
||||||
@@ -288,13 +289,15 @@ def main():
|
|||||||
zap_line_in_file_start(".spec", "cp -a ")
|
zap_line_in_file_start(".spec", "cp -a ")
|
||||||
zap_line_in_file_start(".spec", "cd %{_builddir}/")
|
zap_line_in_file_start(".spec", "cd %{_builddir}/")
|
||||||
zap_line_in_file_start(".spec", "export GCC_IGNORE_WERROR=1")
|
zap_line_in_file_start(".spec", "export GCC_IGNORE_WERROR=1")
|
||||||
|
zap_line_in_file_start(".spec", "rm -rf %{buildroot}")
|
||||||
|
|
||||||
zap_line_in_file_start("b/Makefile", "URL =")
|
zap_line_in_file_start("b/Makefile", "URL =")
|
||||||
zap_line_in_file_start("b/Makefile", "PKG_NAME :=")
|
zap_line_in_file_start("b/Makefile", "PKG_NAME :=")
|
||||||
|
|
||||||
|
zap_line_in_file_start("b/options.conf", "name = ")
|
||||||
zap_line_in_file("b/options.conf", "archives = ")
|
zap_line_in_file("b/options.conf", "archives = ")
|
||||||
zap_line_in_file("b/options.conf", "giturl = ")
|
zap_line_in_file("b/options.conf", "giturl = ")
|
||||||
zap_line_in_file("b/options.conf", "url = ")
|
zap_line_in_file_start("b/options.conf", "url = ")
|
||||||
zap_line_in_file("b/options.conf", "[package]")
|
zap_line_in_file("b/options.conf", "[package]")
|
||||||
zap_line_in_file("b/options.conf", "")
|
zap_line_in_file("b/options.conf", "")
|
||||||
zap_line_in_file("b/options.conf", "[autospec]")
|
zap_line_in_file("b/options.conf", "[autospec]")
|
||||||
@@ -351,8 +354,13 @@ def main():
|
|||||||
zap_line_in_file("b/options.conf", "# require package verification for build")
|
zap_line_in_file("b/options.conf", "# require package verification for build")
|
||||||
zap_line_in_file("b/options.conf", "verify_required = true")
|
zap_line_in_file("b/options.conf", "verify_required = true")
|
||||||
zap_line_in_file("b/options.conf", "# do not generate debuginfo for this package")
|
zap_line_in_file("b/options.conf", "# do not generate debuginfo for this package")
|
||||||
|
zap_line_in_file("b/options.conf", "# configure build also for openmpi")
|
||||||
|
zap_line_in_file("b/options.conf", "openmpi = false")
|
||||||
|
zap_line_in_file("b/options.conf", "alias =")
|
||||||
|
zap_line_in_file("b/options.conf", "alias = ")
|
||||||
zap_line_in_file("b/options.conf", "nodebug = false")
|
zap_line_in_file("b/options.conf", "nodebug = false")
|
||||||
zap_line_in_file("b/options.conf", "domain =")
|
zap_line_in_file("b/options.conf", "domain =")
|
||||||
|
zap_line_in_file("b/options.conf", "domain = ")
|
||||||
|
|
||||||
zap_line_in_file("b/buildreq_add", "# This file contains additional build requirements that did not get")
|
zap_line_in_file("b/buildreq_add", "# This file contains additional build requirements that did not get")
|
||||||
zap_line_in_file("b/buildreq_add", "# picked up automatically. One name per line, no whitespace.")
|
zap_line_in_file("b/buildreq_add", "# picked up automatically. One name per line, no whitespace.")
|
||||||
|
|||||||
Reference in New Issue
Block a user