From 14f540593bd95bb78ea68373babdc04a862dd561 Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Mon, 18 Oct 2021 18:39:15 +0000 Subject: gnu: aws-checksums: Replace patch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/c.scm (aws-checksums): Replace patch. [arguments]: Fix CMAKE_PREFIX_PATH. [source]: Remove patch. * gnu/packages/patches/aws-checksums-cmake-prefix.patch: Delete file. * gnu/local.mk: Remove it. Signed-off-by: Ludovic Courtès --- gnu/local.mk | 1 - gnu/packages/c.scm | 8 +++++--- gnu/packages/patches/aws-checksums-cmake-prefix.patch | 13 ------------- 3 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 gnu/packages/patches/aws-checksums-cmake-prefix.patch (limited to 'gnu') diff --git a/gnu/local.mk b/gnu/local.mk index 5f035aae8e..6aada7326b 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -871,7 +871,6 @@ dist_patch_DATA = \ %D%/packages/patches/avidemux-install-to-lib.patch \ %D%/packages/patches/awesome-reproducible-png.patch \ %D%/packages/patches/aws-c-auth-install-private-headers.patch \ - %D%/packages/patches/aws-checksums-cmake-prefix.patch \ %D%/packages/patches/azr3.patch \ %D%/packages/patches/bash-reproducible-linux-pgrp-pipe.patch \ %D%/packages/patches/bash-completion-directories.patch \ diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index 34c87c2d4b..e37c173fc0 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -578,6 +578,7 @@ portability.") (define-public aws-checksums (package (name "aws-checksums") + ; Update only when updating aws-crt-cpp. (version "0.1.12") (source (origin (method git-fetch) @@ -587,12 +588,13 @@ portability.") (file-name (git-file-name name version)) (sha256 (base32 - "054f2hkmkxhw83q7zsz349k82xk6bkrvlsab088pf7kn9wd4hy4k")) - (patches (search-patches "aws-checksums-cmake-prefix.patch")))) + "054f2hkmkxhw83q7zsz349k82xk6bkrvlsab088pf7kn9wd4hy4k")))) (build-system cmake-build-system) (arguments '(#:configure-flags - '("-DBUILD_SHARED_LIBS=ON"))) + (list "-DBUILD_SHARED_LIBS=ON" + (string-append "-DCMAKE_PREFIX_PATH=" + (assoc-ref %build-inputs "aws-c-common"))))) (inputs `(("aws-c-common" ,aws-c-common))) (synopsis "Amazon Web Services checksum library") diff --git a/gnu/packages/patches/aws-checksums-cmake-prefix.patch b/gnu/packages/patches/aws-checksums-cmake-prefix.patch deleted file mode 100644 index f6a5c9ad9c..0000000000 --- a/gnu/packages/patches/aws-checksums-cmake-prefix.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -8,6 +8,10 @@ - cmake_policy(SET CMP0069 NEW) # Enable LTO/IPO if available in the compiler, see AwsCFlags - endif() - -+if (DEFINED ENV{CMAKE_PREFIX_PATH}) -+ set(CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH}) -+endif() -+ - if (DEFINED CMAKE_PREFIX_PATH) - file(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH) - endif() -- cgit 1.4.1