unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Mason Hock <masonhock@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: lilypond 2.19.80
Date: Fri, 22 Dec 2017 07:39:07 +0100	[thread overview]
Message-ID: <87vagzw9kk.fsf@elephly.net> (raw)
In-Reply-To: <1b2ede70-fc48-b789-533a-9ccd8907b025@gmail.com>


Hi Mason,

> If it's simple enough for me to understand and you can briefly explain
> how I'd be happy to do it now and as needed in the future.

Great!  I appreciate the initiative.

First, you need to have a copy of the Guix sources.  I recommend
following the documentation here:

    http://www.gnu.org/software/guix/manual/html_node/Contributing.html

It boils down to getting the sources via git, and then building them
in an environment spawned by “guix environment guix”.

Once that’s out of the way, you can edit the lilypond package definition
either by opening “gnu/packages/music.scm” and searching for
“define-public lilypond”, or by running “./pre-inst-env guix edit
lilypond”.

You’ll see that the version string would need to be changed from
"2.19.63" to "2.19.80".  Another string that needs to be changed is the
hash, i.e. the bit of gibberish in “(sha256 (base32 …))”.  To compute
the hash follow these steps:

    wget https://download.linuxaudio.org/lilypond/source/v2.19/lilypond-2.19.80.tar.gz
    guix hash lilypond-2.19.80.tar.gz

This command will print the new hash string.  Just replace the existing
hash with that new string.

Save the file and make a git commit with these commands:

    export EDITOR=nano  # or whatever your favourite editor is
    git add gnu/packages/music.scm
    git commit

This will open up your editor and prompt you for a message.  Here’s an
appropriate commit message for this change:

--8<---------------cut here---------------start------------->8---
gnu: lilypond: Update to 2.19.80.

* gnu/packages/music.scm (lilypond): Update to 2.19.80.
--8<---------------cut here---------------end--------------->8---

When you save and exit the editor, git will record the commit.  You can
then tell git to format the last commit as a patch with “git
format-patch -1” and send the resulting file to guix-patches@gnu.org via
email.

Hope this helps!

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

      parent reply	other threads:[~2017-12-22 18:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-21 18:57 lilypond 2.19.80 Mason Hock
2017-12-21 23:12 ` Ricardo Wurmus
     [not found]   ` <1b2ede70-fc48-b789-533a-9ccd8907b025@gmail.com>
2017-12-22  6:39     ` Ricardo Wurmus [this message]

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=87vagzw9kk.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=help-guix@gnu.org \
    --cc=masonhock@gmail.com \
    /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).