Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
ca5c78e7
Commit
ca5c78e7
authored
Mar 04, 2021
by
satmandu
Committed by
GitHub
Mar 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crew: modify ldconfig & curl usage (#5326)
* modify ldconfig & curl usage * bump ver
parent
d0bae68e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
crew
crew
+7
-2
lib/const.rb
lib/const.rb
+1
-1
No files found.
crew
View file @
ca5c78e7
...
...
@@ -51,6 +51,9 @@ DOCOPT
#
If
CREW_XZ_OPT
is
defined
,
use
it
by
default
.
Use
`-
7
e
`,
otherwise
.
ENV
[
"XZ_OPT"
]
=
ENV
[
'CREW_XZ_OPT'
]
||
"-7e -T #{CREW_NPROC}"
#
If
CURL
environment
variable
exists
use
it
in
lieu
of
curl
.
CURL
=
ENV
[
'CURL'
]
||
'curl'
#
Parse
arguments
using
docopt
require_relative
'lib/docopt'
begin
...
...
@@ -327,6 +330,7 @@ def const (var)
'ARCH'
,
'ARCH_LIB'
,
'CHROMEOS_RELEASE'
,
'CURL'
,
'CREW_BREW_DIR'
,
'CREW_BUILD'
,
'CREW_CMAKE_LIBSUFFIX_OPTIONS'
,
...
...
@@ -529,7 +533,7 @@ def download
end
end
system
"
curl
--retry 3 -#{@verbose}#LC - --insecure \'#{url}\' --output #{filename}"
system
"
#{CURL}
--retry 3 -#{@verbose}#LC - --insecure \'#{url}\' --output #{filename}"
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
filename
)
)
==
sha256sum
...
...
@@ -836,7 +840,8 @@ def install
file.write JSON.pretty_generate(output)
end
# Update shared library cache after install is complete.
system "#{CREW_PREFIX}/sbin/ldconfig || true"
system "echo #{CREW_LIB_PREFIX} > #{CREW_PREFIX}/etc/ld.so.conf"
system "#{CREW_PREFIX}/sbin/ldconfig -f #{CREW_PREFIX}/etc/ld.so.conf -C #{CREW_PREFIX}/etc/ld.so.cache"
end
def resolve_dependencies_and_build
...
...
lib/const.rb
View file @
ca5c78e7
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.7.
8
'
CREW_VERSION
=
'1.7.
9
'
ARCH_ACTUAL
=
`uname -m`
.
strip
# This helps with virtualized builds on aarch64 machines
...
...
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