瀏覽代碼

meta: Add Debian package conflicts in debianize class

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>
Schilling, Benjamin 4 年之前
父節點
當前提交
830dd92299
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      meta/classes/debianize.bbclass

+ 3 - 0
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
 }