From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <guix-patches-bounces+larch=yhetil.org@gnu.org> Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id qGZCIiA8DWbK2QAA62LTzQ:P1 (envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>) for <larch@yhetil.org>; Wed, 03 Apr 2024 13:23:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qGZCIiA8DWbK2QAA62LTzQ (envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>) for <larch@yhetil.org>; Wed, 03 Apr 2024 13:23:12 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundation.xyz header.s=google header.b=d8WCK69x; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=foundation.xyz (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712143392; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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=qS6ghSDxPL9S1gB0WcbMfv8un/COs8zcTVnnML70PtU=; b=kV0kyR5L4YM7SABYsSjC5u3yL/MDmyFT7PtV7gQbJ77o/c/kK0rPqbLdAWOc/ByYA+DZd+ jOM/CJZUPYTMffbICagGrxMeK0Z2YlHYjq02L8vXdkYrdcO6RYZ+hR7IObDE3HTJUJo8Ra +G/tu5LXRIMNiYPhK/tg61ogstjZRdHQUcD0pzWZhwY1/xESUcbotSN8C0xZUE23r1sLjb wv32a+w1M+3DJ1a4GcyinmGOi2jwPqeGkxWh1HLgwBMnD3QIhrpK/fm0fkbrHkN2wRQgjy PEYHkLROQGdWJRi0GuBuFcFn93YsYJB4xEri80NdnMHG2z+6hJjkpo+s4miu2Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712143392; a=rsa-sha256; cv=none; b=i2szcBEjiZDFfBc3jpawgSRAgezKM+bfwN/zlnp36Owwd7EIHw2BJO78y8E26QMXon1+Cg gZIULOWh92A2AJtFvndFCMVKlqrUcUJPJO09SfW/bTYMHforPEDw93iqbCeZlTs0IEFewD eC0gZQkn6eYdlFwMq9cot1Ed48Wz4zISHjM21FUB5rwij0cI7YBdE/qK0fWhkROdqKamDr NPY/Bgs6mZrnI/Q3wSgWf+A+AnYPIIuwB6Zd9x/76tVoHhlK2byc5LPM0DSKxXop0TCWrl sX853q2qKWTGtjqy90JFLXgZKjVP6sQ14mIu/lYeGSatF2RqDuxVoXc1SMFpog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundation.xyz header.s=google header.b=d8WCK69x; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=foundation.xyz (policy=none) 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 164F541E71 for <larch@yhetil.org>; Wed, 3 Apr 2024 13:23:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1rryhp-0002He-6w; Wed, 03 Apr 2024 07:23:01 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1rryhm-0002HO-0L for guix-patches@gnu.org; Wed, 03 Apr 2024 07:22:58 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1rryhl-0002ZQ-NY for guix-patches@gnu.org; Wed, 03 Apr 2024 07:22:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rryhp-0004lN-Vm for guix-patches@gnu.org; Wed, 03 Apr 2024 07:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70161] [PATCH 2/2] gnu: tomlc99: Install pkg-config file. Resent-From: Jean-Pierre De Jesus DIAZ <jean@foundation.xyz> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Apr 2024 11:23:01 +0000 Resent-Message-ID: <handler.70161.B70161.171214332418006@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70161 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70161@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ <jean@foundation.xyz> Received: via spool by 70161-submit@debbugs.gnu.org id=B70161.171214332418006 (code B ref 70161); Wed, 03 Apr 2024 11:23:01 +0000 Received: (at 70161) by debbugs.gnu.org; 3 Apr 2024 11:22:04 +0000 Received: from localhost ([127.0.0.1]:57186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1rrygu-0004gJ-6X for submit@debbugs.gnu.org; Wed, 03 Apr 2024 07:22:04 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:55455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jean@foundation.xyz>) id 1rrygr-0004fD-HN for 70161@debbugs.gnu.org; Wed, 03 Apr 2024 07:22:02 -0400 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-513d212f818so6840334e87.2 for <70161@debbugs.gnu.org>; Wed, 03 Apr 2024 04:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundation.xyz; s=google; t=1712143311; x=1712748111; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qS6ghSDxPL9S1gB0WcbMfv8un/COs8zcTVnnML70PtU=; b=d8WCK69x+LL/V++1Q+Cy3XgureAbBtsWqJutv3fqersYUQFqMgusya5meQRw6pj5h2 NNFWjZl1flEwhDTznr6Fe3WkxRwV+Ums5t/gkTOmHGk/QQBmoQd7dt2oa0FmLzVOd4du 410vbKoSQofcPBrjs9IyJ4XDkf5xsAJwRSOHl95GnDEBCfbwUMSfdFJs6LdS7qMxThRR gqi6mQTJ/QTUQREp/WhmVCJG+XSkyvPreItsi/A2NWnwEeDwe5wRAa8AnwpIe2pqrnZ2 KXeNQiJrJBvr6cKjHB/56rBcSI/QDHVwJpVaJIyz5WcYtTLtjJkaJ9k87oH+8xKVlSLL TvQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712143311; x=1712748111; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qS6ghSDxPL9S1gB0WcbMfv8un/COs8zcTVnnML70PtU=; b=avQtaaMR9WI1LYdmtplklxWrPMbiD462CU5S2o1Lqv8qGniSUBdrbznrpDl8yNp7hy KLxVpq/TOnI/d2wCGxoUdxh7O5iUSwNsL5J1QU6jjlrL4+5mO+YOHBEzrW9HnuZLpynV Qgzm2seynvaoH9JYDNo1jsuhXg1SJ4SrcJtN2HCoHSj2cDZltjT0IJLNJIzFmmso4kkV p66x/O6h7JowHn0lBgkDXc/K7CskJWdTrpzxCDgMLodfNoRy54WRNyxbz7MFsYzceE/z u3yXij5lh6cKxBE7AhOLIyQz/CabxtOhE01Q1g27OEzbduVVueZBcWMn/TCkoesX06Jy Hj+A== X-Gm-Message-State: AOJu0Yx/+KnuZN1zK/eMEPhVFrxSLZ+Z9D8bKEpH29ZvdYDQnIbsvFbR RsRyVN2aso7M8qNTnfzc/jluOlCU5qegEAcKV9AOpUiWrwSJGfLuhQcqCUaoNoshEcjjkcGx6jf V X-Google-Smtp-Source: AGHT+IGeSAn7sZpXQS2F/QGDRBTKv00ArMjkb1O3F37JIh4qT+rGb5uin/YXFMyfiiZPwp8aRHrmQA== X-Received: by 2002:a19:8c59:0:b0:515:8acb:165e with SMTP id i25-20020a198c59000000b005158acb165emr9433597lfj.68.1712143310605; Wed, 03 Apr 2024 04:21:50 -0700 (PDT) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id o12-20020a05600c4fcc00b0041567ce9f10sm8932353wmq.0.2024.04.03.04.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 04:21:50 -0700 (PDT) From: Jean-Pierre De Jesus DIAZ <jean@foundation.xyz> Date: Wed, 3 Apr 2024 13:21:46 +0200 Message-ID: <642f39b405faa550087b7ffed9a303bbd7ab089a.1712142989.git.jean@foundation.xyz> X-Mailer: git-send-email 2.41.0 In-Reply-To: <cover.1712142989.git.jean@foundation.xyz> References: <cover.1712142989.git.jean@foundation.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.76 X-Spam-Score: -3.76 X-Migadu-Queue-Id: 164F541E71 X-Migadu-Scanner: mx13.migadu.com X-TUID: sLcOiDf+BqD4 * gnu/packages/c.scm (tomlc99) <arguments>: Add phase to install pkg-config file. Change-Id: Id09f22912fe7e4dcac6a0377e4a78d3d34346106 --- gnu/packages/c.scm | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index 6e98c34af6..1b168d2ca8 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -265,16 +265,29 @@ (define-public tomlc99 #$(cc-for-target)) (string-append "prefix=" #$output)) - #:phases #~(modify-phases %standard-phases - (delete 'configure) - (replace 'check - (lambda* (#:key tests? make-flags - #:allow-other-keys) - (when tests? - (apply invoke - `("make" "-C" "unittest" - ,@make-flags)) - (invoke "./unittest/t1"))))))) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'check + (lambda* (#:key tests? make-flags + #:allow-other-keys) + (when tests? + (apply invoke + `("make" "-C" "unittest" + ,@make-flags)) + (invoke "./unittest/t1")))) + ;; The Makefile checks for libtoml.pc and only installs if + ;; the prefix is /usr/local. + (add-after 'install 'install-pkg-config + (lambda _ + (rename-file "libtoml.pc.sample" "libtoml.pc") + (substitute* "libtoml.pc" + (("^prefix=.*") + (string-append "prefix=" #$output "\n"))) + + (let ((pc (string-append #$output "/lib/pkgconfig"))) + (mkdir-p pc) + (install-file "libtoml.pc" pc))))))) (home-page "https://github.com/cktan/tomlc99") (synopsis "TOML library for C") (description -- 2.41.0