Package: googletest
Version: 1.8.0-3
Severity: important

Dear Maintainer,

The included Makefile is unusable, as it contains the path of the older
version of the package.

Supposedly you want to build the library for your project you would do
somthing similar to:

mkdir /tmp/a; cd /tmp/a
make -f /usr/src/googletest/googletest/make/Makefile

and then use the resulting static library. To make this work the
Makefile has to be fixed, for gtest:

--- Makefile.old        2016-12-12 15:52:40.162911855 +0100
+++ Makefile    2016-12-12 15:55:33.826848718 +0100
@@ -14,10 +14,10 @@
 
 # Points to the root of Google Test, relative to where this file is.
 # Remember to tweak this if you move this file.
-GTEST_DIR = /usr/src/gtest
+GTEST_DIR = $(dir $(lastword $(MAKEFILE_LIST)))..
 
 # Where to find user code.
-USER_DIR = ../samples
+USER_DIR = $(dir $(lastword $(MAKEFILE_LIST)))/../samples
 
 # Flags passed to the preprocessor.
 # Set Google Test's header directory as a system directory, such that

for gmock:

--- Makefile.old        2016-12-12 16:07:12.568180908 +0100
+++ Makefile    2016-12-12 16:08:51.682651003 +0100
@@ -17,14 +17,14 @@
 # Points to the root of Google Test, relative to where this file is.
 # Remember to tweak this if you move this file, or if you want to use
 # a copy of Google Test at a different location.
-GTEST_DIR = ../../googletest
+GTEST_DIR = $(dir $(lastword $(MAKEFILE_LIST)))../../googletest
 
 # Points to the root of Google Mock, relative to where this file is.
 # Remember to tweak this if you move this file.
-GMOCK_DIR = ..
+GMOCK_DIR = $(dir $(lastword $(MAKEFILE_LIST)))..
 
 # Where to find user code.
-USER_DIR = ../test
+USER_DIR = $(dir $(lastword $(MAKEFILE_LIST)))../test
 
 # Flags passed to the preprocessor.
 # Set Google Test and Google Mock's header directories as system


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages googletest depends on:
pn  python:any  <none>

googletest recommends no packages.

googletest suggests no packages.

-- no debconf information

Reply via email to