All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/mcelog: bump to version 184
@ 2022-07-26 17:45 Vincent Fazio
  2022-07-26 18:55 ` Arnout Vandecappelle
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Vincent Fazio @ 2022-07-26 17:45 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour, Vincent Fazio

Minor changes necessary to fix building the package:
  - Call out host-python3 in the makefile
  - Patch genconfig.py to not use hardcoded python3 shebang

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
---
 .../0001-Use-env-as-the-shebang-target.patch  | 33 +++++++++++++++++++
 package/mcelog/mcelog.hash                    |  2 +-
 package/mcelog/mcelog.mk                      |  3 +-
 3 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 package/mcelog/0001-Use-env-as-the-shebang-target.patch

diff --git a/package/mcelog/0001-Use-env-as-the-shebang-target.patch b/package/mcelog/0001-Use-env-as-the-shebang-target.patch
new file mode 100644
index 0000000000..ce9fc9c44c
--- /dev/null
+++ b/package/mcelog/0001-Use-env-as-the-shebang-target.patch
@@ -0,0 +1,33 @@
+From c6eee289225beccfc40c73d31baa4179abc5ac57 Mon Sep 17 00:00:00 2001
+From: Vincent Fazio <vfazio@xes-inc.com>
+Date: Thu, 21 Jul 2022 16:56:11 -0500
+Subject: [PATCH] Use env as the shebang target
+
+Let the script be flexible when it comes to finding the python3
+interpreter.
+
+Some build wrappers, such as buildroot, will provide a python3 binary
+for use by scripts but it will not be at the fixed path of /usr/bin/.
+Instead it will be available in a path defined in $PATH
+
+Using env as the shebang target with python3 as the command will follow
+$PATH search priority when determining the python3 interpreter.
+
+Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
+---
+ genconfig.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/genconfig.py b/genconfig.py
+index a387cb3..48c1b3e 100755
+--- a/genconfig.py
++++ b/genconfig.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python3
++#!/usr/bin/env python3
+ # generate man config documentation from mcelog.conf example
+ # genconfig.py mcelog.conf intro.html
+ import sys
+-- 
+2.25.1
+
diff --git a/package/mcelog/mcelog.hash b/package/mcelog/mcelog.hash
index 598aa648fd..94b5f2cc37 100644
--- a/package/mcelog/mcelog.hash
+++ b/package/mcelog/mcelog.hash
@@ -1,3 +1,3 @@
 # Locally computed
-sha256  e9c82b565da06673c2630f9e6bc668634ad7d2c7f13c70db1900cce110ae62dc  mcelog-180.tar.gz
+sha256  067d52006f0aa42045acc6d9c04d590362448bacd8ef415d42729e6f35825028  mcelog-184.tar.gz
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  LICENSE
diff --git a/package/mcelog/mcelog.mk b/package/mcelog/mcelog.mk
index da7785ca91..6a0d806661 100644
--- a/package/mcelog/mcelog.mk
+++ b/package/mcelog/mcelog.mk
@@ -4,11 +4,12 @@
 #
 ################################################################################
 
-MCELOG_VERSION = 180
+MCELOG_VERSION = 184
 MCELOG_SITE = $(call github,andikleen,mcelog,v$(MCELOG_VERSION))
 MCELOG_LICENSE = GPL-2.0
 MCELOG_LICENSE_FILES = LICENSE
 MCELOG_SELINUX_MODULES = mcelog
+MCELOG_DEPENDENCIES = host-python3
 
 define MCELOG_BUILD_CMDS
 	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-27 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26 17:45 [Buildroot] [PATCH] package/mcelog: bump to version 184 Vincent Fazio
2022-07-26 18:55 ` Arnout Vandecappelle
2022-07-26 19:52 ` Thomas Petazzoni via buildroot
2022-07-27 11:38   ` [Buildroot] [External] - " Vincent Fazio
2022-07-27 13:05 ` [Buildroot] [PATCH v2] " Vincent Fazio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.