:: Re: [DNG] git buildpackage simple-n…
Top Page
Delete this message
Reply to this message
Author: aitor_czr
Date:  
To: Edward Bartolo, dng
Subject: Re: [DNG] git buildpackage simple-netaid-lightweight ERROR

Hi Edward,

El 26/05/16 a las 09:34, Edward Bartolo escribió:
> Hi,
>
> While running 'git buildpackage' to test building a .deb package for
> simple-netaid-lightweight I am receiving this error:
>
> Error:
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libfreetype.so.6 (it uses none of the library's symbols)
>
> The complete command output is the following:
>
> --------------------------------------------------
> edbarx@edbarx-pc:~/simple-netaid-lightweight$ git buildpackage --git-ignore-new
>   dpkg-buildpackage -rfakeroot -D -us -uc -i -I
> dpkg-buildpackage: source package simple-netaid-lightweight
> dpkg-buildpackage: source version 0.1.1
> dpkg-buildpackage: source distribution unstable
> dpkg-buildpackage: source changed by edbarx<edbarx@???>
>   dpkg-source -i -I --before-build simple-netaid-lightweight
> dpkg-buildpackage: host architecture amd64
>   fakeroot debian/rules clean
> dh clean
>     dh_testdir
>     dh_auto_clean
> make[1]: Entering directory '/home/edbarx/simple-netaid-lightweight'
> rm -f sn-lightweight
> rm -rf obj
> make[1]: Leaving directory '/home/edbarx/simple-netaid-lightweight'
>     dh_clean
>   dpkg-source -i -I -b simple-netaid-lightweight
> dpkg-source: info: using source format `3.0 (native)'
> dpkg-source: info: building simple-netaid-lightweight in
> simple-netaid-lightweight_0.1.1.tar.xz
> dpkg-source: info: building simple-netaid-lightweight in
> simple-netaid-lightweight_0.1.1.dsc
>   debian/rules build
> dh build
>     dh_testdir
>     dh_auto_configure
>     dh_auto_build
> make[1]: Entering directory '/home/edbarx/simple-netaid-lightweight'
> rm -f sn-lightweight
> rm -rf obj
> gcc -Iinclude `pkg-config --libs --cflags gtk+-2.0` -c
> src/auxiliaries.c src/signal_functions.c src/main_gui.c
> src/dialog_gui.c src/sn-lightweight.c
> mkdir obj
> mv *.o obj/
> gcc -Iinclude `pkg-config --libs --cflags gtk+-2.0` -o sn-lightweight
> obj/auxiliaries.o obj/signal_functions.o obj/main_gui.o
> obj/dialog_gui.o obj/sn-lightweight.o
> make[1]: Leaving directory '/home/edbarx/simple-netaid-lightweight'
>     dh_auto_test
>   fakeroot debian/rules binary
> dh binary
>     dh_testroot
>     dh_prep
>     dh_auto_install
>     dh_install
>     dh_installdocs
>     dh_installchangelogs
>     dh_perl
>     dh_link
>     dh_compress
>     dh_fixperms
>     dh_strip
>     dh_makeshlibs
>     dh_shlibdeps
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libfreetype.so.6 (it uses none of the library's symbols)
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libcairo.so.2 (it uses none of the library's symbols)
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libpangoft2-1.0.so.0 (it uses none of the library's symbols)
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libatk-1.0.so.0 (it uses none of the library's symbols)
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libpangocairo-1.0.so.0 (it uses none of the library's symbols)
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libgdk_pixbuf-2.0.so.0 (it uses none of the library's symbols)
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libfontconfig.so.1 (it uses none of the library's symbols)
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libpango-1.0.so.0 (it uses none of the library's symbols)
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libgdk-x11-2.0.so.0 (it uses none of the library's symbols)
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
> debian/simple-netaid-lightweight/usr/bin/sn-lightweight was not linked
> against libgio-2.0.so.0 (it uses none of the library's symbols)
>     dh_installdeb
>     dh_gencontrol
>     dh_md5sums
>     dh_builddeb
> dpkg-deb: building package `simple-netaid-lightweight' in
> `../simple-netaid-lightweight_0.1.1_amd64.deb'.
>   dpkg-genchanges  >../simple-netaid-lightweight_0.1.1_amd64.changes
> dpkg-genchanges: including full source code in upload
>   dpkg-source -i -I --after-build simple-netaid-lightweight
> dpkg-buildpackage: full upload; Debian-native package (full source is included)
> Now running lintian...
> Could not find a profile matching "{VENDOR}/main" for vendor devuan at
> /usr/bin/lintian line 979.
> Finished running lintian.
> Now signing changes and any dsc files...
>   signfile simple-netaid-lightweight_0.1.1.dsc edbarx
> <edbarx@???>
> gpg: skipped "edbarx<edbarx@???>": secret key
> not available
> gpg: /tmp/debsign.edZjvSt0/simple-netaid-lightweight_0.1.1.dsc:
> clearsign failed: secret key not available
> debsign: gpg error occurred!  Aborting....
> debuild: fatal error at line 1295:
> running debsign failed
> gbp:error: 'debuild -i -I' failed: it exited with 29


Git-buildpackage works, but gbp failed because you didn't specified the
public key in the command line. Create a gpp signature, and try with:

$ git-buildpackage -kXXXXXXXX

where XXXXXXXX is the public key. On the other hand, why are you using
--git-ignore-new? You are ignoring the uncommited changes...

Cheers,

Aitor.