mirror of
https://github.com/clearlinux/common.git
synced 2026-06-16 11:06:15 +00:00
Compare commits
46 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c89e0eb2fd | |||
| e2f31cb9a0 | |||
| a733e9f48f | |||
| 57f1b9f792 | |||
| 08452bcc6f | |||
| 648e696701 | |||
| aa87b84d0d | |||
| a601daae51 | |||
| 0e69bbe5f1 | |||
| c976fe32c8 | |||
| 21cd35e7ab | |||
| 2cdd46b1ce | |||
| 081f8efa29 | |||
| 726481d384 | |||
| 49ce6661a3 | |||
| aba3ecef75 | |||
| bf40bb0056 | |||
| 8e349a2441 | |||
| c9a3ea50df | |||
| 1e4b77528c | |||
| e5fe3a6a3d | |||
| 27cb95023f | |||
| 4402706e5b | |||
| 046035907a | |||
| 43a3640492 | |||
| 30efe3f2e6 | |||
| 41bc67d5c3 | |||
| 791e62166b | |||
| 184466de12 | |||
| f62255e8c3 | |||
| 2d1a67d3b0 | |||
| 65c7cc8db6 | |||
| 5c7f52dc15 | |||
| 6d165ea0dd | |||
| c4ce7408a7 | |||
| 2cf46aa5a4 | |||
| a84e3f08e2 | |||
| 5322002ad9 | |||
| ad8fd73cfe | |||
| 347e0e60a5 | |||
| 9fea6124da | |||
| 50711dae29 | |||
| 62dbfd1fa9 | |||
| f20c51b4c7 | |||
| 39ba8e7488 | |||
| 3cd143d931 |
@@ -522,6 +522,44 @@ cloc: $(SRPMFILE)
|
||||
@$(MOCK) --clean --scrub=chroot --uniqueext=$(PKG_NAME)
|
||||
cat results/cloc.txt
|
||||
|
||||
.PHONY: whatrequires
|
||||
#help whatrequires: Output a list of packages that directly depend on this one,
|
||||
#help showing the subpackage-level breakdown. Each line of output has the format
|
||||
#help "SUBPACKAGE(|SYMBOL)? <- PACKAGE (ARCH)". If ARCH is "src", the meaning is
|
||||
#help "PACKAGE has a BuildRequires (build dependency) on SUBPACKAGE". And if ARCH
|
||||
#help is "x86_64", the meaning is "PACKAGE has a Requires (runtime dependency) on
|
||||
#help SUBPACKAGE". The optional "|SYMBOL" portion is printed when the symbol
|
||||
#help required does not match the subpackage name. Note that the ability to query
|
||||
#help version-qualified dependencies is not yet implemented... (For example, if
|
||||
#help python3-core provides the version-qualified symbol "python(abi) = 3.9",
|
||||
#help running `make whatrequires` for `python3` will detect packages that depend on
|
||||
#help "python(abi)", but not "python(abi) = 3.9".)
|
||||
whatrequires:
|
||||
@Q="dnf --config=${PM_CONF} repoquery --quiet --releasever=clear"; \
|
||||
TMP=$$(mktemp -d); trap "rm -rf $$TMP" EXIT; \
|
||||
$${Q} --provides ${PKG_NAME} | awk '{ print $$1 }' > $$TMP/${PKG_NAME}; \
|
||||
( \
|
||||
while read -r provide; do \
|
||||
$${Q} --qf="${PKG_NAME} <- %{NAME} (x86_64)" --arch=x86_64 --srpm --whatrequires $$provide; \
|
||||
$${Q} --qf="${PKG_NAME} <- %{NAME} (src)" --arch=src --whatrequires $$provide; \
|
||||
done < $$TMP/${PKG_NAME} \
|
||||
) | awk '$$3 != "${PKG_NAME}"' | LC_COLLATE=C sort -u; \
|
||||
sed -n 's/^%package *\(.*\)$$/\1/p' ${PKG_NAME}.spec | sort > $$TMP/subpkgs; \
|
||||
while read -r val; do \
|
||||
if grep -qE '^-n +' <<< $$val; then \
|
||||
subpkg=$$(awk '{ print $$2 }' <<< $$val); \
|
||||
else \
|
||||
subpkg=${PKG_NAME}-$$val; \
|
||||
fi; \
|
||||
$${Q} --provides $$subpkg | awk '{ print $$1 }' > $$TMP/$$subpkg; \
|
||||
( \
|
||||
while read -r provide; do \
|
||||
$${Q} --qf="$$subpkg|$$provide <- %{NAME} (x86_64)" --arch=x86_64 --srpm --whatrequires $$provide; \
|
||||
$${Q} --qf="$$subpkg|$$provide <- %{NAME} (src)" --arch=src --whatrequires $$provide; \
|
||||
done < $$TMP/$$subpkg \
|
||||
) | awk '$$3 != "${PKG_NAME}"' | sed "s/^$$subpkg|\($$subpkg\)/\1/" | LC_COLLATE=C sort -u; \
|
||||
done < $$TMP/subpkgs
|
||||
|
||||
# Define LTS-specific targets in a separate makefile
|
||||
-include $(TOPLVL)/projects/common/Makefile.common.lts
|
||||
|
||||
|
||||
+6
-6
@@ -31,11 +31,13 @@ $(proj_PKGS):
|
||||
@proj=$(patsubst proj_%,%,$@); \
|
||||
[ -d projects/$$proj ] || ( \
|
||||
echo "Checking out: projects/$$proj"; \
|
||||
git clone $(PRJ_BASE_URL)/$$proj projects/$$proj; \
|
||||
cd projects/$$proj; \
|
||||
if [ "$$proj" = "autospec" ] ; then \
|
||||
git remote set-url --push origin git@github.com:clearlinux/autospec.git; \
|
||||
git clone https://github.com/clearlinux/autospec.git projects/autospec; \
|
||||
else \
|
||||
git clone $(PRJ_BASE_URL)/$$proj projects/$$proj; \
|
||||
fi; \
|
||||
cd projects/$$proj; \
|
||||
if [ "$$proj" != "autospec" ] ; then \
|
||||
$(call gitoliteurl,projects/$$proj); \
|
||||
fi; \
|
||||
$(call subjectprefix,$$proj); \
|
||||
@@ -76,9 +78,7 @@ ${PULL_PKGS}:
|
||||
fi ; \
|
||||
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit $$O..$$N; echo; \
|
||||
fi ; \
|
||||
if [ "$$p" = "projects/autospec" ] ; then \
|
||||
git remote set-url --push origin git@github.com:clearlinux/autospec.git; \
|
||||
else \
|
||||
if [ "$$p" != "projects/autospec" ] ; then \
|
||||
$(call gitoliteurl,$$p); \
|
||||
fi ; \
|
||||
else \
|
||||
|
||||
+2
-2
@@ -4,14 +4,14 @@ config_opts['legal_host_arches'] = ('x86_64',)
|
||||
config_opts['chroot_setup_cmd'] = 'groupinstall build srpm-build'
|
||||
config_opts['dist'] = 'clear' # only useful for --resultdir variable subst
|
||||
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 {{chrootuid}} -g {{chrootgid}} -d {{chroothome}} {{chrootuser}}'
|
||||
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['package_manager'] = 'dnf'
|
||||
config_opts['chrootgroup'] = 'mockbuild'
|
||||
config_opts['use_bootstrap_container'] = False
|
||||
config_opts['use_bootstrap'] = False
|
||||
|
||||
|
||||
config_opts['dnf.conf'] = """
|
||||
|
||||
Reference in New Issue
Block a user