Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
443904d5
Commit
443904d5
authored
Nov 06, 2001
by
Committed by
Alexandre Julliard
Nov 06, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid parsing the whole tree to find libwine.so.
parent
070e749c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
winecheck
tools/winecheck
+25
-1
No files found.
tools/winecheck
View file @
443904d5
...
@@ -217,7 +217,31 @@ sub Check_BaseFiles {
...
@@ -217,7 +217,31 @@ sub Check_BaseFiles {
$level
=
$is_ok
;
$level
=
$is_ok
;
my
@output
=
();
my
@output
=
();
Do_Check
(
"for correct .so lib config (please wait)"
);
Do_Check
(
"for correct .so lib config (please wait)"
);
push
(
@output
,
`find / -name libwine.so 2>/dev/null`
);
# Build list of library directories.
# First parse ld.so.conf to find system-wide lib directories.
my
@dirlist
=
();
open
(
LDCONF
,
"</etc/ld.so.conf"
);
while
(
<
LDCONF
>
)
{
s/\#.*//
;
# eliminate comments
chomp
;
if
(
-
d
$_
)
{
push
@dirlist
,
$_
;
}
}
close
(
LDCONF
);
# Next parse LD_LIBRARY_PATH to find user-specific lib dirs.
my
(
@ld_dirs
)
=
split
(
/:/
,
$ENV
{
'LD_LIBRARY_PATH'
});
my
(
$dir
);
foreach
$dir
(
@ld_dirs
)
{
if
(
-
d
$dir
)
{
push
@dirlist
,
$dir
;
}
}
# Now check for a libwine.so in each directory
foreach
$dir
(
@dirlist
)
{
my
(
$target
)
=
$dir
.
"/libwine.so"
;
if
(
-
f
$target
)
{
push
@output
,
$target
;
}
}
print
"DEBUG: found libwine: @output\n"
;
if
(
@output
>
1
)
if
(
@output
>
1
)
{
{
$level
=
$is_suspect
;
$level
=
$is_suspect
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment