]> git.proxmox.com Git - mirror_frr.git/commitdiff
build, doc: extricate `--enable-systemd`
authorDavid Lamparter <equinox@diac24.net>
Mon, 19 Apr 2021 08:35:53 +0000 (10:35 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 29 Jun 2021 15:57:09 +0000 (17:57 +0200)
Ouch, that is a *lot* of places to update...

Signed-off-by: David Lamparter <equinox@diac24.net>
24 files changed:
alpine/APKBUILD.in
configure.ac
debian/README.Debian
debian/control
debian/rules
doc/developer/building-frr-for-archlinux.rst
doc/developer/building-frr-for-centos7.rst
doc/developer/building-frr-for-centos8.rst
doc/developer/building-frr-for-debian8.rst
doc/developer/building-frr-for-debian9.rst
doc/developer/building-frr-for-fedora.rst
doc/developer/building-frr-for-opensuse.rst
doc/developer/building-frr-for-ubuntu1604.rst
doc/developer/building-frr-for-ubuntu1804.rst
doc/developer/building-frr-for-ubuntu2004.rst
doc/developer/include-compile.rst
doc/developer/packaging-debian.rst
doc/developer/packaging-redhat.rst
doc/user/installation.rst
docker/centos-7/Dockerfile
docker/centos-8/Dockerfile
docker/ubuntu18-ci/Dockerfile
docker/ubuntu20-ci/Dockerfile
redhat/frr.spec.in

index dfedf0b52b27763c60d09832f52be6e91df32a3d..e6776cb3a20fbe64d84eb0ea39257c91469b6aa8 100644 (file)
@@ -41,7 +41,6 @@ build() {
                --sysconfdir=$_sysconfdir \
                --libdir=$_libdir \
                --localstatedir=$_localstatedir \
-               --enable-systemd=no \
                --enable-rpki \
                --enable-vtysh \
                --enable-multipath=64 \
index 0ea209bbfad614c5ae28d6c945a291ec173169b8..a39549cdb7578334225f50609ec82197541119b2 100644 (file)
@@ -668,8 +668,6 @@ AC_ARG_ENABLE([fpm],
   AS_HELP_STRING([--enable-fpm], [enable Forwarding Plane Manager support]))
 AC_ARG_ENABLE([pcep],
   AS_HELP_STRING([--enable-pcep], [enable PCEP support for pathd]))
-AC_ARG_ENABLE([systemd],
-  AS_HELP_STRING([--enable-systemd], [enable Systemd support]))
 AC_ARG_ENABLE([werror],
   AS_HELP_STRING([--enable-werror], [enable -Werror (recommended for developers only)]))
 AC_ARG_ENABLE([cumulus],
@@ -764,19 +762,6 @@ case "${enable_cpu_time}" in
   ;;
 esac
 
-case "${enable_systemd}" in
-  "no") ;;
-  "yes")
-  AC_CHECK_LIB([systemd], [sd_notify], [LIBS="$LIBS -lsystemd"])
-  if test "$ac_cv_lib_systemd_sd_notify" = "no"; then
-    AC_MSG_ERROR([enable systemd has been specified but systemd development env not found on your system])
-  else
-    AC_DEFINE([HAVE_SYSTEMD], [1], [Compile systemd support in])
-  fi
-  ;;
-  "*") ;;
-esac
-
 if test "$enable_rr_semantics" != "no" ; then
   AC_DEFINE([HAVE_V6_RR_SEMANTICS], [1], [Compile in v6 Route Replacement Semantics])
 fi
index a23a0efcacc5c7832752180a1511a57cb542b721..53fb6c9d0e01ef345a69ead4753f1ffecf793f9b 100644 (file)
@@ -31,10 +31,6 @@ The following Build Profiles have been added:
   controls whether the RPKI module is built.
   Will be enabled by default at some point, adds some extra dependencies.
 
-- pkg.frr.nosystemd
-  Disables both systemd unit file installation as well as watchfrr sd_notify
-  support at startup.  Removes libsystemd dependency.
-
 Note that all options have a "no" form;  if you want to have your decision
 be sticky regardless of changes to what it defaults to, then always use one
 of the two.  For example, all occurrences of <pkg.frr.rtrlib> will at some
@@ -43,10 +39,6 @@ point be replaced with <!pkg.frr.nortrlib>.
 The main frr package has the exact same contents regardless of rtrlib or snmp
 choices.  The options only control frr-snmp and frr-rpki-rtrlib packages.
 
