Hello community, here is the log from the commit of package mono-debugger for openSUSE:Factory checked in at 2016-06-14 23:06:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mono-debugger (Old) and /work/SRC/openSUSE:Factory/.mono-debugger.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mono-debugger" Changes: -------- --- /work/SRC/openSUSE:Factory/mono-debugger/mono-debugger.changes 2015-06-12 20:31:24.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.mono-debugger.new/mono-debugger.changes 2016-06-14 23:06:59.000000000 +0200 @@ -1,0 +2,8 @@ +Tue Jun 7 00:00:00 UTC 2016 - [email protected] + +- Added mono-v4-install.patch in order to fix install location and nunit-console.exe path: + * Fix mdb startup crash when compiled with mono v4.0 and up (mcs -sdk:4.5) +- Alter files section in spec file depending of mcs version: + * Fix build issue with mono v4.4 and up + +------------------------------------------------------------------- New: ---- mono-v4-install.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mono-debugger.spec ++++++ --- /var/tmp/diff_new_pack.DGdnrk/_old 2016-06-14 23:07:00.000000000 +0200 +++ /var/tmp/diff_new_pack.DGdnrk/_new 2016-06-14 23:07:00.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package mono-debugger # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,11 +26,15 @@ Source: http://download.mono-project.com/sources/mono-debugger/%{name}-%{version}.tar.bz2 Source99: mono-debugger-rpmlintrc Patch1: mono-debugger-glib.patch +Patch2: mono-v4-install.patch ExclusiveArch: %ix86 x86_64 BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: mono-core >= 2.7 +BuildRequires: autoconf +BuildRequires: automake BuildRequires: glib2-devel BuildRequires: libmono-2_0-devel +BuildRequires: libtool BuildRequires: mono-devel BuildRequires: mono-nunit BuildRequires: ncurses-devel @@ -43,12 +47,20 @@ named "mdb", and MonoDevelop (http://www.monodevelop.com) provides a GUI interface to the debugger. +%define mcsver %({ mcs --version | awk '{print $5}' | cut -f1 -d"." ; mcs --version | awk '{print $5}' | cut -f2 -d"." ; } | xargs printf "%03d") + +%if 0%{?mcsver} >= 4000 +%define target_dir 4.5 +%else +%define target_dir 2.0 +%endif + %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog README NEWS %{_bindir}/mdb* %{_libdir}/*.so* -%{_prefix}/lib/mono/2.0/mdb*.exe +%{_prefix}/lib/mono/%{target_dir}/mdb*.exe %{_prefix}/lib/mono/gac/Mono.Debugger* %{_prefix}/lib/mono/mono-debugger %{_libdir}/pkgconfig/mono-debugger*.pc @@ -56,12 +68,16 @@ %prep %setup -q %patch1 -p1 +%if 0%{?mcsver} >= 4000 +%patch2 -p1 +%endif %build -mcsver=`mcs --version | cut -d" " -f5 | cut -d"." -f1` -if [ "$mcsver" -ge "4" ]; then - export MCS="/usr/bin/mcs" -fi +%if 0%{?mcsver} >= 4000 +export MCS="/usr/bin/mcs" +%endif + +autoreconf -fiv %configure make ++++++ mono-v4-install.patch ++++++ diff -uprN mono-debugger-2.10/build/Makefile.am mono-debugger-2.10.new/build/Makefile.am --- mono-debugger-2.10/build/Makefile.am 2011-01-14 01:41:31.000000000 +0300 +++ mono-debugger-2.10.new/build/Makefile.am 2016-06-07 20:35:39.137431918 +0300 @@ -1,4 +1,4 @@ -twodir = $(prefix)/lib/mono/2.0 +twodir = $(prefix)/lib/mono/4.5 bin_SCRIPTS = mdb mdb-symbolreader @@ -218,7 +218,7 @@ mdb-symbolreader: mdb-symbolreader.in Ma < $(srcdir)/mdb-symbolreader.in > mdb-symbolreader.tmp \ && mv mdb-symbolreader.tmp mdb-symbolreader -NUNIT_CONSOLE_EXE = $(NUNIT_PREFIX)/lib/mono/2.0/nunit-console.exe +NUNIT_CONSOLE_EXE = $(NUNIT_PREFIX)/lib/mono/4.5/nunit-console.exe runtests: runtests.in Makefile ulimit-check builddir=$(top_builddir) ; the_builddir=`cd $$builddir && pwd` ; \
