Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
30851ca2
Unverified
Commit
30851ca2
authored
Jan 23, 2019
by
Hao Nguyen
Committed by
GitHub
Jan 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix protoc release (#5615)
* Fix protoc release * Update Dockerfile to include libatomic
parent
4f8a6356
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
Dockerfile
protoc-artifacts/Dockerfile
+14
-3
build-protoc.sh
protoc-artifacts/build-protoc.sh
+5
-5
No files found.
protoc-artifacts/Dockerfile
View file @
30851ca2
...
@@ -33,9 +33,20 @@ RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -P /etc/yum.rep
...
@@ -33,9 +33,20 @@ RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -P /etc/yum.rep
bash
-c
'echo "enabled=1" >> /etc/yum.repos.d/devtools-2.repo'
&&
\
bash
-c
'echo "enabled=1" >> /etc/yum.repos.d/devtools-2.repo'
&&
\
bash
-c
"sed -e 's/
\$
basearch/i386/g' /etc/yum.repos.d/devtools-2.repo > /etc/yum.repos.d/devtools-i386-2.repo"
&&
\
bash
-c
"sed -e 's/
\$
basearch/i386/g' /etc/yum.repos.d/devtools-2.repo > /etc/yum.repos.d/devtools-i386-2.repo"
&&
\
sed
-e
's/testing-/testing-i386-/g'
-i
/etc/yum.repos.d/devtools-i386-2.repo
&&
\
sed
-e
's/testing-/testing-i386-/g'
-i
/etc/yum.repos.d/devtools-i386-2.repo
&&
\
rpm
--rebuilddb
&&
\
rpm
--rebuilddb
yum
install
-y
devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils devtoolset-2-libstdc++-devel
\
devtoolset-2-gcc.i686 devtoolset-2-gcc-c++.i686 devtoolset-2-binutils.i686 devtoolset-2-libstdc++-devel.i686
&&
\
RUN
yum
install
-y
devtoolset-2-gcc
\
devtoolset-2-gcc-c++
\
devtoolset-2-binutils
\
devtoolset-2-libstdc++-devel
\
devtoolset-2-libatomic-devel
\
libatomic
\
devtoolset-2-gcc.i686
\
devtoolset-2-gcc-c++.i686
\
devtoolset-2-binutils.i686
\
devtoolset-2-libstdc++-devel.i686
\
devtoolset-2-libatomic-devel.i686
\
libatomic.i686
&&
\
yum clean all
yum clean all
COPY
scl-enable-devtoolset.sh /var/local/
COPY
scl-enable-devtoolset.sh /var/local/
...
...
protoc-artifacts/build-protoc.sh
View file @
30851ca2
...
@@ -95,8 +95,8 @@ checkArch ()
...
@@ -95,8 +95,8 @@ checkArch ()
assertEq
$format
"elf64-little"
$LINENO
assertEq
$format
"elf64-little"
$LINENO
elif
[[
"
$ARCH
"
==
ppcle_64
]]
;
then
elif
[[
"
$ARCH
"
==
ppcle_64
]]
;
then
if
[[
$host_machine
==
ppc64le
]]
;
then
if
[[
$host_machine
==
ppc64le
]]
;
then
assertEq
$format
"elf64-powerpcle"
$LINENO
assertEq
$format
"elf64-powerpcle"
$LINENO
else
else
assertEq
$format
"elf64-little"
$LINENO
assertEq
$format
"elf64-little"
$LINENO
fi
fi
else
else
...
@@ -140,11 +140,11 @@ checkDependencies ()
...
@@ -140,11 +140,11 @@ checkDependencies ()
host_machine
=
"
$(
uname
-m
)
"
;
host_machine
=
"
$(
uname
-m
)
"
;
dump_cmd
=
'ldd '
"
$1
"
dump_cmd
=
'ldd '
"
$1
"
if
[[
"
$ARCH
"
==
x86_32
]]
;
then
if
[[
"
$ARCH
"
==
x86_32
]]
;
then
white_list
=
"linux-gate
\.
so
\.
1
\|
libpthread
\.
so
\.
0
\|
libm
\.
so
\.
6
\|
libc
\.
so
\.
6
\|
ld-linux
\.
so
\.
2"
white_list
=
"linux-gate
\.
so
\.
1
\|
libpthread
\.
so
\.
0
\|
libm
\.
so
\.
6
\|
libc
\.
so
\.
6
\|
ld-linux
\.
so
\.
2
\|
libatomic
\.
so
\.
1
"
elif
[[
"
$ARCH
"
==
x86_64
]]
;
then
elif
[[
"
$ARCH
"
==
x86_64
]]
;
then
white_list
=
"linux-vdso
\.
so
\.
1
\|
libpthread
\.
so
\.
0
\|
libm
\.
so
\.
6
\|
libc
\.
so
\.
6
\|
ld-linux-x86-64
\.
so
\.
2"
white_list
=
"linux-vdso
\.
so
\.
1
\|
libpthread
\.
so
\.
0
\|
libm
\.
so
\.
6
\|
libc
\.
so
\.
6
\|
ld-linux-x86-64
\.
so
\.
2
\|
libatomic
\.
so
\.
1
"
elif
[[
"
$ARCH
"
==
ppcle_64
]]
;
then
elif
[[
"
$ARCH
"
==
ppcle_64
]]
;
then
if
[[
$host_machine
!=
ppc64le
]]
;
then
if
[[
$host_machine
!=
ppc64le
]]
;
then
dump_cmd
=
'objdump -p '
"
$1
"
' | grep NEEDED'
dump_cmd
=
'objdump -p '
"
$1
"
' | grep NEEDED'
fi
fi
white_list
=
"linux-vdso64
\.
so
\.
1
\|
libpthread
\.
so
\.
0
\|
libm
\.
so
\.
6
\|
libc
\.
so
\.
6
\|
libz
\.
so
\.
1
\|
ld64
\.
so
\.
2"
white_list
=
"linux-vdso64
\.
so
\.
1
\|
libpthread
\.
so
\.
0
\|
libm
\.
so
\.
6
\|
libc
\.
so
\.
6
\|
libz
\.
so
\.
1
\|
ld64
\.
so
\.
2"
...
...
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