From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: Re: [PATCH] gnu: Add nlopt. Date: Thu, 07 Apr 2016 23:20:06 +0200 Message-ID: <87bn5lxgjd.fsf@gnu.org> References: <87vb3twtgi.fsf@gnu.org> <8737qx87r8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoHLB-0002Eh-6v for guix-devel@gnu.org; Thu, 07 Apr 2016 17:19:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoHL8-0003i5-0o for guix-devel@gnu.org; Thu, 07 Apr 2016 17:19:49 -0400 In-reply-to: <8737qx87r8.fsf@gmail.com> 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" To: Alex Kost Cc: guix-devel@gnu.org --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-nlopt.patch >From 224c4e32265dc229663f693759bd1cafa5ee6a20 Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Thu, 7 Apr 2016 23:18:04 +0200 Subject: [PATCH] gnu: Add nlopt. * gnu/packages/maths.scm (nlopt): New variable. --- gnu/packages/maths.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index adebf09..2a79e41 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -911,6 +911,26 @@ sparse system of linear equations A x = b using Guassian elimination.") (inputs (alist-delete "pt-scotch" (package-inputs mumps-openmpi))))) +(define-public nlopt + (package + (name "nlopt") + (version "2.4.2") + (source (origin + (method url-fetch) + (uri (string-append "http://ab-initio.mit.edu/nlopt/nlopt-" + version ".tar.gz")) + (sha256 + (base32 "12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags '("--enable-shared"))) ; Also create a shared library. + (home-page "http://ab-initio.mit.edu/wiki/") + (synopsis "Library for non-linear optimization") + (description "NLopt is a library for nonlinear optimization, providing a +common interface for a number of different free optimization routines available +online as well as original implementations of various other algorithms.") + (license license:lgpl2.1+))) + (define-public superlu (package (name "superlu") -- 2.5.5 --=-=-= Content-Type: text/plain Alex Kost writes: > Roel Janssen (2016-04-07 14:26 +0300) wrote: > >> From 558175f69ba52446eca75ab79b641c8f0204093e Mon Sep 17 00:00:00 2001 >> From: Roel Janssen >> Date: Thu, 7 Apr 2016 13:22:35 +0200 >> Subject: [PATCH] gnu: Add nlopt. >> >> * gnu/packages/maths.scm (nlopt): New variable. >> --- >> gnu/packages/maths.scm | 20 ++++++++++++++++++++ >> 1 file changed, 20 insertions(+) >> >> diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm >> index adebf09..6b9d79d 100644 >> --- a/gnu/packages/maths.scm >> +++ b/gnu/packages/maths.scm >> @@ -911,7 +911,26 @@ sparse system of linear equations A x = b using Guassian elimination.") >> (inputs >> (alist-delete "pt-scotch" (package-inputs mumps-openmpi))))) >> >> +(define-public nlopt >> + (package >> + (name "nlopt") >> + (version "2.4.2") >> + (source (origin >> + (method url-fetch) >> + (uri (string-append "http://ab-initio.mit.edu/nlopt/nlopt-" >> + version ".tar.gz")) >> + (sha256 >> + (base32 "12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0")))) >> + (build-system gnu-build-system) >> + (arguments >> + `(#:configure-flags '("--enable-shared"))) ; Also create a shared library. >> + (home-page "http://ab-initio.mit.edu/wiki/") >> + (synopsis "Library for non-linear optimization") >> + (description "NLopt is a library for non-linear optimization, providing a >> +common interface for a number of different free optimization routines available >> +online as well as original implementations of various other algorithms.") >> + (license license:lgpl3))) > > Where did you get that it is lgpl3? COPYING names GNU LGPL version 2.1 > or later and MIT (which is 'expat'). I quickly looked at the source > files: most of them do not have a license header, the others use the > mentioned licenses, so I think it should be: > > (license (list license:lgpl2.1+ license:expat)) Thanks for your carefulness. On the website they explain it as follows: A part of the code is "LGPL" (no version specified) and a part is MIT. The most "restrictive" (as they call it), determines the license of the whole package (and thus it's "LGPL"). I actually couldn't find which version of the LGPL, so I assumed the latest variant. The COPYING file does mention version 2.1 or later. The same file also reassures that the entirety of the package is governed by the LGPL (v2.1+): http://ab-initio.mit.edu/wiki/index.php/NLopt_License_and_Copyright I attached a new patch. Kind regards, Roel Janssen --=-=-=--