From: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
To: <isar-users@googlegroups.com>
Cc: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
Subject: [PATCH] debianize: Use weak defaults
Date: Mon, 18 May 2020 14:29:05 +0530 [thread overview]
Message-ID: <20200518085905.10475-1-Vijaikumar_Kanagarajan@mentor.com> (raw)
We use default assignments(?=) in an include file. If the the dpkg
class is inherited before this assignment then we get the wrong default
value defined in the debianze class.
Use weak defaults in the class so that defaults in the include file are
honoured.
Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
---
meta/classes/debianize.bbclass | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass
index 764477c..1197f3d 100644
--- a/meta/classes/debianize.bbclass
+++ b/meta/classes/debianize.bbclass
@@ -3,12 +3,12 @@
#
# SPDX-License-Identifier: MIT
-CHANGELOG_V ?= "${PV}"
+CHANGELOG_V ??= "${PV}"
DPKG_ARCH ??= "any"
-DEBIAN_BUILD_DEPENDS ?= ""
-DEBIAN_DEPENDS ?= ""
-DESCRIPTION ?= "must not be empty"
-MAINTAINER ?= "Unknown maintainer <unknown@example.com>"
+DEBIAN_BUILD_DEPENDS ??= ""
+DEBIAN_DEPENDS ??= ""
+DESCRIPTION ??= "must not be empty"
+MAINTAINER ??= "Unknown maintainer <unknown@example.com>"
deb_add_changelog() {
changelog_v="${CHANGELOG_V}"
--
2.17.1
next reply other threads:[~2020-05-18 10:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-18 8:59 Vijai Kumar K [this message]
2020-05-28 19:45 ` Baurzhan Ismagulov
2020-05-18 10:05 Vijai Kumar K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200518085905.10475-1-Vijaikumar_Kanagarajan@mentor.com \
--to=vijaikumar_kanagarajan@mentor.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox