Your message dated Fri, 05 Jun 2015 18:34:46 +0000
with message-id <[email protected]>
and subject line Bug#734110: fixed in openni 1.5.4.0-10
has caused the Debian Bug report #734110,
regarding openni: FTBFS: Unknown platform: 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.)


-- 
734110: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734110
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: openni
Version: 1.5.4.0-6
Severity: important
Tags: patch
User: [email protected]
Usertags: powerpcspe

Hi,

on powerpc and powerpcspe, openni FTBFS like this:

...
make[1]: Entering directory `/«PKGBUILDDIR»'
cd Platform/Linux/CreateRedist && ./RedistMaker
Unknown platform: ppc
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory `/«PKGBUILDDIR»'
make: *** [build-arch] Error 2
...

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_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: openni-1.5.4.0/Platform/Linux/CreateRedist/Redist_OpenNi.py
===================================================================
--- openni-1.5.4.0.orig/Platform/Linux/CreateRedist/Redist_OpenNi.py	2014-01-03 22:14:57.168620189 +0100
+++ openni-1.5.4.0/Platform/Linux/CreateRedist/Redist_OpenNi.py	2014-01-03 22:14:57.156620118 +0100
@@ -186,6 +186,8 @@
         PLATFORM = "x86"
     elif machinetype[:3] == "arm":
         PLATFORM = "Arm"
+    elif machinetype[:3] == "ppc":
+        PLATFORM = "Powerpc"
     else:
         print "Unknown platform:", machinetype
         finish_script(1)
@@ -335,6 +337,7 @@
 
 shutil.copytree("../../Include/Linux-x86", REDIST_DIR + "/Include/Linux-x86")
 shutil.copytree("../../Include/Linux-Arm", REDIST_DIR + "/Include/Linux-Arm")
+shutil.copytree("../../Include/Linux-Powerpc", REDIST_DIR + "/Include/Linux-Powerpc")
 shutil.copytree("../../Include/MacOSX", REDIST_DIR + "/Include/MacOSX")
 shutil.copytree("Build/Common", REDIST_DIR + "/Samples/Build/Common")
 
Index: openni-1.5.4.0/Platform/Linux/Build/Common/CommonDefs.mak
===================================================================
--- openni-1.5.4.0.orig/Platform/Linux/Build/Common/CommonDefs.mak	2014-01-03 22:14:57.168620189 +0100
+++ openni-1.5.4.0/Platform/Linux/Build/Common/CommonDefs.mak	2014-01-03 22:14:57.144620048 +0100
@@ -18,6 +18,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
@@ -59,4 +61,4 @@
 # platform specific args
 include $(COMMON_MAK_DIR)Platform.$(PLATFORM)
 
