summaryrefslogtreecommitdiff
path: root/packaging/hal-rootstrap-checker-rpmmacros
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2024-08-06 17:52:13 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2024-08-09 17:49:22 +0900
commitc434d0b89879db6aa85a45f8bc5f57bead0fe8b5 (patch)
treedd8002c945537dbb4904879b81d50cedd3fe91c4 /packaging/hal-rootstrap-checker-rpmmacros
parent58a8adc47a74bd7e968525c942326d4654af9671 (diff)
downloadrootstrap-c434d0b89879db6aa85a45f8bc5f57bead0fe8b5.tar.gz
rootstrap-c434d0b89879db6aa85a45f8bc5f57bead0fe8b5.tar.bz2
rootstrap-c434d0b89879db6aa85a45f8bc5f57bead0fe8b5.zip
The hal-rootstrap-checker is mainly for screening packages out from build that have dependencies to unmanaged, especially ABI incompatible, packages. It operates after every %install stage of rpmbuild, aided by rpm macro. Those managed/unmanaged packages can be configured by yaml file described below. The rpm package has implemented empty macro, %{__hal_rootstrap_checker_install_post} and the rpmbuild has gained 'Requires' dependency to the hal-rootstrap-checker, making the hal-rootstrap-checker overwrite the macro with its macro, executing hal-rootstrap-checker.sh. See hal-rootstrap-checker-rpmmacros. The hal-rootstrap-checker.sh can be configured by yaml file with the same name. The default one is /etc/hal/rootstrap/hal-rootstrap-checker.yaml. And there can be another one, /etc/hal/rootstrap/rules.d/hal-rootstrap-checker.yaml, which shades the default configuration, and it gives a way for applying custom defined configuration. For those details about configuration attributes, see the yaml file. Change-Id: I354f154fa6ac670c2e95fc09b947dbc4ecfaf229 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Diffstat (limited to 'packaging/hal-rootstrap-checker-rpmmacros')
-rw-r--r--packaging/hal-rootstrap-checker-rpmmacros3
1 files changed, 3 insertions, 0 deletions
diff --git a/packaging/hal-rootstrap-checker-rpmmacros b/packaging/hal-rootstrap-checker-rpmmacros
new file mode 100644
index 0000000..77a7054
--- /dev/null
+++ b/packaging/hal-rootstrap-checker-rpmmacros
@@ -0,0 +1,3 @@
+%__hal_rootstrap_checker_install_post \
+ /etc/hal/rootstrap/hal-rootstrap-checker.sh %{!?disable_hal_rootstrap_checker:0}%{?disable_hal_rootstrap_checker} %{_sourcedir} \
+%{nil}