snappy: explicity disable building tests and benchmark

* with these changes introduced in 1.1.9:
  https://github.com/google/snappy/commit/549685a
  https://github.com/google/snappy/commit/4ebd8b2
  it now installs gtest,gmock,benchmark with snappy which
  causes conflicts when something depends on both snappy and googletest
  or google-benchmark, e.g. leveldb-tl.do_prepare_recipe_sysroot:
    ERROR: The file /usr/lib/pkgconfig/gmock_main.pc is installed by both snappy and googletest, aborting

* looking at buildhistory the 1.1.9 upgrade added a lot of files to snappy:

    diff --git a/packages/core2-64-webos-linux/snappy/snappy-dev/files-in-package.txt b/packages/core2-64-webos-linux/snappy/snappy-dev/files-in-package.txt
    index 4bb97db2..559c84fc 100644
    --- a/packages/core2-64-webos-linux/snappy/snappy-dev/files-in-package.txt
    +++ b/packages/core2-64-webos-linux/snappy/snappy-dev/files-in-package.txt
    @@ -1,14 +1,85 @@
     drwxr-xr-x root       root             4096 ./usr
     drwxr-xr-x root       root             4096 ./usr/include
    +drwxr-xr-x root       root             4096 ./usr/include/benchmark
    +-rw-r--r-- root       root            56897 ./usr/include/benchmark/benchmark.h
    +drwxr-xr-x root       root             4096 ./usr/include/gmock
    +-rw-r--r-- root       root            61607 ./usr/include/gmock/gmock-actions.h
    +-rw-r--r-- root       root             6037 ./usr/include/gmock/gmock-cardinalities.h
    +-rw-r--r-- root       root            24223 ./usr/include/gmock/gmock-function-mocker.h
    +-rw-r--r-- root       root            30996 ./usr/include/gmock/gmock-generated-actions.h
    +-rw-r--r-- root       root            15545 ./usr/include/gmock/gmock-generated-actions.h.pump
    +-rw-r--r-- root       root             3711 ./usr/include/gmock/gmock.h
    +-rw-r--r-- root       root           200261 ./usr/include/gmock/gmock-matchers.h
    +-rw-r--r-- root       root             3341 ./usr/include/gmock/gmock-more-matchers.h
    +-rw-r--r-- root       root             8967 ./usr/include/gmock/gmock-nice-strict.h
    +-rw-r--r-- root       root            76003 ./usr/include/gmock/gmock-spec-builders.h
    +drwxr-xr-x root       root             4096 ./usr/include/gmock/internal
    +drwxr-xr-x root       root             4096 ./usr/include/gmock/internal/custom
    +-rw-r--r-- root       root              365 ./usr/include/gmock/internal/custom/gmock-generated-actions.h
    +-rw-r--r-- root       root              451 ./usr/include/gmock/internal/custom/gmock-generated-actions.h.pump
    +-rw-r--r-- root       root             1861 ./usr/include/gmock/internal/custom/gmock-matchers.h
    +-rw-r--r-- root       root             1894 ./usr/include/gmock/internal/custom/gmock-port.h
    +-rw-r--r-- root       root              439 ./usr/include/gmock/internal/custom/README.md
    +-rw-r--r-- root       root            17975 ./usr/include/gmock/internal/gmock-internal-utils.h
    +-rw-r--r-- root       root             3788 ./usr/include/gmock/internal/gmock-port.h
    +-rw-r--r-- root       root            13530 ./usr/include/gmock/internal/gmock-pp.h
    +drwxr-xr-x root       root             4096 ./usr/include/gtest
    +-rw-r--r-- root       root            14374 ./usr/include/gtest/gtest-death-test.h
    +-rw-r--r-- root       root            94367 ./usr/include/gtest/gtest.h
    +-rw-r--r-- root       root            27455 ./usr/include/gtest/gtest-matchers.h
    +-rw-r--r-- root       root             8030 ./usr/include/gtest/gtest-message.h
    +-rw-r--r-- root       root            22681 ./usr/include/gtest/gtest-param-test.h
    +-rw-r--r-- root       root            14850 ./usr/include/gtest/gtest_pred_impl.h
    +-rw-r--r-- root       root            32033 ./usr/include/gtest/gtest-printers.h
    +-rw-r--r-- root       root             2519 ./usr/include/gtest/gtest_prod.h
    +-rw-r--r-- root       root            10097 ./usr/include/gtest/gtest-spi.h
    +-rw-r--r-- root       root             6853 ./usr/include/gtest/gtest-test-part.h
    +-rw-r--r-- root       root            15988 ./usr/include/gtest/gtest-typed-test.h
    +drwxr-xr-x root       root             4096 ./usr/include/gtest/internal
    +drwxr-xr-x root       root             4096 ./usr/include/gtest/internal/custom
    +-rw-r--r-- root       root             1843 ./usr/include/gtest/internal/custom/gtest.h
    +-rw-r--r-- root       root             1858 ./usr/include/gtest/internal/custom/gtest-port.h
    +-rw-r--r-- root       root             2079 ./usr/include/gtest/internal/custom/gtest-printers.h
    +-rw-r--r-- root       root             1682 ./usr/include/gtest/internal/custom/README.md
    +-rw-r--r-- root       root            13436 ./usr/include/gtest/internal/gtest-death-test-internal.h
    +-rw-r--r-- root       root             9764 ./usr/include/gtest/internal/gtest-filepath.h
    +-rw-r--r-- root       root            61757 ./usr/include/gtest/internal/gtest-internal.h
    +-rw-r--r-- root       root            35114 ./usr/include/gtest/internal/gtest-param-util.h
    +-rw-r--r-- root       root             4090 ./usr/include/gtest/internal/gtest-port-arch.h
    +-rw-r--r-- root       root            84530 ./usr/include/gtest/internal/gtest-port.h
    +-rw-r--r-- root       root             7213 ./usr/include/gtest/internal/gtest-string.h
    +-rw-r--r-- root       root             6270 ./usr/include/gtest/internal/gtest-type-util.h
     -rw-r--r-- root       root             5414 ./usr/include/snappy-c.h
    --rw-r--r-- root       root             9885 ./usr/include/snappy.h
    --rw-r--r-- root       root             7256 ./usr/include/snappy-sinksource.h
    --rw-r--r-- root       root             2845 ./usr/include/snappy-stubs-public.h
    +-rw-r--r-- root       root             9909 ./usr/include/snappy.h
    +-rw-r--r-- root       root             7265 ./usr/include/snappy-sinksource.h
    +-rw-r--r-- root       root             2579 ./usr/include/snappy-stubs-public.h
     drwxr-xr-x root       root             4096 ./usr/lib
     drwxr-xr-x root       root             4096 ./usr/lib/cmake
    +drwxr-xr-x root       root             4096 ./usr/lib/cmake/benchmark
    +-rw-r--r-- root       root               60 ./usr/lib/cmake/benchmark/benchmarkConfig.cmake
    +-rw-r--r-- root       root             2742 ./usr/lib/cmake/benchmark/benchmarkConfigVersion.cmake
    +-rw-r--r-- root       root             4247 ./usr/lib/cmake/benchmark/benchmarkTargets.cmake
    +-rw-r--r-- root       root             1380 ./usr/lib/cmake/benchmark/benchmarkTargets-noconfig.cmake
    +drwxr-xr-x root       root             4096 ./usr/lib/cmake/GTest
    +-rw-r--r-- root       root             1438 ./usr/lib/cmake/GTest/GTestConfig.cmake
    +-rw-r--r-- root       root             1978 ./usr/lib/cmake/GTest/GTestConfigVersion.cmake
    +-rw-r--r-- root       root             4958 ./usr/lib/cmake/GTest/GTestTargets.cmake
    +-rw-r--r-- root       root             2525 ./usr/lib/cmake/GTest/GTestTargets-noconfig.cmake
     drwxr-xr-x root       root             4096 ./usr/lib/cmake/Snappy
     -rw-r--r-- root       root             2864 ./usr/lib/cmake/Snappy/SnappyConfig.cmake
     -rw-r--r-- root       root             2742 ./usr/lib/cmake/Snappy/SnappyConfigVersion.cmake
     -rw-r--r-- root       root             3616 ./usr/lib/cmake/Snappy/SnappyTargets.cmake
     -rw-r--r-- root       root              806 ./usr/lib/cmake/Snappy/SnappyTargets-noconfig.cmake
    +lrwxrwxrwx root       root               22 ./usr/lib/libbenchmark_main.so -> libbenchmark_main.so.1
    +lrwxrwxrwx root       root               17 ./usr/lib/libbenchmark.so -> libbenchmark.so.1
    +lrwxrwxrwx root       root               23 ./usr/lib/libgmock_main.so -> libgmock_main.so.1.10.0
    +lrwxrwxrwx root       root               18 ./usr/lib/libgmock.so -> libgmock.so.1.10.0
    +lrwxrwxrwx root       root               23 ./usr/lib/libgtest_main.so -> libgtest_main.so.1.10.0
    +lrwxrwxrwx root       root               18 ./usr/lib/libgtest.so -> libgtest.so.1.10.0
     lrwxrwxrwx root       root               14 ./usr/lib/libsnappy.so -> libsnappy.so.1
    +drwxr-xr-x root       root             4096 ./usr/lib/pkgconfig
    +-rw-r--r-- root       root              240 ./usr/lib/pkgconfig/benchmark.pc
    +-rw-r--r-- root       root              275 ./usr/lib/pkgconfig/gmock_main.pc
    +-rw-r--r-- root       root              268 ./usr/lib/pkgconfig/gmock.pc
    +-rw-r--r-- root       root              275 ./usr/lib/pkgconfig/gtest_main.pc
    +-rw-r--r-- root       root              243 ./usr/lib/pkgconfig/gtest.pc
    diff --git a/packages/core2-64-webos-linux/snappy/snappy-dev/latest b/packages/core2-64-webos-linux/snappy/snappy-dev/latest
    index 0cc143d2..19a23796 100644
    --- a/packages/core2-64-webos-linux/snappy/snappy-dev/latest
    +++ b/packages/core2-64-webos-linux/snappy/snappy-dev/latest
    @@ -1,9 +1,8 @@
    -PV = 1.1.8
    +PV = 1.1.9
     PR = r0
    -PKG = libsnappy-dev
    -RPROVIDES = snappy-dev (=1.1.8)
    -RDEPENDS = snappy (= 1.1.8-r0)
    +RPROVIDES =
    +RDEPENDS = snappy (= 1.1.9-r0)
     RRECOMMENDS = glibc-dev libgcc-dev libstdc++-dev snappy-lic
    -PKGSIZE = 35442
    +PKGSIZE = 1062733
     FILES = /usr/include /lib/lib*.so /usr/lib/lib*.so /usr/lib/*.la /usr/lib/*.o /usr/lib/pkgconfig /usr/share/pkgconfig /usr/share/aclocal /lib/*.o /usr/lib/snappy/*.la /lib/*.la /usr/lib/cmake /usr/share/cmake
    -FILELIST = /usr/lib/libsnappy.so.1 /usr/lib/libsnappy.so.1.1.8
    +FILELIST = /usr/lib/libbenchmark.so.1 /usr/lib/libbenchmark.so.1.5.2 /usr/lib/libbenchmark_main.so.1 /usr/lib/libbenchmark_main.so.1.5.2 /usr/lib/libgmock.so.1.10.0 /usr/lib/libgmock_main.so.1.10.0 /usr/lib/libgtest.so.1.10.0 /usr/lib/libgtest_main.so.1.10.0 /usr/lib/libsnappy.so.1 /usr/lib/libsnappy.so.1.1.9

* disable tests and benchmarks to install only the files 1.1.8 version used to install

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Martin Jansa
2021-05-24 10:55:53 +02:00
committed by Khem Raj
parent e2d57f93c3
commit 46020f8757
@@ -21,5 +21,4 @@ PACKAGECONFIG ??= ""
PACKAGECONFIG[lzo] = "-DHAVE_LIBLZO2=1,-DHAVE_LIBLZO2=0,lzo,"
TARGET_CFLAGS += "-fPIC"
EXTRA_OECMAKE += '-DBUILD_SHARED_LIBS="ON" \
'
EXTRA_OECMAKE += '-DBUILD_SHARED_LIBS="ON" -DSNAPPY_BUILD_TESTS="OFF" -DSNAPPY_BUILD_BENCHMARKS="OFF"'