public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] debianize: introduce DEBIAN_BREAKS
@ 2025-01-08 15:06 srinuvasan.a via isar-users
  2025-01-16  7:02 ` Uladzimir Bely
  0 siblings, 1 reply; 2+ messages in thread
From: srinuvasan.a via isar-users @ 2025-01-08 15:06 UTC (permalink / raw)
  To: isar-users; +Cc: cedric.hombourger, Srinuvasan Arjunan

From: Srinuvasan Arjunan <srinuvasan.a@siemens.com>

Allow setting the Breaks field for auto generated control files,
with this changes now user can configure the Breaks in the debian/control file.

Recipes can simply set the Breaks field now by defining the
DEBIAN_BREAKS variable.

Signed-off-by: Srinuvasan Arjunan <srinuvasan.a@siemens.com>
---
 doc/user_manual.md             | 1 +
 meta/classes/debianize.bbclass | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/doc/user_manual.md b/doc/user_manual.md
index 706c74bf..7a35d8a4 100644
--- a/doc/user_manual.md
+++ b/doc/user_manual.md
@@ -958,6 +958,7 @@ Note that the package will be build using the whole debian package workflow, so
 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
 
 ### Prebuilt .deb packages from somewhere
 
diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass
index 1d5fd83c..cf808eec 100644
--- a/meta/classes/debianize.bbclass
+++ b/meta/classes/debianize.bbclass
@@ -11,6 +11,7 @@ DEBIAN_DEPENDS ??= ""
 DEBIAN_PROVIDES ??= ""
 DEBIAN_REPLACES ??= ""
 DEBIAN_CONFLICTS ??= ""
+DEBIAN_BREAKS ??= ""
 DEBIAN_MULTI_ARCH ??= "no"
 DEBIAN_COMPAT ??= "10"
 DESCRIPTION ??= "must not be empty"
@@ -78,6 +79,7 @@ Architecture: ${DPKG_ARCH}
 Depends: ${DEBIAN_DEPENDS}
 Provides: ${DEBIAN_PROVIDES}
 Replaces: ${DEBIAN_REPLACES}
+Breaks: ${DEBIAN_BREAKS}
 Conflicts: ${DEBIAN_CONFLICTS}
 Multi-Arch: ${DEBIAN_MULTI_ARCH}
 Description: ${DESCRIPTION}
-- 
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/20250108150642.57626-1-srinuvasan.a%40siemens.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] debianize: introduce DEBIAN_BREAKS
  2025-01-08 15:06 [PATCH] debianize: introduce DEBIAN_BREAKS srinuvasan.a via isar-users
@ 2025-01-16  7:02 ` Uladzimir Bely
  0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2025-01-16  7:02 UTC (permalink / raw)
  To: srinuvasan.a, isar-users

On Wed, 2025-01-08 at 20:36 +0530, srinuvasan.a via isar-users wrote:
> From: Srinuvasan Arjunan <srinuvasan.a@siemens.com>
> 
> Allow setting the Breaks field for auto generated control files,
> with this changes now user can configure the Breaks in the
> debian/control file.
> 
> Recipes can simply set the Breaks field now by defining the
> DEBIAN_BREAKS variable.
> 
> Signed-off-by: Srinuvasan Arjunan <srinuvasan.a@siemens.com>
> ---
>  doc/user_manual.md             | 1 +
>  meta/classes/debianize.bbclass | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/doc/user_manual.md b/doc/user_manual.md
> index 706c74bf..7a35d8a4 100644
> --- a/doc/user_manual.md
> +++ b/doc/user_manual.md
> @@ -958,6 +958,7 @@ Note that the package will be build using the
> whole debian package workflow, so
>  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
>  
>  ### Prebuilt .deb packages from somewhere
>  
> diff --git a/meta/classes/debianize.bbclass
> b/meta/classes/debianize.bbclass
> index 1d5fd83c..cf808eec 100644
> --- a/meta/classes/debianize.bbclass
> +++ b/meta/classes/debianize.bbclass
> @@ -11,6 +11,7 @@ DEBIAN_DEPENDS ??= ""
>  DEBIAN_PROVIDES ??= ""
>  DEBIAN_REPLACES ??= ""
>  DEBIAN_CONFLICTS ??= ""
> +DEBIAN_BREAKS ??= ""
>  DEBIAN_MULTI_ARCH ??= "no"
>  DEBIAN_COMPAT ??= "10"
>  DESCRIPTION ??= "must not be empty"
> @@ -78,6 +79,7 @@ Architecture: ${DPKG_ARCH}
>  Depends: ${DEBIAN_DEPENDS}
>  Provides: ${DEBIAN_PROVIDES}
>  Replaces: ${DEBIAN_REPLACES}
> +Breaks: ${DEBIAN_BREAKS}
>  Conflicts: ${DEBIAN_CONFLICTS}
>  Multi-Arch: ${DEBIAN_MULTI_ARCH}
>  Description: ${DESCRIPTION}
> -- 
> 2.39.5
> 

Applied to next, thanks.

-- 
Best regards,
Uladzimir.

-- 
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/a9510e89c9e1fafa92f80efc4fef69d12f61dd86.camel%40ilbers.de.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-16  7:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-08 15:06 [PATCH] debianize: introduce DEBIAN_BREAKS srinuvasan.a via isar-users
2025-01-16  7:02 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox