[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#57675] [PATCH v3 3/7] gnu: Add abseil-cpp-cxxstd17.
From: |
Liliana Marie Prikler |
Subject: |
[bug#57675] [PATCH v3 3/7] gnu: Add abseil-cpp-cxxstd17. |
Date: |
Sun, 11 Sep 2022 13:13:48 +0200 |
User-agent: |
Evolution 3.42.1 |
Am Sonntag, dem 11.09.2022 um 18:11 +0800 schrieb Hilton Chain:
>
> * gnu/packages/telegram.scm (abseil-cpp-cxxstd17): New variable.
> ---
> gnu/packages/telegram.scm | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm
> index 6e7fa4a2ec..3b0444025c 100644
> --- a/gnu/packages/telegram.scm
> +++ b/gnu/packages/telegram.scm
> @@ -62,6 +62,7 @@ (define-module (gnu packages telegram)
> #:use-module (gnu packages xorg)
> #:use-module ((guix licenses) #:prefix license:)
> #:use-module (guix packages)
> + #:use-module (guix utils)
> #:use-module (guix git-download)
> #:use-module (guix build-system cmake)
> #:use-module (guix build-system copy)
> @@ -71,6 +72,18 @@ (define-module (gnu packages telegram)
> #:use-module (guix build-system python)
> #:use-module (guix build-system qt))
>
> +(define-public abseil-cpp-cxxstd17
> + (let ((base abseil-cpp))
> + ;; Abseil built with pre C++17 standards enforcing would cause a
> linking
> + ;; issue when building Telegram Destop. (Currently it's by
> default 11, and
> + ;; has changed to 14 upstream.)
> + (hidden-package
> + (package/inherit base
> + (arguments
> + (substitute-keyword-arguments (package-arguments base)
> + ((#:configure-flags flags)
> + `(cons* "-DCMAKE_CXX_STANDARD=17" ,flags))))))))
> +
For the record, this ought to be placed near abseil-cpp, because the
semantics of inheritance can screw you over cross-module.
Cheers
- [bug#57675] [PATCH v2 5/5] gnu: telegram-desktop: Update to 4.1.1., (continued)
- [bug#57675] [PATCH v3 0/7] gnu: telegram-desktop: Update to 4.1.1., Hilton Chain, 2022/09/11
- [bug#57675] [PATCH v3 1/7] gnu: webrtc-for-telegram-desktop: Simplify inputs., Hilton Chain, 2022/09/11
- [bug#57675] [PATCH v3 2/7] gnu: telegram-desktop: Simplify inputs., Hilton Chain, 2022/09/11
- [bug#57675] [PATCH v3 3/7] gnu: Add abseil-cpp-cxxstd17., Hilton Chain, 2022/09/11
- [bug#57675] [PATCH v3 4/7] gnu: webrtc-for-telegram-desktop: Update to a5fbc9., Hilton Chain, 2022/09/11
- [bug#57675] [PATCH v3 5/7] gnu: telegram-desktop: Update to 4.1.1., Hilton Chain, 2022/09/11
- [bug#57675] [PATCH v3 6/7] gnu: Remove rlottie-for-telegram-desktop., Hilton Chain, 2022/09/11
- [bug#57675] [PATCH v3 7/7] gnu: Remove libtgvoip-for-telegram-desktop., Hilton Chain, 2022/09/11
- [bug#57675] [PATCH v3 5/7] gnu: telegram-desktop: Update to 4.1.1., Liliana Marie Prikler, 2022/09/11
- [bug#57675] [PATCH v3 3/7] gnu: Add abseil-cpp-cxxstd17.,
Liliana Marie Prikler <=
[bug#57675] [PATCH v3 0/7] gnu: telegram-desktop: Update to 4.1.1., Liliana Marie Prikler, 2022/09/11
[bug#57675] [PATCH v4 00/10] gnu: telegram-desktop: Update to 4.2.0., Hilton Chain, 2022/09/19
- [bug#57675] [PATCH v4 01/10] gnu: webrtc-for-telegram-desktop: Simplify inputs., Hilton Chain, 2022/09/19
- [bug#57675] [PATCH v4 02/10] gnu: telegram-desktop: Simplify inputs., Hilton Chain, 2022/09/19
- [bug#57675] [PATCH v4 03/10] gnu: telegram-desktop: Change API ID., Hilton Chain, 2022/09/19
- [bug#57675] [PATCH v4 04/10] gnu: webrtc-for-telegram-desktop: Use gexp., Hilton Chain, 2022/09/19
- [bug#57675] [PATCH v4 05/10] gnu: telegram-desktop: Use gexp., Hilton Chain, 2022/09/19
- [bug#57675] [PATCH v4 06/10] gnu: Add abseil-cpp-cxxstd17., Hilton Chain, 2022/09/19