Your message dated Tue, 12 Jul 2022 10:03:59 +0000 with message-id <E1oBCkJ-000EXu-0D@fasolo.debian.org> and subject line Bug#1014665: fixed in openni-sensor-pointclouds 5.1.0.41.10-1 has caused the Debian Bug report #1014665, regarding openni-sensor-pointclouds: 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.) -- 1014665: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014665 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-pointclouds: ftbfs on riscv64 ("Unknown machine type: riscv64")
- From: Bo YU <tsu.yubo@gmail.com>
- Date: Sun, 10 Jul 2022 11:02:29 +0800
- Message-id: <[🔎] 20220710030229.vuhjmsmdweve7j2c@debian>
Source: openni-sensor-pointclouds Version: 5.1.0.41.9-4 Severity: normal Tags: ftbfs, patch, upstream User: debian-riscv@lists.debian.org Usertags: riscv64 X-Debbugs-Cc: debian-riscv@lists.debian.org Dear openni-sensor-pointclouds Maintainer, With your kindly merge[0], there is a possibility of being built on riscv64 arch for the package: ``` make[1]: Entering directory '/<<PKGBUILDDIR>>' cd Platform/Linux/CreateRedist && ./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 full buildd log is here: https://buildd.debian.org/status/fetch.php?pkg=openni-sensor-pointclouds&arch=riscv64&ver=5.1.0.41.9-4&stamp=1657356003&raw=0 The patch attached is to fix the issue and I can build riscv64 package on my real riscv64 hardware. Please let me know if you need my assistant [0]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014442 -- Best Regards,--- a/Platform/Linux/Build/Common/CommonDefs.mak +++ b/Platform/Linux/Build/Common/CommonDefs.mak @@ -21,6 +21,8 @@ HOST_PLATFORM = Powerpc else ifneq (,$(findstring mips,$(MACHINE))) 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,12 @@ +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/Platform/Linux/CreateRedist/RedistMaker +++ b/Platform/Linux/CreateRedist/RedistMaker @@ -37,6 +37,8 @@ PLATFORM="Arm" ;; mips*) PLATFORM="Mips" ;; + riscv64) + PLATFORM="Riscv64" ;; *) echo "Unknown machine type: $MACHINE_TYPE" exit 1 --- 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: 1014665-close@bugs.debian.org
- Subject: Bug#1014665: fixed in openni-sensor-pointclouds 5.1.0.41.10-1
- From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
- Date: Tue, 12 Jul 2022 10:03:59 +0000
- Message-id: <E1oBCkJ-000EXu-0D@fasolo.debian.org>
- Reply-to: Jochen Sprickerhof <jspricke@debian.org>
Source: openni-sensor-pointclouds Source-Version: 5.1.0.41.10-1 Done: Jochen Sprickerhof <jspricke@debian.org> We believe that the bug you reported is fixed in the latest version of openni-sensor-pointclouds, 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 1014665@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-pointclouds 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 11:50:14 +0200 Source: openni-sensor-pointclouds Architecture: source Version: 5.1.0.41.10-1 Distribution: unstable Urgency: medium Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org> Changed-By: Jochen Sprickerhof <jspricke@debian.org> Closes: 1014665 Changes: openni-sensor-pointclouds (5.1.0.41.10-1) unstable; urgency=medium . * New upstream version 5.1.0.41.10 - Add support for riscv64 (Closes: #1014665) * Bump policy version (no changes) Checksums-Sha1: bdfe6ac5de1f324c050a7512938637be29e0067d 2243 openni-sensor-pointclouds_5.1.0.41.10-1.dsc 9f377ac5ab18093fa3bb53192ed98502fc59ffe7 642661 openni-sensor-pointclouds_5.1.0.41.10.orig.tar.gz e43fc2c8fe36fbd252e7905ac6f6ad236bc8e75c 5896 openni-sensor-pointclouds_5.1.0.41.10-1.debian.tar.xz bac3901a15eceb1491230a5a4cbff86a8803b721 6609 openni-sensor-pointclouds_5.1.0.41.10-1_source.buildinfo Checksums-Sha256: 3f04ede8de2e1b145d923a82a28ce00b1491aed68ea9a11d62b67b5b3f202117 2243 openni-sensor-pointclouds_5.1.0.41.10-1.dsc 25185d61a4104e7b6e1c14736c54e168b4a039769b5bd9f85e87597fde565521 642661 openni-sensor-pointclouds_5.1.0.41.10.orig.tar.gz 908b1b58503d4f42ca8dcfcd53d5de860aaae0d83512169c593b0feceb98505e 5896 openni-sensor-pointclouds_5.1.0.41.10-1.debian.tar.xz 47eddaddd9f0b5477c1527ed7228d428bdaa79fd7e529547ed594ac09ddbe922 6609 openni-sensor-pointclouds_5.1.0.41.10-1_source.buildinfo Files: 146d849c1cf219ac19dcf6ef8e716298 2243 libs optional openni-sensor-pointclouds_5.1.0.41.10-1.dsc d5a99bd85f6eeb50ccf5ce66cc5b45ae 642661 libs optional openni-sensor-pointclouds_5.1.0.41.10.orig.tar.gz c5de09d4326c1fed3dd03044e5798488 5896 libs optional openni-sensor-pointclouds_5.1.0.41.10-1.debian.tar.xz be3152c71a11f4d9ff5f86a3f96994c6 6609 libs optional openni-sensor-pointclouds_5.1.0.41.10-1_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc7KZy9TurdzAF+h6W//cwljmlDMFAmLNRJYACgkQW//cwljm lDMTGA//dI3RMXDMEbJIzN5lsleDSFMJhzxKoRJBojrdmFOxk1krWDZkx6nwBlPK w9VEohm79gcTahSvZtRntaVu29W2RkRLpDAhp5WlsWMJ40GBw9I345V0Kn9abBmj W5FPPVqACniFJl6tsgi7c6cVtkhx+U+5K5j5pnrMD8NrYLmvS4FLibxvhpo4xs6S seicLxBirC/Zt40w1RwuiAbtDWMWXw/ptKh8wnu9PTbM9X6AMc1tXcf2VHxoeaAO R9LR6VZSiq2AEtXXDkTxqvQ1pqA1knZfsLjwsi9pbt8/4GAxJ32fTEW1/MdHbbo7 PFLKu6DeBUCy490AsyjNN03vNm48YFSCvEtupPeD63Qz+V9D9LcAG38uykGnzx8s QPghe7suUuZYwqcOvHbYjBK7OLPjYfF/2EGFnWOT5ktdGoPB1oMk0JdDhNg27Ton WnP9rBYYCyJyP+SXW3fmgNHUC9wFTCxn3KGGUnu/mwUWVV+DFy/p/QsNQc6V85pL Ec7VGO0dXkSpqwq2kBmvud7XVFJ9FVw0MjBwcGhgIAgjwjuoC5S2nxXsliITqMD1 hEM89pcvZj5q7bLkiL0PXTxPuMIY4goq72yYdYeH8fmv5nA+Hmoj5g1zYRE3fEZf 7CVOSSxhA8t6InD2OntOb55L9iJLgxkmBPz69wG4qJXBcGlxCrQ= =saBe -----END PGP SIGNATURE-----
--- End Message ---