Your message dated Tue, 12 Jul 2022 10:21:05 +0000 with message-id <E1oBD0r-000H3P-Kh@fasolo.debian.org> and subject line Bug#1014746: fixed in openni-sensor-primesense 5.1.0.41-13 has caused the Debian Bug report #1014746, regarding openni-sensor-primesense: ftbfs on riscv64("Unknown machine type: riscv64") 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 owner@bugs.debian.org immediately.) -- 1014746: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014746 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: openni-sensor-primesense: ftbfs on riscv64("Unknown machine type: riscv64")
- From: Bo YU <tsu.yubo@gmail.com>
- Date: Mon, 11 Jul 2022 17:37:06 +0800
- Message-id: <[🔎] 20220711093706.7yildtgemrk6rzdc@debian>
Source: openni-sensor-primesense Version: 5.1.0.41-12 Severity: normal Tags: ftbfs, patch User: debian-riscv@lists.debian.org Usertags: riscv64 X-Debbugs-Cc: debian-riscv@lists.debian.org Dear openni-sensor-primesense Maintainer, Like openni-sensor-pointclouds[0], there is a possibility of being built on riscv64 arch for the package also: ``` dh binary-arch --buildsystem=makefile dh_update_autotools_config -a -O--buildsystem=makefile dh_autoreconf -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 -e RedistMaker Unknown machine type: riscv64 make[1]: *** [debian/rules:7: override_dh_auto_build] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:4: binary-arch] Error 2 dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2 ``` The patch attached is to fix the issue and I can build riscv64 package on my real riscv64 hardware with it. But this patch took a long time to work properly for me due to unknown reason. Please let me know if you need my assistant. Thank you again! Bo [0]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014665 -- Best Regards,--- a/Platform/Linux/CreateRedist/RedistMaker +++ b/Platform/Linux/CreateRedist/RedistMaker @@ -37,6 +37,8 @@ PLATFORM="Arm" ;; mips*) PLATFORM="Mips" ;; + riscv*) + PLATFORM="Riscv64" ;; *) echo "Unknown machine type: $MACHINE_TYPE" exit 1 --- a/Platform/Linux/Build/Common/CommonDefs.mak +++ b/Platform/Linux/Build/Common/CommonDefs.mak @@ -20,7 +20,9 @@ else ifneq (,$(findstring ppc,$(MACHINE))) HOST_PLATFORM = Powerpc else ifneq (,$(findstring mips,$(MACHINE))) - HOST_PLATFORM = Mips + HOST_PLATFORM = Mips +else ifneq (,$(findstring riscv64,$(MACHINE))) + HOST_PLATFORM = Riscv64 else DUMMY:=$(error Can't determine host platform) endif --- /dev/null +++ b/Platform/Linux/Build/Common/Platform.Riscv64 @@ -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 --- a/Source/Utils/XnSensorServer/SensorServer.cpp +++ b/Source/Utils/XnSensorServer/SensorServer.cpp @@ -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_LINUX_AARCH64 || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || XN_PLATFORM == XN_PLATFORM_MACOSX || XN_PLATFORM == XN_PLATFORM_LINUX_MIPS) +#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 || XN_PLATFORM == XN_PLATFORM_LINUX_RISCV64) xnLogSetOutputFolder("/var/log/primesense/XnSensorServer/"); #endif --- a/Source/XnDeviceSensorV2/XnDeviceSensorInit.h +++ b/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 || XN_PLATFORM == XN_PLATFORM_LINUX_MIPS) +#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 || XN_PLATFORM == XN_PLATFORM_LINUX_RISCV64) #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 --- a/Source/XnDeviceSensorV2/XnSensorClient.cpp +++ b/Source/XnDeviceSensorV2/XnSensorClient.cpp @@ -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_LINUX_AARCH64 || XN_PLATFORM == XN_PLATFORM_LINUX_POWERPC || XN_PLATFORM == XN_PLATFORM_MACOSX || XN_PLATFORM == XN_PLATFORM_LINUX_MIPS) +#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 || XN_PLATFORM == XN_PLATFORM_LINUX_RISCV64) sprintf(strServerDir, "/usr/lib/libopenni-sensor-primesense0"); #endifAttachment: signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
- To: 1014746-close@bugs.debian.org
- Subject: Bug#1014746: fixed in openni-sensor-primesense 5.1.0.41-13
- From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
- Date: Tue, 12 Jul 2022 10:21:05 +0000
- Message-id: <E1oBD0r-000H3P-Kh@fasolo.debian.org>
- Reply-to: Jochen Sprickerhof <jspricke@debian.org>
Source: openni-sensor-primesense Source-Version: 5.1.0.41-13 Done: Jochen Sprickerhof <jspricke@debian.org> 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 1014746@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Jochen Sprickerhof <jspricke@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 ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Tue, 12 Jul 2022 12:02:40 +0200 Source: openni-sensor-primesense Architecture: source Version: 5.1.0.41-13 Distribution: unstable Urgency: medium Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org> Changed-By: Jochen Sprickerhof <jspricke@debian.org> Closes: 1014746 Changes: openni-sensor-primesense (5.1.0.41-13) unstable; urgency=medium . * Add patch for riscv64. Thanks to Bo YU (Closes: #1014746) * Bump policy version (no changes) Checksums-Sha1: 3d02074fe49025083793430ef7b0c8e25c587293 2216 openni-sensor-primesense_5.1.0.41-13.dsc 6ff0ced7421c925904128332c970dc678d9e8c68 10568 openni-sensor-primesense_5.1.0.41-13.debian.tar.xz b547c82ece4e3c6aaa768438bf60c933c2adce26 6597 openni-sensor-primesense_5.1.0.41-13_source.buildinfo Checksums-Sha256: 5244b2378c0778a5f3d72a049bef3f87d2e7dc11a277c0777072f2731112c0d4 2216 openni-sensor-primesense_5.1.0.41-13.dsc ff4afdaef0ff29d95f15493ad5fc4bacb8bf00eba042524ebf6d575ee8b4a7c4 10568 openni-sensor-primesense_5.1.0.41-13.debian.tar.xz b077453516a5d80cdb94ceec306ed8f1e681b92e8028bd9e772055b5e8b8cefb 6597 openni-sensor-primesense_5.1.0.41-13_source.buildinfo Files: bce79dc69360d53dd2875daee2ca355d 2216 libs optional openni-sensor-primesense_5.1.0.41-13.dsc 84f3a1ab6f677ba01f307e4020556d03 10568 libs optional openni-sensor-primesense_5.1.0.41-13.debian.tar.xz 017321ed4167c16e9a0a6520e26195c2 6597 libs optional openni-sensor-primesense_5.1.0.41-13_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc7KZy9TurdzAF+h6W//cwljmlDMFAmLNSZ8ACgkQW//cwljm lDNdCw//aVzhtlI6a/YZ7lkkf4IBj7pdA460YHDOhN/C97ghE6lXCcxioUgwA71N OQnxx4TsTiZNJ3I1N49kzr7PzCB3qEcHYwbQBoCza9yUa6Aub/++KH57MsVvZ9+I mbk8gC2tR3BYzXxy0n/DrnUHiN9CjByz/ZwF99sMbE0irjRIYw0A2aSdLSgum4Sf T05WDorvK0AdLTvV1Gk3zPXf5n04VnF5WjT/XH2ACOXz2UQ07hYFJBe2ZLW3tYxV og8V3487E2RE9PjnOim4x3oSJeCZ0FavfoXR629H/cE9b6yLXttDbub9aigDJJt8 sKOReI+Xk1DEV/3t7SyD1l1KHVaIEBYtaEwK6NnZK1XqZIfUxzjP19HtEbXkqU+u labIMVjxC/SkiyrKyRxqm1oWwhuuJWDb2VaAW4qXXCCclILXOB3SjHOprHjVgljV 1P7xtSBY93ByArz8GHh+z+7CVJdUpfkE13bUk7eTwbT7xvoDLg+YsqByXtuUovSS h3n7bAmT1RWdaG6ZZC7/rI4Mzw1+gzVE6IbZPzOY+nxZyt7OrIoTIP4yDx82kunc esIOxLckkcKak2XpEETODx9jYAefGuWusePpr/V+NQ1HJSC/Kf5scGIV3sx5PzSr xvr4KHdD/HKSzOu5qTwwt3CWv+8YBcE4hpf9bVuLoXFiD+mTXXs= =uW68 -----END PGP SIGNATURE-----
--- End Message ---