Source: opencv
Severity: wishlist
Tags: patch

Dear Maintainer,

Ssymbol debug packages are missing for developpers. Pease consider my patch to
have them.

Regards,
Samuel



-- System Information:
Debian Release: stretch/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500,
'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
diff --git a/debian/control b/debian/control
index a290251..db7cc6c 100644
--- a/debian/control
+++ b/debian/control
@@ -287,6 +287,26 @@ Description: development files for libopencv-core
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-core-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-core2.4 (= ${binary:Version})
+Description: development files for libopencv-core
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) core.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-core2.4
 Section: libs
 Architecture: any
@@ -327,6 +347,26 @@ Description: development files for libopencv-ml
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-ml-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-ml2.4 (= ${binary:Version})
+Description: development files for libopencv-core
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) Machine Learning library.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-ml2.4
 Section: libs
 Architecture: any
@@ -369,6 +409,26 @@ Description: development files for libopencv-imgproc
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-imgproc-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-imgproc2.4 (= ${binary:Version})
+Description: development files for libopencv-imgproc
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) Image Processing runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-imgproc2.4
 Section: libs
 Architecture: any
@@ -411,6 +471,26 @@ Description: development files for libopencv-video
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-video-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-video2.4 (= ${binary:Version})
+Description: development files for libopencv-video
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) Video analysis runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-video2.4
 Section: libs
 Architecture: any
@@ -453,6 +533,26 @@ Description: development files for libopencv-objdetect
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-objdetect-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-objdetect2.4 (= ${binary:Version})
+Description: development files for libopencv-objdetect
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) Object Detection runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-objdetect2.4
 Section: libs
 Architecture: any
@@ -507,6 +607,26 @@ Description: development files for libopencv-highgui
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-highgui-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-highgui2.4 (= ${binary:Version})
+Description: development files for libopencv-highgui
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) High-level GUI and Media I/O runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-highgui2.4
 Section: libs
 Architecture: any
@@ -550,6 +670,26 @@ Description: development files for libopencv-calib3d
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-calib3d-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-calib3d2.4 (= ${binary:Version})
+Description: development files for libopencv-calib3d
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) Camera Calibration runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-calib3d2.4
 Section: libs
 Architecture: any
@@ -593,6 +733,26 @@ Description: development files for libopencv-flann
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-flann-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-flann2.4 (= ${binary:Version})
+Description: development files for libopencv-flann
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) clustering and search in Multi-Dimensional spaces runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-flann2.4
 Section: libs
 Architecture: any
@@ -637,6 +797,26 @@ Description: development files for libopencv-features2d
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-features2d-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-features2d2.4 (= ${binary:Version})
+Description: development files for libopencv-features2d
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) Feature Detection and Descriptor Extraction runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-features2d2.4
 Section: libs
 Architecture: any
@@ -683,6 +863,26 @@ Description: development files for libopencv-legacy
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-legacy-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-legacy2.4 (= ${binary:Version})
+Description: development files for libopencv-legacy
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) legacy runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-legacy2.4
 Section: libs
 Architecture: any
@@ -732,6 +932,26 @@ Description: development files for libopencv-contrib
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-contrib-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-contrib2.4 (= ${binary:Version})
+Description: development files for libopencv-contrib
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) contrib runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-contrib2.4
 Section: libs
 Architecture: any
@@ -778,6 +998,26 @@ Description: development files for libopencv-ts2.4
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-ts-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-ts2.4 (= ${binary:Version})
+Description: development files for libopencv-ts
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) ts runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-ts2.4
 Section: libs
 Architecture: any
@@ -820,6 +1060,26 @@ Description: development files for libopencv-photo2.4
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-photo-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-photo2.4 (= ${binary:Version})
+Description: development files for libopencv-photo
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) computational photography runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-photo2.4
 Section: libs
 Architecture: any
@@ -867,6 +1127,26 @@ Description: development files for libopencv-videostab2.4
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-videostab-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-videostab2.4 (= ${binary:Version})
+Description: development files for libopencv-videostab
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) video stabilization runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-videostab2.4
 Section: libs
 Architecture: any
@@ -914,6 +1194,26 @@ Description: development files for libopencv-stitching2.4
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-stitching-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-stitching2.4 (= ${binary:Version})
+Description: development files for libopencv-stitching
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) image stitching runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-stitching2.4
 Section: libs
 Architecture: any
@@ -956,6 +1256,26 @@ Description: development files for libopencv-gpu2.4
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-gpu-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-gpu2.4 (= ${binary:Version})
+Description: development files for libopencv-gpu
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) GPU-accelerated runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-gpu2.4
 Section: libs
 Architecture: any
@@ -1000,6 +1320,26 @@ Description: development files for libopencv-superres2.4
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-superres-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-superres2.4 (= ${binary:Version})
+Description: development files for libopencv-superres
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) Super Resolution runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-superres2.4
 Section: libs
 Architecture: any
@@ -1048,6 +1388,26 @@ Description: development files for libopencv-ocl2.4
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: libopencv-ocl-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: ${misc:Depends},
+ libopencv-ocl2.4 (= ${binary:Version})
+Description: development files for libopencv-ocl
+ This package contains detached debugging symbols for OpenCV (Open Computer
+ Vision) OpenCL runtime libraries.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
+
 Package: libopencv-ocl2.4
 Section: libs
 Architecture: any
diff --git a/debian/rules b/debian/rules
index 22c0cb6..1a3fe61 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+.PHONY: override_dh_strip
+
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie,+fortify
 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
@@ -74,6 +76,26 @@ override_dh_clean:
 override_dh_auto_configure:
 	dh_auto_configure -- $(CMAKE_FLAGS)
 
+override_dh_strip:
+	dh_strip -plibopencv-core2.4 --dbg-package=libopencv-core-dbg
+	dh_strip -plibopencv-ml2.4 --dbg-package=libopencv-ml-dbg
+	dh_strip -plibopencv-imgproc2.4 --dbg-package=libopencv-imgproc-dbg
+	dh_strip -plibopencv-video2.4 --dbg-package=libopencv-video-dbg
+	dh_strip -plibopencv-objdetect2.4 --dbg-package=libopencv-objdetect-dbg
+	dh_strip -plibopencv-highgui2.4 --dbg-package=libopencv-highgui-dbg
+	dh_strip -plibopencv-calib3d2.4 --dbg-package=libopencv-calib3d-dbg
+	dh_strip -plibopencv-flann2.4 --dbg-package=libopencv-flann-dbg
+	dh_strip -plibopencv-featured2d2.4 --dbg-package=libopencv-features2d-dbg
+	dh_strip -plibopencv-legacy2.4 --dbg-package=libopencv-legacy-dbg
+	dh_strip -plibopencv-contrib2.4 --dbg-package=libopencv-contrib-dbg
+	dh_strip -plibopencv-ts2.4 --dbg-package=libopencv-ts-dbg
+	dh_strip -plibopencv-photo2.4 --dbg-package=libopencv-photo-dbg
+	dh_strip -plibopencv-videostab2.4 --dbg-package=libopencv-videostab-dbg
+	dh_strip -plibopencv-stitching2.4 --dbg-package=libopencv-stitching-dbg
+	dh_strip -plibopencv-gpu2.4 --dbg-package=libopencv-gpu-dbg
+	dh_strip -plibopencv-superres2.4 --dbg-package=libopencv-superres-dbg
+	dh_strip -plibopencv-ocl2.4 --dbg-package=libopencv-ocl-dbg
+
 override_dh_install:
 	-rm --verbose -rf debian/tmp/usr/share/opencv/samples/octave
 	-rm --verbose -rf debian/tmp/usr/share/opencv/samples/c/cvsample.dsp

Reply via email to