-endif # _COMMON_DEFS_MAKE_
\ No newline at end of file
+endif # _COMMON_DEFS_MAKE_
Index: openni-1.5.4.0/Platform/Linux/Build/Common/Platform.Powerpc
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ openni-1.5.4.0/Platform/Linux/Build/Common/Platform.Powerpc	2014-01-03 22:14:57.144620048 +0100
@@ -0,0 +1,11 @@
+export GLUT_SUPPORTED=1
+
+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-1.5.4.0/Include/Linux-Powerpc/XnPlatformLinux-Powerpc.h
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ openni-1.5.4.0/Include/Linux-Powerpc/XnPlatformLinux-Powerpc.h	2014-01-03 22:14:57.144620048 +0100
@@ -0,0 +1,39 @@
+/****************************************************************************
+*                                                                           *
+*  OpenNI 1.x Alpha                                                         *
+*  Copyright (C) 2011 PrimeSense Ltd.                                       *
+*                                                                           *
+*  This file is part of OpenNI.                                             *
+*                                                                           *
+*  OpenNI is free software: you can redistribute it and/or modify           *
+*  it under the terms of the GNU Lesser General Public License as published *
+*  by the Free Software Foundation, either version 3 of the License, or     *
+*  (at your option) any later version.                                      *
+*                                                                           *
+*  OpenNI is distributed in the hope that it will be useful,                *
+*  but WITHOUT ANY WARRANTY; without even the implied warranty of           *
+*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the             *
+*  GNU Lesser General Public License for more details.                      *
+*                                                                           *
+*  You should have received a copy of the GNU Lesser General Public License *
+*  along with OpenNI. If not, see <http://www.gnu.org/licenses/>.           *
+*                                                                           *
+****************************************************************************/
+#ifndef _XN_PLATFORM_LINUX_POWERPC_H_
+#define _XN_PLATFORM_LINUX_POWERPC_H_
+
+// Start with Linux-x86, and override what's different
+#include "../Linux-x86/XnPlatformLinux-x86.h"
+
+//---------------------------------------------------------------------------
+// Platform Basic Definition
+//---------------------------------------------------------------------------
+#undef XN_PLATFORM
+#undef XN_PLATFORM_STRING
+#undef XN_PLATFORM_ENDIAN_TYPE
+#define XN_PLATFORM XN_PLATFORM_LINUX_POWERPC
+#define XN_PLATFORM_STRING "Linux-Powerpc"
+#define XN_PLATFORM_ENDIAN_TYPE XN_PLATFORM_IS_BIG_ENDIAN
+
+#endif //_XN_PLATFORM_LINUX_POWERPC_H_
+
Index: openni-1.5.4.0/Include/XnOS.h
===================================================================
--- openni-1.5.4.0.orig/Include/XnOS.h	2014-01-03 22:14:57.168620189 +0100
+++ openni-1.5.4.0/Include/XnOS.h	2014-01-03 22:14:57.144620048 +0100
@@ -44,7 +44,7 @@
 //---------------------------------------------------------------------------
 #if (XN_PLATFORM == XN_PLATFORM_WIN32)
 	#include "Win32/XnOSWin32.h"
-#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_MACOSX || XN_PLATFORM == XN_PLATFORM_ANDROID_ARM || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC)
 	#include "Linux-x86/XnOSLinux-x86.h"
 #elif defined(_ARC)
 	#include "ARC/XnOSARC.h"
Index: openni-1.5.4.0/Include/XnPlatform.h
===================================================================
--- openni-1.5.4.0.orig/Include/XnPlatform.h	2014-01-03 22:14:57.168620189 +0100
+++ openni-1.5.4.0/Include/XnPlatform.h	2014-01-03 22:14:57.148620071 +0100
@@ -35,6 +35,7 @@
 #define XN_PLATFORM_LINUX_ARM 7
 #define XN_PLATFORM_MACOSX 8
 #define XN_PLATFORM_ANDROID_ARM 9
+#define XN_PLATFORM_LINUX_POWERPC 10
 
 #define XN_PLATFORM_IS_LITTLE_ENDIAN 1
 #define XN_PLATFORM_IS_BIG_ENDIAN    2
@@ -66,6 +67,8 @@
 	#include "Linux-x86/XnPlatformLinux-x86.h"
 #elif (__linux__ && __arm__)
 	#include "Linux-Arm/XnPlatformLinux-Arm.h"
+#elif (__linux__ && __powerpc__)
+	#include "Linux-Powerpc/XnPlatformLinux-Powerpc.h"
 #elif _ARC
 	#include "ARC/XnPlatformARC.h"
 #elif (__APPLE__)
Index: openni-1.5.4.0/Source/OpenNI/XnOpenNI.cpp
===================================================================
--- openni-1.5.4.0.orig/Source/OpenNI/XnOpenNI.cpp	2014-01-03 22:14:57.168620189 +0100
+++ openni-1.5.4.0/Source/OpenNI/XnOpenNI.cpp	2014-01-03 22:14:57.152620094 +0100
@@ -7062,7 +7062,7 @@
 	#define XN_OPEN_NI_FILES_LOCATION "\\Data\\"
 #elif (CE4100)
 	#define XN_OPEN_NI_FILES_LOCATION "/etc/openni/"
