Skip to content

Commit

Permalink
Update protobuf as tensorflow fails to build with 3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov committed Feb 7, 2019
1 parent 6ae997a commit cf5c76b
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions protobuf.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external protobuf 3.5.2
### RPM external protobuf 3.6.1.2
## INITENV SETV PROTOBUF_SOURCE %{source0}
## INITENV SETV PROTOBUF_STRIP_PREFIX %{source_prefix}
#============= IMPORTANT NOTE ========================#
Expand All @@ -24,22 +24,7 @@ BuildRequires: autotools

%build
./autogen.sh
# Update to detect aarch64 and ppc64le
rm -f ./config.{sub,guess}
curl -L -k -s -o ./config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
curl -L -k -s -o ./config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
chmod +x ./config.{sub,guess}


rm -f ./gmock/gtest/build-aux/config.{sub,guess}
curl -L -k -s -o ./gmock/gtest/build-aux/config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
curl -L -k -s -o ./gmock/gtest/build-aux/config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
chmod +x ./gmock/gtest/build-aux/config.{sub,guess}

rm -f ./gmock/build-aux/config.{sub,guess}
curl -L -k -s -o ./gmock/build-aux/config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
curl -L -k -s -o ./gmock/build-aux/config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
chmod +x ./gmock/build-aux/config.{sub,guess}
./configure --prefix %{i} \
--disable-static \
--disable-dependency-tracking \
Expand Down

0 comments on commit cf5c76b

Please sign in to comment.