From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH]: gnu: shogun: Remove non-free source files. Date: Fri, 8 May 2015 16:56:28 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqjhg-0001zD-Ua for guix-devel@gnu.org; Fri, 08 May 2015 10:56:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yqjhc-0000K9-Sc for guix-devel@gnu.org; Fri, 08 May 2015 10:56:40 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:41015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqjhc-0000Jg-JH for guix-devel@gnu.org; Fri, 08 May 2015 10:56:36 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 2C0A43807C0 for ; Fri, 8 May 2015 16:56:34 +0200 (CEST) Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iPRCj6bnDEhA for ; Fri, 8 May 2015 16:56:28 +0200 (CEST) Received: from HTCAONE.mdc-berlin.net (mab.citx.mdc-berlin.de [141.80.36.102]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP for ; Fri, 8 May 2015 16:56:28 +0200 (CEST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel --=-=-= Content-Type: text/plain 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. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename="0001-gnu-shogun-Remove-non-free-source-files.patch" >From 0cc65499601910f4fdd55e93292124920a7e645d Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus 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 --=-=-=--