Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
9134718f
Commit
9134718f
authored
10 years ago
by
Tim D. Smith
Browse files
Options
Downloads
Patches
Plain Diff
Audit formulæ for easy-install.pth files
Closes Homebrew/homebrew#32860.
parent
f2fa5512
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/cmd/audit.rb
+1
-0
1 addition, 0 deletions
Library/Homebrew/cmd/audit.rb
Library/Homebrew/formula_cellar_checks.rb
+13
-0
13 additions, 0 deletions
Library/Homebrew/formula_cellar_checks.rb
with
14 additions
and
0 deletions
Library/Homebrew/cmd/audit.rb
+
1
−
0
View file @
9134718f
...
...
@@ -568,6 +568,7 @@ class FormulaAuditor
audit_check_output
(
check_non_executables
(
f
.
sbin
))
audit_check_output
(
check_generic_executables
(
f
.
sbin
))
audit_check_output
(
check_shadowed_headers
)
audit_check_output
(
check_easy_install_pth
(
f
.
lib
))
end
def
audit
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula_cellar_checks.rb
+
13
−
0
View file @
9134718f
...
...
@@ -120,6 +120,19 @@ module FormulaCellarChecks
"The offending files are:
\n
#{
files
*
"
\n
"
}
"
]
end
def
check_easy_install_pth
lib
pth_found
=
Dir
[
"
#{
lib
}
/python{2.7,3.4}/site-packages/easy-install.pth"
].
map
{
|
f
|
File
.
dirname
(
f
)
}
return
if
pth_found
.
empty?
[
"easy-install.pth files were found in
#{
pth_found
.
join
(
", "
)
}
."
,
<<-
EOS
.
undent
These .pth files are likely to cause link conflicts. Please
invoke setup.py with options --single-version-externally-managed
--record=install.txt.
EOS
]
end
private
def
relative_glob
(
dir
,
pattern
)
...
...
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