mirror of
https://github.com/clearlinux/common.git
synced 2026-06-16 19:16:00 +00:00
Compare commits
67 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 43a3640492 | |||
| 30efe3f2e6 | |||
| 41bc67d5c3 | |||
| 791e62166b | |||
| 184466de12 | |||
| f62255e8c3 | |||
| 2d1a67d3b0 | |||
| 65c7cc8db6 | |||
| 5c7f52dc15 | |||
| 6d165ea0dd | |||
| c4ce7408a7 | |||
| 2cf46aa5a4 | |||
| a84e3f08e2 | |||
| 5322002ad9 | |||
| ad8fd73cfe | |||
| 347e0e60a5 | |||
| 9fea6124da | |||
| 50711dae29 | |||
| 62dbfd1fa9 | |||
| f20c51b4c7 | |||
| 39ba8e7488 | |||
| 3cd143d931 | |||
| 8ce1020511 | |||
| c00ea07564 | |||
| 20ac5a6fca | |||
| 3c7ffcc6f8 | |||
| 75f92917fc | |||
| ebfb7792fa | |||
| 151eb80340 | |||
| c35ddf3249 | |||
| 5de267a3aa | |||
| f14316393c | |||
| a49ed4739a | |||
| 4a7900cd72 | |||
| 6f4b36eb52 | |||
| 7fcf1ca778 | |||
| ad28b67e3d | |||
| ff9ceba3c5 | |||
| 50d755e823 | |||
| cf08aaaa5d | |||
| ecc540786b | |||
| ee24dc9199 | |||
| d3616700c1 | |||
| e6f9dc64cf | |||
| c818274cec | |||
| 8094f8a358 | |||
| 1fe250bb13 | |||
| 48312c546e | |||
| 2ed43dee7c | |||
| 2c29d463aa | |||
| 916aa9ce90 | |||
| e5c860f7c9 | |||
| b9b24a353b | |||
| 45b72cc7bc | |||
| baabce03b6 | |||
| 191989a32a | |||
| f1f9d44878 | |||
| ae6182ad24 | |||
| f8bc62ae39 | |||
| e750687701 | |||
| 28747a2037 | |||
| 3208712529 | |||
| 9e94a00898 | |||
| e053e67bd5 | |||
| 68768eb65f | |||
| 2a7d53c6cd | |||
| 213b7b4d57 |
@@ -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 \
|
||||
|
||||
Binary file not shown.
+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'] = """
|
||||
|
||||
@@ -46,6 +46,7 @@ BSD-3-Clause-Attribution
|
||||
BSD-3-Clause-Clear
|
||||
BSD-3-Clause-LBNL
|
||||
BSD-3-Clause-Modification
|
||||
BSD-3-Clause-No-Military-License
|
||||
BSD-3-Clause-No-Nuclear-License
|
||||
BSD-3-Clause-No-Nuclear-License-2014
|
||||
BSD-3-Clause-No-Nuclear-Warranty
|
||||
@@ -71,30 +72,40 @@ CATOSL-1.1
|
||||
CC-BY-1.0
|
||||
CC-BY-2.0
|
||||
CC-BY-2.5
|
||||
CC-BY-2.5-AU
|
||||
CC-BY-3.0
|
||||
CC-BY-3.0-AT
|
||||
CC-BY-3.0-DE
|
||||
CC-BY-3.0-NL
|
||||
CC-BY-3.0-US
|
||||
CC-BY-4.0
|
||||
CC-BY-NC-1.0
|
||||
CC-BY-NC-2.0
|
||||
CC-BY-NC-2.5
|
||||
CC-BY-NC-3.0
|
||||
CC-BY-NC-3.0-DE
|
||||
CC-BY-NC-4.0
|
||||
CC-BY-NC-ND-1.0
|
||||
CC-BY-NC-ND-2.0
|
||||
CC-BY-NC-ND-2.5
|
||||
CC-BY-NC-ND-3.0
|
||||
CC-BY-NC-ND-3.0-DE
|
||||
CC-BY-NC-ND-3.0-IGO
|
||||
CC-BY-NC-ND-4.0
|
||||
CC-BY-NC-SA-1.0
|
||||
CC-BY-NC-SA-2.0
|
||||
CC-BY-NC-SA-2.0-FR
|
||||
CC-BY-NC-SA-2.0-UK
|
||||
CC-BY-NC-SA-2.5
|
||||
CC-BY-NC-SA-3.0
|
||||
CC-BY-NC-SA-3.0-DE
|
||||
CC-BY-NC-SA-3.0-IGO
|
||||
CC-BY-NC-SA-4.0
|
||||
CC-BY-ND-1.0
|
||||
CC-BY-ND-2.0
|
||||
CC-BY-ND-2.5
|
||||
CC-BY-ND-3.0
|
||||
CC-BY-ND-3.0-DE
|
||||
CC-BY-ND-4.0
|
||||
CC-BY-SA-1.0
|
||||
CC-BY-SA-2.0
|
||||
@@ -103,12 +114,15 @@ CC-BY-SA-2.1-JP
|
||||
CC-BY-SA-2.5
|
||||
CC-BY-SA-3.0
|
||||
CC-BY-SA-3.0-AT
|
||||
CC-BY-SA-3.0-DE
|
||||
CC-BY-SA-4.0
|
||||
CC-PDDC
|
||||
CC0-1.0
|
||||
CDDL-1.0
|
||||
CDDL-1.1
|
||||
CDL-1.0
|
||||
CDLA-Permissive-1.0
|
||||
CDLA-Permissive-2.0
|
||||
CDLA-Sharing-1.0
|
||||
CECILL-1.0
|
||||
CECILL-1.1
|
||||
@@ -288,6 +302,7 @@ NGPL
|
||||
NIST-PD
|
||||
NIST-PD-fallback
|
||||
NLOD-1.0
|
||||
NLOD-2.0
|
||||
NLPL
|
||||
NOSL
|
||||
NPL-1.0
|
||||
@@ -339,6 +354,7 @@ OLDAP-2.7
|
||||
OLDAP-2.8
|
||||
OML
|
||||
OPL-1.0
|
||||
OPUBL-1.0
|
||||
OSET-PL-2.1
|
||||
OSL-1.0
|
||||
OSL-1.1
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
compat-libsigc++-soname20 compat-libsigc-plus-plus-soname20
|
||||
gtk+ gtk-plus
|
||||
libsigc++ libsigc-plus-plus
|
||||
|
||||
Reference in New Issue
Block a user