help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem when packaging Avizo


From: Pier-Hugues Pellerin
Subject: Problem when packaging Avizo
Date: Wed, 2 Mar 2022 21:45:25 -0500

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 via email to

[Prev in Thread] Current Thread [Next in Thread]