* [PATCH] meta: Add Debian package conflicts in debianize class
@ 2021-07-27 13:54 Schilling, Benjamin
2021-07-27 17:41 ` Henning Schild
2021-08-18 9:33 ` Anton Mikanovich
0 siblings, 2 replies; 3+ messages in thread
From: Schilling, Benjamin @ 2021-07-27 13:54 UTC (permalink / raw)
To: isar-users; +Cc: henning.schild
[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]
Before it was not possible to specify conflicting packages in recipes
using the debianize class.
Now the conflicting packages can be defined using the DEBIAN_CONFLICTS
variable in the recipe. This is especially useful in dpkg-raw recipes
that should conflict with each other.
Signed-off-by: Benjamin Schilling <schilling.benjamin@siemens.com>
---
meta/classes/debianize.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass
index dad1cb4..4486778 100644
--- a/meta/classes/debianize.bbclass
+++ b/meta/classes/debianize.bbclass
@@ -1,5 +1,6 @@
# This software is a part of ISAR.
# Copyright (C) 2017-2019 Siemens AG
+# Copyright (C) 2021 Siemens Mobility GmbH
#
# SPDX-License-Identifier: MIT
@@ -7,6 +8,7 @@ CHANGELOG_V ??= "${PV}"
DPKG_ARCH ??= "any"
DEBIAN_BUILD_DEPENDS ??= ""
DEBIAN_DEPENDS ??= ""
+DEBIAN_CONFLICTS ??= ""
DESCRIPTION ??= "must not be empty"
MAINTAINER ??= "Unknown maintainer unknown@example.com<mailto:unknown@example.com>"
@@ -63,6 +65,7 @@ Build-Depends: debhelper (>= ${compat}), ${DEBIAN_BUILD_DEPENDS}
Package: ${PN}
Architecture: ${DPKG_ARCH}
Depends: ${DEBIAN_DEPENDS}
+Conflicts: ${DEBIAN_CONFLICTS}
Description: ${DESCRIPTION}
EOF
}
--
2.20.1
[-- Attachment #2: Type: text/html, Size: 5329 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] meta: Add Debian package conflicts in debianize class
2021-07-27 13:54 [PATCH] meta: Add Debian package conflicts in debianize class Schilling, Benjamin
@ 2021-07-27 17:41 ` Henning Schild
2021-08-18 9:33 ` Anton Mikanovich
1 sibling, 0 replies; 3+ messages in thread
From: Henning Schild @ 2021-07-27 17:41 UTC (permalink / raw)
To: Schilling, Benjamin (SMO RI R&D SYS SEC); +Cc: isar-users
Am Tue, 27 Jul 2021 15:54:12 +0200
schrieb "Schilling, Benjamin (SMO RI R&D SYS SEC)"
<schilling.benjamin@siemens.com>:
> Before it was not possible to specify conflicting packages in recipes
>
> using the debianize class.
>
> Now the conflicting packages can be defined using the DEBIAN_CONFLICTS
>
> variable in the recipe. This is especially useful in dpkg-raw recipes
>
> that should conflict with each other.
Having an all-mighty debianize class will be impossible. But others
have extended what we have and your use-case seems valid.
So i would say this is a questionable but overall good idea.
But this mail seems too "html" to actually apply that patch. A patch
that otherwise looks fine.
Henning
>
>
> Signed-off-by: Benjamin Schilling <schilling.benjamin@siemens.com>
>
> ---
>
> meta/classes/debianize.bbclass | 3 +++
>
> 1 file changed, 3 insertions(+)
>
>
>
> diff --git a/meta/classes/debianize.bbclass
> b/meta/classes/debianize.bbclass
>
> index dad1cb4..4486778 100644
>
> --- a/meta/classes/debianize.bbclass
>
> +++ b/meta/classes/debianize.bbclass
>
> @@ -1,5 +1,6 @@
>
> # This software is a part of ISAR.
>
> # Copyright (C) 2017-2019 Siemens AG
>
> +# Copyright (C) 2021 Siemens Mobility GmbH
>
> #
>
> # SPDX-License-Identifier: MIT
>
> @@ -7,6 +8,7 @@ CHANGELOG_V ??= "${PV}"
>
> DPKG_ARCH ??= "any"
>
> DEBIAN_BUILD_DEPENDS ??= ""
>
> DEBIAN_DEPENDS ??= ""
>
> +DEBIAN_CONFLICTS ??= ""
>
> DESCRIPTION ??= "must not be empty"
>
> MAINTAINER ??= "Unknown maintainer unknown@example.com"
>
> @@ -63,6 +65,7 @@ Build-Depends: debhelper (>= ${compat}),
> ${DEBIAN_BUILD_DEPENDS}
>
> Package: ${PN}
>
> Architecture: ${DPKG_ARCH}
>
> Depends: ${DEBIAN_DEPENDS}
>
> +Conflicts: ${DEBIAN_CONFLICTS}
>
> Description: ${DESCRIPTION}
>
> EOF
>
> }
>
> --
>
> 2.20.1
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] meta: Add Debian package conflicts in debianize class
2021-07-27 13:54 [PATCH] meta: Add Debian package conflicts in debianize class Schilling, Benjamin
2021-07-27 17:41 ` Henning Schild
@ 2021-08-18 9:33 ` Anton Mikanovich
1 sibling, 0 replies; 3+ messages in thread
From: Anton Mikanovich @ 2021-08-18 9:33 UTC (permalink / raw)
To: Schilling, Benjamin, isar-users; +Cc: henning.schild
[-- Attachment #1: Type: text/plain, Size: 702 bytes --]
27.07.2021 16:54, Schilling, Benjamin wrote:
>
> Before it was not possible to specify conflicting packages in recipes
>
> using the debianize class.
>
> Now the conflicting packages can be defined using the DEBIAN_CONFLICTS
>
> variable in the recipe. This is especially useful in dpkg-raw recipes
>
> that should conflict with each other.
>
> Signed-off-by: Benjamin Schilling <schilling.benjamin@siemens.com>
>
Applied to next, thanks.
Please send patches in plain text next time.
--
Anton Mikanovich
Promwad Ltd.
External service provider of ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn, Germany
+49 (89) 122 67 24-0
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov
[-- Attachment #2: Type: text/html, Size: 2631 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-18 9:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 13:54 [PATCH] meta: Add Debian package conflicts in debianize class Schilling, Benjamin
2021-07-27 17:41 ` Henning Schild
2021-08-18 9:33 ` Anton Mikanovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox