goanysync
goanysync copied to clipboard
make deb fails
All seemed to work but failed at the end due to missing secret key
see the std out:-
robertk@storm:~/projects-oss/goanysync$ GOPATH=/home/robertk/projects-oss/goanysync make deb rm -f goanysync-1.10b.tar.gz rm -f goanysync_.tar.gz rm -f goanysync_.{dsc,deb,changes} # Remove deb package files if test -d goanysync-1.10b; then rm -rf goanysync-1.10b; fi mkdir -p goanysync-1.10b cp ./configure.ac goanysync-1.10b/ cp ./configure goanysync-1.10b/ cp ./Makefile.in goanysync-1.10b/ cp ./README.md goanysync-1.10b/
install-sh is created with "automake --add-missing --copy" and needed by
configure.
cp ./install-sh goanysync-1.10b/
for s in ./src/goanysync/goanysync/config.go ./src/goanysync/goanysync/goanysync.go ./src/goanysync/config/writer.go ./src/goanysync/config/reader.go ./src/goanysync/log/log.go; do
mkdir -p $(dirname ${s/#./goanysync-1.10b});
cp $s ${s/#./goanysync-1.10b};
done
mkdir -p goanysync-1.10b/archlinux_pkg
cp ./archlinux_pkg/PKGBUILD_dist.in goanysync-1.10b/archlinux_pkg/
mkdir -p goanysync-1.10b/script
cp ./script/goanysync.in goanysync-1.10b/script/
mkdir -p goanysync-1.10b/conf
cp ./conf/tmpfiles.conf goanysync-1.10b/conf/
cp ./conf/goanysync.conf.d goanysync-1.10b/conf/
cp ./conf/goanysync.cronjob.in goanysync-1.10b/conf/
cp ./conf/goanysync.service.in goanysync-1.10b/conf/
cp ./conf/goanysync.conf.in goanysync-1.10b/conf/
cp ./conf/goanysync.init.conf.in goanysync-1.10b/conf/
mkdir -p goanysync-1.10b/doc
cp ./doc/goanysync.man.txt goanysync-1.10b/doc/
mkdir -p goanysync-1.10b/misc
cp ./misc/*.in goanysync-1.10b/misc/
tar chof - goanysync-1.10b | /bin/gzip -9 -c > goanysync-1.10b.tar.gz
rm -rf goanysync-1.10b
/bin/gzip -cd goanysync-1.10b.tar.gz | tar xvf -
goanysync-1.10b/
goanysync-1.10b/doc/
goanysync-1.10b/doc/goanysync.man.txt
goanysync-1.10b/configure.ac
goanysync-1.10b/configure
goanysync-1.10b/conf/
goanysync-1.10b/conf/tmpfiles.conf
goanysync-1.10b/conf/goanysync.init.conf.in
goanysync-1.10b/conf/goanysync.conf.d
goanysync-1.10b/conf/goanysync.cronjob.in
goanysync-1.10b/conf/goanysync.service.in
goanysync-1.10b/conf/goanysync.conf.in
goanysync-1.10b/Makefile.in
goanysync-1.10b/misc/
goanysync-1.10b/misc/license-gpl3-header.in
goanysync-1.10b/src/
goanysync-1.10b/src/goanysync/
goanysync-1.10b/src/goanysync/goanysync/
goanysync-1.10b/src/goanysync/goanysync/config.go
goanysync-1.10b/src/goanysync/goanysync/goanysync.go
goanysync-1.10b/src/goanysync/config/
goanysync-1.10b/src/goanysync/config/reader.go
goanysync-1.10b/src/goanysync/config/writer.go
goanysync-1.10b/src/goanysync/log/
goanysync-1.10b/src/goanysync/log/log.go
goanysync-1.10b/README.md
goanysync-1.10b/install-sh
goanysync-1.10b/archlinux_pkg/
goanysync-1.10b/archlinux_pkg/PKGBUILD_dist.in
goanysync-1.10b/script/
goanysync-1.10b/script/goanysync.in
cd goanysync-1.10b &&
DEBFULLNAME="Esa Määttä" dh_make -c gpl3 -s -e [email protected] -f ../goanysync-1.10b.tar.gz
Email-Address : [email protected]
License : gpl3
Package Name : goanysync
Maintainer Name : Esa Määttä
Version : 1.10b
Package Type : single
Date : Wed, 12 Jul 2017 11:31:21 +1000
Are the details correct? [Y/n/q]
Done. Please edit the files in the debian/ subdirectory now.
Modify debian/control
/bin/sed -i
-e 's|^(Section: ).$|\1utils|'
-e 's|^(Homepage: ).$|\1https://github.com/wor/goanysync|'
-e 's|^(Description: ).$|\1Directory symlinker and content syncer|'
-e 's|^ <.>$||' goanysync-1.10b/debian/control # remove long description
Modify debian/copyright
First create needed license header format
/bin/sed -e 's/^[[:space:]]+/ /' -e 's/^$/ ./' misc/license-gpl3-header > misc/license-gpl3-header.deb
/bin/sed -i -e '/^License: <special/r misc/license-gpl3-header.deb' goanysync-1.10b/debian/copyright
rm -f misc/license-gpl3-header.deb
/bin/sed -i
-e 's|^(Copyright: )
-e 's|^([[:space:]]+)
-e 's|^(Source: <).>$|\1https://github.com/wor/goanysync>|'
-e 's|^(License: )<special.>|\1GPL-3|'
-e '/^#./d'
-e '/^ <.+>$/d'
goanysync-1.10b/debian/copyright
new_deps="$(dpkg-depcheck -d ./configure 2>/dev/null | grep -A 999 '^Packages needed:$' | tail -n+2 | /bin/sed 's/$/,/' | xargs | /bin/sed 's/,$//')" &&
/bin/sed -i -e "s|^(Build-Depends: .)$|\1, rsync, $new_deps|" goanysync-1.10b/debian/control # add dependencies
Modify debian/changelog
/bin/sed -i
-e 's|((Closes: #)n+) .*$|\11)|'
goanysync-1.10b/debian/changelog
cd goanysync-1.10b &&
if test -e "Makefile"; then make maintainer-clean; fi
cd goanysync-1.10b &&
dpkg-buildpackage -rfakeroot
dpkg-buildpackage: source package goanysync
dpkg-buildpackage: source version 1.10b-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Esa Määttä [email protected]
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build goanysync-1.10b
fakeroot debian/rules clean
make[1]: Entering directory '/home/robertk/projects-oss/goanysync/goanysync-1.10b'
dh clean --with autotools_dev
dh_testdir
dh_auto_clean
dh_autotools-dev_restoreconfig
dh_clean
make[1]: Leaving directory '/home/robertk/projects-oss/goanysync/goanysync-1.10b'
dpkg-source -b goanysync-1.10b
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building goanysync using existing ./goanysync_1.10b.orig.tar.gz
dpkg-source: info: building goanysync in goanysync_1.10b-1.debian.tar.xz
dpkg-source: info: building goanysync in goanysync_1.10b-1.dsc
debian/rules build
make[1]: Entering directory '/home/robertk/projects-oss/goanysync/goanysync-1.10b'
dh build --with autotools_dev
dh_testdir
dh_update_autotools_config
dh_autotools-dev_updateconfig
dh_auto_configure
./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=${prefix}/lib/x86_64-linux-gnu --libexecdir=${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking
configure: WARNING: unrecognized options: --disable-silent-rules, --disable-maintainer-mode, --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for Arch Linux distribution (for rc.d srcipt installation)... no
checking for rsync... /usr/bin/rsync
checking for txt2man... /usr/bin/txt2man
checking for gzip... /bin/gzip
checking for bash... /bin/bash
configure: creating ./config.status
config.status: creating Makefile
config.status: creating archlinux_pkg/PKGBUILD_dist
config.status: creating misc/license-gpl3-header
config.status: creating script/goanysync
config.status: creating conf/goanysync.init.conf
config.status: creating conf/goanysync.service
config.status: creating conf/goanysync.cronjob
config.status: creating conf/goanysync.conf
configure: WARNING: unrecognized options: --disable-silent-rules, --disable-maintainer-mode, --disable-dependency-tracking
goanysync version 1.10b Prefix : /usr Bindir : ${exec_prefix}/bin exec_prefix : ${prefix} mandir : ${prefix}/share/man Sysconfdir : /etc datarootdir : ${prefix}/share datadir : ${datarootdir} Libdir : ${prefix}/lib/x86_64-linux-gnu tmpfiles.d : /etc/tmpfiles.d initdir : /etc/init
dh_auto_build
make -j1
make[2]: Entering directory '/home/robertk/projects-oss/goanysync/goanysync-1.10b'
GOPATH=$(readlink -f .):${GOPATH} go build -o goanysync goanysync/goanysync
/usr/bin/txt2man doc/goanysync.man.txt | /bin/gzip -9 -c > goanysync.1.gz
make[2]: Leaving directory '/home/robertk/projects-oss/goanysync/goanysync-1.10b'
dh_auto_test
make[1]: Leaving directory '/home/robertk/projects-oss/goanysync/goanysync-1.10b'
fakeroot debian/rules binary
make[1]: Entering directory '/home/robertk/projects-oss/goanysync/goanysync-1.10b'
dh binary --with autotools_dev
dh_testroot
dh_prep
dh_auto_install
make -j1 install DESTDIR=/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync AM_UPDATE_INFO_DIR=no
make[2]: Entering directory '/home/robertk/projects-oss/goanysync/goanysync-1.10b'
if test "nox" == "yesx"; then
/usr/bin/install -c -D --mode=0755 script/goanysync "/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/etc/rc.d/goanysync";
/usr/bin/install -c -D --mode=0755 conf/goanysync.conf.d "/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/etc/conf.d/goanysync";
fi
/usr/bin/install -c -D --mode=0744 conf/goanysync.cronjob "/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/etc/cron.hourly/goanysync"
Subsitute shell variables in the cronjob file
/bin/sed -i -e 's|${exec_prefix}|/usr|g' "/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/etc/cron.hourly/goanysync"
if test "/etc/tmpfiles.dx" != "x"; then
/usr/bin/install -c -m 644 -D conf/tmpfiles.conf "/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/etc/tmpfiles.d/goanysync.conf";
fi
if test "/etc/initx" != "x"; then
/usr/bin/install -c -m 644 -D conf/goanysync.init.conf "/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/etc/init/goanysync.conf";
/bin/sed -i -e 's|${exec_prefix}|/usr|g' "/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/etc/init/goanysync.conf";
fi
mkdir -p --mode=0755
"/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/usr/lib/x86_64-linux-gnu/systemd/system"
"/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/usr/bin"
"/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/etc"
"/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/usr/share/man/man1/"
/usr/bin/install -c -m 644 --target-directory="/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/usr/lib/x86_64-linux-gnu/systemd/system" conf/goanysync.service
Subsitute shell variables in the systemd service file
/bin/sed -i -e 's|${exec_prefix}|/usr|g' "/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/usr/lib/x86_64-linux-gnu/systemd/system/goanysync.service"
/usr/bin/install -c --mode=0755 --target-directory="/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/usr/bin" "goanysync"
/usr/bin/install -c -m 644 --target-directory="/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/etc" conf/goanysync.conf
if test "docsx" == "docsx"; then
/usr/bin/install -c -m 644 --target-directory="/home/robertk/projects-oss/goanysync/goanysync-1.10b/debian/goanysync/usr/share/man/man1/" goanysync.1.gz;
fi
make[2]: Leaving directory '/home/robertk/projects-oss/goanysync/goanysync-1.10b'
dh_installdocs
dh_installchangelogs
dh_installman
dh_installinit
dh_perl
dh_link
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_strip
dh_makeshlibs
dh_shlibdeps
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: building package 'goanysync' in '../goanysync_1.10b-1_amd64.deb'.
make[1]: Leaving directory '/home/robertk/projects-oss/goanysync/goanysync-1.10b'
dpkg-genchanges >../goanysync_1.10b-1_amd64.changes
dpkg-genchanges: including full source code in upload
dpkg-source --after-build goanysync-1.10b
dpkg-buildpackage: full upload (original source is included)
signfile goanysync_1.10b-1.dsc
gpg: keybox '/home/robertk/.gnupg/pubring.kbx' created
gpg: skipped "Esa Määttä [email protected]": No secret key
gpg: dpkg-sign.cSC_QKia/goanysync_1.10b-1.dsc: clearsign failed: No secret key
dpkg-buildpackage: error: failed to sign .dsc and .changes file Makefile:222: recipe for target 'goanysync-1.10b-1_i386.deb' failed make: *** [goanysync-1.10b-1_i386.deb] Error 25