Mercurial > mxe-octave
view src/of-strings-1-fixes.patch @ 5531:eae508c12529
Add build rule for build-octave (bug #49503).
* src/build-octave.mk: Add new build rule for build-octave which can be used for
cross-building binary packages that depend on Octave as a build tool.
* dist-files.mk: Add new file to list.
* index.html: Add new package to list.
* src/of-communications.mk, src/of-image.mk, src/of-mapping.mk,
src/of-optiminterp.mk, src/of-sparsersb.mk, src/of-statistics.mk,
src/of-windows.mk: Add optional dependency on build-octave.
* configure.ac: Add new configure switch "--disable-system-octave" that is
needed to build the build-octave package.
* Makefile.in: Add variable "USE_SYSTEM_OCTAVE". Exclude build-octave from the
default build tools and build it only if a package explicitly depends on it.
Display warning about missing native Octave version only if necessary.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 08 Sep 2020 23:04:38 +0200 |
parents | 00e61c4a5657 |
children | 5732a63f3182 |
line wrap: on
line source
diff -ur strings-1.2.0.orig/src/Makefile strings-1.2.0/src/Makefile --- strings-1.2.0.orig/src/Makefile 2015-06-08 13:43:45.551556353 -0400 +++ strings-1.2.0/src/Makefile 2015-06-08 13:45:22.693478306 -0400 @@ -1,11 +1,7 @@ OCTAVE ?= octave MKOCTFILE ?= mkoctfile -Wall -PCRE_SWITCHES := $(shell $(OCTAVE) \ - --no-gui --no-init-file --no-site-file --silent --no-history \ - --eval 'disp (octave_config_info ("PCRE_LIBS"));' \ - --eval 'disp (octave_config_info ("PCRE_CPPFLAGS"));' \ - ) +PCRE_SWITCHES := $(shell pcre-config --libs) pcregexp.oct: %.oct: %.cc $(MKOCTFILE) $(PCRE_SWITCHES) -o $@ $< diff -uNr a/src/pcregexp.cc b/src/pcregexp.cc --- a/src/pcregexp.cc 2015-06-06 17:40:45.000000000 -0400 +++ b/src/pcregexp.cc 2018-04-09 15:01:27.359869527 -0400 @@ -22,6 +22,7 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <octave/oct.h> +#include <octave/errwarn.h> #include <pcre.h> #include <iostream> #include <vector> @@ -49,7 +50,7 @@ std::string pattern = args(0).string_value(); std::string input = args(1).string_value(); if (error_state) { - gripe_wrong_type_arg("pcregexp", args(0)); + err_wrong_type_arg("pcregexp", args(0)); return retval; }