Hello community,

here is the log from the commit of package mathgl for openSUSE:Factory checked 
in at 2015-06-10 09:16:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mathgl (Old)
 and      /work/SRC/openSUSE:Factory/.mathgl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mathgl"

Changes:
--------
--- /work/SRC/openSUSE:Factory/mathgl/mathgl.changes    2015-06-08 
08:30:48.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.mathgl.new/mathgl.changes       2015-06-10 
09:16:35.000000000 +0200
@@ -1,0 +2,7 @@
+Tue Jun  9 09:27:57 UTC 2015 - [email protected]
+
+- getopt.patch: Fix use of getopt
+- Compile with %{optflags}
+- Fix %postun -n %{libname}-wx%{libversion}
+
+-------------------------------------------------------------------

New:
----
  getopt.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mathgl.spec ++++++
--- /var/tmp/diff_new_pack.PXR0eI/_old  2015-06-10 09:16:36.000000000 +0200
+++ /var/tmp/diff_new_pack.PXR0eI/_new  2015-06-10 09:16:36.000000000 +0200
@@ -45,6 +45,8 @@
 Patch6:         mathgl-cmake-3.2.patch
 # PATCH-FIX-OPENSUSE mathgl-oldtexinfo.patch -- fix build with old texinfo
 Patch7:         mathgl-oldtexinfo.patch
+# PATCH-FIX-UPSTREAM getopt.patch -- fix use of getopt
+Patch8:         getopt.patch
 BuildRequires:  cmake >= 2.8.12
 BuildRequires:  desktop-file-utils
 BuildRequires:  fltk-devel
@@ -410,6 +412,7 @@
 %if 0%{?suse_version} <= 1320
 %patch7 -p1
 %endif
+%patch8 -p1
 
 # Correct octave-mathgl version
 sed -i 's/2.0/%{oct_version}/' lang/DESCRIPTION
@@ -426,6 +429,8 @@
       -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}  \
       -DMGL_LIB_INSTALL_DIR:PATH=%{_lib}      \
       -DTEXMFDIR:PATH=%{_datadir}/texmf/      \
+      -DCMAKE_C_FLAGS="%{optflags}"          \
+      -DCMAKE_CXX_FLAGS="%{optflags}"        \
       -Denable-double=on                      \
       -Denable-mpi=on                         \
       -Denable-pthread=off                    \
@@ -533,11 +538,13 @@
 
 %postun -n %{libname}-wx%{libversion} -p /sbin/ldconfig
 
+%if 0
 # %%post -n octave-mathgl
 # octave -qf %%{octave_args} --eval "pkg rebuild -auto mathgl"
 
 # %%postun -n octave-mathgl
 # octave -qf %%{octave_args} --eval "pkg rebuild"
+%endif
 
 %post tex
 mkdir -p /var/run/texlive

++++++ getopt.patch ++++++
Index: mathgl-2.3.3/utils/make_bin.cpp
===================================================================
--- mathgl-2.3.3.orig/utils/make_bin.cpp
+++ mathgl-2.3.3/utils/make_bin.cpp
@@ -24,7 +24,7 @@ int main(int argc, char *argv[])
 {
        mglFont fnt;
        std::string path, base, fname;
-       char ch;
+       int ch;
 
        while(1)
        {
Index: mathgl-2.3.3/utils/mglconv.cpp
===================================================================
--- mathgl-2.3.3.orig/utils/mglconv.cpp
+++ mathgl-2.3.3/utils/mglconv.cpp
@@ -28,7 +28,8 @@ int main(int argc, char *argv[])
        mgl_suppress_warn(true);
        mglGraph gr;
        mglParse p(true);
-       char ch, buf[2048], iname[256]="", oname[256]="";
+       char buf[2048], iname[256]="", oname[256]="";
+       int ch;
        std::vector<std::wstring> var;
        std::wstring str;
        bool none=false;
Index: mathgl-2.3.3/utils/mglview.cpp
===================================================================
--- mathgl-2.3.3.orig/utils/mglview.cpp
+++ mathgl-2.3.3/utils/mglview.cpp
@@ -39,7 +39,8 @@ int show(mglGraph *gr)
 //-----------------------------------------------------------------------------
 int main(int argc, char **argv)
 {
-       char ch, iname[256]="";
+       char iname[256]="";
+       int ch;
        mgl_suppress_warn(true);
        while(1)
        {

Reply via email to