-The main frr package does NOT have the same contents if pkg.frr.nosystemd is
-used.  This option should only be used for systems that do not have systemd,
-e.g. Ubuntu 14.04.
-
 
 * Debian Policy compliance notes
 ================================
index 0bbe99b312e40f269ff060752e897b42bf670c72..0e67ff3730061fe695a1840dcd0545eae30ea5aa 100644 (file)
@@ -22,7 +22,6 @@ Build-Depends: bison,
                librtr-dev <!pkg.frr.nortrlib>,
                libsnmp-dev,
                libssh-dev <!pkg.frr.nortrlib>,
-               libsystemd-dev <!pkg.frr.nosystemd>,
                libyang2-dev,
                lsb-base,
                pkg-config,
index 93d0cdb2a09b3fbd9510006163a46e5b87122197..0fa9c3a3b00cdd33fd31ce13b038ac53b5a1f37c 100755 (executable)
@@ -21,14 +21,6 @@ else
   CONF_RPKI=--disable-rpki
 endif
 
-ifeq ($(filter pkg.frr.nosystemd,$(DEB_BUILD_PROFILES)),)
-  DH_WITHOUT_SYSTEMD=
-  CONF_SYSTEMD=--enable-systemd=yes
-else
-  DH_WITHOUT_SYSTEMD=--without=systemd
-  CONF_SYSTEMD=--enable-systemd=no
-endif
-
 ifeq ($(filter pkg.frr.lua,$(DEB_BUILD_PROFILES)),)
   CONF_LUA=--disable-scripting
 else
@@ -38,7 +30,7 @@ endif
 export PYTHON=python3
 
 %:
-       dh $@ $(DH_WITHOUT_SYSTEMD)
+       dh $@
 
 override_dh_auto_configure:
        $(shell dpkg-buildflags --export=sh); \
@@ -52,7 +44,6 @@ override_dh_auto_configure:
                LIBTOOLFLAGS="-rpath /usr/lib/$(DEB_HOST_MULTIARCH)/frr" \
                --disable-dependency-tracking \
                \
-               $(CONF_SYSTEMD) \
                $(CONF_RPKI) \
                $(CONF_LUA) \
                --with-libpam \
@@ -80,9 +71,7 @@ override_dh_auto_install:
        sed -e '1c #!/usr/bin/python3' -i debian/tmp/usr/lib/frr/generate_support_bundle.py
 
 # let dh_systemd_* and dh_installinit do their thing automatically
-ifeq ($(filter pkg.frr.nosystemd,$(DEB_BUILD_PROFILES)),)
        cp tools/frr.service debian/frr.service
-endif
        cp tools/frrinit.sh debian/frr.init
        -rm -f debian/tmp/usr/lib/frr/frr
 
index e589a9f72403ff7b033419c904d0c5fc64613bd2..af1677e89e4a6d39a95905795b2a8f58ebc029fd 100644 (file)
@@ -10,8 +10,8 @@ Installing Dependencies
    sudo pacman -S \
       git autoconf automake libtool make cmake pcre readline texinfo \
       pkg-config pam json-c bison flex python-pytest \
-      c-ares python systemd python2-ipaddress python-sphinx \
-      systemd-libs net-snmp perl libcap libelf
+      c-ares python python2-ipaddress python-sphinx \
+      net-snmp perl libcap libelf
 
 .. include:: building-libyang.rst
 
index 93b9993a3868b0aca10d01d22185bd5c24d7feaa..ce11126f70c642b242edcbe4bdda528d7c364100 100644 (file)
@@ -21,7 +21,7 @@ Add packages:
     sudo yum install git autoconf automake libtool make \
       readline-devel texinfo net-snmp-devel groff pkgconfig \
       json-c-devel pam-devel bison flex pytest c-ares-devel \
-      python-devel systemd-devel python-sphinx libcap-devel \
+      python-devel python-sphinx libcap-devel \
       elfutils-libelf-devel
 
 .. include:: building-libyang.rst
@@ -66,7 +66,6 @@ an example.)
         --enable-user=frr \
         --enable-group=frr \
         --enable-vty-group=frrvty \
-       --enable-systemd=yes \
         --disable-ldpd \
         --enable-fpm \
         --with-pkg-git-version \
index 65c93286b7ac5a55ff1c7aa49b2eb6616bb2eaf6..109a7866d9f382415630a762bddc8636188c6dde 100644 (file)
@@ -14,7 +14,7 @@ Add packages:
     sudo dnf install --enablerepo=PowerTools git autoconf pcre-devel \
       automake libtool make readline-devel texinfo net-snmp-devel pkgconfig \
       groff pkgconfig json-c-devel pam-devel bison flex python2-pytest \
