unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: guix-devel <guix-devel@gnu.org>
Subject: [PATCH]: gnu: shogun: Remove non-free source files.
Date: Fri, 8 May 2015 16:56:28 +0200	[thread overview]
Message-ID: <idjlhgz86eb.fsf@bimsb-sys02.mdc-berlin.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 351 bytes --]

Thanks to Bavier for bringing this issue to my attention.  This patch
removes two source files that are released under a non-free license.

There are functions in src/shogun/kernel/Kernel.{cpp,h} that are also
released under non-free terms, but they are enclosed in #ifdef
statements and the make flags we pass disable these functions at build
time.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-shogun-Remove-non-free-source-files.patch --]
[-- Type: text/x-patch, Size: 1228 bytes --]

From 0cc65499601910f4fdd55e93292124920a7e645d Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Fri, 8 May 2015 16:53:28 +0200
Subject: [PATCH] gnu: shogun: Remove non-free source files.

* gnu/packages/bioinformatics.scm (shogun)[source]: Add snippet to remove
  non-free sources.
---
 gnu/packages/bioinformatics.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index fa7ff4c..1e93905 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1605,7 +1605,13 @@ against local background noises.")
              "/sources/shogun-" version ".tar.bz2"))
        (sha256
         (base32
-         "159nlijnb7mnrv9za80wnm1shwvy45hgrqzn51hxy7gw4z6d6fdb"))))
+         "159nlijnb7mnrv9za80wnm1shwvy45hgrqzn51hxy7gw4z6d6fdb"))
+       (modules '((guix build utils)))
+       (snippet
+        ;; Remove non-free sources.
+        '(for-each delete-file
+                   (find-files "src/shogun/classifier/svm/"
+                               "SVMLight\\.(cpp|h)")))))
     (build-system cmake-build-system)
     (arguments
      '(#:tests? #f ;no check target
-- 
2.1.0


             reply	other threads:[~2015-05-08 14:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08 14:56 Ricardo Wurmus [this message]
2015-05-08 17:30 ` [PATCH]: gnu: shogun: Remove non-free source files Ludovic Courtès
2015-05-09  5:15 ` Mark H Weaver
2015-05-09 13:49   ` Ludovic Courtès
2015-05-09 16:41     ` Mark H Weaver
2015-05-15 15:01       ` Ricardo Wurmus
2015-05-15 16:56         ` Ludovic Courtès
2015-05-21  9:59           ` Ricardo Wurmus
2015-05-21 19:52             ` Ludovic Courtès
2015-05-21 19:55             ` Ludovic Courtès
2015-05-09 21:06     ` Ricardo Wurmus

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=idjlhgz86eb.fsf@bimsb-sys02.mdc-berlin.net \
    --to=ricardo.wurmus@mdc-berlin.de \
    --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).