From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Help on writing package definitions Date: Thu, 23 Apr 2020 12:00:11 +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]:55434) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRYef-0001UG-CF for help-guix@gnu.org; Thu, 23 Apr 2020 06:00:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRYee-0001gZ-UM for help-guix@gnu.org; Thu, 23 Apr 2020 06:00:25 -0400 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:34560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRYee-0001fx-Cx for help-guix@gnu.org; Thu, 23 Apr 2020 06:00:24 -0400 Received: by mail-qk1-x732.google.com with SMTP id t3so5766229qkg.1 for ; Thu, 23 Apr 2020 03:00:23 -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: Emmanuel Medernach Cc: help-guix 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. :-) > - 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 > 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. :-) Hope that helps. simon