Bug#811800: fityk: FTBFS with GCC 6: error: reference is ambiguous

2016-11-06 Thread Stuart Prescott

Hi Carlo,

> I would be happy to pass this to the Debian Science team.  My professional
> responsibilities have taken away much of the time I had to work on my
> packages.  I always hope that I can set aside some time but it never seems
> to be possible.

Sure, I understand how that happens. I'll import the historical packages into 
git within the Debian Science team and include you in Uploaders since it would 
be great to keep you involved!

cheers
Stuart

-- 
Stuart Prescotthttp://www.nanonanonano.net/   stu...@nanonanonano.net
Debian Developer   http://www.debian.org/ stu...@debian.org
GPG fingerprint90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7



Bug#811800: fityk: FTBFS with GCC 6: error: reference is ambiguous

2016-11-06 Thread Carlo Segre


Hi Stuart:

I would be happy to pass this to the Debian Science team.  My professional 
responsibilities have taken away much of the time I had to work on my 
packages.  I always hope that I can set aside some time but it never seems 
to be possible.


Carlo

On Sun, 6 Nov 2016, Stuart Prescott wrote:


Dear Carlo,

As an alternative to the patch from Graham Inggs, this bug (and a few others)
could all be fixed by updating to the 1.3.0 release.

I attach a diff that would update to the current upstream release as well as fix
a few other bits and pieces within the packaging.

Thoughts?

(BTW I see it's been a long time since you uploaded this package -- would you
be interested co-maintaining it along with the Debian Science team?)

regards
Stuart




--
Carlo U. Segre -- Duchossois Leadership Professor of Physics
Interim Chair, Department of Chemistry
Director, Center for Synchrotron Radiation Research and Instrumentation
Illinois Institute of Technology
Voice: 312.567.3498Fax: 312.567.3494
se...@iit.edu   http://phys.iit.edu/~segre   se...@debian.org



Bug#811800: fityk: FTBFS with GCC 6: error: reference is ambiguous

2016-11-06 Thread Stuart Prescott
Dear Carlo,

As an alternative to the patch from Graham Inggs, this bug (and a few others) 
could all be fixed by updating to the 1.3.0 release.

I attach a diff that would update to the current upstream release as well as 
fix 
a few other bits and pieces within the packaging.

Thoughts?

(BTW I see it's been a long time since you uploaded this package -- would you 
be interested co-maintaining it along with the Debian Science team?)

regards
Stuart

