This is an automated email from the ASF dual-hosted git repository. cdutz pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit d3bd3d407530ccb2cb5d7a730594ef3fbf2efab4 Author: Christofer Dutz <[email protected]> AuthorDate: Sun Jan 11 17:26:38 2026 +0100 fix: Updated the prereqisiteCheck to also deal with new versions of libpcap. --- src/main/script/prerequisiteCheck.groovy | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/script/prerequisiteCheck.groovy b/src/main/script/prerequisiteCheck.groovy index acb260c53c..406e1becfa 100644 --- a/src/main/script/prerequisiteCheck.groovy +++ b/src/main/script/prerequisiteCheck.groovy @@ -319,9 +319,15 @@ def checkLibPcap(String minVersion, String os, String arch) { } } output = org.pcap4j.core.Pcaps.libVersion() - String version = output - ~/^libpcap version / - def result = checkVersionAtLeast(version, minVersion) - if (!result) { + Matcher matcher = extractVersion(output) + if (matcher.size() > 0) { + String version = matcher[0][1] + def result = checkVersionAtLeast(version, minVersion) + if (!result) { + allConditionsMet = false + } + } else { + println "unable to parse version from: " + output allConditionsMet = false } } catch (Error e) {
