Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
4613e86e
Commit
4613e86e
authored
3 weeks ago
by
Pierre-Alain Loizeau
Committed by
Florian Uhlig
3 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix new checklibs feature to support both mawk and gawk variants of awk
parent
2615d550
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2064
Add check of installed libraries
Pipeline
#33682
passed
3 weeks ago
Stage: package
Stage: verify
Stage: documentation
Stage: deploy
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/checklibs.sh
+14
-7
14 additions, 7 deletions
scripts/checklibs.sh
with
14 additions
and
7 deletions
scripts/checklibs.sh
+
14
−
7
View file @
4613e86e
...
...
@@ -25,17 +25,24 @@ for lib in $all_libs; do
first_class
=
""
rootmap_file
=
"
${
lib
%%
".so"
}
"
.rootmap
if
[
-f
"
${
rootmap_file
}
"
]
;
then
rootmap_defs_token
=
"
\[
lib"
if
[[
${
rootmap_file
}
==
*
"libHal"
*
]]
;
then
# Commented out for now as lead to missing headers detection in 60% of HAL libraries (9/14)
# rootmap_defs_token="\[ Hal"
fi
# Need 4 * \ because gawk (GNU awk, Ubuntu 22.04) parse such strings twice before trying to use the string...
# So \\\\ becomes \\ which becomes \
# => Seems to still work with mawk (Mike's awk, debian 10) on run2, so ok like this?
rootmap_defs_token
=
"
\\\\
[ lib"
# if [[ ${rootmap_file} == *"libHal"* ]]; then
# # Commented out for now as lead to missing headers detection in 60% of HAL libraries (9/14)
# rootmap_defs_token="\\\\[ Hal"
# fi
first_class
=
$(
awk
-v
token
=
"
${
rootmap_defs_token
}
"
'$0 ~ token ,0'
${
rootmap_file
}
|
grep
-m1
"
${
start_token_class
}
"
|
tr
-d
';'
)
first_class
=
"
${
first_class
##
"
${
start_token_class
}
"
}
"
# Printouts commented out to limit spam in test logs
# FIXME: make it a "-v" option
# echo "Loading the library ${lib} and parsing it for class ${first_class}"
#else
# echo "Loading the library ${lib}"
fi
# echo "Loading the library ${lib} and parsing it for class ${first_class}"
root
-l
-q
-b
"
${
SCRIPTDIR
}
/loadlib.C(
\"
${
lib
}
\"
,
\"
${
first_class
}
\"
)"
&>
${
tmpfile
}
retval
=
$?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment