Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mx.groups.io with SMTP id smtpd.web09.23630.1621865824123811459 for ; Mon, 24 May 2021 07:17:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RvYjX8KH; spf=pass (domain: gmail.com, ip: 209.85.221.50, mailfrom: martin.jansa@gmail.com) Received: by mail-wr1-f50.google.com with SMTP id v12so28720618wrq.6 for ; Mon, 24 May 2021 07:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PghhZ0CwOCZXE4cb7XC6YFzIgHmbfTFaDoKkqvQJT48=; b=RvYjX8KHU4BLyEIuMC/QhuYiarBFERlQbyvq0yxV+N66XpSIZMlzO3/0KFZGxR6V4a y/Mil+HyZuYIyhTEhrcEIQ1fHcW79RN5rF83sXT2kIqOTpUPnB0NV8bcZEfAfQkyy8Ds uS6e1j/A69n03Phyg1PrLg9s5RDvhsCdPi3EL556fw8YEdCJaXaYiVUnLElga+EmEbFf vMUZrlr1jNtMC2VkwcFJHraFVFIg5SA3vK8mDwUvpe//C4YQ10b43W1k87Y8MRO+5OHZ 3UG4triIFRp3L2D09qpTj322v5FBU84q/WYtp0M6pH8+btr3VTKhYdbcN4JREBr70ZCH ch5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PghhZ0CwOCZXE4cb7XC6YFzIgHmbfTFaDoKkqvQJT48=; b=NNqCUOE75UpRpUj6FvumdhfA4l6EEojLO0GKHSeg5SEP0f0O1yvRRnH0D9lwD+ZUl9 6bLXDYr0+Z57XcaQwCEqZER68YzH2FOI2oCWr/tLtMdzWooWZKC0Rs4hChXu+w8MQIwo hrzI0Z1mbrFBX4j5ZaeXIp2yvtDIQZrcxq8v0Rpp2sSu51jDtKJd/Yc9zwtHTFu+ILwS vZb/32wTKK/WT7B83GtPO3RaIpqylPvgMmg/7JPJpE8B/dAFapxXTfVzP2dGjarcEP1u +FIls64JwgA1H0EpiucewXMphSh9R+styktFsId24I8tnNrEG7QaiczL93OQL8DmhRLX ndQw== X-Gm-Message-State: AOAM532d4CLv9nrzWKp5W+p/6xkazfGM61/vZYN/tgbXh64CA4xjtNYv Vr6hJLoscl4PKH4MDaBmLj0= X-Google-Smtp-Source: ABdhPJxsWu1q2iG3MW7qIMgjKlAGhwytA0OaoZ7y8Y8QauQ2MFxMoPOBINPqyGD61sHEkJ+pIDqztg== X-Received: by 2002:adf:fa42:: with SMTP id y2mr22358431wrr.12.1621865822531; Mon, 24 May 2021 07:17:02 -0700 (PDT) Return-Path: Received: from localhost (ip-109-238-218-228.aim-net.cz. [109.238.218.228]) by smtp.gmail.com with ESMTPSA id c64sm8216925wma.15.2021.05.24.07.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 07:17:01 -0700 (PDT) From: "Martin Jansa" X-Google-Original-From: Martin Jansa Date: Mon, 24 May 2021 16:17:01 +0200 To: Khem Raj Cc: openembeded-devel Subject: Re: [oe] [meta-oe][PATCH 1/2] snappy: explicity disable building tests and benchmark Message-ID: <20210524141701.spau4sax34ckndza@jama> References: <20210524085554.4128366-1-Martin.Jansa@gmail.com> MIME-Version: 1.0 In-Reply-To: X-Groupsio-MsgNum: 91494 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wqvlf5i5o6sdqati" Content-Disposition: inline --wqvlf5i5o6sdqati Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 24, 2021 at 07:07:16AM -0700, Khem Raj wrote: > its not clear what is the advantage of turning DBUILD_SHARED_LIBS on. that was already there. > Disabling tests may get over the issue but perhaps having tests is > also good > so turning it into a packageconfig which can be enabled with ptest > might be a better option. Building and installing tests for snappy would be fine, but even with it controlled by ptest you don't want snappy to install gtest/gmock/google-benchmark frameworks which are provided by their respective recipes: http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-test/googletest/googletest_git.bb?h=master https://github.com/ros/meta-ros/blob/master/meta-ros2/recipes-benchmark/google-benchmark/google-benchmark_git.bb If someone is really interested in snappy tests then it could be improved, but right now it's broken and this change just restores the behavior from 1.1.8. (the same does apply for the libtinyxml2 change). Regards, > On Mon, May 24, 2021 at 1:56 AM Martin Jansa wrote: > > > > * 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 > > --- > > meta-oe/recipes-extended/snappy/snappy_1.1.9.bb | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/meta-oe/recipes-extended/snappy/snappy_1.1.9.bb b/meta-oe/recipes-extended/snappy/snappy_1.1.9.bb > > index 2ebe3760a5..151c4ddc38 100644 > > --- a/meta-oe/recipes-extended/snappy/snappy_1.1.9.bb > > +++ b/meta-oe/recipes-extended/snappy/snappy_1.1.9.bb > > @@ -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"' > > -- > > 2.30.2 > > > > > > > > --wqvlf5i5o6sdqati Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRU+ejDffEzV2Je2oc3VSO3ZXaAHAUCYKu1WwAKCRA3VSO3ZXaA HA/hAKCsCB82E5yq5ILkCWDbMr6C6hvHlACggVMfWi06OUgIHBlUESmLjZZ4M8E= =9Qcm -----END PGP SIGNATURE----- --wqvlf5i5o6sdqati--