[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/12: gnu: libtirpc: Keep reference to mit-krb5 when cross-compiling.
From: |
guix-commits |
Subject: |
04/12: gnu: libtirpc: Keep reference to mit-krb5 when cross-compiling. |
Date: |
Sun, 15 Oct 2023 06:15:56 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit cee779c80087f8eb0a164521a00fdb60bb0b05ca
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Oct 15 13:04:04 2023 +0300
gnu: libtirpc: Keep reference to mit-krb5 when cross-compiling.
* gnu/packages/onc-roc.scm (libtirpc)[arguments]: When cross-compiling
adjust the pkg-config file to retain a reference to mit-krb5.
---
gnu/packages/onc-rpc.scm | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/onc-rpc.scm b/gnu/packages/onc-rpc.scm
index afeb26331c..0c87c02a0b 100644
--- a/gnu/packages/onc-rpc.scm
+++ b/gnu/packages/onc-rpc.scm
@@ -5,7 +5,7 @@
;;; Copyright © 2018, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
-;;; Copyright © 2022 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2022, 2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2022 Zheng Junjie <873216071@qq.com>
;;;
;;; This file is part of GNU Guix.
@@ -64,7 +64,17 @@
"src/getnetconfig.c"
"tirpc/netconfig.h")
(("/etc/netconfig") (string-append (assoc-ref outputs "out")
- "/etc/netconfig"))))))))
+ "/etc/netconfig")))))
+ ,@(if (%current-target-system)
+ `((add-after 'unpack 'adjust-pkg-config
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "libtirpc.pc.in"
+ (("-ltirpc")
+ (string-append "-ltirpc"
+ " -L" (dirname (search-input-file
+ inputs
"/lib/libkrb5.so"))
+ " -lkrb5"))))))
+ `()))))
(native-inputs (list mit-krb5)) ;; for cross-compilation
(inputs (list mit-krb5))
(home-page "https://sourceforge.net/projects/libtirpc/")
- branch master updated (d2923babf3 -> e1600546b9), guix-commits, 2023/10/15
- 02/12: gnu: mesa: Fix cross-compiling., guix-commits, 2023/10/15
- 12/12: gnu: xcb-util-errors: Fix cross-compiling., guix-commits, 2023/10/15
- 09/12: gnu: libxkbcommon: Fix cross-compiling., guix-commits, 2023/10/15
- 07/12: gnu: sway: Fix cross-compiling., guix-commits, 2023/10/15
- 01/12: gnu: libinput-minimal: Fix cross-compiling., guix-commits, 2023/10/15
- 04/12: gnu: libtirpc: Keep reference to mit-krb5 when cross-compiling.,
guix-commits <=
- 05/12: gnu: poppler: Fix cross-compiling., guix-commits, 2023/10/15
- 11/12: gnu: xorg-server-xwayland: Fix cross-compiling., guix-commits, 2023/10/15
- 03/12: gnu: nss: Fix cross-compiling., guix-commits, 2023/10/15
- 08/12: gnu: swaybg: Fix cross-compiling., guix-commits, 2023/10/15
- 06/12: gnu: wlroots: Fix cross-compiling., guix-commits, 2023/10/15
- 10/12: gnu: egl-wayland: Fix cross-compiling., guix-commits, 2023/10/15