From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: Add nlopt. Date: Thu, 07 Apr 2016 23:40:03 +0200 Message-ID: <87egah85e4.fsf@gnu.org> References: <87vb3twtgi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoHet-0002yb-Pr for guix-devel@gnu.org; Thu, 07 Apr 2016 17:40:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoHeo-0000ih-PQ for guix-devel@gnu.org; Thu, 07 Apr 2016 17:40:11 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoHeo-0000iW-MO for guix-devel@gnu.org; Thu, 07 Apr 2016 17:40:06 -0400 In-Reply-To: <87vb3twtgi.fsf@gnu.org> (Roel Janssen's message of "Thu, 07 Apr 2016 13:26:21 +0200") 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: Roel Janssen Cc: guix-devel@gnu.org Hi, I have it too, in a private repo. :-) --8<---------------cut here---------------start------------->8--- (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 '(;; Shared libraries are not built by default. They are required to ;; build the Guile, Octave, and Python bindings. #:configure-flags '("--enable-shared") #:phases (alist-cons-before 'configure 'pre-configure (lambda* (#:key outputs #:allow-other-keys) ;; Make sure the Scheme module refers to the library by = its ;; absolute file name (we cannot do that from a snippet ;; because the expansion of @libdir@ contains ;; ${exec_prefix}.) (let ((out (assoc-ref outputs "out"))) (substitute* "swig/nlopt.scm.in" (("libnlopt") (string-append out "/lib/libnlopt"))) #t)) %standard-phases))) ;; TODO: Figure out which dependencies make sense here. (inputs `(;; ("octave" ,octave) ("guile" ,guile-2.0))) (native-inputs `(("pkg-config" ,pkg-config))) (home-page "http://ab-initio.mit.edu/nlopt/") (synopsis "Library for nonlinear 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 l:lgpl2.1+))) --8<---------------cut here---------------end--------------->8--- The reason I did not include in Guix is because of unclear licensing on a file. I emailed the author in Jan. 2015 but didn=E2=80=99t get an answer: --8<---------------cut here---------------start------------->8--- I=E2=80=99m looking at packaging NLOpt for Guix, a free software GNU/Linux distribution. I noticed this paragraph in luksan/COPYRIGHT: Subroutines PBUN, PNEW, PVAR, PSEN, Copyright ACM, 2001. The original versions were published in Transactions on Mathematical Software,=20 Vol.27, 2001, pp.193-213. Here are the author's modifications. They are posted here by permission of ACM for your personal use. Not for redistribution. Subroutines PLIP, PSEN, Copyright Jan Vlcek, 2007.=20 The remaining subroutines, Copyright Ladislav Luksan, 2007. Many of=20= =20 sparse matrix modules were prepared by Miroslav Tuma. My understanding is that these subroutines cannot be redistributed nor modified by anyone; what do you think? Thank you, Ludovic. --8<---------------cut here---------------end--------------->8--- Could you check if this is still relevant, and possibly get in touch with them? Thanks, Ludo=E2=80=99.