From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id C933715808A for ; Wed, 16 Jul 2025 03:18:49 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id B17AE340D5F for ; Wed, 16 Jul 2025 03:18:49 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id B0FDC110280; Wed, 16 Jul 2025 03:18:48 +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) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id A4513110280 for ; Wed, 16 Jul 2025 03:18:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 569F2340E16 for ; Wed, 16 Jul 2025 03:18:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E3B7A318C for ; Wed, 16 Jul 2025 03:18:46 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1752635496.d5ebb31d3ced655584f59c358450cea12941cb04.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libraw/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libraw/Manifest media-libs/libraw/libraw-0.21.3.ebuild X-VCS-Directories: media-libs/libraw/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d5ebb31d3ced655584f59c358450cea12941cb04 X-VCS-Branch: master Date: Wed, 16 Jul 2025 03:18:46 +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: c9602d57-2294-4009-9b24-69b96707fe79 X-Archives-Hash: 5f57d9042d4843fed56a287862c98868 commit: d5ebb31d3ced655584f59c358450cea12941cb04 Author: germ outlook com> AuthorDate: Wed Jan 8 06:35:27 2025 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jul 16 03:11:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5ebb31d media-libs/libraw: add 0.21.3 Defined LIBRAW_CALLOC_RAWSTORE to prevent uninitialized heap data leak. Signed-off-by: germ outlook.com> (cherry picked from commit f8894eed0554daa3c3a342958b59addc39420748) Part-of: https://github.com/gentoo/gentoo/pull/42909 Signed-off-by: Sam James gentoo.org> media-libs/libraw/Manifest | 1 + media-libs/libraw/libraw-0.21.3.ebuild | 63 ++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/media-libs/libraw/Manifest b/media-libs/libraw/Manifest index c5438e700fb6..74cbc8c8e2b9 100644 --- a/media-libs/libraw/Manifest +++ b/media-libs/libraw/Manifest @@ -1 +1,2 @@ DIST LibRaw-0.21.2.tar.gz 1639305 BLAKE2B 8ff6cbc205335bdf12bfdfb77e390cf45f6e7a3dfcc0e6cc5ea759ac3a7b11d9f8a89c19218f779951dd8b1d96c779cb1d502c4691ee11cdccd83c27f09c6bf8 SHA512 ba7839d8eb5f999982c7b89f89f63387d7fee82054d7edcc2698924e268559b561230e329a0c669bd6f7c075983da6c054a6d63fad49ab3c1e2e9edc653b2bae +DIST LibRaw-0.21.3.tar.gz 1483982 BLAKE2B 7aa1368a45b4e3e2a73ac886b0ac7e5fb9faadca5c6e2f29a88980578f04f7045278cb859739f70b09cf4f88beb48b7c9162be8e971041b1da78e6e2d1127d16 SHA512 c83363cdf5619f069affc9473ab3ea6560f67e72ab5e7bf6eefcf6a23521a729c9d417f323c4cc6679780c0536e5804390c243cace8a40341a0c5f26865d6a2d diff --git a/media-libs/libraw/libraw-0.21.3.ebuild b/media-libs/libraw/libraw-0.21.3.ebuild new file mode 100644 index 000000000000..360fa79433d1 --- /dev/null +++ b/media-libs/libraw/libraw-0.21.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic multilib-minimal toolchain-funcs + +MY_PN=LibRaw +MY_PV="${PV/_b/-B}" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="LibRaw is a library for reading RAW files obtained from digital photo cameras" +HOMEPAGE="https://www.libraw.org/ https://github.com/LibRaw/LibRaw" +SRC_URI="https://www.libraw.org/data/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1 CDDL" +# SONAME isn't exactly the same as PV but it does correspond and +# libraw has unstable ABI across releases. +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="examples hardened jpeg +lcms openmp zlib" + +RDEPEND=" + jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] ) + lcms? ( >=media-libs/lcms-2.5:2[${MULTILIB_USEDEP}] ) + zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +DOCS=( Changelog.txt README.md ) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp} + +} + +multilib_src_configure() { + # added in 0.21.3 if selected calloc() will be used to prevent uninitialized heap data leak + use hardened && append-cppflags "-DLIBRAW_CALLOC_RAWSTORE" + + local myeconfargs=( + --disable-jasper + $(multilib_native_use_enable examples) + $(use_enable jpeg) + $(use_enable lcms) + $(use_enable openmp) + $(use_enable zlib) + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install_all() { + einstalldocs + + # package installs .pc files + find "${D}" -name '*.la' -delete || die +}