Skip to contentSkip to conversation

snappy: disable tests

PATCH New Vicente Olivert Riera 2 participants 2 messages Jul 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 snappy: disable tests

This will also fix an unsafe header path problem:

/br/output/host/usr/bin/mips-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -c -o snappy_unittest-snappy-test.o `test
-f 'snappy-test.cc' || echo './'`snappy-test.cc mips-linux-gnu-g++: ERROR: unsafe header/library path used in
cross-compilation: '/usr/include'
Makefile:730: recipe for target 'snappy_unittest-snappy_unittest.o' failed

---
 package/snappy/snappy.mk | 3 +++
 1 file changed, 3 insertions(+)
package/snappy/snappy.mk +3 -0
index 6bda7ce..b00dddf 100644
@@ -13,4 +13,7 @@ SNAPPY_AUTORECONF = YES
 SNAPPY_DEPENDENCIES = host-pkgconf
 SNAPPY_INSTALL_STAGING = YES
 
+# Disable tests
+SNAPPY_CONF_OPTS = --disable-gtest
+
 $(eval $(autotools-package))
Signature · 1 line
2.3.6
#1 lore raw

PATCH 1/1 snappy: disable tests

Dear Vicente Olivert Riera,

Quoted 12 lines · Vicente Olivert Riera

This will also fix an unsafe header path problem:

/br/output/host/usr/bin/mips-linux-gnu-g++ -DHAVE_CONFIG_H -I.

(quoted diff) +0 -4
-I/usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64   -Os  -c -o snappy_unittest-snappy-test.o `test
-f 'snappy-test.cc' || echo './'`snappy-test.cc

mips-linux-gnu-g++: ERROR: unsafe header/library path used in
cross-compilation: '/usr/include'
Makefile:730: recipe for target 'snappy_unittest-snappy_unittest.o' failed

Quoted 4 lines
---
 package/snappy/snappy.mk | 3 +++
 1 file changed, 3 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com