-      c-ares-devel python2-devel systemd-devel libcap-devel \
+      c-ares-devel python2-devel libcap-devel \
       elfutils-libelf-devel
 
 .. include:: building-libyang.rst
@@ -59,7 +59,6 @@ an example.)
         --enable-user=frr \
         --enable-group=frr \
         --enable-vty-group=frrvty \
-       --enable-systemd=yes \
         --disable-ldpd \
         --enable-fpm \
         --with-pkg-git-version \
index 475e0303fca092f65f375057c1e04848d9018f16..5e58854ed7ab1b6e4bffa26b080f5245461e434f 100644 (file)
@@ -17,7 +17,7 @@ Add packages:
 
    sudo apt-get install git autoconf automake libtool make \
       libreadline-dev texinfo libjson-c-dev pkg-config bison flex python3-pip \
-      libc-ares-dev python3-dev python3-sphinx build-essential libsystemd-dev \
+      libc-ares-dev python3-dev python3-sphinx build-essential \
       libsnmp-dev libcap-dev libelf-dev
 
 Install newer pytest (>3.0) from pip
index 1981127b3d44662f45de16286370bcb84a4864d4..f8d8025f6293446be5db891f6c06388e00451f1a 100644 (file)
@@ -11,7 +11,7 @@ Add packages:
    sudo apt-get install git autoconf automake libtool make \
      libreadline-dev texinfo libjson-c-dev pkg-config bison flex \
      libc-ares-dev python3-dev python3-pytest python3-sphinx build-essential \
-     libsnmp-dev libsystemd-dev libcap-dev libelf-dev
+     libsnmp-dev libcap-dev libelf-dev
 
 .. include:: building-libyang.rst
 
index 5fecd8a826102396a763bf6b26eceeda5bd5b5d1..6ce76ba158e488fbed8ea7e3a98b53f279368160 100644 (file)
@@ -14,7 +14,7 @@ Installing Dependencies
    sudo dnf install git autoconf automake libtool make \
      readline-devel texinfo net-snmp-devel groff pkgconfig json-c-devel \
      pam-devel python3-pytest bison flex c-ares-devel python3-devel \
-     python3-sphinx perl-core patch systemd-devel libcap-devel \
+     python3-sphinx perl-core patch libcap-devel \
      elfutils-libelf-devel
 
 .. include:: building-libyang.rst
index 4e886e9c2506b3c91195e0d0e83e728e4e21b606..ee6a36a14bab9bd8dea947f00ccd8087f8013227 100644 (file)
@@ -13,7 +13,7 @@ Installing Dependencies
    zypper in  git autoconf automake libtool make   \
      readline-devel texinfo net-snmp-devel groff pkgconfig libjson-c-devel\
      pam-devel python3-pytest bison flex c-ares-devel python3-devel\
-     python3-Sphinx perl patch systemd-devel libcap-devel libyang-devel \
+     python3-Sphinx perl patch libcap-devel libyang-devel \
      libelf-devel
 
 Building & Installing FRR
index 2cb9536f9b2796c6ebb0ee9ee5dbfbe9785b1464..d79545c859b00262238b73e6940c88101fc138eb 100644 (file)
@@ -13,8 +13,8 @@ Installing Dependencies
    apt-get install \
       git autoconf automake libtool make libreadline-dev texinfo \
       pkg-config libpam0g-dev libjson-c-dev bison flex python3-pytest \
-      libc-ares-dev python3-dev libsystemd-dev python-ipaddress python3-sphinx \
-      install-info build-essential libsystemd-dev libsnmp-dev perl libcap-dev \
+      libc-ares-dev python3-dev python-ipaddress python3-sphinx \
+      install-info build-essential libsnmp-dev perl libcap-dev \
       libelf-dev
 
 .. include:: building-libyang.rst
index eb3991c139e00c06aded6a984641486de7518bfd..39a17fc01c46949ecc8c9174d3452bc11f3d5af0 100644 (file)
@@ -13,8 +13,8 @@ Installing Dependencies
    sudo apt-get install \
       git autoconf automake libtool make libreadline-dev texinfo \
       pkg-config libpam0g-dev libjson-c-dev bison flex python3-pytest \
-      libc-ares-dev python3-dev libsystemd-dev python-ipaddress python3-sphinx \
-      install-info build-essential libsystemd-dev libsnmp-dev perl libcap-dev \
+      libc-ares-dev python3-dev python-ipaddress python3-sphinx \
+      install-info build-essential libsnmp-dev perl libcap-dev \
       libelf-dev
 
 .. include:: building-libyang.rst