-#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_MACOSX || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC)
 	#define XN_OPEN_NI_FILES_LOCATION "/etc/openni/"
 #elif (XN_PLATFORM == XN_PLATFORM_ANDROID_ARM)
 	#define XN_OPEN_NI_FILES_LOCATION "/data/ni/"
Index: openni-1.5.4.0/Samples/NiViewer/NiViewer.cpp
===================================================================
--- openni-1.5.4.0.orig/Samples/NiViewer/NiViewer.cpp	2014-01-03 22:14:57.168620189 +0100
+++ openni-1.5.4.0/Samples/NiViewer/NiViewer.cpp	2014-01-03 22:14:57.156620118 +0100
@@ -49,7 +49,7 @@
 // --------------------------------
 #include <XnCppWrapper.h>
 
-#if (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM)
+#if (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC)
 	#define UNIX
 	#define GLX_GLXEXT_LEGACY
 #endif
@@ -79,7 +79,7 @@
 #if (XN_PLATFORM == XN_PLATFORM_WIN32)
 	#include <conio.h>
 	#include <direct.h>	
-#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_MACOSX || XN_PLATFORM_LINUX_POWERPC)
 	#define _getch() getchar()
 #endif
 
Index: openni-1.5.4.0/Include/XnUSBDevice.h
===================================================================
--- openni-1.5.4.0.orig/Include/XnUSBDevice.h	2014-01-03 22:14:57.168620189 +0100
+++ openni-1.5.4.0/Include/XnUSBDevice.h	2014-01-03 22:14:57.156620118 +0100
@@ -48,7 +48,7 @@
 	#define USB_DT_DEVICE_SIZE 0
 	#define USB_DT_DEVICE 0
 
-#elif (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM)
+#elif (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC)
 	#include <linux/usb/ch9.h>
 	typedef struct usb_endpoint_descriptor XnUSBEndpointDescriptor;
 	typedef struct usb_interface_descriptor XnUSBInterfaceDescriptor;

--- End Message ---
--- Begin Message ---
Source: openni
Source-Version: 1.5.4.0-10

