From 5d583028beaf5ee4f640071722c6b20943c6fc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=88=90=E5=88=9A?= Date: Thu, 21 Dec 2023 22:34:25 +0800 Subject: [PATCH] fix: build error uint64_t was not declared inthis scope --- debian/changelog | 6 ++++++ debian/patches/fix-gcc-13-build-error.patch | 11 +++++++++++ debian/patches/series | 1 + debian/source/format | 2 +- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 debian/patches/fix-gcc-13-build-error.patch create mode 100644 debian/patches/series diff --git a/debian/changelog b/debian/changelog index 0512a5ad..512d05e4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +ncnn (1.0.20230223-0deepin1) unstable; urgency=medium + + * add fix-gcc-13-build-error.patch. + + -- LiChengGang Thu, 21 Dec 2023 22:31:49 +0800 + ncnn (1.0.20230223) unstable; urgency=medium * Sync to Upstream diff --git a/debian/patches/fix-gcc-13-build-error.patch b/debian/patches/fix-gcc-13-build-error.patch new file mode 100644 index 00000000..9a60fe15 --- /dev/null +++ b/debian/patches/fix-gcc-13-build-error.patch @@ -0,0 +1,11 @@ + +--- ncnn-1.0.20230223.orig/tools/darknet/darknet2ncnn.cpp ++++ ncnn-1.0.20230223/tools/darknet/darknet2ncnn.cpp +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + #define OUTPUT_LAYER_MAP 0 //enable this to generate darknet style layer output + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 00000000..7fbe3470 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-gcc-13-build-error.patch diff --git a/debian/source/format b/debian/source/format index 89ae9db8..163aaf8d 100644 --- a/debian/source/format +++ b/debian/source/format @@ -1 +1 @@ -3.0 (native) +3.0 (quilt)