index 58d72e2891c670896806fecc3188fb04e0c6ae85..92ddead4a50a14c46c75b6eff1a67bfa6e12e469 100644 (file)
@@ -13,8 +13,8 @@ Installing Dependencies
    sudo apt-get install \
       git autoconf automake libtool make libreadline-dev texinfo \
       pkg-config libpam0g-dev libjson-c-dev bison flex python3-pytest \
-      libc-ares-dev python3-dev libsystemd-dev python-ipaddress python3-sphinx \
-      install-info build-essential libsystemd-dev libsnmp-dev perl \
+      libc-ares-dev python3-dev python-ipaddress python3-sphinx \
+      install-info build-essential libsnmp-dev perl \
       libcap-dev python2 libelf-dev
 
 Note that Ubuntu 20 no longer installs python 2.x, so it must be
index d9fa260221744027f769bf0b88df2f95d39d67b3..513cac61797a92962477ca0ae9327d750aa1ad27 100644 (file)
@@ -2,11 +2,6 @@ Clone the FRR git repo and use the included ``configure`` script to configure
 FRR's build time options to your liking. The full option listing can be
 obtained by running ``./configure -h``. The options shown below are examples.
 
-.. note::
-
-   If your platform uses ``systemd``, please make sure to add
-   ``--enable-systemd=yes`` to your configure options.
-
 .. code-block:: console
 
    git clone https://github.com/frrouting/frr.git frr
index b57286d5a1ecd57c36ef5d468866dadc736eedaa..be05d599efd02d41cbf376d92459664108725be7 100644 (file)
@@ -56,7 +56,7 @@ buster.)
    Where `$options` may contain any or all of the following items:
 
    * build profiles specified with ``-P``, e.g.
-     ``-Ppkg.frr.nortrlib,pkg.frr.nosystemd``.
+     ``-Ppkg.frr.nortrlib,pkg.frr.rtrlib``.
      Multiple values are separated by commas and there must not be a space
      after the ``-P``.
 
@@ -67,14 +67,6 @@ buster.)
      +================+===================+=========================================+
      | pkg.frr.rtrlib | pkg.frr.nortrlib  | builds frr-rpki-rtrlib package (or not) |
      +----------------+-------------------+-----------------------------------------+
-     | n/a            | pkg.frr.nosystemd | removes libsystemd dependency and       |
-     |                |                   | disables unit file installation         |
-     +----------------+-------------------+-----------------------------------------+
-
-     .. note::
-
-        The ``pkg.frr.nosystemd`` option is only intended to support Ubuntu
-        14.04 (and should be enabled when building for that.)
 
    * the ``-uc -us`` options to disable signing the packages with your GPG key
 
index 458cfa0ad47d45d3b1ad4c71ac7a2d85be636965..9e64b912f3e4af65566626fd137222a81cf0783e 100644 (file)
@@ -18,10 +18,6 @@ Tested on CentOS 6, CentOS 7, CentOS 8 and Fedora 24.
 
       yum install rpm-build net-snmp-devel pam-devel libcap-devel
 
-   If your platform uses systemd::
-
-      yum install systemd-devel
-
    For CentOS 7 and CentOS 8, the package will be built using python3
    and requires additional python3 packages::
 
index 63254555d907c715c5caac15929140da26d65a5a..fdf5bab9c9478057a03e06acd911606d15260655 100644 (file)
@@ -146,11 +146,6 @@ options from the list below.
    software available on your machine.  This is needed for systemd integration, if you
    disable watchfrr you cannot have any systemd integration.
 
-.. option:: --enable-systemd
-
-   Build watchfrr with systemd integration, this will allow FRR to communicate with
-   systemd to tell systemd if FRR has come up properly.
-
 .. option:: --enable-werror
 
    Build with all warnings converted to errors as a compile option.  This
@@ -404,6 +399,12 @@ options to the configuration script.
 
    Set StrongSWAN vici interface socket path [/var/run/charon.vici].
 
+.. note::
+
+   The former ``--enable-systemd`` option does not exist anymore.  Support for
+   systemd is now always available through built-in functions, without
+   depending on libsystemd.
+
 Python dependency, documentation and tests
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
index 303a33fe4ac16c7aae28cc62f1b2d0a45723953f..73097df8fa1fbd9b71fdfc8ca1120e3f71897619 100644 (file)
@@ -4,7 +4,7 @@ RUN yum install -y epel-release
 RUN yum install -y rpm-build autoconf automake libtool make \
         readline-devel texinfo net-snmp-devel groff pkgconfig \
         json-c-devel pam-devel bison flex pytest c-ares-devel \
