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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9D3BC15808B for ; Sat, 5 Mar 2022 01:43:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 819C8E09BE; Sat, 5 Mar 2022 01:43:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 55B97E09BE for ; Sat, 5 Mar 2022 01:43:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5535C342E05 for ; Sat, 5 Mar 2022 01:43:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC5F22D3 for ; Sat, 5 Mar 2022 01:43:32 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1646444067.2492d2b670ec0806f7dac7455d4e89b2e6d53bc7.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-libs/safeclib/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-libs/safeclib/Manifest sys-libs/safeclib/metadata.xml sys-libs/safeclib/safeclib-3.7.1.ebuild X-VCS-Directories: sys-libs/safeclib/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 2492d2b670ec0806f7dac7455d4e89b2e6d53bc7 X-VCS-Branch: dev Date: Sat, 5 Mar 2022 01:43:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 05703347-254c-45fe-b227-39e4dfa24a51 X-Archives-Hash: ae890660c411fc0aa9c0b2446e0584a4 commit: 2492d2b670ec0806f7dac7455d4e89b2e6d53bc7 Author: Alessandro Barbieri gmail com> AuthorDate: Thu Feb 3 18:57:14 2022 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Sat Mar 5 01:34:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2492d2b6 sys-libs/safeclib: add 3.7.1 Signed-off-by: Alessandro Barbieri gmail.com> sys-libs/safeclib/Manifest | 1 + sys-libs/safeclib/metadata.xml | 1 + sys-libs/safeclib/safeclib-3.7.1.ebuild | 108 ++++++++++++++++++++++++++++++++ 3 files changed, 110 insertions(+) diff --git a/sys-libs/safeclib/Manifest b/sys-libs/safeclib/Manifest index 88caccb0e..6dbb2767a 100644 --- a/sys-libs/safeclib/Manifest +++ b/sys-libs/safeclib/Manifest @@ -1 +1,2 @@ DIST safeclib-3.6.0_p20210407.tar.gz 2281868 BLAKE2B 1690f4ac7504cdd37cd353cd0ddab8d9807a583113a5893fd0633c69b7434c3eecf361ae501570819bb8d75a057c0c861f6c594429162558c73330bcd2c04df5 SHA512 2e21a06b4a423ea7a7782b101ba9f0e8a60efaaec49314360014ebae02d0a02a4275ccecc618560b08dc357b9fbb4c5b220db70012728dbb3815635e8dad16c8 +DIST safeclib-3.7.1.tar.xz 539072 BLAKE2B 55e828f2c195325a9a3648f57d1e60a6657289ff03ebe626d5884f41014d747591fd2240286d4060ffc58c368e68464bed49eb34a5d78cdd1e204861ca8425cc SHA512 bf43e3a94855b7b12df6a3c88a534c40297df40259e4930dc1b98117b381c5bfaa2e4f17748e731bb6065c02d47ba98d50e336d60cf60e62d4fa0a6b45de53c1 diff --git a/sys-libs/safeclib/metadata.xml b/sys-libs/safeclib/metadata.xml index 846350706..d434a3c62 100644 --- a/sys-libs/safeclib/metadata.xml +++ b/sys-libs/safeclib/metadata.xml @@ -49,5 +49,6 @@ The C11 Standard adopted many of these points, and added some secure _s variants enable to null out the remaining part of a string if it is not completely used Include unsafe std C11 functions: tmpnam_s enable Valgrind on the unit tests + enable multibyte and wchar support diff --git a/sys-libs/safeclib/safeclib-3.7.1.ebuild b/sys-libs/safeclib/safeclib-3.7.1.ebuild new file mode 100644 index 000000000..4d0a501f7 --- /dev/null +++ b/sys-libs/safeclib/safeclib-3.7.1.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MODULE_OPTIONAL_USE=modules + +inherit autotools linux-info linux-mod + +DESCRIPTION="safec libc extension with all C11 Annex K functions" +HOMEPAGE="https://github.com/rurban/safeclib" +SRC_URI="https://github.com/rurban/safeclib/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+constraint-handler doc +extensions modules norm-compat +nullslack test unsafe valgrind +wchar" + +RESTRICT="!test? ( test )" +BDEPEND=" + doc? ( app-doc/doxygen[dot] ) + valgrind? ( dev-util/valgrind ) +" + +MODULE_NAMES="slkm(misc:${S}:${S})" +BUILD_TARGETS="all" +BUILD_PARAMS="-f Makefile.kernel" + +pkg_setup() { + if use modules ; then + CONFIG_CHECK="COMPAT_32BIT_TIME" + ERROR_COMPAT_32BIT_TIME="module require COMPAT_32BIT_TIME to build" + fi + linux-mod_pkg_setup +} + +src_prepare() { + default + eautoreconf + + # duplicate the working folder + # one for the library and one for the module + cd "${WORKDIR}" || die + cp -r "${S}" "${S}-lib" || die +} + +src_configure() { + export VARTEXFONTS="${T}/fonts" + + local myconf=( + --disable-static + --disable-valgrind-sgcheck + --disable-Werror + --enable-shared + $(use_enable constraint-handler) + $(use_enable doc) + $(use_enable extensions) + $(use_enable norm-compat) + $(use_enable nullslack) + $(use_enable unsafe) + $(use_enable valgrind) + $(use_enable wchar) + ) + + if use modules ; then + set_kvobj ko + econf "${myconf[@]}" --disable-wchar + fi + + cd "${S}-lib" || die + + econf "${myconf[@]}" +} + +src_compile() { + if use modules ; then + linux-mod_src_compile + fi + + cd "${S}-lib" || die + default +} + +src_install() { + if use modules ; then + linux-mod_src_install + fi + + cd "${S}-lib" || die + default + einstalldocs + + if use doc ; then + rm -rf doc/man || die + dodoc -r doc/. + docompress -x "/usr/share/doc/${PF}/html" + + # wcsstr towupper towlower manpages collide with sys-apps/man-pages + rm "${ED}/usr/share/man/man3/towlower.3" || die + rm "${ED}/usr/share/man/man3/towupper.3" || die + rm "${ED}/usr/share/man/man3/wcsstr.3" || die + fi +} + +src_test() { + cd "${S}-lib" || die + emake check +}