From: Cedric Hombourger <Cedric_Hombourger@mentor.com>
To: <isar-users@googlegroups.com>
Cc: Cedric Hombourger <Cedric_Hombourger@mentor.com>
Subject: [PATCH v2 5/5] hello: add a sample patch to exercise patch.bbclass against dpkg recipes
Date: Mon, 21 Oct 2019 17:10:55 +0200 [thread overview]
Message-ID: <1571670655-818-1-git-send-email-Cedric_Hombourger@mentor.com> (raw)
In-Reply-To: <1571670492-767-1-git-send-email-Cedric_Hombourger@mentor.com>
Signed-off-by: Cedric Hombourger <Cedric_Hombourger@mentor.com>
---
.../files/add-built-by-isar-to-version.patch | 22 +++++++++++++++++++
meta-isar/recipes-app/hello/hello.inc | 3 +++
2 files changed, 25 insertions(+)
create mode 100644 meta-isar/recipes-app/hello/files/add-built-by-isar-to-version.patch
diff --git a/meta-isar/recipes-app/hello/files/add-built-by-isar-to-version.patch b/meta-isar/recipes-app/hello/files/add-built-by-isar-to-version.patch
new file mode 100644
index 0000000..1ae879a
--- /dev/null
+++ b/meta-isar/recipes-app/hello/files/add-built-by-isar-to-version.patch
@@ -0,0 +1,22 @@
+diff -uNr hello-2.10.orig/debian/patches/add-built-by-isar-to-version.patch hello-2.10/debian/patches/add-built-by-isar-to-version.patch
+--- hello-2.10.orig/debian/patches/add-built-by-isar-to-version.patch 1969-12-31 19:00:00.000000000 -0500
++++ hello-2.10/debian/patches/add-built-by-isar-to-version.patch 2019-10-21 10:46:18.865268349 -0400
+@@ -0,0 +1,13 @@
++Index: hello-2.10/src/hello.c
++===================================================================
++--- hello-2.10.orig/src/hello.c
+++++ hello-2.10/src/hello.c
++@@ -169,7 +169,7 @@ Report bugs to: %s\n"), PACKAGE_BUGREPOR
++ static void
++ print_version (void)
++ {
++- printf ("%s (%s) %s\n", PACKAGE, PACKAGE_NAME, VERSION);
+++ printf ("%s (%s) %s (built by Isar)\n", PACKAGE, PACKAGE_NAME, VERSION);
++ /* xgettext: no-wrap */
++ puts ("");
++
+diff -uNr hello-2.10.orig/debian/patches/series hello-2.10/debian/patches/series
+--- hello-2.10.orig/debian/patches/series 1969-12-31 19:00:00.000000000 -0500
++++ hello-2.10/debian/patches/series 2019-10-21 10:46:02.049662973 -0400
+@@ -0,0 +1 @@
++add-built-by-isar-to-version.patch
diff --git a/meta-isar/recipes-app/hello/hello.inc b/meta-isar/recipes-app/hello/hello.inc
index 747b96b..e59ea40 100644
--- a/meta-isar/recipes-app/hello/hello.inc
+++ b/meta-isar/recipes-app/hello/hello.inc
@@ -8,6 +8,9 @@ inherit dpkg
# this will fetch and unpack the sources from upstream debian
SRC_URI = "apt://${PN}=${PV}"
+# modify the output of the --version option to demonstrate how to patch upstream packages
+SRC_URI += "file://add-built-by-isar-to-version.patch"
+
MAINTAINER = "isar-users <isar-users@googlegroups.com>"
CHANGELOG_V = "${PV}-99+isar"
--
2.20.1
next prev parent reply other threads:[~2019-10-21 15:11 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-21 9:34 [PATCH 0/4] miscellaneous (minor) fixes Cedric Hombourger
2019-10-21 9:34 ` [PATCH 1/4] wic-img: do not leave temporary files behind Cedric Hombourger
2019-10-21 9:34 ` [PATCH 2/4] isar-bootstrap: wipe out previously created rootfs with --one-file-system Cedric Hombourger
2019-10-21 9:34 ` [PATCH 3/4] base-apt-helper: fixed a few typos found in comments Cedric Hombourger
2019-10-21 9:34 ` [PATCH 4/4] patch: suffix patch files copied to .applied_patches with "~" Cedric Hombourger
2019-10-21 11:26 ` Henning Schild
2019-10-21 11:36 ` Cedric Hombourger
2019-10-21 12:43 ` Henning Schild
2019-10-21 12:53 ` Cedric Hombourger
2019-10-21 15:08 ` [PATCH v2 0/5] miscellaneous (minor) fixes Cedric Hombourger
2019-10-21 15:08 ` [PATCH v2 1/5] wic-img: do not leave temporary files behind Cedric Hombourger
2019-10-21 15:08 ` [PATCH v2 2/5] isar-bootstrap: wipe out previously created rootfs with --one-file-system Cedric Hombourger
2019-10-21 15:08 ` [PATCH v2 3/5] base-apt-helper: fixed a few typos found in comments Cedric Hombourger
2019-10-21 15:08 ` [PATCH v2 4/5] patch: suffix patch files copied to .applied_patches with "~" Cedric Hombourger
2019-10-21 15:10 ` Cedric Hombourger [this message]
2019-10-25 17:15 ` [PATCH 4/4] " Jan Kiszka
2019-10-25 17:58 ` Cedric Hombourger
2019-11-05 12:52 ` [PATCH v3 0/6] miscellaneous (minor) fixes Cedric Hombourger
2019-11-05 12:53 ` [PATCH v3 1/6] wic-img: do not leave temporary files behind Cedric Hombourger
2019-11-05 12:53 ` [PATCH v3 2/6] isar-bootstrap: wipe out previously created rootfs with --one-file-system Cedric Hombourger
2019-11-05 12:53 ` [PATCH v3 3/6] base-apt-helper: fixed a few typos found in comments Cedric Hombourger
2019-11-05 12:53 ` [PATCH v3 4/6] ci_build.sh: delay "set -x" for a clean --help output Cedric Hombourger
2019-11-05 12:53 ` [PATCH v3 5/6] linux-custom: honor KERNEL_FILE setting Cedric Hombourger
2019-11-05 12:53 ` [PATCH v3 6/6] bitbake.conf: set name of the qemu-static binary to use for mipsel Cedric Hombourger
2019-11-08 9:23 ` [PATCH v4 - misc fixes 0/6] miscellaneous (minor) fixes Cedric Hombourger
2019-11-08 9:23 ` [PATCH v4 - misc fixes 1/6] wic-img: do not leave temporary files behind Cedric Hombourger
2019-11-15 13:38 ` Jan Kiszka
2019-11-15 13:42 ` Cedric Hombourger
2019-11-15 17:00 ` [PATCH v5 0/6] miscellaneous (minor) fixes Cedric Hombourger
2019-11-15 17:00 ` [PATCH v5 1/6] wic-img: do not leave temporary files behind Cedric Hombourger
2019-11-15 17:00 ` [PATCH v5 2/6] isar-bootstrap: wipe out previously created rootfs with --one-file-system Cedric Hombourger
2019-11-15 17:00 ` [PATCH v5 3/6] base-apt-helper: fixed a few typos found in comments Cedric Hombourger
2019-11-15 17:00 ` [PATCH v5 4/6] ci_build.sh: delay "set -x" for a clean --help output Cedric Hombourger
2019-11-15 17:00 ` [PATCH v5 5/6] linux-custom: honor KERNEL_FILE setting Cedric Hombourger
2019-11-15 17:00 ` [PATCH v5 6/6] bitbake.conf: set name of the qemu-static binary to use for mipsel Cedric Hombourger
2019-11-20 12:39 ` [PATCH v5 0/6] miscellaneous (minor) fixes Baurzhan Ismagulov
2019-11-08 9:23 ` [PATCH v4 - misc fixes 2/6] isar-bootstrap: wipe out previously created rootfs with --one-file-system Cedric Hombourger
2019-11-08 9:23 ` [PATCH v4 - misc fixes 3/6] base-apt-helper: fixed a few typos found in comments Cedric Hombourger
2019-11-08 9:23 ` [PATCH v4 - misc fixes 4/6] ci_build.sh: delay "set -x" for a clean --help output Cedric Hombourger
2019-11-08 9:24 ` [PATCH v4 - misc fixes 5/6] linux-custom: honor KERNEL_FILE setting Cedric Hombourger
2019-11-08 9:24 ` [PATCH v4 - misc fixes 6/6] bitbake.conf: set name of the qemu-static binary to use for mipsel Cedric Hombourger
2019-11-12 19:20 ` [PATCH v4 - misc fixes 0/6] miscellaneous (minor) fixes chombourger
2019-11-14 17:01 ` Baurzhan Ismagulov
2019-11-15 16:59 ` chombourger
2019-11-19 16:56 ` Baurzhan Ismagulov
2019-11-15 13:34 ` chombourger
2019-11-15 13:39 ` Baurzhan Ismagulov
2019-11-15 13:39 ` Jan Kiszka
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=1571670655-818-1-git-send-email-Cedric_Hombourger@mentor.com \
--to=cedric_hombourger@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