From c5aef83d71ed64b55feea37dfb6d0adab74ec4a1 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 26 Jan 2026 22:39:23 -0800 Subject: memstat: Pass OE environment CFLAGS to makefile Helps with reproducible builds Signed-off-by: Khem Raj --- .../0001-makefile-Do-not-override-cflags.patch | 30 ++++++++++++++++++++++ meta-oe/recipes-devtools/memstat/memstat_1.0.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-devtools/memstat/memstat/0001-makefile-Do-not-override-cflags.patch diff --git a/meta-oe/recipes-devtools/memstat/memstat/0001-makefile-Do-not-override-cflags.patch b/meta-oe/recipes-devtools/memstat/memstat/0001-makefile-Do-not-override-cflags.patch new file mode 100644 index 0000000000..8ac7a8ff54 --- /dev/null +++ b/meta-oe/recipes-devtools/memstat/memstat/0001-makefile-Do-not-override-cflags.patch @@ -0,0 +1,30 @@ +From a0806283da1b82b511aa879fa2f71deb01f849bd Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 26 Jan 2026 22:22:54 -0800 +Subject: [PATCH] makefile: Do not override cflags + +bitbake environment passes correct clfags for OE env +overriding it means some important flags for cross-compiling +go missing and causes + +memstat-1.0-r0 do_package_qa: QA Issue: File /usr/bin/.debug/memstat in package memstat-dbg contains reference to TMPDIR [buildpaths] + +Upstream-Status: Inappropriate [OE-specific] + +Signed-off-by: Khem Raj +--- + Makefile | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 29f8129..5426bf4 100644 +--- a/Makefile ++++ b/Makefile +@@ -3,7 +3,6 @@ + # Copyright 1998, by Bernd Eckenfels + # This file is under the GPL. + # +-CFLAGS = -g -Wall -O2 + prefix = $(DESTDIR)/ + exec_prefix = $(prefix)/usr + diff --git a/meta-oe/recipes-devtools/memstat/memstat_1.0.bb b/meta-oe/recipes-devtools/memstat/memstat_1.0.bb index 6289f3a27a..a0b4d0b9cc 100644 --- a/meta-oe/recipes-devtools/memstat/memstat_1.0.bb +++ b/meta-oe/recipes-devtools/memstat/memstat_1.0.bb @@ -14,6 +14,7 @@ LIC_FILES_CHKSUM = "file://debian/copyright;md5=87be186443b1ac2cfa466f475e1ee0cb SRC_URI = "http://sourceforge.net/projects/memstattool/files/memstat_${PV}.tar.gz \ file://0001-Include-limits.h-for-PATH_MAX-definition.patch \ + file://0001-makefile-Do-not-override-cflags.patch \ " SRC_URI[sha256sum] = "245d5fc7fb87bcfd14486cd34917cae2856e799559ac568434af12c4852bce94" -- cgit v1.2.3-54-g00ecf