GNU bug report logs

#70161 [PATCH 0/2] gnu: tomlc99: Update to 1.0-1.5221b3d.

PackageSource(s)Maintainer(s)
guix-patches PTS Buildd Popcon
Full log

Message #8 received at 70161@debbugs.gnu.org (full text, mbox, reply):

Received: (at 70161) by debbugs.gnu.org; 3 Apr 2024 11:22:04 +0000
From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 03 07:22:04 2024
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>
To: 70161@debbugs.gnu.org
Subject: [PATCH 2/2] gnu: tomlc99: Install pkg-config file.
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-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70161
Cc: Jean-Pierre De Jesus DIAZ <jean@foundation.xyz>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
* 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





Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Mon Nov 4 22:08:55 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.