From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YCDCCNwkF2ShxQAASxT56A (envelope-from ) for ; Sun, 19 Mar 2023 16:06:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AKfJB9wkF2ThrAAAG6o9tA (envelope-from ) for ; Sun, 19 Mar 2023 16:06:04 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8417412A29 for ; Sun, 19 Mar 2023 16:06:03 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=uni-bremen.de header.s=2019 header.b=DVdfdlRp; dmarc=fail reason="SPF not aligned (relaxed)" header.from=uni-bremen.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679238363; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Jppe+xIEUPMwyksBHjL5CZ6iRNs8USx6S7q8hHuKxNo=; b=atdxilRMz0khdcCDUpcR3H/6ygjODM8jachq1tJNLXc7d7L9rgkt1M6oRtM+UuOzwxUrrw 7o9cO8hYsXM6hIrJAFNw5ACXu2Ef4ZjfNWZJqCQ0GNpE2TDj9xuCrXYBGLEYtpU5LWSlFH ptYiLSV3t6fB48ycda2EzCGYqQwgAw3lH1WfISdMHlSrRQAHEyJgjo55xC/hKfavxDx27C zqMA+Ra0yWJE1fl+S+71wKurCpM+IrJFphd3lTU1nfSmXt9EhpUuO3vjwaq9jUKj+lbk4H wWfJASzDxPk3wKb7KtfwHRdYqqwCnDWOt4gnQ+r/opVdZSBnQIij8t1pEToNKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=uni-bremen.de header.s=2019 header.b=DVdfdlRp; dmarc=fail reason="SPF not aligned (relaxed)" header.from=uni-bremen.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679238363; a=rsa-sha256; cv=none; b=oJbRwLjhw2V3Uj4pZQ/ItjgT8BBhLkcKPVogALDxMhxbhT1M6yVBc8t9MPEofupwZa9Xq1 s5nlZKLVvW4CC2Q8FU1xvlin/+OQ1DH516Jh5nAbd6s+HnEqOnav0ejCdEA7PpkMLX9cig ppKS6QWucLL2JRlPTz9dQH1UcbapBsYxZiV1P8y6EmfsM8/RtBMAE0Mq5/3hwZzBRMDGxt VVdqB7oSB7jH9kHV8AVYSX7i9ZVxkG9q2D6OIEEZPCgP5+tAEeDoAghBRYF6psFyfd59yB YUcVEqmqnuFpIbt1coP3LBBaQ26XKDvv9hlUsGbjeX2vDen/g1laFgI0Hk3OBA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdub9-0007rq-H0; Sun, 19 Mar 2023 11:05:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdub3-0007rA-A0 for help-guix@gnu.org; Sun, 19 Mar 2023 11:05:21 -0400 Received: from gabriel-smtp.zfn.uni-bremen.de ([2001:638:708:32::15] helo=smtp.uni-bremen.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdub0-0004S9-Lr for help-guix@gnu.org; Sun, 19 Mar 2023 11:05:20 -0400 Received: from [192.168.178.52] (ip4d16eb70.dynamic.kabel-deutschland.de [77.22.235.112]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.uni-bremen.de (Postfix) with ESMTPSA id 4Pfh4S22LrzDCbS; Sun, 19 Mar 2023 16:05:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=uni-bremen.de; s=2019; t=1679238312; bh=utqIL5c3stOcsGmEZwTa7az//wwvPW4T35OkuMrZ+Mk=; h=Date:To:References:From:Cc:In-Reply-To; b=DVdfdlRpqYlPAh9r9hruPcKUdy4mnBE35PUTrKjAR6x0Yr+L72GS5YEwN2ZhdKXEK LawjbhkLqfmQeXWKC9g4ZwRjEoBEX5nWl/ury6DoO/zpM+MEKkbjnQbIn2wp3fSZKO 84oRgsFXUmjUbHdSu6nxXU1Y3L9vHpD8CUPcUmgUUbu2ROJ4dg42stZoykPtRyfYsz 4kkLxg60kFhzHdnFX51Hb7q/3hDoEa7l0TmUz8a2T+5+sjIjMuAn820vduoFC/EXUR MfrUeyd2Kma1sBnm3OTYC8n3SSb3pq4DI6q4okunl7r9ifz3JLpfGbWJFFXp6ORKtm LBN2zXY9lY5Jw== Message-ID: <67319315-bc3e-1b1b-ee08-7e72eb185bbd@uni-bremen.de> Date: Sun, 19 Mar 2023 16:06:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Help-Guix Digest, Vol 88, Issue 36 Content-Language: de-DE To: Gottfried References: <895e7b31-2df7-026b-1345-11e53dddfff9@posteo.de> From: Martin Castillo Cc: help-guix@gnu.org In-Reply-To: <895e7b31-2df7-026b-1345-11e53dddfff9@posteo.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:638:708:32::15; envelope-from=castilma@uni-bremen.de; helo=smtp.uni-bremen.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 8417412A29 X-Spam-Score: -1.75 X-Migadu-Spam-Score: -1.75 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: NuWbhcJdqf8d Hi, Am 19.03.23 um 13:15 schrieb Gottfried: > Hi, > > thanks for trying... > > I copied the > "Commit 6a54715988aee884bbb5f81e1b718a27ff771ec4" > into my musik.scm: > .................................................................. > ;; Manifest Musik Programme > (use-modules (gnu packages music) >              (guix packages)) > > (define musescore-3.6.2 >   (package >     (inherit musescore) >     (version "3.6.2") >     (Commit 6a54715988aee884bbb5f81e1b718a27ff771ec4))) > > ;; combine both manifest lists: > (concatenate-manifests >   (list >     (packages->manifest (list musescore-3.6.2)) > (specifications->manifest '("ardour" "audacious" "audacity" "obs" "vlc")))) > > ......................................................................... > and I had a go > I got this message: > > gfp@Tuxedo ~$ guix package -p /home/gfp/Projekte/Musik/guix-profil -m > /home/gfp/Projekte/Musik/musik.scm > /home/gfp/Projekte/Musik/musik.scm:6:2: Fehler: (package (inherit > musescore) (version "3.6.2") (Commit > #{6a54715988aee884bbb5f81e1b718a27ff771ec4}#)): extraneous field > initializers (Commit) > > ..................................................................... > So I have to add it somewhere else... The commits I mentioned are from guix, not from the musescore project. You put it in the musescore definition, so guix downloaded musescore and tried to switch to that commit/version of musescore. But it is not a commit of musecore, so that is indeed the wrong place. (And the (commit ) field belongs inside an (origin ) field...) So my original suggestion was to copy the musescore package definition from one of those commits from the guix project http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/music.scm?id=6a54715988aee884bbb5f81e1b718a27ff771ec4#n4860 and hope that all dependencies of that package definition are still valid and compatible in the current guix. You might need to copy some of the use-modules lines at the top of the linked file into your manifest. But I just had another idea: We want to install software from an older guix version: That's what guix time-machine is for! guix time-machine --commit=6a54715988aee884bbb5f81e1b718a27ff771ec4 -- package -m manifest.scm -p /Pfad/zu/Musik/Musik or to test it first: guix time-machine --commit=6a54715988aee884bbb5f81e1b718a27ff771ec4 -- shell musescore I tried it with the newer commit ced3be2b562866b82f97a530cd66610c84c381f7 to get musescore with newer dependencies. (That commit is the parent of 9f93bcd1862c76d7ff30da6f712c9bd2912b8346, which changed to musescore 4.0.): guix time-machine --commit=ced3be2b562866b82f97a530cd66610c84c381f7 -- shell musescore The first time time-machine failed to build the older version of guix. It used up to much ram and was killed by the OOM-killer. (I'm using it inside a vm.) Otherwise it should work. A downside of this approach is that you cannot mix the older musescore with the newer versions of vlc etc in the same profile. Martin > > kind regards > > Gottfried > > >> Date: Sat, 18 Mar 2023 13:44:08 +0100 >> From: Martin Castillo >> To: help-guix@gnu.org >> Subject: Re: creating a manifest >> Message-ID: >> Content-Type: text/plain; charset=UTF-8; format=flowed >> >> 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 >