From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emmanuel Medernach Subject: Re: Help on writing package definitions Date: Thu, 23 Apr 2020 14:21:20 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53882) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRarI-0000ua-1x for help-guix@gnu.org; Thu, 23 Apr 2020 08:21:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRarH-000537-9C for help-guix@gnu.org; Thu, 23 Apr 2020 08:21:35 -0400 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:41465) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRarG-00052n-N6 for help-guix@gnu.org; Thu, 23 Apr 2020 08:21:34 -0400 Received: by mail-lj1-x231.google.com with SMTP id j3so5952334ljg.8 for ; Thu, 23 Apr 2020 05:21:34 -0700 (PDT) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: zimoun Cc: help-guix On Thu, Apr 23, 2020 at 12:00 PM zimoun wrote: > Dear, > > > On Thu, 23 Apr 2020 at 10:29, Emmanuel Medernach > wrote: > > > - Why not export the license record type from license.scm ? Some project > > has its own license and I cannot create it. > > You mean the project's license is not part of this list [1], right? > > [1] https://www.gnu.org/licenses/license-list.html > > > Otherwise, I do not have the answer for your question. :-) > > Yes, it is not listed in this list because it is specific to the project. I would like to be able to create one new license but the license function is not exported. > > - I have errors when I try to build with guix that I don't have when I > > build manually. I have a package (asiofi) which depends on another one > > (libfabric) but the build does not find it. Here is my current file > > attached and the command I use: > > > > # guix build -K --load-path=/home/emederna/src/packages -e '(@ (CBM) > > asiofi)' > > Does the '#' at the beginning mean that your are running as root? > > Well, I find easier 1/ to log in as 'emederna' user and 2/ to run > > guix build -L ~/src/packages asiofi > > No, I am not root, this is my prompt :) Ok, this command is much shorter. > > CMake Error at test/CMakeLists.txt:9 (add_executable): > > Target "afi_msg_bw" links to target "OFI::libfabric" but the target was > > not > > found. Perhaps a find_package() call is missing for an IMPORTED > target, > > or > > an ALIAS target is missing? > > From my understanding, there are 3 "issues": > > a) instead of create a full new package for libfabric, you could > update the Guix one or use 'inherit', e.g., (not tested) > > (define-public my-libfabric > (inherit libfabric > (version "X.Y") > (source blablabla))) > > b) missing '#t' to the phase 'add-before' > > c) missing the package 'pkg-config', i.e., > #:use-module (gnu packages pkg-config) > and > ("pkgconfig" ,pkg-config) > in the list of inputs. > > > Now, it seems compiling on my machine. :-) > > Wonderful ! It works now. Thanks for your help. How do you debugged this issue to find that we have to add pkgconfig ? Emmanuel > > Hope that helps. > simon >