unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: rennes@openmailbox.org
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add libosinfo.
Date: Tue, 16 Feb 2016 14:24:59 +0100	[thread overview]
Message-ID: <idjy4ak6b4k.fsf@bimsb-sys02.mdc-berlin.net> (raw)
In-Reply-To: <6fad26579ed8d83868da31c85a816d1d@openmailbox.org>


rennes@openmailbox.org writes:

> i attached libosinfo patch required for GNOME Boxes.

Thank you very much!  Below I’ll add a couple of comments.  I’m not sure
about a couple of things and I hope you can shed some light on these
issues.

> Considerations:
>
>   a) In the source i used 
> "https://fedorahosted.org/releases/l/i/libosinfo" instead 
> "mirror://gnome/sources/".

The project home page points to fedorahosted.org for downloading
releases.  I don’t even find the libosinfo sources on ftp.gnome.org, so
I think your choice is completely fine.

>   b) In native inputs, i used "vala" instead "glib:bin"; i follow the 
> README.

I don’t understand what you mean.  Vala and glib:bin are not the same
thing.  Following the README is a good idea.  If we don’t need
“glib:bin” then it’s the right thing not to add it.

> From 073a183499bd764b0b0efc246748638c6e4d3aeb Mon Sep 17 00:00:00 2001
> From: Rene Saavedra <rennes@openmailbox.org>
> Date: Sat, 13 Feb 2016 16:23:10 -0600
> Subject: [PATCH] gnu: Add libosinfo.

> * gnu/packages/gnome.scm (libosinfo): New variable.

OK.

> +
> +(define-public libosinfo
> +  (package
> +    (name "libosinfo")
> +    (version "0.3.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://fedorahosted.org/releases/l/i/libosinfo/"
> +                            name "-" version ".tar.gz"))
> +       (sha256
> +       (base32
> +        "1g7g5hc4lhi4y0j3mbcj19hawlqkflni1zk4aggrx49fg5l392jk"))))

The indentation of the “(base32” expression is wrong; the opening
parenthesis should be aligned with the ‘s’ of “(sha256”.  (Don’t worry
about this too much — I can fix this before pushing if you don’t get it
right.)

> +    (build-system glib-or-gtk-build-system)

Is this necessary or can we use the simpler “gnu-build-system” instead?

> +    (native-inputs
> +     `(("check" ,check)
> +       ("intltool" ,intltool)
> +       ("libsoup" ,libsoup)
> +       ("pkg-config" ,pkg-config)
> +       ("vala" ,vala)
> +       ("wget" ,wget)))

Why are “wget” and “libsoup” native inputs?  In the build environment
there is no network access, so wget cannot be used to download anything.
Is libosinfo linked with libsoup?  If so, it should be a regular input,
not among the native-inputs.

> +    (inputs
> +     `(("libxslt" ,libxslt)))

Does it link with libxslt?  Or is it used at build time only (e.g. for
building manuals from XML sources)?

> +    (home-page "https://libosinfo.org")
> +    (synopsis "Library for managing information about operating systems")
> +    (description
> +     "libosinfo is a GObject based library API for managing information about
> +operating systems, hypervisors and the (virtual) hardware devices they can
> +support.  It includes a database containing device metadata and provides APIs
> +to match/identify optimal devices for deploying an operating system on a
> +hypervisor.  Via the magic of GObject Introspection, the API is available in all
> +common programming languages with demos for javascript (GJS/Seed) and python
> +(PyGObject).  Also provided are Vala bindings.")

I would cut “the magic of”.  Please also replace “javascript” with
“JavaScript” and “python” with “Python”.  Are the examples and the Vala
bindings actually installed?  I see that gobject-introspection is not
among the inputs, so I wonder if 

> +    (license license:lgpl2.1+)))

At least “tools/osinfo-query.c” has a license header that says it’s
released under GPLv2+.  It is better to make the license field hold a
list of “(license:gpl2+ license:lgpl2.1+)” with a comment above it that
explains what files are under GPL (the tools) and what files are LGPL
(the library).

Could you please send an updated patch (after clarifying the points
above if they are confusing/contentious)?

Thanks again for the patch!

~~ Ricardo

  reply	other threads:[~2016-02-16 13:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-13 22:28 [PATCH] gnu: Add libosinfo rennes
2016-02-16 13:24 ` Ricardo Wurmus [this message]
2016-02-18 15:00   ` rennes
2016-08-01 14:50     ` ng0
2016-08-01 15:01       ` Ricardo Wurmus
2016-08-01 19:49         ` rennes

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=idjy4ak6b4k.fsf@bimsb-sys02.mdc-berlin.net \
    --to=ricardo.wurmus@mdc-berlin.de \
    --cc=guix-devel@gnu.org \
    --cc=rennes@openmailbox.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).