-- 
Stuart Prescotthttp://www.nanonanonano.net/   stu...@nanonanonano.net
Debian Developer   http://www.debian.org/ stu...@debian.org
GPG fingerprint90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7--- fityk-1.2.1/debian/changelog	2014-01-02 09:44:24.0 +1100
+++ fityk-1.3.0/debian/changelog	2016-11-06 16:20:37.0 +1100
@@ -1,3 +1,24 @@
+fityk (1.3.0-0.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * New upstream release (Closes: #747161):
+- Builds successfully with GCC 6 (Closes: #811800).
+  * Update build system to suit new upstream:
+- Remove no-longer-needed compiler/linker FLAGS setting (Closes: #735777)
+- Update build-dependencies on lua
+- Add build-dependency on
+- 'swig' to build bindings
+- 'check' to run tests
+- 'texlive-latex-*', 'sphinx', 'dvipng' to build documentation
+  * Switch to debhelper compat level 10, allowing debhelper to do the necessary
+autoreconf automatically (Closes: #744571)
+  * Move d/upstream to d/upstream/metadata
+  * Fix watch file to correctly find new releases.
+  * Bump Standards-Version to 3.9.8 (no changes required).
+  * Drop no-longer-needed menu file as per #741573.
+
+ -- Stuart Prescott   Sun, 06 Nov 2016 16:20:37 +1100
+
 fityk (1.2.1-0.1) unstable; urgency=low
 
   * Non-maintainer upload.
--- fityk-1.2.1/debian/compat	2010-05-09 05:47:59.0 +1000
+++ fityk-1.3.0/debian/compat	2016-11-06 16:20:37.0 +1100
@@ -1 +1 @@
-7
+10
--- fityk-1.2.1/debian/control	2014-01-02 04:40:54.0 +1100
+++ fityk-1.3.0/debian/control	2016-11-06 16:20:37.0 +1100
@@ -2,17 +2,23 @@
 Section: science
 Priority: optional
 Maintainer: Carlo Segre 
-Build-Depends: autotools-dev (>> 20100122.1~),
-   debhelper (>> 7),
+Build-Depends: catch,
+   debhelper (>> 10),
+   dvipng,
libboost-dev,
libbz2-dev,
-   liblua5.1-0-dev,
+   liblua5.2-dev,
libreadline-dev,
libwxgtk3.0-dev,
libxy-dev,
+   lua5.2,
+   python3-sphinx,
+   swig,
+   texlive-latex-extra,
+   texlive-latex-recommended,
zlib1g-dev
 Homepage: http://fityk.nieto.pl/
-Standards-Version: 3.9.5
+Standards-Version: 3.9.8
 
 Package: fityk
 Architecture: any
--- fityk-1.2.1/debian/docs	2010-05-09 04:58:55.0 +1000
+++ fityk-1.3.0/debian/docs	2016-11-06 16:20:37.0 +1100
@@ -1,3 +1,3 @@
-README
+README.md
 debian/README.Debian
 TODO
--- fityk-1.2.1/debian/menu	2010-05-09 04:58:55.0 +1000
+++ fityk-1.3.0/debian/menu	1970-01-01 10:00:00.0 +1000
@@ -1,6 +0,0 @@
-?package(fityk):needs="X11"\
-		section="Applications/Science/Data Analysis"	\
-		title="fityk"\
-		command="/usr/bin/fityk"		\
-		icon="/usr/share/pixmaps/fityk.xpm"
-
--- fityk-1.2.1/debian/rules	2014-01-02 04:38:10.0 +1100
+++ fityk-1.3.0/debian/rules	2016-11-06 16:20:37.0 +1100
@@ -1,20 +1,16 @@
 #!/usr/bin/make -f
 
-CPPFLAGS ?= $(shell dpkg-buildflags --get CPPFLAGS) -I/usr/include/lua5.1
-CFLAGS   ?= $(shell dpkg-buildflags --get CFLAGS)
-CXXFLAGS ?= $(shell dpkg-buildflags --get CXXFLAGS)
-LDFLAGS  ?= -lstdc++ $(shell dpkg-buildflags --get LDFLAGS) # -Wl,--as-needed
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 %:
-	dh $@ --with autotools_dev --parallel
+	dh $@ --buildsystem=autoconf --parallel
 
 override_dh_auto_configure:
-	dh_auto_configure -- --disable-shared --enable-static \
-	 --disable-xyconvert --with-lua-suffix=5.1 \
-	 CPPFLAGS="$(CPPFLAGS)" \
-	 CFLAGS="$(CFLAGS)" \
-	 CXXFLAGS="$(CXXFLAGS)" \
-	 LDFLAGS="$(LDFLAGS)"
+	dh_auto_configure -- --disable-shared --enable-static
+
+override_dh_auto_build:
+	dh_auto_build
+	make -C doc html
 
 override_dh_auto_install:
 	dh_auto_install
--- fityk-1.2.1/debian/watch	2011-03-24 18:00:05.0 +1100
+++ fityk-1.3.0/debian/watch	2016-11-06 16:20:37.0 +1100
@@ -1,3 +1,3 @@
 version=3
-https://github.com/wojdyr/fityk/downloads \
-  /downloads/wojdyr/fityk/fityk-(.*)\.tar\.bz2
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/fityk-$1\.tar\.gz/ \
+  https://github.com/wojdyr/fityk/tags .*/v?(\d\S+)\.tar\.gz


Bug#811800: fityk: FTBFS with GCC 6: error: reference is ambiguous

2016-09-26 Thread Graham Inggs

Control: tags -1 patch


Hi Maintainer

The attached patch fixes the FTBFS with GCC 6.

Regards
Graham

Description: Fix FTBFS with GCC 6
Forwarded: no
Bug-Debian: https://bugs.debian.org/811800
Author: Graham Inggs 
Last-Update: 2016-09-26
--- a/fityk/guess.cpp
+++ b/fityk/guess.cpp
@@ -20,9 +20,9 @@
 
 namespace fityk {
 
-const array Guess::linear_traits =
+const boost::array Guess::linear_traits =
 {{ "slope", "intercept", "avgy" }};
-const array Guess::peak_traits =
+const boost::array Guess::peak_traits =
 {{ "center", "height", "hwhm", "area" }};
 
 Guess::Guess(Settings const *settings) : settings_(settings)
@@ -105,7 +105,7 @@
 
 // outputs vector with: center, height, hwhm, area
 // returns values corresponding to peak_traits
-array Guess::estimate_peak_parameters()
+boost::array Guess::estimate_peak_parameters()
 {
 // find the highest point, which must be higher than the previous point
 // and not lower than the next one (-> it cannot be the first/last point)
@@ -132,11 +132,11 @@
 double center = xx_[pos];
 double area;
 double hwhm = find_hwhm(pos, ) * settings_->width_correction;
-array r = {{ center, height, hwhm, area }};
+boost::array r = {{ center, height, hwhm, area }};
 return r;
 }
 
-array Guess::estimate_linear_parameters()
+boost::array Guess::estimate_linear_parameters()
 {
 double sx = 0, sy = 0, sxx = 0, /*syy = 0,*/ sxy = 0;
 int n = yy_.size();
@@ -152,7 +152,7 @@
 double slope = (n * sxy - sx * sy) / (n * sxx - sx * sx);
 double intercept = (sy - slope * sx) / n;
 double avgy = sy / n;
-array r = {{ slope, intercept, avgy }};
+boost::array r = {{ slope, intercept, avgy }};
 return r;
 }
 
--- a/wxgui/frame.cpp
+++ b/wxgui/frame.cpp
@@ -1028,7 +1028,7 @@
 return;
 }
 try {
-shared_ptr d =
+std::tr1::shared_ptr d =
 xylib::cached_load_file(f, "", "");
 if (d->get_block_count() > 1) {
 wxArrayString choices;