gtest-dev missing directory/files in package (non-functional)
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.
(from redmine: issue id 6685, created on 2017-01-13, closed on 2017-01-24)
- Changesets:
- Revision 773c81ab on 2017-01-16T09:29:45Z:
main/gtest: added missing dir in -dev package. Fixes #6685
- Revision 548d5f05 on 2017-01-17T10:13:50Z:
main/gtest: added missing dir in -dev package. Fixes #6685