-        python3-devel python3-sphinx systemd-devel libcap-devel \
+        python3-devel python3-sphinx libcap-devel \
         https://ci1.netdef.org/artifact/LIBYANG-LIBYANGV2/shared/build-2/CentOS-7-x86_64-Packages/libyang2-2.0.0.10.g2eb910e4-1.el7.x86_64.rpm \
         https://ci1.netdef.org/artifact/LIBYANG-LIBYANGV2/shared/build-2/CentOS-7-x86_64-Packages/libyang2-devel-2.0.0.10.g2eb910e4-1.el7.x86_64.rpm \
         https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm \
index 8a0c28e13bca013c24050412e5ac831581fbf57c..71378c24514c45f877703ac622f41825242ab8a1 100644 (file)
@@ -4,7 +4,7 @@ FROM centos:centos8 as centos-8-builder
 RUN dnf install --enablerepo=powertools -y rpm-build git autoconf pcre-devel \
         automake libtool make readline-devel texinfo net-snmp-devel pkgconfig \
         groff pkgconfig json-c-devel pam-devel bison flex python3-pytest \
-        c-ares-devel python3-devel python3-sphinx systemd-devel libcap-devel platform-python-devel \
+        c-ares-devel python3-devel python3-sphinx libcap-devel platform-python-devel \
         https://ci1.netdef.org/artifact/LIBYANG-LIBYANGV2/shared/build-2/CentOS-8-x86_64-Packages/libyang2-2.0.0.10.g2eb910e4-1.el8.x86_64.rpm \
         https://ci1.netdef.org/artifact/LIBYANG-LIBYANGV2/shared/build-2/CentOS-8-x86_64-Packages/libyang2-devel-2.0.0.10.g2eb910e4-1.el8.x86_64.rpm \
         https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm \
index 680b9172ad199644ba5f8cb879327c07893caf2f..766f06dfc22b49d3b953c78bce4e54db0de6e97b 100644 (file)
@@ -7,8 +7,8 @@ RUN apt update && \
     apt-get install -y \
       git autoconf automake libtool make libreadline-dev texinfo \
       pkg-config libpam0g-dev libjson-c-dev bison flex python3-pytest \
-      libc-ares-dev python3-dev libsystemd-dev python-ipaddress python3-sphinx \
-      install-info build-essential libsystemd-dev libsnmp-dev perl libcap-dev \
+      libc-ares-dev python3-dev python-ipaddress python3-sphinx \
+      install-info build-essential libsnmp-dev perl libcap-dev \
       libelf-dev \
       sudo gdb iputils-ping time \
       mininet python-pip iproute2 iperf && \
index 8b7557db1dc187be67b124897a06ebd986c2f092..c94a31173a71c2ed8aff8ccc38f5a81afdc16db0 100644 (file)
@@ -7,8 +7,8 @@ RUN apt update && \
     apt-get install -y \
       git autoconf automake libtool make libreadline-dev texinfo \
       pkg-config libpam0g-dev libjson-c-dev bison flex python3-pytest \
-      libc-ares-dev python3-dev libsystemd-dev python-ipaddress python3-sphinx \
-      install-info build-essential libsystemd-dev libsnmp-dev perl \
+      libc-ares-dev python3-dev python-ipaddress python3-sphinx \
+      install-info build-essential libsnmp-dev perl \
       libcap-dev python2 libelf-dev \
       sudo gdb curl iputils-ping time \
       libgrpc++-dev libgrpc-dev protobuf-compiler-grpc \
index e24a84d1e446d9ac992d03cdabbac3fde8cc3ecd..fbe4c4a1f1a0ab4b02065429c0122172b606fefd 100644 (file)
@@ -199,8 +199,6 @@ Requires:       initscripts
 BuildRequires:  pam-devel
 %endif
 %if "%{initsystem}" == "systemd"
-BuildRequires:      systemd
-BuildRequires:      systemd-devel
 Requires(post):     systemd
 Requires(preun):    systemd
 Requires(postun):   systemd
@@ -396,9 +394,6 @@ routing state through standard SNMP MIBs.
     --disable-bgp-vnc \
 %endif
     --enable-isisd \
-%if "%{initsystem}" == "systemd"
-    --enable-systemd \
-%endif
     --enable-rpki \
 %if %{with_bfdd}
     --enable-bfdd \