Your message dated Mon, 19 Sep 2016 22:38:10 +0000
with message-id <e1bm7cu-0002y2...@franck.debian.org>
and subject line Bug#838295: fixed in openni-sensor-primesense 5.1.0.41-6
has caused the Debian Bug report #838295,
regarding openni-sensor-primesense: FTBFS: Unknown machine type: mips
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 ow...@bugs.debian.org
immediately.)


-- 
838295: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838295
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: openni-sensor-primesense
Version: 5.1.0.41-3
Severity: important
Tags: sid + patch
Justification: FTBFS
User: debian-m...@lists.debian.org
Usertags: mips-patch

Hi,

Package openni-sensor-primesense FTBFS on mips* with following error:
> make[1]: Leaving directory '/«PKGBUILDDIR»'
>  debian/rules build-arch
> dh build-arch --buildsystem=makefile
>    dh_testdir -a -O--buildsystem=makefile
>    dh_update_autotools_config -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: mips
> debian/rules:8: recipe for target 'override_dh_auto_build' failed
> make[1]: *** [override_dh_auto_build] Error 1
> make[1]: Leaving directory '/«PKGBUILDDIR»'
> debian/rules:5: recipe for target 'build-arch' failed
> make: *** [build-arch] Error 2

build log:
https://buildd.debian.org/status/fetch.php?pkg=openni-sensor-primesense&arch=mips&ver=5.1.0.41-5&stamp=1461373695

The attached patch adds support for mips*.
With this patch I was able to build openni-sensor-primesense successfully for 
mips, mipsel and mips64el.
Could you please include this patch?

Thanks,
Daniel

--- openni-sensor-primesense-5.1.0.41.orig/Platform/Linux/Build/Common/CommonDefs.mak
+++ openni-sensor-primesense-5.1.0.41/Platform/Linux/Build/Common/CommonDefs.mak
@@ -19,6 +19,8 @@ else ifneq (,$(findstring aarch64,$(MACH
 	HOST_PLATFORM = AArch64
 else ifneq (,$(findstring ppc,$(MACHINE)))
 	HOST_PLATFORM = Powerpc
+else ifneq (,$(findstring mips,$(MACHINE)))
+        HOST_PLATFORM = Mips
 else
 	DUMMY:=$(error Can't determine host platform)
 endif
--- /dev/null
+++ openni-sensor-primesense-5.1.0.41/Platform/Linux/Build/Common/Platform.Mips
@@ -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
--- openni-sensor-primesense-5.1.0.41.orig/Platform/Linux/CreateRedist/RedistMaker
+++ openni-sensor-primesense-5.1.0.41/Platform/Linux/CreateRedist/RedistMaker
@@ -35,6 +35,8 @@ else
 		PLATFORM="Powerpc" ;;
 	arm*)
 		PLATFORM="Arm" ;;
+	mips*)
+		PLATFORM="Mips" ;;
 	*)
 		echo "Unknown machine type: $MACHINE_TYPE"
 		exit 1
--- openni-sensor-primesense-5.1.0.41.orig/Source/Utils/XnSensorServer/SensorServer.cpp
+++ openni-sensor-primesense-5.1.0.41/Source/Utils/XnSensorServer/SensorServer.cpp
@@ -56,7 +56,7 @@ int main(int argc, char* argv[])
 	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_LINUX_AARCH64 || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || XN_PLATFORM == XN_PLATFORM_MACOSX)
+#if (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_LINUX_AARCH64 || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || XN_PLATFORM == XN_PLATFORM_MACOSX || XN_PLATFORM == XN_PLATFORM_LINUX_MIPS)
 	xnLogSetOutputFolder("/var/log/primesense/XnSensorServer/");
 #endif
 
--- openni-sensor-primesense-5.1.0.41.orig/Source/XnDeviceSensorV2/XnDeviceSensorInit.h
+++ openni-sensor-primesense-5.1.0.41/Source/XnDeviceSensorV2/XnDeviceSensorInit.h
@@ -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_LINUX_AARCH64 || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || 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_AARCH64 || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || XN_PLATFORM == XN_PLATFORM_MACOSX || XN_PLATFORM == XN_PLATFORM_ANDROID_ARM || XN_PLATFORM == XN_PLATFORM_LINUX_MIPS)
 	#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
--- openni-sensor-primesense-5.1.0.41.orig/Source/XnDeviceSensorV2/XnSensorClient.cpp
+++ openni-sensor-primesense-5.1.0.41/Source/XnDeviceSensorV2/XnSensorClient.cpp
@@ -882,7 +882,7 @@ XnStatus XnSensorClient::StartServerProc
 	
 #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_LINUX_AARCH64 || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || XN_PLATFORM == XN_PLATFORM_MACOSX)
