coredns / deployment

Scripts, utilities, and examples for deploying CoreDNS.
Apache License 2.0
549 stars 535 forks source link

Issue on debian, invalid characters in version number #291

Open jammi opened 1 year ago

jammi commented 1 year ago

This is what I get on debian-sid

root@softis:~/coredns-deployment# dpkg-buildpackage -us -uc -b  --target-arch amd64
dpkg-buildpackage: info: source package coredns
dpkg-buildpackage: info: source version 0-0
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Miek Gieben <miek@coredns.io>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
 debian/rules clean
dh_clean
dh clean --with systemd
   dh_clean
 debian/rules build
dh_clean
dh build --with systemd
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   create-stamp debian/debhelper-build-stamp
 debian/rules binary
dh_clean
dh binary --with systemd
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   create-stamp debian/debhelper-build-stamp
   dh_testroot
   dh_prep
   debian/rules override_dh_auto_install
make[1]: Entering directory '/root/coredns-deployment'
if [ ! -e coredns_1.10.1_linux_amd64.tgz ]; then curl -L https://github.com/coredns/coredns/releases/download/v1.10.1/coredns_1.10.1_linux_amd64.tgz -o coredns_1.10.1_linux_amd64.tgz; fi
if [ ! -e v1.10.1.tar.gz ]; then  curl -L https://github.com/coredns/coredns/archive/v1.10.1.tar.gz -o v1.10.1.tar.gz; fi
mkdir -p debian/coredns/usr/bin debian/coredns/etc/coredns
mkdir -p debian/man v1.10.1
tar -xf coredns_1.10.1_linux_amd64.tgz -C debian/coredns/usr/bin
tar -xf v1.10.1.tar.gz -C v1.10.1
cp v1.10.1/coredns-1.10.1/man/* debian/man/
cp debian/Corefile debian/coredns/etc/coredns/Corefile
make[1]: Leaving directory '/root/coredns-deployment'
   dh_installdocs
   dh_installchangelogs
   dh_installman
   dh_systemd_enable
   dh_installinit
   dh_systemd_start
   dh_perl
   dh_link
   dh_strip_nondeterminism
   dh_compress
   dh_fixperms
   dh_missing
   debian/rules override_dh_strip
make[1]: Entering directory '/root/coredns-deployment'
# don't perform dh_strip
echo dh_strip
dh_strip
make[1]: Leaving directory '/root/coredns-deployment'
   dh_makeshlibs
   dh_shlibdeps
   dh_installdeb
   debian/rules override_dh_gencontrol
make[1]: Entering directory '/root/coredns-deployment'
dh_gencontrol -- -v1.10.1-0~n/a0
make[1]: Leaving directory '/root/coredns-deployment'
   dh_md5sums
   dh_builddeb
dpkg-deb: error: parsing file 'debian/coredns/DEBIAN/control' near line 3 package 'coredns':
 'Version' field value '1.10.1-0~n/a0': invalid character in revision number
dh_builddeb: error: dpkg-deb --build debian/coredns .. returned exit code 2
dh_builddeb: error: Aborting due to earlier error
make: *** [debian/rules:27: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2