]> git.puffer.fish Git - mirror/frr.git/commitdiff
debianpkg: update to Debian Policy version 4.2.1
authorDavid Lamparter <equinox@diac24.net>
Wed, 24 Oct 2018 18:57:16 +0000 (20:57 +0200)
committerDavid Lamparter <equinox@diac24.net>
Tue, 19 Feb 2019 20:30:51 +0000 (21:30 +0100)
This bundles up a few smaller changes prompted by walking through the
upgrade checklist from 3.9.6 to 4.2.1.

Signed-off-by: David Lamparter <equinox@diac24.net>
debianpkg/README.Debian
debianpkg/README.Maintainer
debianpkg/control
debianpkg/frr.preinst
debianpkg/rules

index 09313ac6d5cbe2f640f636a42b20a4b62f0de597..99003b7d088fcb5af74fbd1c9aa35a80121fa80b 100644 (file)
@@ -77,6 +77,16 @@ build FRR yourself with SNMP with
 Just distributing it in binary form, linked against OpenSSL, is forbidden.
 
 
+* Debian Policy compliance notes
+================================
+
+- 4.15 Reproducibility
+  FRR build is reproducible as outlined in version 4.2.1 of the Policy, but
+  won't be reproducible when the build directory is varied.  This is because
+  configure parameters are burned into the executables which includes CFLAGS
+  like -fdebug-prefix-map=/build/directory/...
+
+
 * Daemon selection:
 ===================
 
index 84b68e1949800654d53331e715197a80b91d9072..9030022c5e9ee7153e6f0aea3edb7dd0e682ecae 100644 (file)
@@ -1,3 +1,13 @@
+#
+# TODO
+#
+
+- check that tests/{control,daemons} actually do something useful and sensible
+- /usr/share/doc/frr-doc should be named just frr?
+- debian/watch pgpsigurlmangle / signing-key
+- multiarch for DSOs?
+- frr try-restart
+
 #
 # To check if the patches still apply on new upstream versions:
 #
index 7c31fad2529d4a5b9a76f786a726afa7f0cf6f74..f9f22f66afc63d55518c910d5ef755ad0b0691da 100644 (file)
@@ -3,7 +3,6 @@ Section: net
 Priority: optional
 Maintainer: Nobody <nobody@frrouting.org>
 Uploaders: Nobody <nobody@frrouting.org>
-XSBC-Original-Maintainer: <maintainers@frrouting.org>
 Build-Depends:
  autotools-dev,
  bison,
@@ -31,8 +30,10 @@ Build-Depends:
  python (>= 2.7) | python3,
  python-sphinx | python3-sphinx,
  texinfo (>= 4.7)
-Standards-Version: 3.9.6
+Standards-Version: 4.2.1
 Homepage: http://www.frrouting.org/
+Vcs-Browser: https://github.com/FRRouting/frr/
+Vcs-Git: https://github.com/FRRouting/frr.git
 
 Package: frr
 Architecture: any
@@ -43,6 +44,7 @@ Depends:
  logrotate (>= 3.2-11)
 Pre-Depends: adduser
 Recommends: frr-pythontools
+Suggests: frr-doc
 Conflicts: zebra, zebra-pj, quagga
 Replaces: zebra, zebra-pj
 Description: BGP/OSPF/RIP/RIPng/ISIS/PIM/LDP routing daemon forked from Quagga
@@ -83,7 +85,7 @@ Architecture: any
 Depends:
  ${misc:Depends},
  frr (= ${binary:Version})
-Priority: extra
+Priority: optional
 Section: debug
 Description: BGP/OSPF/RIP/RIPng/ISIS/PIM/LDP routing daemon (debug symbols)
  This package provides debugging symbols for all binary packages built
index 477e690d0aac4896bf760d605d856bf590c00e55..1c141f37f9654450bd36dfee0de2019a4e84a32c 100644 (file)
@@ -20,7 +20,7 @@ if ! getent passwd frr >/dev/null; then
         adduser \
           --system \
           --ingroup frr \
-          --home /var/run/frr/ \
+          --home /nonexistent \
           --gecos "Frr routing suite" \
           --shell /bin/false \
           frr  >/dev/null
index a7f8b8c454516622ca74177e5a01d9e97706d57a..27757863ee92f0e4f46c5918da26d1eb010f129b 100755 (executable)
@@ -34,9 +34,7 @@ GENERATE_PDF ?= 0
 #
 ####################################
 
-export DH_VERBOSE=1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-export DH_OPTIONS=-v
 
 ifeq ($(WANT_OSPFAPI), 1)
   USE_OSPFAPI=--enable-ospfapi=yes
@@ -79,15 +77,29 @@ endif
 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
   DEBIAN_JOBS := $(subst parallel=,,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 endif
-
 ifdef DEBIAN_JOBS
 MAKEFLAGS += -j$(DEBIAN_JOBS)
 endif
 
+ifneq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
+MAKE_SILENT="V=0"
+export DH_VERBOSE=0
+else
+MAKE_SILENT="V=1"
+export DH_VERBOSE=1
+export DH_OPTIONS=-v
+endif
+
 #
 # build profiles
 #
 
+ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
+  USE_DOC=--enable-doc
+else
+  USE_DOC=--disable-doc
+endif
+
 ifeq ($(filter pkg.frr.rtrlib,$(DEB_BUILD_PROFILES)),)
   USE_RPKI=--disable-rpki
 else
@@ -118,6 +130,8 @@ override_dh_auto_configure:
                --localstatedir=/var/run/frr \
                --sbindir=/usr/lib/frr \
                --sysconfdir=/etc/frr \
+               --with-vtysh-pager=/usr/bin/pager \
+               $(USE_DOC) \
                $(USE_SNMP) \
                $(USE_OSPFAPI) \
                $(USE_MULTIPATH) \
@@ -158,6 +172,9 @@ endif
        rm debian/tmp/usr/lib/frr/modules/*.la
        rm debian/tmp/usr/lib/frr/libyang_plugins/*.la
 
+override_dh_auto_build:
+       dh_auto_build -- $(MAKE_SILENT)
+
 override_dh_auto_clean:
 # we generally do NOT want a full distclean since that wipes both
 # debianpkg/changelog and config.version