[Pkg-fglrx-devel] r1028 - in fglrx-driver/branches/experimental/debian: . module
Andreas Beckmann
anbe-guest at alioth.debian.org
Mon Aug 6 19:36:54 UTC 2012
Author: anbe-guest
Date: 2012-08-06 19:36:54 +0000 (Mon, 06 Aug 2012)
New Revision: 1028
Modified:
fglrx-driver/branches/experimental/debian/changelog
fglrx-driver/branches/experimental/debian/module/control.template.in
fglrx-driver/branches/experimental/debian/module/rules.in
Log:
add Built-Using attribute to the generated module packages
Modified: fglrx-driver/branches/experimental/debian/changelog
===================================================================
--- fglrx-driver/branches/experimental/debian/changelog 2012-08-06 15:17:51 UTC (rev 1027)
+++ fglrx-driver/branches/experimental/debian/changelog 2012-08-06 19:36:54 UTC (rev 1028)
@@ -2,6 +2,9 @@
* fglrx-driver.postrm: Do not fail if the debconf templates are not
available (i.e. if the package is unconfigured).
+ * fglrx-source: Add Built-Using attribute to the generated module packages
+ to record the exact versions of linux and fglrx-driver that were used
+ during the build.
* Upload to experimental.
* Temporarily mark templates as untranslatable and drop translations.
Modified: fglrx-driver/branches/experimental/debian/module/control.template.in
===================================================================
--- fglrx-driver/branches/experimental/debian/module/control.template.in 2012-08-06 15:17:51 UTC (rev 1027)
+++ fglrx-driver/branches/experimental/debian/module/control.template.in 2012-08-06 19:36:54 UTC (rev 1028)
@@ -24,6 +24,9 @@
fglrx-module-#KVERS#,
Replaces:
fglrx-module-#KVERS#,
+Built-Using:
+ ${built:using:kernel},
+ ${built:using:fglrx},
Description: FGLRX binary kernel module for Linux #KVERS#
FGLRX / AMD Catalyst is the non-free proprietary display driver for the
ATI/AMD RadeonHD and FireGL graphics cards. As an alternative, you may try
Modified: fglrx-driver/branches/experimental/debian/module/rules.in
===================================================================
--- fglrx-driver/branches/experimental/debian/module/rules.in 2012-08-06 15:17:51 UTC (rev 1027)
+++ fglrx-driver/branches/experimental/debian/module/rules.in 2012-08-06 19:36:54 UTC (rev 1028)
@@ -54,6 +54,8 @@
dh_prep
$(MAKE) -C $(KSRC) SUBDIRS=$(CURDIR) modules
+get_built_using ?= $(filter-out (=),$(shell dpkg-query -f='$${source:Package} (=$${source:Version})' -W $1))
+
binary_modules: build
dh_testdir
dh_testroot
@@ -69,7 +71,10 @@
dh_compress
dh_fixperms
dh_installdeb
- dh_gencontrol -- -v$(PKG_VERSION) -V'fglrx:Version=$(subst ~,-,$(upstream_version))'
+ dh_gencontrol -- -v$(PKG_VERSION) \
+ -V'fglrx:Version=$(subst ~,-,$(upstream_version))' \
+ -V'built:using:kernel=$(call get_built_using,linux-headers-$(KVERS))' \
+ -V'built:using:fglrx=$(call get_built_using,_FGLRX_-source)'
dh_md5sums
ifdef KPKG_DEST_DIR
dh_builddeb --destdir=$(KPKG_DEST_DIR)
More information about the Pkg-fglrx-devel
mailing list