Your message dated Wed, 1 Jan 2025 15:45:25 +0100
with message-id <Z3VVBdkzViE-vz37@pegase>
and subject line Re: debian/rules: Filter packages and platforms without build
profiles
has caused the Debian Bug report #990824,
regarding debian/rules: Filter packages and platforms without build profiles
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
990824: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990824
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: u-boot
Severity: wishlist
Tags: patch
Hello.
This idea has been discussed since #979296, but the initial
implementation was incompatible with dpkg-buildpackage.
These variants should now work:
debian/rules package_filter=u-boot/%rockchip/%sunxi
platform_filter=%-rk3399/a64-olinuxino%
dpkg-buildpackage '--rules-file=debian/rules package_filter=...'
sbuild '--debbuildopt=--rules-file=debian/rules package_filter=...'
>From fa78cf47855518b2a45fb6000c7694a1eae69c35 Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <[email protected]>
Date: Thu, 8 Jul 2021 17:11:19 +0200
Subject: [PATCH] debian/rules: Filter packages and platforms without build
profiles
This idea has been discussed since #979296, but the initial
implementation was incompatible with dpkg-buildpackage.
These variants should now work:
debian/rules package_filter=u-boot/%rockchip/%sunxi platform_filter=%-rk3399/a64-olinuxino%
dpkg-buildpackage '--rules-file=debian/rules package_filter=...'
sbuild '--debbuildopt=--rules-file=debian/rules package_filter=...'
---
debian/rules | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/debian/rules b/debian/rules
index 244956f6cc..e14e2cafb3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,22 +28,20 @@ notools := $(filter pkg.uboot.notools,$(DEB_BUILD_PROFILES))
subarchs := $(shell dh_listpackages --arch --no-package=u-boot-tools)
-# Each .deb P in subarch contains $(P_platforms).
-# These profiles remove values from $(P_platforms) for debugging.
-
-# DEB_BUILD_PROFILES='pkg.uboot.subarch.P1 pkg.uboot.subarch.P2'
-# removes all platforms but in packages u-boot-P1 u-boot-P2.
-only_subarchs := $(patsubst pkg.uboot.subarch.%,u-boot-%,\
- $(filter pkg.uboot.subarch.%,$(DEB_BUILD_PROFILES)))
+# For debugging purposes, some filters may restrict the actually built
+# platforms. The expected contents are Make patterns (with at most
+# one % wildcard), separated by / (because spaces are difficult to
+# escape from dpkg-buildpackage --rules-file).
+# package_filter=u-boot/%amlogic/%mvebu
+# platform_filter=khadas-vim%
+
+only_subarchs := $(subst /, ,$(package_filter))
ifneq (,$(only_subarchs))
$(foreach pkg,$(filter-out $(only_subarchs),$(subarchs)),$(eval \
$(pkg)_platforms :=))
endif
-# DEB_BUILD_PROFILES='pkg.uboot.platform.P1 pkg.uboot.platform.P2'
-# removes all platforms but P1 P2.
-only_platforms := $(patsubst pkg.uboot.platform.%,%,\
- $(filter pkg.uboot.platform.%,$(DEB_BUILD_PROFILES)))
+only_platforms := $(subst /, ,$(platform_filter))
ifneq (,$(only_platforms))
$(foreach pkg,$(subarchs),$(eval \
$(pkg)_platforms := $(filter $(only_platforms),$($(pkg)_platforms))))
--
2.30.2
--- End Message ---
--- Begin Message ---
Source: u-boot
Followup-For: Bug #990824
Hello.
The interest of this suggestion seems less and less obvious.
I think it is time to close the related bug.
--- End Message ---