bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] distro: Add util-linux.


From: Nikita Karetnikov
Subject: [PATCH] distro: Add util-linux.
Date: Sun, 2 Dec 2012 07:43:45 +0300

Hi,

There are some issues:

1. './pre-inst-env guix-build -K util-linux' raises the following
warning:

kdupexe: warning: no binary for interpreter address@hidden@' found in $PATH

(Yep, I've already tried to add 'perl' as input.)

2. I'm not sure that this formatting

(uri (string-append "mirror://kernel.org/linux/utils/"
                        name "/v" version "/"
                    name "-" version ".2" ".tar.xz"))

is valid for the following mirrors:

(kernel.org
 "http://www.all.kernel.org/pub/";
 "http://ramses.wh2.tu-dresden.de/pub/mirrors/kernel.org/";
 "http://linux-kernel.uio.no/pub/";
 "http://kernel.osuosl.org/pub/";
 "ftp://ftp.funet.fi/pub/mirrors/ftp.kernel.org/pub/";)

As far as I can tell, it only works for kernel.org. How to check this?

3. 'util-linux' uses a lot of licenses. According to
'README.licensing', it uses GPLv3+, GPLv2+, GPLv2, LGPLv2+, BSD with
advertising, and Public Domain. GPLv2+ is the default license for code
without an explicitly defined license.

I've found a file that uses the Expat license
(i.e. 'util-linux-2.21.2/config/install-sh') and some files with
suspicious licenses.

Examples:

'util-linux-2.21.2/disk-utils/mkfs.bfs.8':

.\" Copyright 1999 Andries E. Brouwer (address@hidden)
.\" May be freely distributed.

What does "free" mean in this context?

'util-linux-2.21.2/disk-utils/mkfs.minix.c':

* (C) 1991 Linus Torvalds. This file may be redistributed as per
* the Linux copyright.

And what does the above mean?

These examples show that we can't rely on 'README.licensing'. I guess
that we can use regexps to match against the licenses that are listed
in 'README.licensing' and check the rest manually.

What would you use?

4. It's necessary to do the following to force Guix to rebuild a
package:

nix-store --delete /nix/store/*-util-linux-2.21.tar.xz
nix-store --delete /nix/store/*-util-linux-2.21
./pre-inst-env guix-build -K util-linux

Is this a bug?

Nikita

Attachment: 0001-distro-Add-util-linux.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]