debian/0000755000000000000000000000000012266572432007177 5ustar debian/copyright0000644000000000000000000000464412266563226011143 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://www.chokkan.org/software/liblbfgs/ Upstream-Contact: Naoaki Okazaki Upstream-Name: liblbfgs Files: * Copyright: 1990 Jorge Nocedal 2007-2010 Naoaki Okazaki License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2012 Dima Kogan License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/rules0000755000000000000000000000057712266563226010271 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh $@ override_dh_auto_configure: ./autogen.sh dh_auto_configure --buildsystem=autoconf # find all the ...-dbg packages, and use dh_strip to separate out their debug symbols into the debug package override_dh_strip: perl -ne 'print "$$1\n" if /^Package:\s*(\S+)-dbg/' debian/control | xargs -n1 -I{} dh_strip -p{} --dbg-package={}-dbg debian/liblbfgs-dev.install0000644000000000000000000000006112266563226013125 0ustar usr/include/* usr/lib/*/lib*.a usr/lib/*/lib*.so debian/source/0000755000000000000000000000000012266563226010500 5ustar debian/source/format0000644000000000000000000000001412266563226011706 0ustar 3.0 (quilt) debian/liblbfgs-dev.examples0000644000000000000000000000003012266563226013271 0ustar sample/*.c sample/*.cpp debian/liblbfgs0.install0000644000000000000000000000002412266563226012430 0ustar usr/lib/*/lib*.so.* debian/changelog0000644000000000000000000000125712266572432011056 0ustar liblbfgs (1.10-5) unstable; urgency=low * Bug fix: "use free() for memory allocated by posix_memalign", thanks to Koichi Akabe (Closes: #735894). * lbfgs.h no longer lies about default value of max_linesearch (Closes: #693571). * Bumped standards version to 3.9.5 -- Dima Kogan Sat, 18 Jan 2014 13:41:45 -0800 liblbfgs (1.10-4) unstable; urgency=low * changed to Priority:optional * liblbfgs is now Multi-arch:same -- Dima Kogan Fri, 27 Dec 2013 23:46:52 -0800 liblbfgs (1.10-3) unstable; urgency=low * Initial release. (Closes: #692000) -- Dima Kogan Wed, 31 Oct 2012 21:44:35 -0700 debian/watch0000644000000000000000000000013512266563260010226 0ustar version = 3 https://github.com/chokkan/liblbfgs/tags .*/liblbfgs/archive/v(\d[\d\.]+).tar.gz debian/control0000644000000000000000000000470312266565070010606 0ustar Source: liblbfgs Section: science Priority: optional Build-Depends: debhelper (>= 9), automake, autoconf, libtool Maintainer: Debian Science Maintainers Uploaders: Dima Kogan Standards-Version: 3.9.5 Homepage: http://www.chokkan.org/software/liblbfgs/index.html Vcs-Git: git://anonscm.debian.org/debian-science/packages/liblbfgs.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/liblbfgs.git Package: liblbfgs0 Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: L-BFGS solver for unconstrained nonlinear optimization problems Solves nonlinear optimization problems using the limited-memory BFGS method. The user specifies a callback C function that returns the value and gradients of the cost function at a particular operating point. This library estimates the Hessians from user input, and applies Newton's method iteratively to find a local minimum of the cost function. This is a small library, written in C with minimal dependencies. Package: liblbfgs-dev Section: libdevel Architecture: any Multi-Arch: same Depends: liblbfgs0 (= ${binary:Version}), ${misc:Depends} Description: L-BFGS solver for unconstrained nonlinear optimization problems Solves nonlinear optimization problems using the limited-memory BFGS method. The user specifies a callback C function that returns the value and gradients of the cost function at a particular operating point. This library estimates the Hessians from user input, and applies Newton's method iteratively to find a local minimum of the cost function. This is a small library, written in C with minimal dependencies. . This package contains development files Package: liblbfgs0-dbg Section: debug Priority: extra Architecture: any Multi-Arch: same Depends: liblbfgs0 (= ${binary:Version}), ${misc:Depends} Description: L-BFGS solver for unconstrained nonlinear optimization problems Solves nonlinear optimization problems using the limited-memory BFGS method. The user specifies a callback C function that returns the value and gradients of the cost function at a particular operating point. This library estimates the Hessians from user input, and applies Newton's method iteratively to find a local minimum of the cost function. This is a small library, written in C with minimal dependencies. . This package contains the debug symbols debian/patches/0000755000000000000000000000000012266563371010630 5ustar debian/patches/0003-The-comment-describing-the-default-max_linesearch-va.patch0000644000000000000000000000157412266563363024314 0ustar From: Dima Kogan Date: Sat, 18 Jan 2014 12:36:07 -0800 Subject: The comment describing the default max_linesearch value now matches the code Forwarded: https://github.com/chokkan/liblbfgs/pull/9 The code set it to 40, but the comment said 20. The comment now matches the code --- include/lbfgs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lbfgs.h b/include/lbfgs.h index cd944a3..5a1f9be 100644 --- a/include/lbfgs.h +++ b/include/lbfgs.h @@ -257,7 +257,7 @@ typedef struct { /** * The maximum number of trials for the line search. * This parameter controls the number of function and gradients evaluations - * per iteration for the line search routine. The default value is \c 20. + * per iteration for the line search routine. The default value is \c 40. */ int max_linesearch; debian/patches/0001-tweaked-libtool-package-versioning-to-conform-with-d.patch0000644000000000000000000000107612266563310024337 0ustar From: Dima Kogan Date: Tue, 1 Nov 2011 00:53:15 -0700 Subject: tweaked libtool package versioning to conform with debian Forwarded: not-needed --- lib/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile.am b/lib/Makefile.am index c49bd03..1ec8ac3 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -18,7 +18,7 @@ liblbfgs_la_SOURCES = \ liblbfgs_la_LDFLAGS = \ -no-undefined \ - -release @VERSION@ + -version-info `echo @VERSION@.1 | sed 's/\./:/g'` AM_CFLAGS = @CFLAGS@ INCLUDES = @INCLUDES@ debian/patches/0002-use-free-for-memory-allocated-by-posix_memalign.patch0000644000000000000000000000215112266563310023374 0ustar From: Koichi Akabe Date: Sat, 18 Jan 2014 12:16:41 -0800 Subject: use free() for memory allocated by posix_memalign Forwarded: This was already upstream: https://github.com/chokkan/liblbfgs/commit/d83800b05cd876dbfbe09cc113ab84cb6726ed8d The SSE code was making sure to use the system-dependent flavors of mallc() but was not doing so for the corresponding free() _aligned_free is used in arithmetic_sse_float.h, but other headers use free() in same position. memblock will be allocated by posix_memalign in Linux, so please use free() instead of _aligned_free. Patch provided at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735894 --- lib/arithmetic_sse_float.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/arithmetic_sse_float.h b/lib/arithmetic_sse_float.h index 835b8aa..f5691b1 100644 --- a/lib/arithmetic_sse_float.h +++ b/lib/arithmetic_sse_float.h @@ -65,7 +65,11 @@ inline static void* vecalloc(size_t size) inline static void vecfree(void *memblock) { +#ifdef _MSC_VER _aligned_free(memblock); +#else + free(memblock); +#endif } #define vecset(x, c, n) \ debian/patches/series0000644000000000000000000000027312266563330012042 0ustar 0001-tweaked-libtool-package-versioning-to-conform-with-d.patch 0002-use-free-for-memory-allocated-by-posix_memalign.patch 0003-The-comment-describing-the-default-max_linesearch-va.patch debian/compat0000644000000000000000000000000212266563226010376 0ustar 9 debian/gbp.conf0000644000000000000000000000012212266563260010610 0ustar [DEFAULT] debian-branch = debian upstream-tag =v%(version)s pristine-tar = True