From: Simon McVittie Date: Thu, 2 Nov 2023 14:22:54 +0000 (+0000) Subject: Substitute GTK_BINVER_DEP as a substvar rather than using sed X-Git-Tag: archive/raspbian/4.12.4+ds-3+rpi1^2~31 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1c5783fe11b13d7633ddd026fcf1a99f78a26c1c;p=gtk4.git Substitute GTK_BINVER_DEP as a substvar rather than using sed This will make it easier to stop making d/control a generated file. --- diff --git a/debian/control b/debian/control index e70cf55e12..48066c0a5a 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: gtk4 Section: libs Priority: optional Maintainer: Debian GNOME Maintainers -Uploaders: Simon McVittie , Amin Bandali , Jeremy Bícha , Marco Trevisan (Treviño) +Uploaders: Simon McVittie , Amin Bandali , Jeremy Bícha Build-Depends: adwaita-icon-theme , at-spi2-core , dbus-daemon , @@ -89,7 +89,7 @@ Depends: adwaita-icon-theme, ${misc:Depends}, ${shlibs:Depends}, libgtk-4-common (>= ${source:Version}) -Provides: gtk4-binver-4.0.0 +Provides: ${gtk:Provides} Recommends: libgtk-4-bin, iso-codes, librsvg2-common (>= 2.52.0), @@ -113,7 +113,7 @@ Section: debian-installer Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} -Provides: gtk4-binver-4.0.0 +Provides: ${gtk:Provides} Description: GTK graphical user interface library - minimal runtime This is a udeb, or a microdeb, for the debian-installer. . diff --git a/debian/control.in b/debian/control.in index b05f748358..5076881d73 100644 --- a/debian/control.in +++ b/debian/control.in @@ -89,7 +89,7 @@ Depends: adwaita-icon-theme, ${misc:Depends}, ${shlibs:Depends}, @COMMON_PKG@ (>= ${source:Version}) -Provides: @GTK_BINVER_DEP@ +Provides: ${gtk:Provides} Recommends: @BIN_PKG@, iso-codes, librsvg2-common (>= 2.52.0), @@ -113,7 +113,7 @@ Section: debian-installer Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} -Provides: @GTK_BINVER_DEP@ +Provides: ${gtk:Provides} Description: GTK graphical user interface library - minimal runtime This is a udeb, or a microdeb, for the debian-installer. . diff --git a/debian/rules b/debian/rules index a9704ab628..5ff67f457d 100755 --- a/debian/rules +++ b/debian/rules @@ -23,9 +23,6 @@ export LIBDIR := usr/lib/$(DEB_HOST_MULTIARCH) # earliest version that this release has backwards binary compatibility for export GTK_BINARY_VERSION := 4.0.0 -# Gtk binary version virtual Provide -export GTK_BINVER_DEP := gtk$(APIVER)-binver-$(GTK_BINARY_VERSION) - # relative base directory for configuration export CONFDIR := etc/gtk-4.0 @@ -57,7 +54,6 @@ debian/%: debian/%.in sed \ -e "s#@SONAME@#$(SONAME)#g" \ -e "s#@APIVER@#$(APIVER)#g" \ - -e "s#@GTK_BINVER_DEP@#$(GTK_BINVER_DEP)#g" \ -e "s#@SHARED_PKG@#$(SHARED_PKG)#g" \ -e "s#@COMMON_PKG@#$(COMMON_PKG)#g" \ -e "s#@DEV_PKG@#$(DEV_PKG)#g" \ @@ -332,3 +328,12 @@ override_dh_installdocs: override_dh_makeshlibs: dh_makeshlibs -p$(SHARED_PKG) -V --add-udeb=$(UDEB_PKG) -X$(MODULES_BASE_PATH) -- -c4 dh_makeshlibs --remaining-packages -X$(MODULES_BASE_PATH) + +override_dh_gencontrol-arch: + dh_gencontrol -p$(SHARED_PKG) -- \ + -Vgtk:Provides=gtk$(APIVER)-binver-$(GTK_BINARY_VERSION) +ifneq ($(filter %-udeb,$(built_binaries)),) + dh_gencontrol -p$(UDEB_PKG) -- \ + -Vgtk:Provides=gtk$(APIVER)-binver-$(GTK_BINARY_VERSION) +endif + dh_gencontrol --remaining-packages