all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Martin Castillo <castilma@uni-bremen.de>
To: help-guix@gnu.org
Subject: Re: creating a manifest
Date: Sat, 18 Mar 2023 13:44:08 +0100	[thread overview]
Message-ID: <a9fc4dc2-d1a1-4dc7-5da4-aa24837f2d21@uni-bremen.de> (raw)
In-Reply-To: <2e5ab249-c759-7fce-58e2-ebeeac7fbacc@uni-bremen.de>

I noticed an error.

> 
> For that you need to instead create a new package definition for 
> musescore version 3.6.2. The info page gives you an example, which you 
> just adjust. Using guix edit musescore you see how musescore is defined. 
> You can notice, there is a version field. So lets create a new package 
> with adjusted version:
> 
> (define musescore-3.6.2
>    (package
>      (inherit musescore)
>      (version "3.6.2")))
> 
> ;; We create this manifest from a _package_, and not from a
> ;; _specification_ (which is just something like a string "musescore")
> (packages->manifest (list musescore-3.6.2))
> 

While building guix says it's downloading musescore-4.0.1. Maybe it 
switches to the respective branch before building.

I even tried explicitly writing the origin entry of
(define musescore-3.6.2
   (package 

     (inherit musescore) 
 

     (version "3.6.2")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
              (url "https://github.com/musescore/MuseScore")
              (commit (string-append "v" "3.6.2"))))
        (file-name (git-file-name "musescore" "3.6.2"))
        (sha256
         (base32 "0x2aahpbvss3sjydcq6xdh198fmslgypixmd2gckfwjqzady662y"))
        (modules '((guix build utils)))
        (snippet
         '(begin
            ;; Remove unused libraries...
            (for-each delete-file-recursively
                      '("thirdparty/freetype"))
            ;; ... and precompiled binaries.
            (delete-file-recursively "src/diagnostics/crashpad_handler")
            (substitute* "src/diagnostics/CMakeLists.txt"
              (("install") "#install"))))))))

guix shell -m manifest.scm still says 4.0.1 and executing mscore fails:
[env]$ mscore --version
QEventLoop: Cannot be used without QApplication
QEventLoop: Cannot be used without QApplication
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even 
though it was found.
This application failed to start because no Qt platform plugin could be 
initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, 
offscreen, vnc, xcb.

Abgebrochen

So seems like in this case it's not so easy. (Well the current guix 
packaged version is 4.0.1 so a major version change happened.)

One could try using the older package definition, which is available in 
the git history of guix. Commit 6a54715988aee884bbb5f81e1b718a27ff771ec4 
is the newest change to musescore with 3.6.2. 
9f93bcd1862c76d7ff30da6f712c9bd2912b8346 switched to 4.0. So it's parent 
commit should have the newest dependencies which might work with current 
guix.
I don't have time right now, but you might want to copy such an older 
package definition into your manifest.scm

Martin



  reply	other threads:[~2023-03-18 12:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-18 10:50 creating a manifest Gottfried
2023-03-18 11:48 ` Martin Castillo
2023-03-18 12:44   ` Martin Castillo [this message]
2023-03-18 18:58   ` Gottfried
     [not found]     ` <DFF79ED1-D430-4DE9-81C9-C1B146E1B84D@uni-bremen.de>
     [not found]       ` <ddb1213e-3864-bbdc-381d-aed8f9f4ace2@posteo.de>
     [not found]         ` <400c34f4-61e4-fc2e-f826-8b6d2c37f62b@uni-bremen.de>
     [not found]           ` <726a7642-df0b-495b-4b24-ce956533cba7@posteo.de>
     [not found]             ` <81AEB7B8-17C7-4484-90B6-BFEF5163B670@uni-bremen.de>
2023-03-25 12:49               ` Gottfried
2023-03-25 22:07                 ` Martin Castillo
2023-03-26  8:16                   ` Gottfried
2023-03-26 11:36                     ` Martin Castillo
2023-03-26 13:07                       ` Gottfried
2023-03-26 18:36                         ` Martin Castillo
2023-03-27 11:52                           ` Gottfried
2023-03-27 18:06                             ` Wojtek Kosior via

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

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

  git send-email \
    --in-reply-to=a9fc4dc2-d1a1-4dc7-5da4-aa24837f2d21@uni-bremen.de \
    --to=castilma@uni-bremen.de \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.