diff options
| author | David Lamparter <equinox@diac24.net> | 2018-12-14 16:08:25 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2018-12-18 01:55:51 +0100 |
| commit | 02dfaaf5643c2684c1709a37f91f73b9065b43a0 (patch) | |
| tree | c97cd128c095e3ec2e3ae20c673aaaa9248af157 | |
| parent | 2629e390024ed22beaca641ed164fdf96ddb4032 (diff) | |
debian: cleanly split off from dist tarball
The debian/ directory is distributed separately for tarballs in 3.0
(quilt) format. Including it in the dist tarball causes problems with
automake when the separately distributed debian directory is unpacked on
top of the dist tarball; the clean and correct thing to do here is to
not include the debian/ directory in dist tarballs.
Users have two choices for building FRR Debian packages:
- build straight off git
- build from a "frr.tar" + "frr-debian.tar"
The tarsource.sh tool does the right thing when invoked with the -D
("Debian") option.
Signed-off-by: David Lamparter <equinox@diac24.net>
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Makefile.am | 3 | ||||
| -rw-r--r-- | changelog-auto.in (renamed from debian/changelog-auto.in) | 0 | ||||
| -rwxr-xr-x | configure.ac | 2 | ||||
| -rw-r--r-- | debian/.gitignore | 1 | ||||
| l--------- | debian/changelog | 2 | ||||
| -rw-r--r-- | debian/subdir.am | 45 | ||||
| -rwxr-xr-x | tools/tarsource.sh | 4 |
8 files changed, 7 insertions, 51 deletions
diff --git a/.gitignore b/.gitignore index ad3e3c80e0..54f5bd8f73 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ /conftest.err /aclocal.m4 /libtool +/changelog-auto /Makefile /Makefile.in diff --git a/Makefile.am b/Makefile.am index ac9f73081c..5be32649fa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -118,7 +118,6 @@ include watchfrr/subdir.am include qpb/subdir.am include fpm/subdir.am include tools/subdir.am -include debian/subdir.am include solaris/subdir.am include bgpd/subdir.am @@ -160,6 +159,8 @@ EXTRA_DIST += \ README.md \ m4/README.txt \ config.version \ + changelog-auto \ + changelog-auto.in \ \ python/clidef.py \ python/clippy/__init__.py \ diff --git a/debian/changelog-auto.in b/changelog-auto.in index 73ba179c3a..73ba179c3a 100644 --- a/debian/changelog-auto.in +++ b/changelog-auto.in diff --git a/configure.ac b/configure.ac index 92121fda86..7e07fabf8b 100755 --- a/configure.ac +++ b/configure.ac @@ -2013,9 +2013,9 @@ AC_CONFIG_FILES([Makefile],[sed -e 's/^#AUTODERP# //' -i Makefile]) AC_CONFIG_FILES([ config.version + changelog-auto redhat/frr.spec solaris/Makefile - debian/changelog-auto alpine/APKBUILD snapcraft/snapcraft.yaml lib/version.h diff --git a/debian/.gitignore b/debian/.gitignore deleted file mode 100644 index b48b513813..0000000000 --- a/debian/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/changelog-auto diff --git a/debian/changelog b/debian/changelog index be6099f8d4..021c52c2f3 120000 --- a/debian/changelog +++ b/debian/changelog @@ -1 +1 @@ -changelog-auto
\ No newline at end of file +../changelog-auto
\ No newline at end of file diff --git a/debian/subdir.am b/debian/subdir.am deleted file mode 100644 index 05dd77e62c..0000000000 --- a/debian/subdir.am +++ /dev/null @@ -1,45 +0,0 @@ -# -# debian -# - -EXTRA_DIST += \ - debian/README.Debian \ - debian/README.Maintainer \ - debian/changelog \ - debian/changelog-auto \ - debian/compat \ - debian/control \ - debian/copyright \ - debian/rules \ - debian/source/format \ - debian/source/lintian-overrides \ - debian/tests/control \ - debian/tests/daemons \ - debian/watchfrr.rc \ - debian/watch \ - \ - debian/frr-dbg.lintian-overrides \ - debian/frr-doc.doc-base \ - debian/frr-doc.info \ - debian/frr-doc.install \ - debian/frr-doc.lintian-overrides \ - debian/frr-pythontools.install \ - debian/frr-pythontools.lintian-overrides \ - debian/frr-rpki-rtrlib.install \ - debian/frr-rpki-rtrlib.lintian-overrides \ - debian/frr-snmp.install \ - debian/frr-snmp.lintian-overrides \ - debian/frr.conf \ - debian/frr.dirs \ - debian/frr.docs \ - debian/frr.install \ - debian/frr.lintian-overrides \ - debian/frr.logrotate \ - debian/frr.manpages \ - debian/frr.pam \ - debian/frr.postinst \ - debian/frr.postrm \ - debian/frr.preinst \ - debian/frr.prerm \ - debian/not-installed \ - # end diff --git a/tools/tarsource.sh b/tools/tarsource.sh index a197244f84..673187079d 100755 --- a/tools/tarsource.sh +++ b/tools/tarsource.sh @@ -233,8 +233,8 @@ gitts="$gitts" taropt="$taropt" EOF sed -e "s%@VERSION@%$pkgver$extraver%" \ - < debian/changelog-auto.in \ - > debian/changelog-auto + < changelog-auto.in \ + > changelog-auto exit 0 fi |
