From unknown Sun Jun 22 07:58:41 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#73378] [PATCH] gnu: rapidcheck: Fix pkg-config libs. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Sep 2024 11:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73378 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73378@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172683018910548 (code B ref -1); Fri, 20 Sep 2024 11:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Sep 2024 11:03:09 +0000 Received: from localhost ([127.0.0.1]:34246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srbPp-0002k4-32 for submit@debbugs.gnu.org; Fri, 20 Sep 2024 07:03:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:35668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srbPn-0002jw-5Y for submit@debbugs.gnu.org; Fri, 20 Sep 2024 07:03:07 -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 ) id 1srbPT-0005In-QT for guix-patches@gnu.org; Fri, 20 Sep 2024 07:02:48 -0400 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srbPS-00018w-4b for guix-patches@gnu.org; Fri, 20 Sep 2024 07:02:47 -0400 Received: by mail-ej1-x642.google.com with SMTP id a640c23a62f3a-a8d24f98215so234147366b.1 for ; Fri, 20 Sep 2024 04:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726830164; x=1727434964; darn=gnu.org; h=mime-version:to:subject:date:from:message-id:from:to:cc:subject :date:message-id:reply-to; bh=j4VWeys990E96yhvRUxmXwI4lL2S9grC3RAOx7ECyW4=; b=YFLrPThJMUvCyqK5+JBqwKoUJuaGKo4QZLqyE6ryWrCuO2YmnGlTEOK5XPm2hnFVnX vMeHU8KeURaw3Dl9DWsxwfhyKNNSWt0OUkzw/uxlpk3INqs6axkSYTFGD67imu2GyuZD gTVYuQTgyZ/aUi62fviSQyXE6iAS6FjSoF4HEQrtaraz7yVAYJj/Z2OTL1C07aWYtaoJ SB36zoYNIPQuXtltneJesJFcAVwlPvjDNEleBERZiiLf94UFUpmYURSABqAQT2k1xFPY mDpTY/GND1Uac/kl68hZ3lb7bZSQqLYBE0NLRqSeiVRVguCVXJJ69DvfrQASDXXCjCYd SfgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726830164; x=1727434964; h=mime-version:to:subject:date:from:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=j4VWeys990E96yhvRUxmXwI4lL2S9grC3RAOx7ECyW4=; b=WxxpTMHSSsNdxDaJsEV56CWrS2G27HZgW1j3rPQ1pOOj7ah/jrx7cPqgCcFmq8c+/t JOomQ+XLm5Nuh3Q2X10txhYRb8lsz7lTbGqkS5jFTHvAnLP0+6+Xo+sgAt8sLL7QytzD fp7fHox4qWb+rBMTLJW6oeOtKRwjR1CfEbb7lG4X6okVZ2ukyIZaUE3uz4ALSKE0yzar RSRQ/9daKkTAoh7f7XqE9q/efdTPGs/wk31MFH+5xH7QjtXv4fbBJUKoF3hGt45yPP3W Kj/UsDhtxJcdmngVAZXGwUH8M4Wuq60fN0AdRWnRvx1eXb+RiRbGYrb7RvEEHQw3rqco bhaQ== X-Gm-Message-State: AOJu0YzhpngpXXymzYq6LlU4NuK2ocdtVcVbOC93zy1CgbiWtUj3upUf bmBfuG3bPzsJdr4ugc9qes9mieB4ODnpZ51HGxp+nyoTbfEQRpKTLXBSCI/w X-Google-Smtp-Source: AGHT+IGFB8ohEva+DcWS6kKrPZ9lQDJ6SKxeceWgVPRPCjE6dRtBjbAuA9Z+84O0ZRjank/zCc0m8Q== X-Received: by 2002:a17:907:f1a6:b0:a86:7fc3:8620 with SMTP id a640c23a62f3a-a90d4ffc1b8mr210030166b.31.1726830164112; Fri, 20 Sep 2024 04:02:44 -0700 (PDT) Received: from lumine.fritz.box (85-127-114-32.dsl.dynamic.surfer.at. [85.127.114.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a906109637esm833373466b.40.2024.09.20.04.02.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 04:02:43 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Fri, 20 Sep 2024 12:00:51 +0200 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::642; envelope-from=liliana.prikler@gmail.com; helo=mail-ej1-x642.google.com X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MALFORMED_FREEMAIL=2.446, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Using rapidcheck as a dependency in a project currently results in a linker error, because the pkg-config file is missing relevant linker flags. * gnu/packages/patches/rapidcheck-fix-libs.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it here. * gnu/packages/check.scm (rapidcheck)[patches]: Use it here. --- gnu/local.mk | 1 + gnu/packages/check.scm | 1 + .../patches/rapidcheck-fix-libs.patch | 27 +++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 gnu/packages/patches/rapidcheck-fix-libs.patch diff --git a/gnu/local.mk b/gnu/local.mk index a092122d22..5d0b8a37bb 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2070,6 +2070,7 @@ dist_patch_DATA = \ %D%/packages/patches/qtwayland-cleanup-callbacks.patch \ %D%/packages/patches/ragel-char-signedness.patch \ %D%/packages/patches/randomjungle-disable-static-build.patch \ + %D%/packages/patches/rapidcheck-fix-libs.patch \ %D%/packages/patches/raptor2-heap-overflow.patch \ %D%/packages/patches/ratpoints-sturm_and_rp_private.patch \ %D%/packages/patches/ratpoison-shell.patch \ diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 656a2e1730..42554102ac 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -3756,6 +3756,7 @@ (define-public rapidcheck (sha256 (base32 "1s2qva1amhs887jcdj12ppxk9kkfvy25xy7vzhkwb7rljr3gj713")) (modules '((guix build utils))) + (patches (search-patches "rapidcheck-fix-libs.patch")) (snippet #~(begin (make-file-writable "ext/CMakeLists.txt") diff --git a/gnu/packages/patches/rapidcheck-fix-libs.patch b/gnu/packages/patches/rapidcheck-fix-libs.patch new file mode 100644 index 0000000000..5e5603116c --- /dev/null +++ b/gnu/packages/patches/rapidcheck-fix-libs.patch @@ -0,0 +1,27 @@ +From c4f558b0990571759fdaf976eb35ee1eb0d934a0 Mon Sep 17 00:00:00 2001 +From: Robert Hensing +Date: Tue, 25 Jun 2024 20:57:41 +0200 +Subject: [PATCH] Add -lrapidcheck to pkg-config module + +This adds the library to rapidcheck.pc, so that it doesn't have +to be specified manually in projects that consume it. + +The other modules don't need it because they have rapidcheck in +their Requires field. +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d55fdc51..046df2fd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -128,7 +128,7 @@ set(PKG_CONFIG_DESCRIPTION_SUMMARY "C++ framework for property based testing ins + set(PKG_CONFIG_VERSION) + set(PKG_CONFIG_LIBDIR "\${prefix}/lib") + set(PKG_CONFIG_INCLUDEDIR "\${prefix}/include") +-set(PKG_CONFIG_LIBS) ++set(PKG_CONFIG_LIBS "-L\${libdir} -lrapidcheck") + set(PKG_CONFIG_CFLAGS "-I\${includedir}") + + configure_file( base-commit: e9d903f146865db5948abd271a5c7e763681b4e9 -- 2.46.0 From unknown Sun Jun 22 07:58:41 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Liliana Marie Prikler Subject: bug#73378: closed (Re: [PATCH] gnu: rapidcheck: Fix pkg-config libs.) Message-ID: References: <92800a3643c22207e91721a8ed5d071abd6b0735.camel@gmail.com> X-Gnu-PR-Message: they-closed 73378 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 73378@debbugs.gnu.org Date: Sun, 29 Sep 2024 09:58:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1727603882-16511-1" This is a multi-part message in MIME format... ------------=_1727603882-16511-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #73378: [PATCH] gnu: rapidcheck: Fix pkg-config libs. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 73378@debbugs.gnu.org. --=20 73378: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D73378 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1727603882-16511-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 73378-done) by debbugs.gnu.org; 29 Sep 2024 09:57:23 +0000 Received: from localhost ([127.0.0.1]:40126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suqg6-0004E5-Mh for submit@debbugs.gnu.org; Sun, 29 Sep 2024 05:57:23 -0400 Received: from mail-ej1-f65.google.com ([209.85.218.65]:53420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suq6p-00061O-Gb for 73378-done@debbugs.gnu.org; Sun, 29 Sep 2024 05:21:07 -0400 Received: by mail-ej1-f65.google.com with SMTP id a640c23a62f3a-a8a837cec81so269363666b.2 for <73378-done@debbugs.gnu.org>; Sun, 29 Sep 2024 02:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727601558; x=1728206358; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=i4c8qLfSxqCH4IAGYxxPpbnouEkX/lu9wf/RO86j2Bg=; b=TYcyFhINXQQc32YP24OVazOHBcwHWPQH2Uq5Ww7+FNorFyGXB+4Jf93QcZKFwah5RV BWYbJ1RK7pRplx6UBeRmMDIV1vZSmkTm6tH6ffLxh8VI3TVMfTrLp6a2w+MNWL+v8mTJ yw7uVbLm+Bkq7tJNfvYo15efO7otLrvEcjYlTgR60e3XYgHb2tDWcDRwGHf+jpIpmVBV od87RUIGaYtVGVgKgorgDEnxSPU/kfcYoldpc3Jev8zRrBhk0R/bT2ocQ/iuqiaEleWl Dk+K+8b53XE1ieeXuWFmKrNG4ae9FIuQyCzAOAixBNN6TYSUVH7GQxJD1aa98RurnTc+ fc9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727601558; x=1728206358; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=i4c8qLfSxqCH4IAGYxxPpbnouEkX/lu9wf/RO86j2Bg=; b=R6fOLz+7ie6OQUfHBqrEaY50IsRxK0/OC39/9znuOn7+7PtBDs2bxHjjYk/dqJJWXi 1yxpXTwcfaUqWlZBj2bUiULz+jPQVagC7MkK9n4uG/sBvWWeJXthF0FNrKYHDZhISi2f 7WUZm96WG3c4wgTKg/KZ2RE9Qd7JSD4xKLj/USAIQ40Upf5FOtmt10xqYS/Dupa4vGfU jIijpiLoq2sHf8Gn3XmCubq2nesv8/abJqwroiNZimRy7wnjdB89gsPQGjeCO5wtdHSJ tLn/xv+eN52Sdf6K7fV55l0EB6SMab+zrLnDQe7Uc41jLpbQnEdnMDSinubDaB2BaCfx 14kA== X-Gm-Message-State: AOJu0YzUlIyWXP873wADTdY3Calf29HKyfFeZpuRjHY852EJDnYJLT9H Zjz39Wuqdee8HoUtCCOQumAIqhGdkOU9Je7p2VUsCvcBC+8QBnHXvdvt5AbW X-Google-Smtp-Source: AGHT+IGqgJ9Z6FZYLQCyQeuWnp+TedL7o1EUoYOGRvq1pWPALJNeQVcgT4AAdNoRAO5jv6ccBiPuIA== X-Received: by 2002:a05:6402:84d:b0:5c7:1f16:78e3 with SMTP id 4fb4d7f45d1cf-5c8825fe8bcmr14430271a12.22.1727601558113; Sun, 29 Sep 2024 02:19:18 -0700 (PDT) Received: from lumine.fritz.box (85-127-114-32.dsl.dynamic.surfer.at. [85.127.114.32]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c882405bcesm2988545a12.1.2024.09.29.02.19.16 for <73378-done@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Sep 2024 02:19:17 -0700 (PDT) Message-ID: <92800a3643c22207e91721a8ed5d071abd6b0735.camel@gmail.com> Subject: Re: [PATCH] gnu: rapidcheck: Fix pkg-config libs. From: Liliana Marie Prikler To: 73378-done@debbugs.gnu.org Date: Sun, 29 Sep 2024 11:19:15 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 73378-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Freitag, dem 20.09.2024 um 12:00 +0200 schrieb Liliana Marie Prikler: > Using rapidcheck as a dependency in a project currently results in a > linker > error, because the pkg-config file is missing relevant linker flags. >=20 > * gnu/packages/patches/rapidcheck-fix-libs.patch: New file. > * gnu/local.mk (dist_patch_DATA): Register it here. > * gnu/packages/check.scm (rapidcheck)[patches]: Use it here. > --- Pushed. ------------=_1727603882-16511-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Sep 2024 11:03:09 +0000 Received: from localhost ([127.0.0.1]:34246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srbPp-0002k4-32 for submit@debbugs.gnu.org; Fri, 20 Sep 2024 07:03:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:35668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srbPn-0002jw-5Y for submit@debbugs.gnu.org; Fri, 20 Sep 2024 07:03:07 -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 ) id 1srbPT-0005In-QT for guix-patches@gnu.org; Fri, 20 Sep 2024 07:02:48 -0400 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srbPS-00018w-4b for guix-patches@gnu.org; Fri, 20 Sep 2024 07:02:47 -0400 Received: by mail-ej1-x642.google.com with SMTP id a640c23a62f3a-a8d24f98215so234147366b.1 for ; Fri, 20 Sep 2024 04:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726830164; x=1727434964; darn=gnu.org; h=mime-version:to:subject:date:from:message-id:from:to:cc:subject :date:message-id:reply-to; bh=j4VWeys990E96yhvRUxmXwI4lL2S9grC3RAOx7ECyW4=; b=YFLrPThJMUvCyqK5+JBqwKoUJuaGKo4QZLqyE6ryWrCuO2YmnGlTEOK5XPm2hnFVnX vMeHU8KeURaw3Dl9DWsxwfhyKNNSWt0OUkzw/uxlpk3INqs6axkSYTFGD67imu2GyuZD gTVYuQTgyZ/aUi62fviSQyXE6iAS6FjSoF4HEQrtaraz7yVAYJj/Z2OTL1C07aWYtaoJ SB36zoYNIPQuXtltneJesJFcAVwlPvjDNEleBERZiiLf94UFUpmYURSABqAQT2k1xFPY mDpTY/GND1Uac/kl68hZ3lb7bZSQqLYBE0NLRqSeiVRVguCVXJJ69DvfrQASDXXCjCYd SfgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726830164; x=1727434964; h=mime-version:to:subject:date:from:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=j4VWeys990E96yhvRUxmXwI4lL2S9grC3RAOx7ECyW4=; b=WxxpTMHSSsNdxDaJsEV56CWrS2G27HZgW1j3rPQ1pOOj7ah/jrx7cPqgCcFmq8c+/t JOomQ+XLm5Nuh3Q2X10txhYRb8lsz7lTbGqkS5jFTHvAnLP0+6+Xo+sgAt8sLL7QytzD fp7fHox4qWb+rBMTLJW6oeOtKRwjR1CfEbb7lG4X6okVZ2ukyIZaUE3uz4ALSKE0yzar RSRQ/9daKkTAoh7f7XqE9q/efdTPGs/wk31MFH+5xH7QjtXv4fbBJUKoF3hGt45yPP3W Kj/UsDhtxJcdmngVAZXGwUH8M4Wuq60fN0AdRWnRvx1eXb+RiRbGYrb7RvEEHQw3rqco bhaQ== X-Gm-Message-State: AOJu0YzhpngpXXymzYq6LlU4NuK2ocdtVcVbOC93zy1CgbiWtUj3upUf bmBfuG3bPzsJdr4ugc9qes9mieB4ODnpZ51HGxp+nyoTbfEQRpKTLXBSCI/w X-Google-Smtp-Source: AGHT+IGFB8ohEva+DcWS6kKrPZ9lQDJ6SKxeceWgVPRPCjE6dRtBjbAuA9Z+84O0ZRjank/zCc0m8Q== X-Received: by 2002:a17:907:f1a6:b0:a86:7fc3:8620 with SMTP id a640c23a62f3a-a90d4ffc1b8mr210030166b.31.1726830164112; Fri, 20 Sep 2024 04:02:44 -0700 (PDT) Received: from lumine.fritz.box (85-127-114-32.dsl.dynamic.surfer.at. [85.127.114.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a906109637esm833373466b.40.2024.09.20.04.02.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 04:02:43 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Fri, 20 Sep 2024 12:00:51 +0200 Subject: [PATCH] gnu: rapidcheck: Fix pkg-config libs. to: guix-patches@gnu.org MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::642; envelope-from=liliana.prikler@gmail.com; helo=mail-ej1-x642.google.com X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MALFORMED_FREEMAIL=2.446, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Using rapidcheck as a dependency in a project currently results in a linker error, because the pkg-config file is missing relevant linker flags. * gnu/packages/patches/rapidcheck-fix-libs.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it here. * gnu/packages/check.scm (rapidcheck)[patches]: Use it here. --- gnu/local.mk | 1 + gnu/packages/check.scm | 1 + .../patches/rapidcheck-fix-libs.patch | 27 +++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 gnu/packages/patches/rapidcheck-fix-libs.patch diff --git a/gnu/local.mk b/gnu/local.mk index a092122d22..5d0b8a37bb 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2070,6 +2070,7 @@ dist_patch_DATA = \ %D%/packages/patches/qtwayland-cleanup-callbacks.patch \ %D%/packages/patches/ragel-char-signedness.patch \ %D%/packages/patches/randomjungle-disable-static-build.patch \ + %D%/packages/patches/rapidcheck-fix-libs.patch \ %D%/packages/patches/raptor2-heap-overflow.patch \ %D%/packages/patches/ratpoints-sturm_and_rp_private.patch \ %D%/packages/patches/ratpoison-shell.patch \ diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 656a2e1730..42554102ac 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -3756,6 +3756,7 @@ (define-public rapidcheck (sha256 (base32 "1s2qva1amhs887jcdj12ppxk9kkfvy25xy7vzhkwb7rljr3gj713")) (modules '((guix build utils))) + (patches (search-patches "rapidcheck-fix-libs.patch")) (snippet #~(begin (make-file-writable "ext/CMakeLists.txt") diff --git a/gnu/packages/patches/rapidcheck-fix-libs.patch b/gnu/packages/patches/rapidcheck-fix-libs.patch new file mode 100644 index 0000000000..5e5603116c --- /dev/null +++ b/gnu/packages/patches/rapidcheck-fix-libs.patch @@ -0,0 +1,27 @@ +From c4f558b0990571759fdaf976eb35ee1eb0d934a0 Mon Sep 17 00:00:00 2001 +From: Robert Hensing +Date: Tue, 25 Jun 2024 20:57:41 +0200 +Subject: [PATCH] Add -lrapidcheck to pkg-config module + +This adds the library to rapidcheck.pc, so that it doesn't have +to be specified manually in projects that consume it. + +The other modules don't need it because they have rapidcheck in +their Requires field. +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d55fdc51..046df2fd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -128,7 +128,7 @@ set(PKG_CONFIG_DESCRIPTION_SUMMARY "C++ framework for property based testing ins + set(PKG_CONFIG_VERSION) + set(PKG_CONFIG_LIBDIR "\${prefix}/lib") + set(PKG_CONFIG_INCLUDEDIR "\${prefix}/include") +-set(PKG_CONFIG_LIBS) ++set(PKG_CONFIG_LIBS "-L\${libdir} -lrapidcheck") + set(PKG_CONFIG_CFLAGS "-I\${includedir}") + + configure_file( base-commit: e9d903f146865db5948abd271a5c7e763681b4e9 -- 2.46.0 ------------=_1727603882-16511-1--