Compare commits

..

3 Commits

Author SHA1 Message Date
clrbuilder f20c51b4c7 Update packages file for version 35040
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2021-09-14 00:07:50 -07:00
clrbuilder 39ba8e7488 Update packages file for version 35030
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2021-09-09 00:07:51 -07:00
Patrick McCarty 3cd143d931 Add make whatrequires target
This target can be used to query direct build and runtime dependencies
of any package in Clear Linux OS. The `make help` documentation
describes the current output format and limitations.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2021-09-07 16:14:15 -07:00
2 changed files with 44 additions and 5 deletions
+38
View File
@@ -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 -5
View File
@@ -423,6 +423,7 @@ R-fitdistrplus
R-flashClust
R-flexmix
R-flexsurv
R-float
R-fontBitstreamVera
R-fontLiberation
R-fontquiver
@@ -791,6 +792,7 @@ R-rjson
R-rjstat
R-rlang
R-rle
R-rlecuyer
R-rmarkdown
R-rmatio
R-rms
@@ -1193,6 +1195,7 @@ boto
boto3
botocore
bovo
bowler
box2d
bpftrace
breeze
@@ -1340,7 +1343,6 @@ compat-enchant-soname1
compat-fuse-soname2
compat-gcc-10
compat-glibmm-soname24
compat-goocanvas-soname2
compat-gtksourceview-soname3
compat-libffi-soname6
compat-libpng-soname12
@@ -1348,11 +1350,9 @@ compat-libsigc++-soname20
compat-libva-soname1
compat-lua-52
compat-lua-53
compat-mlt-soname6
compat-nettle-soname7
compat-openexr-soname25
compat-pangomm-soname14
compat-poppler-soname111
compat-readline-soname5
compat-tracker-soname2.0
complete
@@ -1570,6 +1570,7 @@ firecracker
firefox
firewalld
fish
fissix
fixtures
flac
flake8
@@ -1965,7 +1966,6 @@ josepy
jpegoptim
jq
js8call
jsmin
json-c
json-glib
json5
@@ -2321,7 +2321,6 @@ libgee
libgeotiff
libgit2
libgit2-glib
libglade
libgnome-keyring
libgnomekbd
libgpg-error
@@ -2652,6 +2651,7 @@ mokutil
mono
monotonic
more-itertools
moreorless
moreutils
mosh
mosquitto
@@ -4412,6 +4412,7 @@ virt-viewer
virtualenv
vkd3d
vlc
volatile
volume_key
voluptuous
voluptuous-serialize