Your message dated Mon, 11 May 2015 16:04:32 +0200
with message-id <[email protected]>
and subject line Re: openni-sensor-pointclouds: FTBFS: Unknown machine type: ppc
has caused the Debian Bug report #734143,
regarding openni-sensor-pointclouds: FTBFS: Unknown machine type: ppc
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
734143: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734143
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: openni-sensor-pointclouds
Version: 5.1.0.41.1-1
Severity: important
Tags: patch
User: [email protected]
Usertags: powerpcspe

Hi,

on powerpc and powerpcspe, openni-sensor-pointclouds FTBFS like this:

...
dh build-arch --buildsystem=makefile
   dh_testdir -a -O--buildsystem=makefile
   dh_auto_configure -a -O--buildsystem=makefile
   debian/rules override_dh_auto_build
make[1]: Entering directory `/«PKGBUILDDIR»'
cd Platform/Linux/CreateRedist && bash RedistMaker
Unknown machine type: ppc
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory `/«PKGBUILDDIR»'
...

The attached patch fixes this.

Roland

-- System Information:
Debian Release: 7.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: powerpcspe (ppc)

Kernel: Linux 3.9.0-dirty (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: openni-sensor-pointclouds-5.1.0.41.1/Platform/Linux/Build/Common/Platform.Powerpc
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ openni-sensor-pointclouds-5.1.0.41.1/Platform/Linux/Build/Common/Platform.Powerpc	2014-01-04 10:26:08.000000000 +0100
@@ -0,0 +1,9 @@
+ifeq "$(CFG)" "Release"
+
+    # Optimization level, minus currently buggy optimizing methods (which break bit-exact)
+    CFLAGS += -O3 -fno-tree-pre -fno-strict-aliasing
+
+    # More optimization flags
+    CFLAGS += -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant
+
+endif
Index: openni-sensor-pointclouds-5.1.0.41.1/Platform/Linux/CreateRedist/RedistMaker
===================================================================
--- openni-sensor-pointclouds-5.1.0.41.1.orig/Platform/Linux/CreateRedist/RedistMaker	2014-01-04 10:26:08.000000000 +0100
+++ openni-sensor-pointclouds-5.1.0.41.1/Platform/Linux/CreateRedist/RedistMaker	2014-01-04 10:26:08.000000000 +0100
@@ -29,6 +29,8 @@
 		PLATFORM="x64" ;;
 	arm)
 		PLATFORM="Arm" ;;
+	ppc)
+		PLATFORM="Powerpc" ;;
 	*)
 		echo "Unknown machine type: $MACHINE_TYPE"
 		exit 1
Index: openni-sensor-pointclouds-5.1.0.41.1/Source/Utils/XnSensorServer/SensorServer.cpp
===================================================================
--- openni-sensor-pointclouds-5.1.0.41.1.orig/Source/Utils/XnSensorServer/SensorServer.cpp	2014-01-04 10:26:08.000000000 +0100
+++ openni-sensor-pointclouds-5.1.0.41.1/Source/Utils/XnSensorServer/SensorServer.cpp	2014-01-04 10:26:08.000000000 +0100
@@ -56,7 +56,7 @@
 	nRetVal = XnSensorServerGetGlobalConfigFile(strConfigDir, strConfigFile, XN_FILE_MAX_PATH);
 	XN_CHECK_RC(nRetVal, "Resolving global config file");
 
-#if (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_MACOSX)
+#if (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || XN_PLATFORM == XN_PLATFORM_MACOSX)
 	xnLogSetOutputFolder("/var/log/primesense/XnSensorServer/");
 #endif
 
Index: openni-sensor-pointclouds-5.1.0.41.1/Source/XnDeviceSensorV2/XnDeviceSensorInit.h
===================================================================
--- openni-sensor-pointclouds-5.1.0.41.1.orig/Source/XnDeviceSensorV2/XnDeviceSensorInit.h	2014-01-04 10:26:08.000000000 +0100
+++ openni-sensor-pointclouds-5.1.0.41.1/Source/XnDeviceSensorV2/XnDeviceSensorInit.h	2014-01-04 10:26:08.000000000 +0100
@@ -57,7 +57,7 @@
 
 	#define XN_SENSOR_USB_MISC_BUFFER_SIZE	0x1000
 	#define XN_SENSOR_USB_MISC_BUFFERS		1
-#elif (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_MACOSX || XN_PLATFORM == XN_PLATFORM_ANDROID_ARM)
+#elif (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || XN_PLATFORM == XN_PLATFORM_MACOSX || XN_PLATFORM == XN_PLATFORM_ANDROID_ARM)
 	#define XN_SENSOR_USB_IMAGE_BUFFER_SIZE_MULTIPLIER_ISO				32
 	#define XN_SENSOR_USB_IMAGE_BUFFER_SIZE_MULTIPLIER_BULK				40
 	#define XN_SENSOR_USB_IMAGE_BUFFER_SIZE_MULTIPLIER_LOWBAND_ISO		16
Index: openni-sensor-pointclouds-5.1.0.41.1/Source/XnDeviceSensorV2/XnSensorClient.cpp
===================================================================
--- openni-sensor-pointclouds-5.1.0.41.1.orig/Source/XnDeviceSensorV2/XnSensorClient.cpp	2014-01-04 10:26:08.000000000 +0100
+++ openni-sensor-pointclouds-5.1.0.41.1/Source/XnDeviceSensorV2/XnSensorClient.cpp	2014-01-04 10:26:08.000000000 +0100
@@ -882,7 +882,7 @@
 	
 #if (XN_PLATFORM == XN_PLATFORM_WIN32)
 	nRetVal = GetModuleDir(strServerDir);
-#elif (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_MACOSX)
+#elif (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || XN_PLATFORM == XN_PLATFORM_MACOSX)
 	sprintf(strServerDir, "/usr/lib/libopenni-sensor-primesense0");
 #endif
 
Index: openni-sensor-pointclouds-5.1.0.41.1/Platform/Linux/Build/Common/CommonDefs.mak
===================================================================
--- openni-sensor-pointclouds-5.1.0.41.1.orig/Platform/Linux/Build/Common/CommonDefs.mak	2014-01-04 10:32:36.000000000 +0100
+++ openni-sensor-pointclouds-5.1.0.41.1/Platform/Linux/Build/Common/CommonDefs.mak	2014-01-04 10:32:36.000000000 +0100
@@ -15,6 +15,8 @@
 	HOST_PLATFORM = x86
 else ifneq (,$(findstring arm,$(MACHINE)))
 	HOST_PLATFORM = Arm
+else ifneq (,$(findstring ppc,$(MACHINE)))
+	HOST_PLATFORM = Powerpc
 else
 	DUMMY:=$(error Can't determine host platform)
 endif

--- End Message ---
--- Begin Message ---
Package:  openni-sensor-pointclouds
Version: 5.1.0.41.3-1

Hi,

thanks for your patch, I've included it upstream [1] and a new Debian
version was already uploaded (5.1.0.41.3-1), but it didn't build due to
a dependency problem.

Cheers Jochen

[1] 
https://github.com/PointCloudLibrary/Sensor/commit/728867e3bae2fa4607da386acd1c6079e3bf2371

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to