[Pkg-exppsy-maintainers] PyEPL 1.0.29 and gcc 4.3

Yaroslav Halchenko debian at onerussian.com
Mon Jul 14 20:17:09 UTC 2008


I needed to update the package a bit and I found that I had to patch
sources a bit so they build fine with gcc 4.3.
Probably my patch is not the best, thus I would prefer to get your ACK
on it first. (see patch attached or in pyepl packaging repository on
alioth)

BTW -- non-pleasant experience was that although some sources
failed to build, full python  setup.py build_ext didn't exit with a
failure code, so package was generated but it was blank pretty much


-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
        101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW:     http://www.linkedin.com/in/yarik        
-------------- next part --------------
#! /bin/sh /usr/share/dpatch/dpatch-run
## 00_gcc-4.3.dpatch by Yaroslav Halchenko <debian at onerussian.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad pyepl-1.0.29~/code/hardware/eeg/pulse/parallel.cpp pyepl-1.0.29/code/hardware/eeg/pulse/parallel.cpp
--- pyepl-1.0.29~/code/hardware/eeg/pulse/parallel.cpp	2008-07-14 20:02:52.000000000 +0000
+++ pyepl-1.0.29/code/hardware/eeg/pulse/parallel.cpp	2008-07-14 20:02:55.000000000 +0000
@@ -2,6 +2,8 @@
 
 #include <string>
 #include <math.h>
+#include <cstdlib>
+#include <cstring>
 
 const char *Parallel::devstr = "/dev/parport0";
 const unsigned int Parallel::numPins = 8;\
diff -urNad pyepl-1.0.29~/code/hardware/sound/RtAudio.cpp pyepl-1.0.29/code/hardware/sound/RtAudio.cpp
--- pyepl-1.0.29~/code/hardware/sound/RtAudio.cpp	2008-07-14 20:02:52.000000000 +0000
+++ pyepl-1.0.29/code/hardware/sound/RtAudio.cpp	2008-07-14 20:02:55.000000000 +0000
@@ -42,6 +42,7 @@
 #include "RtAudio.h"
 #include <iostream>
 #include <stdio.h>
+#include <limits.h>
 
 // Static variable definitions.
 const unsigned int RtApi::MAX_SAMPLE_RATES = 14;
diff -urNad pyepl-1.0.29~/code/hardware/sound/eplSound.cpp pyepl-1.0.29/code/hardware/sound/eplSound.cpp
--- pyepl-1.0.29~/code/hardware/sound/eplSound.cpp	2008-07-14 20:02:52.000000000 +0000
+++ pyepl-1.0.29/code/hardware/sound/eplSound.cpp	2008-07-14 20:02:55.000000000 +0000
@@ -10,6 +10,8 @@
 #include "eplSound.h"
 
 #include <iostream>
+#include <cstdlib>
+#include <cstring>
 using std::cout;
 using std::cerr;
 using std::endl;
diff -urNad pyepl-1.0.29~/code/hardware/sound/fifo.cpp pyepl-1.0.29/code/hardware/sound/fifo.cpp
--- pyepl-1.0.29~/code/hardware/sound/fifo.cpp	2008-07-14 20:02:52.000000000 +0000
+++ pyepl-1.0.29/code/hardware/sound/fifo.cpp	2008-07-14 20:03:17.000000000 +0000
@@ -4,6 +4,9 @@
 
 #include "fifo.h"
 
+#include <cstdlib>
+#include <cstring>
+
 //#include<iostream>
 //using namespace std;
 


More information about the Pkg-exppsy-maintainers mailing list