From: Mark H Weaver <mhw@netris.org>
To: David Craven <david@craven.ch>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: spice: Fix usbredir for 32 bit platforms.
Date: Sun, 14 Aug 2016 20:17:53 -0400 [thread overview]
Message-ID: <874m6mc2by.fsf@netris.org> (raw)
In-Reply-To: <CAL1_immCTse-rQ-zSbcAhm4=HCrqKQbYUq_eJPfX+QEAF--6AA@mail.gmail.com> (David Craven's message of "Sun, 14 Aug 2016 20:50:36 +0200")
David Craven <david@craven.ch> writes:
>> Phase procedures are supposed to return a boolean indicating whether
>> they succeeded, but 'system*' returns a number: a result code. In
>> scheme, all numbers are considered true. Also, you might as well use
>> 'lambda' here instead of 'lambda*', so it should look like this:
>
>> (lambda _
>> (zero? (system* "sh" "autogen.sh")))
>
> The reason was that autogen.sh performs some check at the end that fails.
> I'm running autoreconf directly now, so that the zero? doesn't cause the
> phase to fail.
Sounds good, thanks.
>> This is no longer version "0.7.1", so the version number needs to be
>> updated accordingly. Please see section 7.6.3 (Version Numbers) in the
>> manual for our conventions for version numbers of VCS snapshots, and the
>> recommended code to generate those version numbers.
>
> This could have also probably survived until the package gets updated, but
> I fixed it.
Thank you. I think it's important for the 'version' field to be
accurate. If you could push this fix at your earliest convenience, I'd
be grateful. (I don't see it in the git repo yet)
>> IT might have been better to just use a simple patch to fix the format
>> strings than to use a VCS snapshot that might introduce more bugs, but
>> I guess we can see how it goes.
>
> I considered this option also, but in at least one instance I was asked to
> use substitute* instead of a patch, so I thought that patches are considered
> a last resort.
They are certainly not a last resort in general. The preferred method
of making changes prior to the build depends on the specific details.
However, one important consideration is that patches and snippets change
what is considered by Guix to be the "source" of the package as returned
by 'package-source' at the Scheme level and "guix build --source" as the
command line.
With this in mind, I'd say that for bug fixes, patches are generally the
preferred method.
> I also checked the history before selecting HEAD as the commit,
> it looks like there where only a couple of bugfixes, but not much activity
> otherwise. So hopefully this does not introduce any new bugs.
Oh, okay, that makes sense. Thanks for working on it.
Mark
next prev parent reply other threads:[~2016-08-15 0:19 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-02 13:45 [PATCH 1/5] doc: Make 'Lirc Service' a subsubheading of 'Various Services' David Craven
2016-08-02 13:45 ` [PATCH 2/5] gnu: qemu: Reorder inputs alphabetically David Craven
2016-08-02 13:45 ` [PATCH 3/5] gnu: qemu: Enable spice support David Craven
2016-08-05 18:33 ` Leo Famulari
2016-08-06 2:00 ` Mark H Weaver
2016-08-06 8:53 ` David Craven
2016-08-06 11:12 ` David Craven
2016-08-06 16:07 ` Mark H Weaver
2016-08-08 11:46 ` [PATCH] gnu: spice: Fix usbredir for 32 bit platforms David Craven
2016-08-08 11:48 ` David Craven
2016-08-13 19:50 ` Mark H Weaver
2016-08-14 18:50 ` David Craven
2016-08-15 0:17 ` Mark H Weaver [this message]
2016-08-02 13:45 ` [PATCH 4/5] gnu: spice-vdagent: Set Exec path in spice-vdagent.desktop David Craven
2016-08-02 13:45 ` [PATCH 5/5] services: Add spice vdagent service David Craven
2016-08-05 14:33 ` David Craven
2016-08-05 18:12 ` Andreas Enge
2016-08-05 18:24 ` Leo Famulari
2016-08-05 18:28 ` David Craven
2016-08-05 18:38 ` Leo Famulari
2016-08-05 18:51 ` David Craven
2016-08-06 7:00 ` Ricardo Wurmus
2016-08-06 9:01 ` David Craven
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=874m6mc2by.fsf@netris.org \
--to=mhw@netris.org \
--cc=david@craven.ch \
--cc=guix-devel@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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).