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
458651fb
Unverified
Commit
458651fb
authored
Jul 06, 2018
by
Adam Cozzette
Committed by
GitHub
Jul 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4877 from acozzette/update-docker-setup
Updated Docker setup to use GCC 4.8
parents
a651b77f
65e76f52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
Dockerfile
protoc-artifacts/Dockerfile
+7
-8
build-protoc.sh
protoc-artifacts/build-protoc.sh
+1
-1
scl-enable-devtoolset.sh
protoc-artifacts/scl-enable-devtoolset.sh
+1
-1
No files found.
protoc-artifacts/Dockerfile
View file @
458651fb
...
...
@@ -28,15 +28,14 @@ RUN wget -q http://apache.cs.utah.edu/maven/maven-3/3.3.9/binaries/apache-maven-
tar
xz
-C
/var/local
ENV
PATH /var/local/apache-maven-3.3.9/bin:$PATH
# Install GCC 4.
7
to support -static-libstdc++
RUN
wget http://people.centos.org/tru/devtools-
1.1/devtools-1.1
.repo
-P
/etc/yum.repos.d
&&
\
bash
-c
'echo "enabled=1" >> /etc/yum.repos.d/devtools-
1.1
.repo'
&&
\
bash
-c
"sed -e 's/
\$
basearch/i386/g' /etc/yum.repos.d/devtools-
1.1.repo > /etc/yum.repos.d/devtools-i386-1.1
.repo"
&&
\
sed
-e
's/testing-/testing-i386-/g'
-i
/etc/yum.repos.d/devtools-i386-
1.1
.repo
&&
\
# Install GCC 4.
8
to support -static-libstdc++
RUN
wget http://people.centos.org/tru/devtools-
2/devtools-2
.repo
-P
/etc/yum.repos.d
&&
\
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"
&&
\
sed
-e
's/testing-/testing-i386-/g'
-i
/etc/yum.repos.d/devtools-i386-
2
.repo
&&
\
rpm
--rebuilddb
&&
\
yum
install
-y
devtoolset-1.1
\
devtoolset-1.1-libstdc++-devel
\
devtoolset-1.1-libstdc++-devel.i686
&&
\
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
&&
\
yum clean all
COPY
scl-enable-devtoolset.sh /var/local/
...
...
protoc-artifacts/build-protoc.sh
View file @
458651fb
...
...
@@ -130,7 +130,7 @@ checkDependencies ()
white_list
=
"linux-vdso64
\.
so
\.
1
\|
libpthread
\.
so
\.
0
\|
libm
\.
so
\.
6
\|
libc
\.
so
\.
6
\|
libz
\.
so
\.
1
\|
ld64
\.
so
\.
2"
elif
[[
"
$ARCH
"
==
aarch_64
]]
;
then
dump_cmd
=
'objdump -p '
"
$1
"
' | grep NEEDED'
white_list
=
"libpthread
\.
so
\.
0
\|
libc
\.
so
\.
6
\|
ld-linux-aarch64
\.
so
\.
1"
white_list
=
"libpthread
\.
so
\.
0
\|
lib
m
\.
so
\.
6
\|
lib
c
\.
so
\.
6
\|
ld-linux-aarch64
\.
so
\.
1"
fi
elif
[[
"
$OS
"
==
osx
]]
;
then
dump_cmd
=
'otool -L '
"
$1
"
' | fgrep dylib'
...
...
protoc-artifacts/scl-enable-devtoolset.sh
View file @
458651fb
...
...
@@ -10,4 +10,4 @@ quote() {
done
}
exec
scl
enable
devtoolset-
1.1
"
$(
quote
"
$@
"
)
"
exec
scl
enable
devtoolset-
2
"
$(
quote
"
$@
"
)
"
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