--- origsrc/dbus-1.14.10/CYGWIN-PATCHES/dbus.postinstall	1970-01-01 09:00:00.000000000 +0900
+++ src/dbus-1.14.10/CYGWIN-PATCHES/dbus.postinstall	2024-02-22 16:33:57.571707900 +0900
@@ -0,0 +1,13 @@
+mkdir -p /var/lib/dbus
+/usr/bin/dbus-uuidgen --ensure
+
+if [ -x /usr/bin/xmlcatalog ] ; then
+	/usr/bin/xmlcatalog --noout --add "system" \
+		"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd" \
+		/usr/share/xml/dbus-1/busconfig.dtd \
+		/etc/xml/catalog
+	/usr/bin/xmlcatalog --noout --add "system" \
+		"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" \
+		/usr/share/xml/dbus-1/introspect.dtd \
+		/etc/xml/catalog
+fi
--- origsrc/dbus-1.14.10/CYGWIN-PATCHES/dbus.preremove	1970-01-01 09:00:00.000000000 +0900
+++ src/dbus-1.14.10/CYGWIN-PATCHES/dbus.preremove	2024-02-22 16:34:11.364251400 +0900
@@ -0,0 +1,13 @@
+if /usr/bin/cygrunsrv -Q messagebus &>/dev/null
+then
+	/usr/bin/cygrunsrv -E messagebus
+fi
+
+if [ -x /usr/bin/xmlcatalog ] ; then
+	/usr/bin/xmlcatalog --noout --del \
+		/usr/share/xml/dbus-1/busconfig.dtd \
+		/etc/xml/catalog
+	/usr/bin/xmlcatalog --noout --del \
+		/usr/share/xml/dbus-1/introspect.dtd \
+		/etc/xml/catalog
+fi
