From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 84C1E139694 for ; Wed, 31 May 2017 19:16:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9293BE0EDC; Wed, 31 May 2017 19:16:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2C663E0EB7 for ; Wed, 31 May 2017 19:16:37 +0000 (UTC) Received: from pomiot (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 216E933BEAE; Wed, 31 May 2017 19:16:34 +0000 (UTC) Message-ID: <1496258184.25758.3.camel@gentoo.org> Subject: Re: [gentoo-dev] [rfc] dev-libs/expat[unicode] and dev-libs/libbsd dependency From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: freedesktop-bugs@gentoo.org Date: Wed, 31 May 2017 21:16:24 +0200 In-Reply-To: <9a1b4531-dac1-848d-af13-f010e704f40b@gentoo.org> References: <9a1b4531-dac1-848d-af13-f010e704f40b@gentoo.org> Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-II0GAlcyJCWAegsOdEH7" X-Mailer: Evolution 3.22.6 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Archives-Salt: fa643c89-3c2f-4409-b7ab-f214a4da2a4b X-Archives-Hash: 5453d4a69ce51466405c79400933f8e8 --=-II0GAlcyJCWAegsOdEH7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On =C5=9Bro, 2017-05-31 at 14:19 +0200, Sebastian Pipping wrote: > Hi! >=20 >=20 > The next release of dev-libs/expat is not far away and there are two > things that I would appreciate input with, before the next bump in Gentoo= : >=20 >=20 > -DXML_UNICODE_WCHAR_T issues and Gentoo/Debian mismatch > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D >=20 > With USE=3Dunicode, on Gentoo two extra libraries are built: >=20 > * libexpatu.so (with CPPFLAGS=3D-DXML_UNICODE) > * libexpatw.so (with CPPFLAGS=3D-DXML_UNICODE_WCHAR_T) > ^ > However, -DXML_UNICODE_WCHAR_T has only ever worked with 2-byte wchar_t, > while 4-byte wchar_t seems mainstream on Linux (and GCC -fshort-wchar > would required libc to have the same, if you actually wanted to pass > those wchar_t strings to wprintf and friends). >=20 > So libexpatw.so in Gentoo is not functional at the moment. >=20 > To make things worse, Debian has libexpatw.so with > CPPFLAGS=3D-DXML_UNICODE, which corresponds to current libexpatu.so in > Gentoo, rather than libexpatw.so. >=20 >=20 > How do you evaluate these options: >=20 > a) Keep libexpatu.so + change libexpatw.so to CPPFLAGS=3D-DXML_UNICODE >=20 > b) Drop libexpatu.so + change libexpatw.so to CPPFLAGS=3D-DXML_UNICODE Does any other distribution use libexpatu.so? If not, then there's probably no point in keeping it. >=20 >=20 > Depend on dev-libs/libbsd > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >=20 > The next release is very likely to add (optional but helpful) support > for arc4random_buf that dev-libs/libbsd provides (especially on systems > with glibc prior to 2.25) [1]. I wonder if Expat's proximity to @system > has any strong implications on whether >=20 > A) libbsd should be a default-off use dependency > IUSE=3D"libbsd" RDEPEND=3D"libbsd? ( dev-libs/libbsd )" >=20 > B) libbsd could be a default-on use dependency > IUSE=3D"+libbsd" RDEPEND=3D"libbsd? ( dev-libs/libbsd )" I'd dare say the feature is 'arc4random', then that should be the name of the flag. > C) libbsd could even go into DEPEND and RDEPEND directly, or > RDEPEND=3D"dev-libs/libbsd" >=20 > D) libbsd should not become any kind of future dependency of > dev-libs/expat. >=20 --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-II0GAlcyJCWAegsOdEH7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQKmBAABCgCQFiEEbbsHzE8NrQbqCv5BsHoa6u+0Rk4FAlkvFohfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDZE QkIwN0NDNEYwREFEMDZFQTBBRkU0MUIwN0ExQUVBRUZCNDQ2NEUSHG1nb3JueUBn ZW50b28ub3JnAAoJELB6GurvtEZOADYP/17NBAhgj+RIVq5p788PlCxQ6C7jtuAl cXbFTJN24t2YFuh3FbjTSHBOWNk+PWE5gWIsuhMRQJMBNQMBSK1Qi6tIMZOx5/nn kn1+iCCpLideLxO/HsmlqxEZnFqhxbSLNWWkGCV7J0m/Egq+4gAMEU7F+7pSugDu i0GbtB99LVQ8xKI57syUZVJTVtQVLGUzsW6W7Z8hYHl3Pf8vI2Vqwj5g7dZdfxb8 dsJhtiepMDeoNB7mNj+lY8Y6OZfoOtRVqi0GHntQZaIo3odOGa3B0SpDUJEMv5zO 2lgfevwiVezmMWrvEwWv+Z/43mMXLMschrIGWkGmSFDpqP+y+oldRe5HIY4Takut 6eIVB4iJVOMBFgKo2x6KPTu24TfHmucrLLAeXTwSGzW7tCOUlLBM8Ag9GYlyl1I9 u0MiBGEoSJAlMEE+mvwgo2rCsUD+Szwhooq0E1uT5UtxjO229qqGoLF/dzAcvGtj DNsHpUIWZ8fAb16NWF/y8k1ZhSuST8j1qFwbnr/YX0qhs/zKtQs0HQMDcWGgiPc5 4WjEtxKsv8Wys9xC4aa+k2FVNq/P0JkI2NJ98gACumE/pmdFsz7G4X/I3vakeXOt 1P6y4fNYL9AivsEnV3i0J5u9/HviK6cipu4ob8S+g4F0qIGU4O3B/thjicLs7pR8 HzOm15LIrTYd =Tj7y -----END PGP SIGNATURE----- --=-II0GAlcyJCWAegsOdEH7--