unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Pier-Hugues Pellerin <ph@heykimo.com>
To: help-guix@gnu.org
Subject: Problem when packaging Avizo
Date: Wed, 2 Mar 2022 21:45:25 -0500	[thread overview]
Message-ID: <CA+RyfL==Q-SYMkoJ6XRb_MmTJojqQL0nsitRncW3dWfYC+3ysA@mail.gmail.com> (raw)

Hello,
I've been enjoying my time with Guix so far and I've decided to packages a
few applications that
I was using before switching. I've been trying to package avizo[0], they
seem to be using meson and ninja to build the software. So I've written the
following package, but when I've tried to build it using "guix build -L .
--debug=1 avizo" I get an exception.

Maybe I've missed something in the documentation.

Thanks for your help

Package:

(define-module (avizo)
  #:use-module (guix packages)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages gnome)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages pkg-config)
  #:use-module (guix git-download)
  #:use-module (guix build-system meson))

(define-public avizo
  (package
    (name "avizo")
    (version "1.2")
    (source
      (origin
        (method git-fetch)
        (uri (git-reference
               (url "https://github.com/misterdanb/avizo")
               (commit version)))
        (file-name (git-file-name name version))
        (sha256
          (base32 "02h2jbgrbl2hyq6bzwryc1r47mipgdqrdh7zi44skc25w045s6q5"))))
    (build-system meson-build-system)
    (arguments
     `(#:build-type "release"))
    (inputs
     `(("gtk+", gtk+)))
    (native-inputs
     `(("vala", vala)
       ("glib:bin", glib "bin")
       ("gobject-introspection", gobject-introspection)
       ("gtk-layer-shell", gtk-layer-shell)
       ("pkg-config", pkg-config)))
    (home-page "https://github.com/misterdanb/avizo")
    (synopsis "Avizo")
    (description "@code{Avizo} is a simple notification daemon, mainly
intended to be used for multimedia keys for example with Sway.")
    (license license:gpl3+)))


Snippet from the execution

avizo 1.1

  User defined options
    buildtype    : release
    prefix       : /gnu/store/1fv2c9zhmzhbp7ry1y1qhnwql8bf83fq-avizo-1.2
    c_link_args  :
-Wl,-rpath=/gnu/store/1fv2c9zhmzhbp7ry1y1qhnwql8bf83fq-avizo-1.2/lib
    cpp_link_args:
-Wl,-rpath=/gnu/store/1fv2c9zhmzhbp7ry1y1qhnwql8bf83fq-avizo-1.2/lib

Found ninja-1.10.2 at
/gnu/store/yqv6h38aa5809l4d8mz078knwf86mb32-ninja-1.10.2/bin/ninja
phase `configure' succeeded after 1.6 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
Backtrace:
In guix/store.scm:
   1320:8 19 (call-with-build-handler #<procedure 7f6d1bf4d9f0 at g…> …)
In guix/ui.scm:
    466:3 18 (_)
In ice-9/boot-9.scm:
  1747:15 17 (with-exception-handler #<procedure 7f6d04026120 at ic…> …)
  1752:10 16 (with-exception-handler _ _ #:unwind? _ # _)
In guix/ui.scm:
    453:6 15 (_)
In guix/scripts/build.scm:
    626:5 14 (_)
In srfi/srfi-1.scm:
   673:15 13 (append-map _ _ . _)
   586:17 12 (map1 ("x86_64-linux"))
In guix/scripts/build.scm:
   628:21 11 (_ _)
In guix/store.scm:
   1406:5 10 (map/accumulate-builds #<store-connection 256.99 7f6d1…> …)
  1421:15  9 (_ #<store-connection 256.99 7f6d1be687d0> _ _)
   759:14  8 (process-stderr _ _)
In unknown file:
           7 (display "@ build-log 4365 150\n[1/11] Generating aviz…" …)
In guix/status.scm:
   754:20  6 (write! _ _ _)
In srfi/srfi-1.scm:
   460:18  5 (fold #<procedure 7f6d1bf54e80 at guix/status.scm:644:…> …)
In guix/status.scm:
   645:15  4 (_ (build-log 4365 "[1/11] Generating avizo-resource…") #)
   179:23  3 (update-build #<<build-status> building: () downloadin…> …)
In ice-9/boot-9.scm:
  1685:16  2 (raise-exception _ #:continuable? _)
  1685:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting
struct): #f

-- 
ph,

[0]: https://github.com/misterdanb/avizo

             reply	other threads:[~2022-03-03  2:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-03  2:45 Pier-Hugues Pellerin [this message]
2022-03-08 10:51 ` Problem when packaging Avizo Ludovic Courtès
2022-03-08 16:53   ` Pier-Hugues Pellerin
2022-03-16 14:52     ` Maxim Cournoyer
2022-03-25 19:26       ` Pier-Hugues Pellerin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+RyfL==Q-SYMkoJ6XRb_MmTJojqQL0nsitRncW3dWfYC+3ysA@mail.gmail.com' \
    --to=ph@heykimo.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).