From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +DfWF1TnQ2fPUAAAqHPOHw:P1 (envelope-from ) for ; Mon, 25 Nov 2024 02:56:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +DfWF1TnQ2fPUAAAqHPOHw (envelope-from ) for ; Mon, 25 Nov 2024 03:56:20 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sHrOK5DZ; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ImIwvecK; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732503380; a=rsa-sha256; cv=none; b=CI9pya7IhXXLxXlboPDn5NFIrS5D1NYmOJI4OaOMTXm/KD599pM0g9W1qdJM6dEKR4FjJ2 o6XTQIc6MXCuIkMPlR209Kvdp9MUDi5MyD2V5ZM7XUCZYcAhRaImyqxQ9SFtNeEfDsD89s XrnAVT2ccukuZ8T+pHiKVrdccPCzUkIFBO5qV2zpAssBOB45eG4xOkbUQl/YDfFqq4APv8 t4/n3cEokz9fyV41TBscyrDo1QvAMSBbreeL2cjdXQ12T3AeuLu5dLCi7rvlV11CiRTS6V rAKwecIYbYaatMpW8IvYOW6KYDfEuBz3TU0QtL17WVzpdEUGO0pCyRE5UGD9gQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sHrOK5DZ; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ImIwvecK; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732503380; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=dSEQa5ftsClP2NwGvWvb/zfcySehkdIT+bBI9ynhthM=; b=ZbVxbDtMU70XF9lVzSNVYH08qtDt0Qy7l3W3w6BxpT7bP+ymArHz8WovPGJMsfBT5slYMf cYZJB2rDYUp9fK+JNdIkfSyQLX5WAFUngNqKAzZ3g+l9PNvXBAgCKjgSdJSc/W03HF4rM6 Rq3pm/Ckl2KmMA+t80t5mAGnSVIwSs8uFmV1IeLeVEPTaMG4VozX1DGT++q3LvpfkUlTyb iGQAZvtClJBpaYDWlmvsQIHn1yIMIc+1qRE8EeAnIqmc9wOUkrJFFGr03YaDDjgB/xqPHv Qo7BQEywZrTjaxhfXWGZ4B1AkDUQuTeGgNHylOKW1JE5WrRcEqRm1bTdd5tJ0g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E041F7845C for ; Mon, 25 Nov 2024 03:56:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFPGe-0003U5-At; Sun, 24 Nov 2024 21:56:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFPGc-0003To-NV for guix-patches@gnu.org; Sun, 24 Nov 2024 21:56:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFPGc-0002Q7-FI for guix-patches@gnu.org; Sun, 24 Nov 2024 21:56:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=dSEQa5ftsClP2NwGvWvb/zfcySehkdIT+bBI9ynhthM=; b=sHrOK5DZ7Z/hkVuhmVAvIPhrsoD9/9A0Iy4EUOtlhhjY0Amf9GwLW6y9L6Xl/5hk9D3uusqU7pwxMBbjXG4EK6qiZRs+YRM0rX533wd83b5p76K+oqOoHzPOT3HpZap8jK98Sn5dJ8gWgjs9miAZumq6J+QWIsYXLGNwkxnaOQAslkECMxdrNLn6/RdST0hNwQK9kcChkxUkks9r5URzDc/H5ZK4V1mv0K7/cucHeC9OYkr6oBkwqcHB/KOTcXm6hF88aBFBoTojLfAuSy1eavv5zkz1x6aEPjp8qPI730bIuxcpsHZKe1PmotrkXljAQy8TCtycmvXBDMEB+Cfw4A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFPGc-0002sz-BX for guix-patches@gnu.org; Sun, 24 Nov 2024 21:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74517] [PATCH 1/8] gnu: Add v4l-utils-minimal. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Nov 2024 02:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74517 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Graves Cc: 74517@debbugs.gnu.org Received: via spool by 74517-submit@debbugs.gnu.org id=B74517.173250333811037 (code B ref 74517); Mon, 25 Nov 2024 02:56:02 +0000 Received: (at 74517) by debbugs.gnu.org; 25 Nov 2024 02:55:38 +0000 Received: from localhost ([127.0.0.1]:36746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFPGD-0002rw-IG for submit@debbugs.gnu.org; Sun, 24 Nov 2024 21:55:37 -0500 Received: from mail-pl1-f173.google.com ([209.85.214.173]:50600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFPGB-0002rd-33 for 74517@debbugs.gnu.org; Sun, 24 Nov 2024 21:55:35 -0500 Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-21200c749bfso37299145ad.1 for <74517@debbugs.gnu.org>; Sun, 24 Nov 2024 18:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732503268; x=1733108068; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=dSEQa5ftsClP2NwGvWvb/zfcySehkdIT+bBI9ynhthM=; b=ImIwvecK64rzXJUijs7Bhsre8N7/3P+WbljGmGX7jFn/sWAa786oAcUQ12uVvYD+mJ /hOx3GqzPqvLt7194JVCu3BAcXfQuSwWFaCzGmojJIHJPiOH4gl/v5MAow8o+LsgInVd 7gtMXh6x3J4fqdE8E4+eI3M7+0lIjxtSgIhOLCX0WmTWlsLHZufMVMXEiuJgaufCyeV5 ic4/Rn8DGNc3NAmeUidUlzw4uOZ9pPwFI9IGjzETyS3ozVLzRq129v6dGVwXyysOQnhC uBrJLVhw1zq+ImORLUfpzNlIupmOwr7pm7SGwXph4HC6nosJhZacDfy6IuQ8yY3+XSjP szNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732503268; x=1733108068; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dSEQa5ftsClP2NwGvWvb/zfcySehkdIT+bBI9ynhthM=; b=DTPiEJnQ029u6bSDAuHRpJA5Xx50/zQoSLzQkKHsR/AtV/eT8bCkJEBk/AFeTB+DYB BbgZhIMGdArKtY6pHESuWROiMSvZdiUBeCIX3ons+T3WdzSBakczD7kF474pbW7VXkmv veiE/AzzmXbQKER6RWx0YtqUPP6utNvonFNM63rx9bumTCvT5txadhdG0eSSf6FVTUfo f9kuYEcD20jxfi60d2jhZbL24xsDX2EE19xOvLaz2Wn17GfDd9CxMfp8llGmG1scrmjQ NFLPReXzgpL3bQ3g36hpdxg6Mh4RxjQY+0dpLFpcKnm+4TaA5wRmrL5P3SVwNb75WAup J9LA== X-Gm-Message-State: AOJu0Ywr+8CWH9LuA4o2i4rWnwVawMxCrqN8ulZyBTiA49ktME2x4Fwy 4ZDZSGwYduJpfIb3s83HU824CiKtR6YGC4yZE00F96fsrIeVh6UqF5OMrHE+ X-Gm-Gg: ASbGncvrRRV81MzQ0y15Vo308RWyTyrIu3uscvHieMsCcZuYlaBEPiSNGfGOxpIG15q b3jitgetMZNZ83YSe+TnV/ou3BlVuip70T7K0Gd9Kz97QyFGOfCwbC9mF0Fqqtk6O24a2zKCAvs fRv4RxcIbcOUUI+IFkeSsYrNhIVN8f3WUhJI1aHkqWc12QtDozDi4b28P94jZsg7uEOexCwa1FY k7tuqfDK749NdJ+oUso7dFJqC0pCUuQiJZ9fEmuoyLgVy0= X-Google-Smtp-Source: AGHT+IFx6LezokSXUKurNwr0z+S4ZnBu5ik5xRuczlom8cE8ake+mLe9laCtuv8+ooN9L1MgeQDoYQ== X-Received: by 2002:a17:902:dac9:b0:212:4b18:4a44 with SMTP id d9443c01a7336-2129f217d71mr149044585ad.10.1732503268141; Sun, 24 Nov 2024 18:54:28 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2129dba2691sm53920525ad.68.2024.11.24.18.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Nov 2024 18:54:27 -0800 (PST) From: Maxim Cournoyer In-Reply-To: <20241124222934.524-1-ngraves@ngraves.fr> (Nicolas Graves's message of "Sun, 24 Nov 2024 23:29:08 +0100") References: <20241124221354.838-1-ngraves@ngraves.fr> <20241124222934.524-1-ngraves@ngraves.fr> Date: Mon, 25 Nov 2024 11:54:19 +0900 Message-ID: <87jzcsm3ac.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: E041F7845C X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.49 X-Spam-Score: -8.49 X-TUID: e6MKBXQDHVsw Hi, Nicolas Graves writes: > * gnu/packages/video.scm (v4l-utils-minimal): New variable. > --- > gnu/packages/video.scm | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm > index 2da458ed01..4cc6735dca 100644 > --- a/gnu/packages/video.scm > +++ b/gnu/packages/video.scm > @@ -4035,6 +4035,30 @@ (define-public v4l-utils > ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only. > (license (list license:lgpl2.1+ license:gpl2)))) > > +(define-public v4l-utils-minimal > + (package > + (inherit v4l-utils) > + (source #f) > + (name "v4l-utils-minimal") > + (build-system trivial-build-system) > + (arguments > + (list > + #:builder > + (with-imported-modules '((guix build utils)) > + #~(begin > + (use-modules (guix build utils)) > + (copy-recursively #$(this-package-native-input "v4l-utils") > + #$output) > + (substitute* (find-files (string-append #$output "/lib/pkgconfig") > + "\\.pc$") > + (("^prefix=.*") > + (string-append "prefix=" #$output "\n"))))))) > + (outputs '("out")) I don't understand how this resolves the issue, at a glance. Is the issue that some v4l-utils tools, kept in a distinct output, are referred to in the pkg-config files, present in the main output? A comment explaining would be beneficial, but mostly I would rather we use the more traditional style of rebuilding the package with the modified inputs, so that it's cleanly built as a 'qtbase-less' variant; that should lead to less bad surprises down the road, at the expense of a bit more computation, which we can afford. As a variant (a package sharing the same source but using different inputs/build flags), the package should be defined via 'package/inherit', which will honor the parent package's replacements (grafts). -- Thanks, Maxim