Skip to content

Commit

Permalink
Release for RevyOS riscv64
Browse files Browse the repository at this point in the history
* Add compile option -Wno-error=pessimizing-move
* Add <cstdint> header

SICKAG/sick_safetyscanners_base#30

Signed-off-by: CHEN Xuan <[email protected]>
  • Loading branch information
Sakura286 committed Jun 7, 2024
1 parent 121aca6 commit a97c2a6
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 1 deletion.
125 changes: 125 additions & 0 deletions debian/patches/01-add-cstdint-header.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
From acc5192661f6d80d855c04f6f416b13fee2571b0 Mon Sep 17 00:00:00 2001
From: ruffsl <[email protected]>
Date: Wed, 29 May 2024 15:36:22 -0500
Subject: [PATCH] Add missing cstdint header to define uint8_t

---
include/sick_safetyscanners_base/datastructure/ApplicationName.h | 1 +
include/sick_safetyscanners_base/datastructure/ConfigMetadata.h | 1 +
include/sick_safetyscanners_base/datastructure/DeviceStatus.h | 1 +
include/sick_safetyscanners_base/datastructure/FieldData.h | 1 +
include/sick_safetyscanners_base/datastructure/FieldSets.h | 1 +
.../sick_safetyscanners_base/datastructure/MonitoringCaseData.h | 1 +
include/sick_safetyscanners_base/datastructure/StatusOverview.h | 1 +
include/sick_safetyscanners_base/datastructure/TypeCode.h | 1 +
include/sick_safetyscanners_base/datastructure/UserName.h | 1 +
9 files changed, 9 insertions(+)

diff --git a/include/sick_safetyscanners_base/datastructure/ApplicationName.h b/include/sick_safetyscanners_base/datastructure/ApplicationName.h
index a2a1a2a..8d6c799 100644
--- a/include/sick_safetyscanners_base/datastructure/ApplicationName.h
+++ b/include/sick_safetyscanners_base/datastructure/ApplicationName.h
@@ -35,6 +35,7 @@
#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_APPLICATIONNAME_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_APPLICATIONNAME_H

+#include <cstdint>
#include <iostream>


diff --git a/include/sick_safetyscanners_base/datastructure/ConfigMetadata.h b/include/sick_safetyscanners_base/datastructure/ConfigMetadata.h
index 5046e11..d8de012 100644
--- a/include/sick_safetyscanners_base/datastructure/ConfigMetadata.h
+++ b/include/sick_safetyscanners_base/datastructure/ConfigMetadata.h
@@ -35,6 +35,7 @@
#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_CONFIGMETADATA_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_CONFIGMETADATA_H

+#include <cstdint>
#include <iostream>
#include <vector>

diff --git a/include/sick_safetyscanners_base/datastructure/DeviceStatus.h b/include/sick_safetyscanners_base/datastructure/DeviceStatus.h
index 870feed..a62f4a5 100644
--- a/include/sick_safetyscanners_base/datastructure/DeviceStatus.h
+++ b/include/sick_safetyscanners_base/datastructure/DeviceStatus.h
@@ -35,6 +35,7 @@
#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_DEVICESTATUS_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_DEVICESTATUS_H

+#include <cstdint>
#include <iostream>


diff --git a/include/sick_safetyscanners_base/datastructure/FieldData.h b/include/sick_safetyscanners_base/datastructure/FieldData.h
index 684f0a1..0cd1eb0 100644
--- a/include/sick_safetyscanners_base/datastructure/FieldData.h
+++ b/include/sick_safetyscanners_base/datastructure/FieldData.h
@@ -35,6 +35,7 @@
#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_FIELDDATA_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_FIELDDATA_H

+#include <cstdint>
#include <iostream>
#include <vector>

diff --git a/include/sick_safetyscanners_base/datastructure/FieldSets.h b/include/sick_safetyscanners_base/datastructure/FieldSets.h
index 0d91f7e..ab29dee 100644
--- a/include/sick_safetyscanners_base/datastructure/FieldSets.h
+++ b/include/sick_safetyscanners_base/datastructure/FieldSets.h
@@ -35,6 +35,7 @@
#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_FIELDSETS_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_FIELDSETS_H

+#include <cstdint>
#include <iostream>
#include <vector>

diff --git a/include/sick_safetyscanners_base/datastructure/MonitoringCaseData.h b/include/sick_safetyscanners_base/datastructure/MonitoringCaseData.h
index a8a4fe8..a0b96fd 100644
--- a/include/sick_safetyscanners_base/datastructure/MonitoringCaseData.h
+++ b/include/sick_safetyscanners_base/datastructure/MonitoringCaseData.h
@@ -35,6 +35,7 @@
#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_MONITORINGCASEDATA_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_MONITORINGCASEDATA_H

+#include <cstdint>
#include <iostream>
#include <vector>

diff --git a/include/sick_safetyscanners_base/datastructure/StatusOverview.h b/include/sick_safetyscanners_base/datastructure/StatusOverview.h
index c43c185..b3f9fc0 100644
--- a/include/sick_safetyscanners_base/datastructure/StatusOverview.h
+++ b/include/sick_safetyscanners_base/datastructure/StatusOverview.h
@@ -35,6 +35,7 @@
#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_STATUSOVERVIEW_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_STATUSOVERVIEW_H

+#include <cstdint>
#include <iostream>


diff --git a/include/sick_safetyscanners_base/datastructure/TypeCode.h b/include/sick_safetyscanners_base/datastructure/TypeCode.h
index 4ba2d45..c249ef7 100644
--- a/include/sick_safetyscanners_base/datastructure/TypeCode.h
+++ b/include/sick_safetyscanners_base/datastructure/TypeCode.h
@@ -35,6 +35,7 @@
#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_TYPECODE_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_TYPECODE_H

+#include <cstdint>
#include <iostream>

namespace sick {
diff --git a/include/sick_safetyscanners_base/datastructure/UserName.h b/include/sick_safetyscanners_base/datastructure/UserName.h
index b34d558..cc2ac36 100644
--- a/include/sick_safetyscanners_base/datastructure/UserName.h
+++ b/include/sick_safetyscanners_base/datastructure/UserName.h
@@ -35,6 +35,7 @@
#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_USERNAME_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_USERNAME_H

+#include <cstdint>
#include <iostream>


1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
01-add-cstdint-header.patch
2 changes: 1 addition & 1 deletion debian/rules.em
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export LDFLAGS=
export PKG_CONFIG_PATH=@(InstallationPrefix)/lib/pkgconfig
# Explicitly enable -DNDEBUG, see:
# https://github.com/ros-infrastructure/bloom/issues/327
export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG
export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG -Wno-error=pessimizing-move
ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
BUILD_TESTING_ARG=-DBUILD_TESTING=OFF
endif
Expand Down

0 comments on commit a97c2a6

Please sign in to comment.