Skip to contentSkip to conversation

devtools: skip experimental libraries in ABI check

PATCH In review David Marchand 3 participants 4 messages Feb 21, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devtools: skip experimental libraries in ABI check

We don't provide ABI compatibility for experimental libraries. Skip those libraries by catching a soname containing a version starting with '0.'.

Align the special case for the glue libraries by using the soname too. Once libabigail has support for it, we will have a single type of rule.

Fixes 777014e56d07 ("devtools: add ABI checks")
---
 devtools/check-abi.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
devtools/check-abi.sh +7 -2
index 0b4d1a37e..dd9120e69 100755
@@ -40,8 +40,13 @@ for dump in $(find $refdir -name "*.dump"); do
 	# skip glue drivers, example librte_pmd_mlx5_glue.dump
 	# We can't rely on a suppression rule for now:
 	# https://sourceware.org/bugzilla/show_bug.cgi?id=25480
-	if [ "$name" != "${name%%_glue.dump}" ]; then
-		echo "Skipping ${dump}..."
+	if grep -qE "\<soname='[^']*_glue\.so\.[^']*'" $dump; then
+		echo "Skipped glue library $name."
+		continue
+	fi
+	# skip experimental libraries, with a sover starting with 0.
+	if grep -qE "\<soname='[^']*\.so\.0\.[^']*'" $dump; then
+		echo "Skipped experimental library $name."
 		continue
 	fi
 	dump2=$(find $newdir -name $name)
Signature · 1 line
2.23.0
#1 lore raw
Quoted 3 lines · David Marchand

We don't provide ABI compatibility for experimental libraries. Skip those libraries by catching a soname containing a version starting with '0.'.

I am not familiar with the script and how libabigail works, but +1 to the idea.

Quoted 32 lines

Align the special case for the glue libraries by using the soname too. Once libabigail has support for it, we will have a single type of rule.

Fixes 777014e56d07 ("devtools: add ABI checks")
---
 devtools/check-abi.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
devtools/check-abi.sh +7 -2
index 0b4d1a37e..dd9120e69 100755
@@ -40,8 +40,13 @@ for dump in $(find $refdir -name "*.dump"); do
 	# skip glue drivers, example librte_pmd_mlx5_glue.dump
 	# We can't rely on a suppression rule for now:
 	# https://sourceware.org/bugzilla/show_bug.cgi?id=25480
-	if [ "$name" != "${name%%_glue.dump}" ]; then
-		echo "Skipping ${dump}..."
+	if grep -qE "\<soname='[^']*_glue\.so\.[^']*'" $dump; then
+		echo "Skipped glue library $name."
+		continue
+	fi
+	# skip experimental libraries, with a sover starting with 0.
+	if grep -qE "\<soname='[^']*\.so\.0\.[^']*'" $dump; then
+		echo "Skipped experimental library $name."
 		continue
 	fi
 	dump2=$(find $newdir -name $name)
#2 lore raw

21/02/2020 17:13, Ferruh Yigit:

Quoted 5 lines · David Marchand
Quoted 3 lines

We don't provide ABI compatibility for experimental libraries. Skip those libraries by catching a soname containing a version starting with '0.'.

Quoted 9 lines

I am not familiar with the script and how libabigail works, but +1 to the idea.

Quoted 7 lines

Align the special case for the glue libraries by using the soname too. Once libabigail has support for it, we will have a single type of rule.

Fixes 777014e56d07 ("devtools: add ABI checks")
author Applied
#3 lore raw
Quoted 10 lines · Thomas Monjalon

21/02/2020 17:13, Ferruh Yigit:

Quoted 8 lines · David Marchand
Quoted 3 lines

We don't provide ABI compatibility for experimental libraries. Skip those libraries by catching a soname containing a version starting with '0.'.

I am not familiar with the script and how libabigail works, but +1 to the idea.

Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines

Align the special case for the glue libraries by using the soname too. Once libabigail has support for it, we will have a single type of rule.

Fixes 777014e56d07 ("devtools: add ABI checks")

Applied.

--
David Marchand