We believe that the bug you reported is fixed in the latest version of
openni, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jochen Sprickerhof <[email protected]> (supplier of updated openni 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 05 Jun 2015 19:33:32 +0200
Source: openni
Binary: libopenni0 libopenni-java openni-utils libopenni-dev openni-doc
Architecture: source amd64 all
Version: 1.5.4.0-10
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers 
<[email protected]>
Changed-By: Jochen Sprickerhof <[email protected]>
Description:
 libopenni-dev - headers for OpenNI 'Natural Interaction' frameworks
 libopenni-java - Java framework for sensor-based 'Natural Interaction'
 libopenni0 - framework for sensor-based 'Natural Interaction'
 openni-doc - developer documentation for OpenNI frameworks
 openni-utils - debug and test utilities OpenNI framework
Closes: 734110
Changes:
 openni (1.5.4.0-10) unstable; urgency=medium
 .
   [ Fernando Seiti Furusato ]
   * Enabled ppc (Closes: #734110). Thanks Roland Stigge and Fernando Seiti
     Furusato.
 .
   [ Jochen Sprickerhof ]
   * Clean up doxygen_sqlite3.db in override_dh_auto_clean
   * Add myself to uploaders
Checksums-Sha1:
 065a341dd081f91d04415211464eb5d79d6df3cc 2412 openni_1.5.4.0-10.dsc
 38f54355c1a11816c909fd7cb730b2f617324fdc 646632 openni_1.5.4.0-10.debian.tar.xz
 481197a9e3442b1a2c8b67e05ec43b7f8be9959f 152136 
libopenni-dev_1.5.4.0-10_amd64.deb
 8bc7810a247932a35374b372254369cdfd9a17e7 144348 
libopenni-java_1.5.4.0-10_amd64.deb
 a29893e4370289134c763137641c15fbe8f9442b 286554 libopenni0_1.5.4.0-10_amd64.deb
 aa1838e78fa89eaa264f17f2daf03c51a5f125dc 4167858 openni-doc_1.5.4.0-10_all.deb
 ede1190681e7dbdeb5ef52d9c2a4096722ec6af5 125670 
openni-utils_1.5.4.0-10_amd64.deb
Checksums-Sha256:
 525191654613a592e5d28c8abf7223e9d3efe464bd42c7c79b0859cea3ab8b4b 2412 
openni_1.5.4.0-10.dsc
 f8734662364d043e56003c5924282cf0e2c5a9a2d611a763fe4b540bc2e27d87 646632 
openni_1.5.4.0-10.debian.tar.xz
 430c8595e80f7b79cea7f40e3e52d165d355fe94dd330f31f1a112276d1f1cc5 152136 
libopenni-dev_1.5.4.0-10_amd64.deb
 afd62031d563efb9ba58a6a6de17955ba109c69257c87dbbe120cfd6bf028e62 144348 
libopenni-java_1.5.4.0-10_amd64.deb
 33dbbd37a887f1a7dee780156af797a21384ba20f2d238d9194357f7caf8af40 286554 
libopenni0_1.5.4.0-10_amd64.deb
 4f6793b0b1b45e65c79768330ac6b9f66c99043ef421696a544debc073f75719 4167858 
openni-doc_1.5.4.0-10_all.deb
 7925405efffab802b92fea4dc97db4891634ec9c54053937d31f6d32add45a8b 125670 
openni-utils_1.5.4.0-10_amd64.deb
Files:
 142e7a1f888a8a8aa4e88e0c959cd144 2412 libs optional openni_1.5.4.0-10.dsc
 29f4d03e0f5ea6ec4c0b2304425a6705 646632 libs optional 
openni_1.5.4.0-10.debian.tar.xz
 2541640f0c0395540a2a66d66c121bbe 152136 libdevel optional 
libopenni-dev_1.5.4.0-10_amd64.deb
 211c86010bfd028ed83592c8d5faf606 144348 java optional 
libopenni-java_1.5.4.0-10_amd64.deb
 4be2ffaf9ac3e2b761751a8d808c2167 286554 libs optional 
libopenni0_1.5.4.0-10_amd64.deb
 1d8749e81c9c43314548496b6e4b2e39 4167858 doc optional 
openni-doc_1.5.4.0-10_all.deb
 525527cb934f2768f19bc84f37e3357c 125670 utils optional 
openni-utils_1.5.4.0-10_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJVceCKAAoJEFv/3MJY5pQzdiAP/29VeuVrB3imXDgj50Rv6mYl
C39Pw7fpz4umZbc5XozBVNZlLAc2+CvYO2PBqTWx7RRmjfHQXQDufKkDvQDDOS7I
cb5A6dTsh96lmnXk+S7PB5UuDZVy3NzHRLuGEQ+rGRMogkFnIKpT7orUrd0+QnoJ
3q5gQbjiMKRCMKI8+vYLUemAbNNiw4pA+o1Fih0MckN3oo499SEgq9AuXqztgd1V
gSZ4rtICwOm27IhGirTBEMPWlLjCIRoc3dNh6x7UC9ojLLgul4jsVvqF0csrh2J0
omLXoFu7m/kt/xqfMLYzs9VC3DSWwM/mHpzmAa7oGrwMottLtmezRQO1BNUyn7Ls
XJk1uRolh6siShMzikn3IdJPiAIamFA7VStFNHQOBfR/FqfA8b+460RFRk6at+6M
fHlZ02QaZReYUIlDpRONka4osnXDOpQ3C4h00borhdpUCGmZAJkDCOcj/FHYBOoZ
IzF0WZYOmCEpJ9Yz852dFaPynpxzFwqcjuECBJnyg8mtH42TQIm1r7x3FS1BrSmu
Xc3Hruk8sv0P28++pYWpoLymphttvbDT+Z1zhVisZrz1ByeS/H/X6VhuihzB3Qzv
jQC9V9UX5QTMmEBAiiwhN75Qve5rxxCoMPQraWEmN2Em3w5gb61GOYD3ygzW47s8
WelSM3MDuL7A5xSD6d25
=Vu75
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to