From eb992fc97c17485bee207c75741c2076b13c2787 Mon Sep 17 00:00:00 2001 From: psykose Date: Mon, 20 Feb 2023 17:43:56 +0000 Subject: [PATCH] community/libtraceevent: fix a typo for big endian --- community/libtraceevent/APKBUILD | 5 ++++- community/libtraceevent/big-endian-typo.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 community/libtraceevent/big-endian-typo.patch diff --git a/community/libtraceevent/APKBUILD b/community/libtraceevent/APKBUILD index 133f274b68c..0aa89675c18 100644 --- a/community/libtraceevent/APKBUILD +++ b/community/libtraceevent/APKBUILD @@ -10,7 +10,9 @@ depends_dev="linux-headers" makedepends="$depends_dev" checkdepends="cunit-dev" subpackages="$pkgname-plugins $pkgname-dev" -source="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-$pkgver.tar.gz" +source="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-$pkgver.tar.gz + big-endian-typo.patch + " build() { make @@ -38,4 +40,5 @@ plugins() { sha512sums=" 412b93109ccd6e1bdece52f9a10989a58ff5693144fd460c7ebaef0ebc4649fac95eea20c5f88aa2f23bdc59bf359a65ab23ab41c3a5b7c92df6e52225477093 libtraceevent-1.7.1.tar.gz +0b013e468cb7cfb0c5659158268c9c3988c69f729b49809b82136cbf54c7304d5684a43ededa5c97fa31e15503e1de953515811dfe205b3f1cdf7f35724e6c0d big-endian-typo.patch " diff --git a/community/libtraceevent/big-endian-typo.patch b/community/libtraceevent/big-endian-typo.patch new file mode 100644 index 00000000000..0c283b78542 --- /dev/null +++ b/community/libtraceevent/big-endian-typo.patch @@ -0,0 +1,13 @@ +diff --git a/utest/traceevent-utest.c b/utest/traceevent-utest.c +index ebd5eb9..b7152d1 100644 +--- a/utest/traceevent-utest.c ++++ b/utest/traceevent-utest.c +@@ -45,7 +45,7 @@ static char dyn_str_data[] = { + #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + /* common type */ 1, 0x00, + #else +- /* common type */ 0x00, 1 ++ /* common type */ 0x00, 1, + #endif + /* common flags */ 0x00, + /* common_preempt_count */ 0x00,