Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] [PATCH lttng-modules 1/2] Fix: Allow alphanumeric characters in SLE version
@ 2018-08-09 15:55 Michael Jeanson
  2018-08-09 15:55 ` [lttng-dev] [PATCH lttng-modules 2/2] Fix: adjust SLE version ranges to build with SP2 and SP3 Michael Jeanson
  2018-08-09 19:10 ` [lttng-dev] [PATCH lttng-modules 1/2] Fix: Allow alphanumeric characters in SLE version Mathieu Desnoyers
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Jeanson @ 2018-08-09 15:55 UTC (permalink / raw)


Allow alphanumeric characters in the long version string before
extracting specific version numbers. This prevents failure in detecting
a SuSE kernel when the version string was customized by the end user.

Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 scripts/abi-sle-version.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/abi-sle-version.sh b/scripts/abi-sle-version.sh
index bd6d5f1..aafed7c 100755
--- a/scripts/abi-sle-version.sh
+++ b/scripts/abi-sle-version.sh
@@ -23,7 +23,7 @@ if [ ! -f "${KPATH}/include/generated/utsrelease.h" ]; then
 	exit 0
 fi
 
-SLE_RELEASE="$(sed -rn 's/^#define UTS_RELEASE "(.*)-([0-9\.]+)-(.*)"/\2/p' "${KPATH}/include/generated/utsrelease.h")"
+SLE_RELEASE="$(sed -rn 's/^#define UTS_RELEASE "(.*)-([0-9a-zA-Z\.]+)-(.*)"/\2/p' "${KPATH}/include/generated/utsrelease.h")"
 
 SLE_RELEASE_MAJOR="$(echo "${SLE_RELEASE}" | sed -rn 's/^([0-9]+)(.*)$/\1/p')"
 SLE_RELEASE_MINOR="$(echo "${SLE_RELEASE}" | sed -rn 's/^([0-9]+)\.([0-9]+)(.*)$/\2/p')"
-- 
2.17.1



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

end of thread, other threads:[~2018-08-09 19:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-09 15:55 [lttng-dev] [PATCH lttng-modules 1/2] Fix: Allow alphanumeric characters in SLE version Michael Jeanson
2018-08-09 15:55 ` [lttng-dev] [PATCH lttng-modules 2/2] Fix: adjust SLE version ranges to build with SP2 and SP3 Michael Jeanson
2018-08-09 19:10 ` [lttng-dev] [PATCH lttng-modules 1/2] Fix: Allow alphanumeric characters in SLE version Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox