[otb] 01/01: generate template files for lintian overrides

Rashad Kanavath rashad-guest at moszumanska.debian.org
Thu Dec 24 12:09:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

rashad-guest pushed a commit to branch master
in repository otb.

commit ca83f53d929601acd8cd256a564590737f3eb6ef
Author: Rashad Kanavath <rashad.kanavath at c-s.fr>
Date:   Thu Dec 24 13:08:43 2015 +0100

    generate template files for lintian overrides
---
 debian/control                                     | 40 +++++++++++++++++++++-
 debian/libotbiomstar.lintian-overrides.in          |  6 ++++
 .../libotbopenthreadsadapters.lintian-overrides.in |  2 ++
 debian/libotbossimplugins.lintian-overrides.in     |  2 ++
 debian/libotbvectordatabase.lintian-overrides.in   |  5 +++
 debian/rules                                       | 10 ++++--
 6 files changed, 62 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 7be6bb2..812cd9e 100644
--- a/debian/control
+++ b/debian/control
@@ -115,6 +115,7 @@ Description: ORFEO Toolbox library - OTBTestDriver
 
 Package: libotbiolum-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -128,6 +129,7 @@ Description: ORFEO Toolbox library - OTBIOLUM
 
 Package: libotbiomstar-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -141,6 +143,7 @@ Description: ORFEO Toolbox library - OTBIOMSTAR
 
 Package: libotbiomw-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -154,6 +157,7 @@ Description: ORFEO Toolbox library - OTBIOMW
 
 Package: libotbioonera-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -167,6 +171,7 @@ Description: ORFEO Toolbox library - OTBIOONERA
 
 Package: libotbiorad-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -180,6 +185,7 @@ Description: ORFEO Toolbox library - OTBIORAD
 
 Package: libotbiotilemap-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -193,6 +199,7 @@ Description: ORFEO Toolbox library - OTBIOTileMap
 
 Package: libotbiogdal-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -206,6 +213,7 @@ Description: ORFEO Toolbox library - OTBIOGDAL
 
 Package: libotbiobsq-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -219,6 +227,7 @@ Description: ORFEO Toolbox library - OTBIOBSQ
 
 Package: libotbiokml-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -232,6 +241,7 @@ Description: ORFEO Toolbox library - OTBIOKML
 
 Package: libotbcurladapters-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -245,6 +255,7 @@ Description: ORFEO Toolbox library - OTBCurlAdapters
 
 Package: libotbopenthreadsadapters-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -258,6 +269,7 @@ Description: ORFEO Toolbox library - OTBOpenThreadsAdapters
 
 Package: libotbossimadapters-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -271,6 +283,7 @@ Description: ORFEO Toolbox library - OTBOssimAdapters
 
 Package: libotbsiftfast-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -284,6 +297,7 @@ Description: ORFEO Toolbox library - OTBSiftFast
 
 Package: libotbossimplugins-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -297,6 +311,7 @@ Description: ORFEO Toolbox library - OTBOssimPlugins
 
 Package: libotbimagemanipulation-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -310,6 +325,7 @@ Description: ORFEO Toolbox library - OTBImageManipulation
 
 Package: libotbimageio-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -323,6 +339,7 @@ Description: ORFEO Toolbox library - OTBImageIO
 
 Package: libotbimagebase-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -336,6 +353,7 @@ Description: ORFEO Toolbox library - OTBImageBase
 
 Package: libotbgdaladapters-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -349,6 +367,7 @@ Description: ORFEO Toolbox library - OTBGdalAdapters
 
 Package: libotbedge-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -362,6 +381,7 @@ Description: ORFEO Toolbox library - OTBEdge
 
 Package: libotbcommandline-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -375,6 +395,7 @@ Description: ORFEO Toolbox library - OTBCommandLine
 
 Package: libotbcommandlineparser-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -388,6 +409,7 @@ Description: ORFEO Toolbox library - OTBCommandLinePaser
 
 Package: libotbcommon-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -401,6 +423,7 @@ Description: ORFEO Toolbox library - OTBCommon
 
 Package: libotbcarto-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -414,6 +437,7 @@ Description: ORFEO Toolbox library - OTBCarto
 
 Package: libotbpolarimetry-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -427,6 +451,7 @@ Description: ORFEO Toolbox library - OTBPolarimetry
 
 Package: libotbstreaming-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -440,6 +465,7 @@ Description: ORFEO Toolbox library - OTBStreaming
 
 Package: libotbextendedfilename-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -453,6 +479,7 @@ Description: ORFEO Toolbox library - OTBExtendedFileName
 
 Package: libotbmathparser-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -466,6 +493,7 @@ Description: ORFEO Toolbox library - OTBMathParser
 
 Package: libotbfuzzy-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -479,6 +507,7 @@ Description: ORFEO Toolbox library - OTBFuzzy
 
 Package: libotbmetadata-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -492,6 +521,7 @@ Description: ORFEO Toolbox library - OTBMetadata
 
 Package: libotbprojection-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -505,6 +535,7 @@ Description: ORFEO Toolbox library - OTBProjection
 
 Package: libotbrcc8-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -518,6 +549,7 @@ Description: ORFEO Toolbox library - OTBRCC8
 
 Package: libotbtestkernel-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -531,6 +563,7 @@ Description: ORFEO Toolbox library - OTBTestKernel
 
 Package: libotbtransform-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -544,6 +577,7 @@ Description: ORFEO Toolbox library - OTBTransform
 
 Package: libotbvectordatabase-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -557,6 +591,7 @@ Description: ORFEO Toolbox library - OTBVectorDataBase
 
 Package: libotbvectordataio-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -570,6 +605,7 @@ Description: ORFEO Toolbox library - OTBVectorDataIO
 
 Package: libotbwavelet-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -583,6 +619,7 @@ Description: ORFEO Toolbox library - OTBWavelet
 
 Package: libotbsupervised-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -596,6 +633,7 @@ Description: ORFEO Toolbox library - OTBSupervised
 
 Package: libotbqtwidget-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -609,6 +647,7 @@ Description: ORFEO Toolbox library - OTBQtWidget
 
 Package: libotbapplicationengine-5.2-1
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -769,4 +808,3 @@ Description: ORFEO Toolbox library metapackage
  in general and for high spatial resolution images in particular.
  .
  This metapackage provides all shared libraries used by OTB.
-
diff --git a/debian/libotbiomstar.lintian-overrides.in b/debian/libotbiomstar.lintian-overrides.in
new file mode 100644
index 0000000..e17c678
--- /dev/null
+++ b/debian/libotbiomstar.lintian-overrides.in
@@ -0,0 +1,6 @@
+# Build uses -D_FORTIFY_SOURCE=2, but hardening-check reports:
+#  Fortify Source functions: no, only unprotected functions found!
+#         unprotected: memmove
+#         unprotected: fread
+#         unprotected: memcpy
+libotbiomstar- at SOVERSION@: hardening-no-fortify-functions usr/lib/*/libOTBIOMSTAR-*
diff --git a/debian/libotbopenthreadsadapters.lintian-overrides.in b/debian/libotbopenthreadsadapters.lintian-overrides.in
new file mode 100644
index 0000000..a354fe5
--- /dev/null
+++ b/debian/libotbopenthreadsadapters.lintian-overrides.in
@@ -0,0 +1,2 @@
+# Empty library with no code. Lintian reports library not linked against libc/
+libotbopenthreadsadapters- at SOVERSION@: library-not-linked-against-libc usr/lib/*/libOTBOpenThreadsAdapters-*.so.*
diff --git a/debian/libotbossimplugins.lintian-overrides.in b/debian/libotbossimplugins.lintian-overrides.in
new file mode 100644
index 0000000..dee696d
--- /dev/null
+++ b/debian/libotbossimplugins.lintian-overrides.in
@@ -0,0 +1,2 @@
+# False positive, string not included in the source.
+libotbossimplugins- at SOVERSION@: spelling-error-in-binary usr/lib/*/libotbossimplugins-* TeH The
diff --git a/debian/libotbvectordatabase.lintian-overrides.in b/debian/libotbvectordatabase.lintian-overrides.in
new file mode 100644
index 0000000..b5cacbb
--- /dev/null
+++ b/debian/libotbvectordatabase.lintian-overrides.in
@@ -0,0 +1,5 @@
+# Build uses -D_FORTIFY_SOURCE=2, but hardening-check reports:
+#  Fortify Source functions: no, only unprotected functions found!
+#         unprotected: strcpy
+#         unprotected: memcpy
+libotbvectordatabase- at SOVERSION@: hardening-no-fortify-functions usr/lib/*/libOTBVectorDataBase-*
diff --git a/debian/rules b/debian/rules
index f2d93be..a61f258 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,6 +21,8 @@ ifndef PKGVERSION
     PKGVERSION=1
 endif
 
+TEMPLATES=$(wildcard debian/*lintian-overrides.in)
+
 OTB_VERSION_MAJOR  = $(shell sed -ne 's/set(OTB_VERSION_MAJOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
 OTB_VERSION_MINOR  = $(shell sed -ne 's/set(OTB_VERSION_MINOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
 OTB_VERSION_PATCH  = $(shell sed -ne 's/set(OTB_VERSION_PATCH "\([0-9]*\)")/\1/p' CMakeLists.txt)
@@ -54,8 +56,12 @@ pkglib:=lib$(DEBPKGNAME)
 pkgdev:=$(pkglib)-dev
 
 templates:
-	 sed -e 's/@SOVERSION@/$(OTB_VERSION_SONAME)-1/g' debian/control.in > debian/control
-	 sed -e 's/@SOVERSION@/$(OTB_VERSION_SONAME)/g' debian/libotb-dev.install.in > debian/libotb-dev.install
+
+	for TEMPLATE in $(TEMPLATES) ; do \
+		sed -e 's/@SOVERSION@/$(OTB_VERSION_SONAME)-1/g' $$TEMPLATE > `echo $$TEMPLATE | sed 's/.lintian-overrides.in$$/-$(OTB_VERSION_SONAME)-1.lintian-overrides/'` ; \
+  done
+	sed -e 's/@SOVERSION@/$(OTB_VERSION_SONAME)-1/g' debian/control.in > debian/control
+	sed -e 's/@SOVERSION@/$(OTB_VERSION_SONAME)/g' debian/libotb-dev.install.in > debian/libotb-dev.install
 
 # rather use all libs since the installed libs are spread over several packages
 OTB_LIB_DIRS = $(CURDIR)/debian/tmp/usr/lib

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/otb.git



More information about the Pkg-grass-devel mailing list