+#elif (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_LINUX_AARCH64 || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || XN_PLATFORM == XN_PLATFORM_MACOSX || XN_PLATFORM == XN_PLATFORM_LINUX_MIPS)
 	sprintf(strServerDir, "/usr/lib/libopenni-sensor-primesense0");
 #endif
 

--- End Message ---
--- Begin Message ---
Source: openni-sensor-primesense
Source-Version: 5.1.0.41-6

We believe that the bug you reported is fixed in the latest version of
openni-sensor-primesense, 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 838...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jochen Sprickerhof <jspri...@debian.org> (supplier of updated 
openni-sensor-primesense 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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Mon, 19 Sep 2016 21:29:05 +0200
Source: openni-sensor-primesense
Binary: libopenni-sensor-primesense-dev libopenni-sensor-primesense0
Architecture: source
Version: 5.1.0.41-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers 
<pkg-multimedia-maintain...@lists.alioth.debian.org>
Changed-By: Jochen Sprickerhof <jspri...@debian.org>
Description:
 libopenni-sensor-primesense-dev - headers for working with PrimeSense sensor 
OpenNI modules
 libopenni-sensor-primesense0 - PrimeSense sensor modules for the OpenNI 
framework
Closes: 838295
Changes:
 openni-sensor-primesense (5.1.0.41-6) unstable; urgency=medium
 .
   * Add patch for mips build.
     Thanks to Daniel Knezevic (Closes: #838295)
   * Update control file
Checksums-Sha1:
 3144f0d472307da7a031b02a08490b84a124d921 2327 
openni-sensor-primesense_5.1.0.41-6.dsc
 4579a4bd7012e568675370e844330bc259172c06 9440 
openni-sensor-primesense_5.1.0.41-6.debian.tar.xz
Checksums-Sha256:
 c5e6000b8f7bef95b60ae848affa32de427105c9a0bdf4b8b0ae4cb0ed94b8ee 2327 
openni-sensor-primesense_5.1.0.41-6.dsc
 203558bbd0b44e3eaab49595271d5b4916658f9a2dfc16988577655bc71b7ea3 9440 
openni-sensor-primesense_5.1.0.41-6.debian.tar.xz
Files:
 bd9bed0f2b2eb4c153509f4f5619fedc 2327 libs optional 
openni-sensor-primesense_5.1.0.41-6.dsc
 1d6a781f16a39c8742a7d7ad002a9809 9440 libs optional 
openni-sensor-primesense_5.1.0.41-6.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIxBAEBCgAbBQJX4E4EFBxqc3ByaWNrZUBkZWJpYW4ub3JnAAoJEFv/3MJY5pQz
9xIQAIHL+kxxBH4SWYVrgqKEeM4MfYMwYonugwBXSAqd2gc5JdHxW5SQ7Y5bkmAx
vhLhhE93B+5/ConpfpqJxlq0PZ0WNlaqC7oHsqDoFoPVpRZSpJcOsdhju6ylIUyw
cj0LNsJxlX9EPsxRdsEHZIkcwGqelq2obO3Kt1anEKJ9xE0lWrYoPd33XMYPAfdT
YX1vhPBBdo0by/x+23BVdzXcJD48oMK6eDiQaNwfx2GondtI7qixbVXnBNepsfbX
f/sXvleC+pEYvmbqpqtiKzHzSzWB6+XiZVzA98xDKhILG23DxwHTnL++anUYjp7b
6GAZEmGd0LjRC5h6pffwcPEJD8BxDNusNVkLjNrd1NSWdsKG7Ygy6LnJ9dyvY2Bm
DSDWvuH5cLE5M+O7wv3jXwnmu75Q8EU7r19DwEsmmaHXCHewQgL6QCO+lRHehiQl
1rUEmslteSuQ+lLvRQyHt9pSiCrxRRGZ8IMsXXg/Cjw9HAoM/rcTOM6wn5FP3HI6
4wQW0PL7hP81c2rxorn532esd4MFAW4Jzl7n+EBDzAkF9knNkxNZas/zTZT+8+Sr
JOFQgvqFtFknCEYykW6lRskIEXR3kaQSjy6+2pXr+Q+5hPB8Ok3j5g0xhv+7uFwj
FfnMu1pJLMTje1F3gghRbQNvDQQuSS0MvRKq3YkPs9lrbfBE
=ELyZ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to