From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Sun, 8 Dec 2019 12:28:59 +0100 From: Alexander Dahl Message-ID: <20191208112858.uvup3urtvlnqhctj@falbala.internal.home.lespocky.de> References: <20191129091124.8652-1-post@lespocky.de> <20191205151915.GJ14948@pengutronix.de> <20191205214253.uq3d2z4ru2rm2gir@falbala.internal.home.lespocky.de> <20191206101618.h3ahz4p34zhbm2fw@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <20191206101618.h3ahz4p34zhbm2fw@pengutronix.de> Subject: Re: [ptxdist] [PATCH] cmocka: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============1458902047==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de, Alexander Dahl , Rouven Czerwinski --===============1458902047== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kjigcmqiqi5va4vp" Content-Disposition: inline --kjigcmqiqi5va4vp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Fri, Dec 06, 2019 at 11:16:18AM +0100, Michael Olbrich wrote: > On Thu, Dec 05, 2019 at 10:42:54PM +0100, Alexander Dahl wrote: > > On Thu, Dec 05, 2019 at 04:19:15PM +0100, Michael Olbrich wrote: > > > On Fri, Nov 29, 2019 at 10:11:24AM +0100, Alexander Dahl wrote: > > > > From: Alexander Dahl > > > >=20 > > > > This adds the unit testing framework for C called 'cmocka'. > > > >=20 > > > > Signed-off-by: Alexander Dahl > > > > --- > > > > I tried modifying the opensc package for building its cmocka based > > > > tests, but autoconf could not find or interpret the pkg-config file > > > > provided by cmocka. Maybe someone else wants to look deeper into th= is? =20 > > >=20 > > > What kind of error do you get there? > >=20 > > I could solve the prepare stage. Seems like pkg-config behaves > > differently depending on menuconfig settings in ptxdist? What I tried > > first: > >=20 > > config OPENSC_TESTSUITE = =20 > > bool "install testsuite" = =20 > > depends on CMOCKA = =20 > >=20 > > This gets me the following in > > ..latform-v7a/build-target/OpenSC-0.19.0/config.log: > >=20 > > configure:15477: checking for cmocka >=3D 1.0.1 > > configure:15484: $PKG_CONFIG --exists --print-errors "cmocka >=3D 1.0.= 1" > > arm-v7a-linux-gnueabihf-pkg-config: warning: blocking 'cmocka': not se= lected by 'opensc' > > configure:15487: $? =3D 1 > > configure:15501: $PKG_CONFIG --exists --print-errors "cmocka >=3D 1.0.= 1" > > arm-v7a-linux-gnueabihf-pkg-config: warning: blocking 'cmocka': not se= lected by 'opensc' > > configure:15504: $? =3D 1 > > configure:15518: result: no > > arm-v7a-linux-gnueabihf-pkg-config: warning: blocking 'cmocka': not se= lected by 'opensc' >=20 > This is expected. With just 'depends on CMOCKA' the build order is > undefined. So our pkg-configs wrapper explicitly blocks any packages > without explicit or implicit dependencies. This way, it always fails and > not just if opensc is built before cmocka. >=20 > > I used the usual 'select CMOCKA if OPENSC_TESTSUITE' then, which > > succeeds. Alas, I had to add another 'depends on OPENSC_OPENSSL' > > there. I can send that patch along with a v2 series, beware it won't > > build, because compilation fails then, because upstream OpenSC did not > > put a header file they have in their git tree into their tarball =E2=80= =A6 >=20 > :-/ Out of curiosity I tried v0.20.0-rc4 and hat one builds successfully. However I don't use that package by myself, so anyone else should test that after OpenSC releases 0.20.0 eventually. Other projects using CMocka: libssh, openvpn, samba, =E2=80=A6 maybe that package authors also want to test it with CMocka by themselves then? Greets Alex --=20 /"\ ASCII RIBBON | =C2=BBWith the first link, the chain is forged. The first \ / CAMPAIGN | speech censured, the first thought forbidden, the X AGAINST | first freedom denied, chains us all irrevocably.=C2=AB / \ HTML MAIL | (Jean-Luc Picard, quoting Judge Aaron Satie) --kjigcmqiqi5va4vp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEwo7muQJjlc+Prwj6NK3NAHIhXMYFAl3s3nYACgkQNK3NAHIh XMZGKw//acY9fESqMnCzppJso43Qewbtf+LnKNclUdWHl9ePlQUMXmvLHqVbglAW 4e82ovuDyAB0jFjGlElEuAQSrZiN23zQDAjkXBP1nlol53EN0ie68aYxnn6ymIB3 OHYBD+IBQYO4OKQ1a2yToqnN8Mr5dIN5Qk+93GTHH7cwYAcx1wJ4EleegWE69m2+ M3jTWlv65DEBP7KSsFmXIuOCmqKynf1zNnlCYtXZRCa7pV1xEYg+untU1A1ZEv+l 4EExeIicWHgvcqoBPJaDPuvZCaCH+1K/eL6wnoeWK4JaK0MhETtkbpXz/Mgph7hO 9isvLYECnpkj4u3qbpT6SLYMu4nJcR0G7OKYef4H/we3bo9h8pziRJfZX257HdX5 ca/jlLQrfF9gQuPBZC2S1obPsDH7hlpJCcNHsCaIW2sKJ1968nv6fnfSO2KyRYNx I1sxBGWJVXpjnHpTIavRp/XWq0K6FFUmtespXX0FLSfXSoKxxv3gHk6ewdzB4iGZ 2wOCHmYDz0z4Qzd2Dg79aq+DyC//5BVdmcFSPQG7tW6jZDgSawBjrLcUB3XLGfbE k4BxDsW2b9m3TC4kBxPZXWiY3m6utWvzLy5cP8Yba8Xbs0WbZPenNmjGvtG0Jrr/ Qq4Fkn04MeOF3pgQehIiOmcyF/41AfCVCwm29P3Yn2Tz7p/Ki3w= =ji6F -----END PGP SIGNATURE----- --kjigcmqiqi5va4vp-- --===============1458902047== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de --===============1458902047==--