[PATCH] docs/sphinx/dbus: register build dependency

marcandre.lureau@redhat.com posted 1 patch 2 weeks, 5 days ago
Maintainers: "Marc-André Lureau" <marcandre.lureau@redhat.com>, John Snow <jsnow@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Mauro Carvalho Chehab <mchehab+huawei@kernel.org>, Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
docs/sphinx/dbusdoc.py | 1 +
1 file changed, 1 insertion(+)
[PATCH] docs/sphinx/dbus: register build dependency
Posted by marcandre.lureau@redhat.com 2 weeks, 5 days ago
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Touching dbus xml file wasn't enough to trigger a new build because
the file wasn't registered to the dependency system.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 docs/sphinx/dbusdoc.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/sphinx/dbusdoc.py b/docs/sphinx/dbusdoc.py
index be284ed08fd7..2b086e2f583c 100644
--- a/docs/sphinx/dbusdoc.py
+++ b/docs/sphinx/dbusdoc.py
@@ -146,6 +146,7 @@ def run(self):
 
         env = self.state.document.settings.env
         dbusfile = env.config.qapidoc_srctree + "/" + self.arguments[0]
+        env.note_dependency(os.path.abspath(dbusfile))
         with open(dbusfile, "rb") as f:
             xml_data = f.read()
         xml = parse_dbus_xml(xml_data)
-- 
2.55.0.543.g5ebe2ebe4ea8


Re: [PATCH] docs/sphinx/dbus: register build dependency
Posted by Philippe Mathieu-Daudé 5 days, 9 hours ago
On 7/9/26 13:48, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
> 
> Touching dbus xml file wasn't enough to trigger a new build because
> the file wasn't registered to the dependency system.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>   docs/sphinx/dbusdoc.py | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>