* [PATCH] debianize: introduce DEBIAN_SECTION
@ 2025-10-16 9:43 srinuvasan.a via isar-users
2025-10-24 15:57 ` Zhihang Wei
0 siblings, 1 reply; 2+ messages in thread
From: srinuvasan.a via isar-users @ 2025-10-16 9:43 UTC (permalink / raw)
To: isar-users; +Cc: cedric.hombourger, felix.moessbauer, srinuvasan
From: srinuvasan <srinuvasan.a@siemens.com>
Add support for setting the Section field in auto-generated control files.
This allows users to specify a custom section for their packages, making
it easier to categorize and identify them within the Debian archive.
By default, the section is set to "misc".
Also update the section for the isar-exclude-docs package as a demonstration.
Example:
DEBIAN_SECTION = "ui" # For UI-related packages
DEBIAN_SECTION = "utils" # For miscellaneous utilities
Signed-off-by: srinuvasan <srinuvasan.a@siemens.com>
---
doc/user_manual.md | 1 +
meta/classes/debianize.bbclass | 4 +++-
.../isar-exclude-docs/isar-exclude-docs_0.2.2.bb | 2 ++
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/doc/user_manual.md b/doc/user_manual.md
index 6778d15c..4d81370e 100644
--- a/doc/user_manual.md
+++ b/doc/user_manual.md
@@ -1006,6 +1006,7 @@ Other (optional) customization variables include:
- `DEBIAN_PROVIDES` - declare a virtual package to satisfy dependencies
- `DEBIAN_REPLACES` - to replace a package with another
- `DEBIAN_BREAKS` - Packages which break other packages
+ - `DEBIAN_SECTION` - Specifies the category under which the package is classified
### Prebuilt .deb packages from somewhere
diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass
index 4989c601..dff7110b 100644
--- a/meta/classes/debianize.bbclass
+++ b/meta/classes/debianize.bbclass
@@ -8,6 +8,7 @@
CHANGELOG_V ??= "${PV}"
DPKG_ARCH ??= "any"
DEBIAN_BUILD_DEPENDS ??= ""
+DEBIAN_SECTION ??= "misc"
DEBIAN_DEPENDS ??= ""
DEBIAN_PROVIDES ??= ""
DEBIAN_REPLACES ??= ""
@@ -70,6 +71,7 @@ EOF
deb_create_control[vardeps] += "DEBIANIZE_BUILD_DEPENDS \
+ DEBIAN_SECTION \
DEBIAN_DEPENDS \
DEBIAN_PROVIDES \
DEBIAN_REPLACES \
@@ -78,7 +80,7 @@ deb_create_control[vardeps] += "DEBIANIZE_BUILD_DEPENDS \
deb_create_control() {
cat << EOF > ${S}/debian/control
Source: ${BPN}
-Section: misc
+Section: ${@ deb_list_beautify(d, 'DEBIAN_SECTION')}
Priority: optional
Standards-Version: 3.9.6
Maintainer: ${MAINTAINER}
diff --git a/meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.2.bb b/meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.2.bb
index 2b844bed..acca67c8 100644
--- a/meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.2.bb
+++ b/meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.2.bb
@@ -4,6 +4,8 @@ inherit dpkg-raw
DESCRIPTION = "Configuration to exclude most documentation"
MAINTAINER = "isar-users <isar-users@googlegroups.com>"
+DEBIAN_SECTION = "utils"
+
SRC_URI = "file://${BPN} \
file://postinst"
--
2.39.5
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20251016094326.4192938-1-srinuvasan.a%40siemens.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] debianize: introduce DEBIAN_SECTION
2025-10-16 9:43 [PATCH] debianize: introduce DEBIAN_SECTION srinuvasan.a via isar-users
@ 2025-10-24 15:57 ` Zhihang Wei
0 siblings, 0 replies; 2+ messages in thread
From: Zhihang Wei @ 2025-10-24 15:57 UTC (permalink / raw)
To: srinuvasan.a, isar-users; +Cc: cedric.hombourger, felix.moessbauer
Applied to next, thanks.
Best regards,
Zhihang
On 10/16/25 11:43, srinuvasan.a via isar-users wrote:
> From: srinuvasan <srinuvasan.a@siemens.com>
>
> Add support for setting the Section field in auto-generated control files.
> This allows users to specify a custom section for their packages, making
> it easier to categorize and identify them within the Debian archive.
>
> By default, the section is set to "misc".
>
> Also update the section for the isar-exclude-docs package as a demonstration.
>
> Example:
> DEBIAN_SECTION = "ui" # For UI-related packages
> DEBIAN_SECTION = "utils" # For miscellaneous utilities
>
> Signed-off-by: srinuvasan <srinuvasan.a@siemens.com>
> ---
> doc/user_manual.md | 1 +
> meta/classes/debianize.bbclass | 4 +++-
> .../isar-exclude-docs/isar-exclude-docs_0.2.2.bb | 2 ++
> 3 files changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/doc/user_manual.md b/doc/user_manual.md
> index 6778d15c..4d81370e 100644
> --- a/doc/user_manual.md
> +++ b/doc/user_manual.md
> @@ -1006,6 +1006,7 @@ Other (optional) customization variables include:
> - `DEBIAN_PROVIDES` - declare a virtual package to satisfy dependencies
> - `DEBIAN_REPLACES` - to replace a package with another
> - `DEBIAN_BREAKS` - Packages which break other packages
> + - `DEBIAN_SECTION` - Specifies the category under which the package is classified
>
> ### Prebuilt .deb packages from somewhere
>
> diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass
> index 4989c601..dff7110b 100644
> --- a/meta/classes/debianize.bbclass
> +++ b/meta/classes/debianize.bbclass
> @@ -8,6 +8,7 @@
> CHANGELOG_V ??= "${PV}"
> DPKG_ARCH ??= "any"
> DEBIAN_BUILD_DEPENDS ??= ""
> +DEBIAN_SECTION ??= "misc"
> DEBIAN_DEPENDS ??= ""
> DEBIAN_PROVIDES ??= ""
> DEBIAN_REPLACES ??= ""
> @@ -70,6 +71,7 @@ EOF
>
>
> deb_create_control[vardeps] += "DEBIANIZE_BUILD_DEPENDS \
> + DEBIAN_SECTION \
> DEBIAN_DEPENDS \
> DEBIAN_PROVIDES \
> DEBIAN_REPLACES \
> @@ -78,7 +80,7 @@ deb_create_control[vardeps] += "DEBIANIZE_BUILD_DEPENDS \
> deb_create_control() {
> cat << EOF > ${S}/debian/control
> Source: ${BPN}
> -Section: misc
> +Section: ${@ deb_list_beautify(d, 'DEBIAN_SECTION')}
> Priority: optional
> Standards-Version: 3.9.6
> Maintainer: ${MAINTAINER}
> diff --git a/meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.2.bb b/meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.2.bb
> index 2b844bed..acca67c8 100644
> --- a/meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.2.bb
> +++ b/meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.2.bb
> @@ -4,6 +4,8 @@ inherit dpkg-raw
> DESCRIPTION = "Configuration to exclude most documentation"
> MAINTAINER = "isar-users <isar-users@googlegroups.com>"
>
> +DEBIAN_SECTION = "utils"
> +
> SRC_URI = "file://${BPN} \
> file://postinst"
>
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/5bcbb288-7ddf-4eaa-a283-f45724e50680%40ilbers.de.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-24 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-16 9:43 [PATCH] debianize: introduce DEBIAN_SECTION srinuvasan.a via isar-users
2025-10-24 15:57 ` Zhihang Wei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox