unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Roel Janssen <roel@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add nlopt.
Date: Thu, 07 Apr 2016 23:40:03 +0200	[thread overview]
Message-ID: <87egah85e4.fsf@gnu.org> (raw)
In-Reply-To: <87vb3twtgi.fsf@gnu.org> (Roel Janssen's message of "Thu, 07 Apr 2016 13:26:21 +0200")

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’t get an answer:

--8<---------------cut here---------------start------------->8---
I’m 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, 
    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. 
    The remaining subroutines, Copyright Ladislav Luksan, 2007. Many of  
    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’.

  parent reply	other threads:[~2016-04-07 21:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07 11:26 [PATCH] gnu: Add nlopt Roel Janssen
2016-04-07 15:44 ` Leo Famulari
2016-04-07 20:42   ` Alex Kost
2016-04-07 20:49   ` Roel Janssen
2016-04-08 10:18     ` Mathieu Lirzin
2016-04-09  5:56       ` Leo Famulari
2016-04-09 10:54         ` Mathieu Lirzin
2016-04-09 16:21           ` Leo Famulari
2016-04-07 20:48 ` Alex Kost
2016-04-07 21:20   ` Roel Janssen
2016-04-07 21:40 ` Ludovic Courtès [this message]
2016-04-07 22:52   ` Roel Janssen
2016-04-09 14:38     ` Ludovic Courtès
2016-05-03 11:02       ` Roel Janssen
2016-05-03 11:47         ` Ludovic Courtès
2016-05-03 12:34           ` Roel Janssen
2016-05-03 20:02             ` Ludovic Courtès
2016-05-03 20:17               ` Roel Janssen
2016-05-04  8:38                 ` Alex Kost
2016-05-04  8:52                   ` Roel Janssen

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=87egah85e4.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=roel@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).