memstat: Pass OE environment CFLAGS to makefile

Helps with reproducible builds

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2026-01-26 22:39:23 -08:00 committed by Khem Raj
parent 4938f15e42
commit 347474c362
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,30 @@
From a0806283da1b82b511aa879fa2f71deb01f849bd Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
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 <raj.khem@gmail.com>
---
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 <ecki@debian.org>
# This file is under the GPL.
#
-CFLAGS = -g -Wall -O2
prefix = $(DESTDIR)/
exec_prefix = $(prefix)/usr

View File

@ -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"