xenomai: Update changelog via Isar
PATCH v2 1/1 xenomai: Update changelog via Isar
From: Jan Kiszka <[email protected]>
This fixes the version of the generated packages.
For recipes that do not carry a release version, set a Debian-compliant one. For those cases, we also need to remove upstream's source/format.
Signed-off-by Jan Kiszka <[email protected]>
---
Changes in v2:
- fix builds of non-release versions
recipes-xenomai/xenomai/xenomai.inc | 18 +++++++++++++----- recipes-xenomai/xenomai/xenomai_master.bb | 2 ++ recipes-xenomai/xenomai/xenomai_stable-3.0.x.bb | 2 ++ 3 files changed, 17 insertions(+), 5 deletions(-)
recipes-xenomai/xenomai/xenomai.inc +13 -5
@@ -23,11 +23,19 @@ def get_commit(d): COMMIT="${@get_commit(d)}" do_prepare_build() { - # The xenomai-kernel-source package is supposed to be generic, but we - # build it per architecture in Isar, and those packages happen to be - # different in some file so far. Make sure they are pushed into the - # target architecture to avoid conflicts. - sudo sed -i 's/Architecture: all/Architecture: any/' ${S}/debian/control + # The xenomai-kernel-source package is supposed to be generic, but we + # build it per architecture in Isar, and those packages happen to be + # different in some file so far. Make sure they are pushed into the + # target architecture to avoid conflicts. + sudo sed -i 's/Architecture: all/Architecture: any/' ${S}/debian/control + + # Xenomai currently does not maintain its changelog, plus we want the + # actual package version in there. + deb_add_changelog + + # Remove upstream's "3.0 (native)" declaration so that we can define the + # package version more freely. + rm -f ${S}/debian/source/format } dpkg_runbuild_prepend() {
recipes-xenomai/xenomai/xenomai_master.bb +2 -0
@@ -12,6 +12,8 @@ require xenomai.inc +CHANGELOG_V = "9999-${PV}" + SRC_URI = " \ git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=${PV}" SRCREV = "${AUTOREV}"
recipes-xenomai/xenomai/xenomai_stable-3.0.x.bb +2 -0
@@ -12,6 +12,8 @@ require xenomai.inc +CHANGELOG_V = "3.0.x-head" + SRC_URI = " \ git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=stable/v3.0.x" SRCREV = "${AUTOREV}"
Signature · 1 line
2.16.4