Project

General

Profile

Bug #6685

gtest-dev missing directory/files in package (non-functional)

Added by Jared Biel over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
01/13/2017
Due date:
% Done:

100%

Estimated time:
Affected versions:
Security IDs:

Description

Hello - the gtest 1.8.0 package seems to be missing a directory (/usr/include/gtest/internal/custom) and associated files. This results in gtest not working during the build I'm trying to perform (libphonenumber.) Compilation under Alpine 3.4 (with gtest 1.7.0 package) work fine.

[ 56%] Building CXX object CMakeFiles/libphonenumber_test.dir/test/phonenumbers/asyoutypeformatter_test.cc.o
In file included from /usr/include/gtest/internal/gtest-internal.h:40:0,
                 from /usr/include/gtest/gtest.h:58,
                 from /root/libphonenumber-8.0.1/cpp/test/phonenumbers/asyoutypeformatter_test.cc:23:
/usr/include/gtest/internal/gtest-port.h:282:46: fatal error: gtest/internal/custom/gtest-port.h: No such file or directory
 #include "gtest/internal/custom/gtest-port.h" 
                                              ^
compilation terminated.

internal/gtest-internal.h includes internal/custom-port.h in line 282
https://github.com/google/googletest/blob/release-1.8.0/googletest/include/gtest/internal/gtest-port.h#L282

Repro steps (exactly what I'm trying in an alpine:3.5 docker container):

apk --update add build-base gtest gtest-dev boost boost-dev protobuf protobuf-dev cmake icu icu-dev openssl
cd /tmp
wget https://github.com/googlei18n/libphonenumber/archive/v8.0.1.tar.gz
tar xf v8.0.1.tar.gz
cd libphonenumber-8.0.1
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ../cpp
make -Wno-error=deprecated-declarations -j $(grep -c ^processor /proc/cpuinfo)

I'm pretty new to Alpine and am working on trying to get abuild to run so I can debug what happened with the build. I'll update this ticket if I have time to get an abuild environment up and running.

Associated revisions

Revision 773c81ab (diff)
Added by Francesco Colista over 2 years ago

main/gtest: added missing dir in -dev package. Fixes #6685

Revision 548d5f05 (diff)
Added by Francesco Colista about 2 years ago

main/gtest: added missing dir in -dev package. Fixes #6685

History

#1 Updated by Anonymous over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#2 Updated by Jared Biel over 2 years ago

Thanks for this fix! Considering the 1.8.0-r0 package is non-functional, is there a process to get 1.8.0-r1 included in v3.5?

#3 Updated by Natanael Copa over 2 years ago

  • Status changed from Resolved to New
  • Target version set to 3.5.1

yes, this should be backported to 3.5-stable

#4 Updated by Anonymous about 2 years ago

  • Status changed from New to Resolved

#5 Updated by Leonardo Arena about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF