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
ce2eda5a
Unverified
Commit
ce2eda5a
authored
4 years ago
by
rmnull
Browse files
Options
Downloads
Patches
Plain Diff
remove PatchELF::Patcher refinements.
parent
41bc670a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/os/linux/elf.rb
+3
-39
3 additions, 39 deletions
Library/Homebrew/os/linux/elf.rb
with
3 additions
and
39 deletions
Library/Homebrew/os/linux/elf.rb
+
3
−
39
View file @
ce2eda5a
# frozen_string_literal: true
if
HOMEBREW_PATCHELF_RB
require
"utils/gems"
Homebrew
.
install_bundler_gems!
require
"patchelf"
module
PatchELF
refine
Patcher
do
# patchelf.rb throws exception when the requested entry is missing in the ELF file.
# We prefer an API that returns nil.
def
rpath
super
rescue
PatchELF
::
MissingTagError
nil
end
def
runpath
super
rescue
PatchELF
::
MissingTagError
nil
end
def
soname
super
rescue
PatchELF
::
MissingTagError
nil
end
def
interpreter
super
rescue
PatchELF
::
MissingSegmentError
nil
end
end
end
end
# @see https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
module
ELFShim
using
PatchELF
if
HOMEBREW_PATCHELF_RB
MAGIC_NUMBER_OFFSET
=
0
MAGIC_NUMBER_ASCII
=
"
\x7f
ELF"
...
...
@@ -252,7 +214,9 @@ module ELFShim
def
patchelf_patcher
return
unless
HOMEBREW_PATCHELF_RB
@patchelf_patcher
||=
PatchELF
::
Patcher
.
new
to_s
,
logging:
false
Homebrew
.
install_bundler_gems!
require
"patchelf"
@patchelf_patcher
||=
PatchELF
::
Patcher
.
new
to_s
,
on_error: :silent
end
def
metadata
...
...
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