:: [DNG] git-buildpackage finally succ…
Etusivu
Poista viesti
Vastaa
Lähettäjä: Edward Bartolo
Päiväys:  
Vastaanottaja: aitor_czr, Rainer Weikusat
Kopio: dng
Aihe: [DNG] git-buildpackage finally succeeds.
Hi Aitor, Rainer and others,

Finally, git-buildpackage succeeded to build the blessed packages!
HURRAH! :)))))

Since the terminal output is long I am placing it after the email's
body. This is it.

edbarx@edbarx-pc:~/netman-0.1.1$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

    modified:   debian/patches/rainer-autor-20.12.2015.patch
    modified:   netman.lps


no changes added to commit (use "git add" and/or "git commit -a")
edbarx@edbarx-pc:~/netman-0.1.1$ git pull
Already up-to-date.
edbarx@edbarx-pc:~/netman-0.1.1$ git checkout
debian/patches/rainer-autor-20.12.2015.patch
edbarx@edbarx-pc:~/netman-0.1.1$ git checkout netman.lps
edbarx@edbarx-pc:~/netman-0.1.1$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
edbarx@edbarx-pc:~/netman-0.1.1$ git-buildpackage
 dpkg-buildpackage -rfakeroot -D -us -uc -i -I
dpkg-buildpackage: source package netman
dpkg-buildpackage: source version 0.1.1-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Edward <edbarx@edbarx-pc>
 dpkg-source -i -I --before-build netman-0.1.1
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
make[1]: Entering directory '/home/edbarx/netman-0.1.1'
make -C backend_src clean
make[2]: Entering directory '/home/edbarx/netman-0.1.1/backend_src'
rm -f obj/backend.o obj/caller.o obj/core_functions.o
obj/file_functions.o obj/essid_encoder.o obj/automated_scanner.o
bin/backend
make[2]: Leaving directory '/home/edbarx/netman-0.1.1/backend_src'
rm -f lib/*/*.*
rm -f backend netman
make[1]: Leaving directory '/home/edbarx/netman-0.1.1'
   dh_clean
 dpkg-source -i -I -b netman-0.1.1
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building netman using existing ./netman_0.1.1.orig.tar.gz
dpkg-source: info: building netman in netman_0.1.1-1.debian.tar.xz
dpkg-source: warning: missing information for output field Standards-Version
dpkg-source: info: building netman in netman_0.1.1-1.dsc
 debian/rules build
dh build
   dh_testdir
   dh_auto_configure
   dh_auto_build
make[1]: Entering directory '/home/edbarx/netman-0.1.1'
make -C backend_src
make[2]: Entering directory '/home/edbarx/netman-0.1.1/backend_src'
gcc -c -g -O2 -Wall -Wextra -Iinclude -g -O2  -o obj/backend.o src/backend.c
gcc -c -g -O2 -Wall -Wextra -Iinclude -g -O2  -o obj/caller.o src/caller.c
gcc -c -g -O2 -Wall -Wextra -Iinclude -g -O2  -o obj/core_functions.o
src/core_functions.c
src/core_functions.c: In function ‘disconnectActiveConnection’:
src/core_functions.c:471:2: warning: ‘net_interface’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
  fprintf(
  ^
gcc -c -g -O2 -Wall -Wextra -Iinclude -g -O2  -o obj/file_functions.o
src/file_functions.c
src/file_functions.c: In function ‘moveEditEssidFile’:
src/file_functions.c:67:29: warning: unused parameter ‘wlan’
[-Wunused-parameter]
 int moveEditEssidFile(char* wlan, char* essid)
                             ^
gcc -c -g -O2 -Wall -Wextra -Iinclude -g -O2  -o obj/essid_encoder.o
src/essid_encoder.c
gcc -c -g -O2 -Wall -Wextra -Iinclude -g -O2  -o
obj/automated_scanner.o src/automated_scanner.c
src/automated_scanner.c: In function ‘getRadiatingWifiList’:
src/automated_scanner.c:299:13: warning: ‘tmp_wifi_quality’ may be
used uninitialized in this function [-Wmaybe-uninitialized]
     strncpy(tmp_wifi_quality->name,  tmpstr, strlen(tmpstr));
             ^
gcc -o bin/backend obj/backend.o obj/caller.o obj/core_functions.o
obj/file_functions.o obj/essid_encoder.o obj/automated_scanner.o -lm
make[2]: Leaving directory '/home/edbarx/netman-0.1.1/backend_src'
cp backend_src/bin/backend .
lazbuild -B netman.lpr | awk '/./{print $0}'
primary config path: /home/edbarx/.lazarus
TProject.DoLoadStateFile Statefile not found:
/home/edbarx/netman-0.1.1/lib/x86_64-linux/netman.compiled
TBuildManager.CheckIfPackageNeedsCompilation  No state file for Project
TCompiler.Compile WorkingDir="/home/edbarx/netman-0.1.1/"
CompilerFilename="/usr/bin/fpc" CompilerParams=" -MObjFPC -Scghi -O3
-vewnhi -Fi/home/edbarx/netman-0.1.1/lib/x86_64-linux
-Fl/opt/gnome/lib
-Fu/usr/lib/lazarus/1.2.4/lcl/units/x86_64-linux/gtk2
-Fu/usr/lib/lazarus/1.2.4/lcl/units/x86_64-linux
-Fu/usr/lib/lazarus/1.2.4/components/lazutils/lib/x86_64-linux
-Fu/usr/lib/lazarus/1.2.4/packager/units/x86_64-linux
-Fu/home/edbarx/netman-0.1.1/
-FU/home/edbarx/netman-0.1.1/lib/x86_64-linux/ -l -dLCL -dLCLgtk2
netman.lpr"
[TCompiler.Compile] CmdLine="/usr/bin/fpc -B  -MObjFPC -Scghi -O3
-vewnhi -Fi/home/edbarx/netman-0.1.1/lib/x86_64-linux
-Fl/opt/gnome/lib
-Fu/usr/lib/lazarus/1.2.4/lcl/units/x86_64-linux/gtk2
-Fu/usr/lib/lazarus/1.2.4/lcl/units/x86_64-linux
-Fu/usr/lib/lazarus/1.2.4/components/lazutils/lib/x86_64-linux
-Fu/usr/lib/lazarus/1.2.4/packager/units/x86_64-linux
-Fu/home/edbarx/netman-0.1.1/
-FU/home/edbarx/netman-0.1.1/lib/x86_64-linux/ -l -dLCL -dLCLgtk2
netman.lpr"
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.6.4+dfsg-4 [2014/10/14] for x86_64
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling netman.lpr
Compiling mainform.pas
Compiling backend.pas
backend.pas(100,47) Hint: Local variable "s" does not seem to be initialized
backend.pas(154,3) Note: Local variable "i" not used
backend.pas(214,30) Hint: Local variable "s" does not seem to be initialized
backend.pas(241,30) Hint: Local variable "s" does not seem to be initialized
backend.pas(264,30) Hint: Local variable "s" does not seem to be initialized
backend.pas(274,31) Hint: Local variable "s" does not seem to be initialized
backend.pas(346,47) Hint: Local variable "Buffer" does not seem to be
initialized
backend.pas(310,5) Note: Local variable "aline" not used
backend.pas(387,10) Warning: Function result does not seem to be set
backend.pas(495,3) Note: Local variable "equalPos" not used
backend.pas(27,63) Hint: Unit "BaseUnix" not used in backend
Compiling connect_info.pas
Compiling common_functions.pas
common_functions.pas(27,42) Hint: Local variable "s" does not seem to
be initialized
common_functions.pas(82,31) Warning: Local variable "delim_pos" does
not seem to be initialized
connect_info.pas(52,55) Hint: Local variable "s" does not seem to be initialized
connect_info.pas(24,28) Hint: Parameter "Sender" not used
connect_info.pas(25,28) Hint: Parameter "Sender" not used
connect_info.pas(26,24) Hint: Parameter "Sender" not used
connect_info.pas(93,39) Hint: Local variable "s" does not seem to be initialized
connect_info.pas(85,12) Note: Local variable "essid" not used
Compiling helpwndu.pas
Compiling mainform.pas
Compiling formeditconnectprops.pas
formeditconnectprops.pas(56,40) Hint: Parameter "Sender" not used
formeditconnectprops.pas(57,24) Hint: Parameter "Sender" not used
formeditconnectprops.pas(58,24) Hint: Parameter "Sender" not used
formeditconnectprops.pas(59,42) Hint: Parameter "Sender" not used
formeditconnectprops.pas(59,59) Hint: Parameter "User" not used
formeditconnectprops.pas(60,27) Hint: Parameter "Sender" not used
formeditconnectprops.pas(51,29) Hint: Parameter "Sender" not used
formeditconnectprops.pas(50,28) Hint: Parameter "Sender" not used
formeditconnectprops.pas(52,32) Hint: Parameter "Sender" not used
formeditconnectprops.pas(132,3) Note: Local variable "i" not used
formeditconnectprops.pas(53,28) Hint: Parameter "Sender" not used
formeditconnectprops.pas(54,35) Hint: Parameter "Sender" not used
formeditconnectprops.pas(55,28) Hint: Parameter "Sender" not used
formeditconnectprops.pas(27,23) Hint: Unit "ComCtrls" not used in
formEditConnectProps
mainform.pas(158,42) Hint: Local variable "s" does not seem to be initialized
mainform.pas(187,3) Note: Local variable "s" not used
mainform.pas(95,27) Hint: Parameter "Sender" not used
mainform.pas(96,36) Hint: Parameter "Sender" not used
mainform.pas(97,32) Hint: Parameter "Sender" not used
mainform.pas(98,45) Hint: Parameter "Sender" not used
mainform.pas(99,25) Hint: Parameter "Sender" not used
mainform.pas(347,3) Note: Local variable "anIcon" not used
mainform.pas(348,3) Note: Local variable "bmp" not used
mainform.pas(100,26) Hint: Parameter "Sender" not used
mainform.pas(386,3) Note: Local variable "anIcon" not used
mainform.pas(101,27) Hint: Parameter "Sender" not used
mainform.pas(102,24) Hint: Parameter "Sender" not used
mainform.pas(105,33) Hint: Parameter "Sender" not used
mainform.pas(107,43) Hint: Parameter "Sender" not used
mainform.pas(108,32) Hint: Parameter "Sender" not used
mainform.pas(109,32) Hint: Parameter "Sender" not used
mainform.pas(110,34) Hint: Parameter "Sender" not used
mainform.pas(111,36) Hint: Parameter "Sender" not used
mainform.pas(112,44) Hint: Parameter "Sender" not used
mainform.pas(116,29) Hint: Parameter "Sender" not used
mainform.pas(113,27) Hint: Parameter "Sender" not used
mainform.pas(114,33) Hint: Parameter "Sender" not used
mainform.pas(115,7) Hint: Parameter "Shift" not used
mainform.pas(115,27) Hint: Parameter "X" not used
mainform.pas(115,30) Hint: Parameter "Y" not used
mainform.pas(668,34) Hint: Local variable "pw" does not seem to be initialized
mainform.pas(92,28) Hint: Parameter "Sender" not used
mainform.pas(720,45) Hint: Local variable "Buffer" does not seem to be
initialized
mainform.pas(688,13) Note: Local variable "s" not used
mainform.pas(94,36) Hint: Parameter "Sender" not used
mainform.pas(760,10) Note: Local variable "pw" not used
mainform.pas(89,30) Hint: Parameter "Sender" not used
mainform.pas(90,48) Hint: Parameter "Sender" not used
mainform.pas(797,10) Note: Local variable "backend_text" not used
mainform.pas(797,24) Note: Local variable "prev_caption" not used
mainform.pas(87,31) Hint: Parameter "Sender" not used
mainform.pas(88,40) Hint: Parameter "Sender" not used
mainform.pas(839,3) Note: Local variable "s" not used
mainform.pas(85,44) Hint: Parameter "Sender" not used
mainform.pas(86,35) Hint: Parameter "Sender" not used
mainform.pas(91,34) Hint: Parameter "Sender" not used
helpwndu.pas(18,28) Hint: Parameter "Sender" not used
helpwndu.pas(19,25) Hint: Parameter "Sender" not used
helpwndu.pas(20,26) Hint: Parameter "Sender" not used
Compiling resource /home/edbarx/netman-0.1.1/lib/x86_64-linux/netman.or
Linking netman
/usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T?
2225 lines compiled, 9.5 sec
2 warning(s) issued
64 hint(s) issued
14 note(s) issued
[TCompiler.Compile] end
make[1]: Leaving directory '/home/edbarx/netman-0.1.1'
   dh_auto_test
 fakeroot debian/rules binary
dh binary
   dh_testroot
   dh_prep
   dh_auto_install
make[1]: Entering directory '/home/edbarx/netman-0.1.1'
install -o root -g root -m 0755 -d /home/edbarx/netman-0.1.1/debian/tmp
install -o root -g root -m 0755 netman backend_src/bin/backend
/home/edbarx/netman-0.1.1/debian/tmp
install -o root -g root -m 0644 netman.ico netman.desktop
/home/edbarx/netman-0.1.1/debian/tmp
make[1]: Leaving directory '/home/edbarx/netman-0.1.1'
   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/netman-gui/usr/bin/netman was not linked against
libgmodule-2.0.so.0 (it uses none of the library's symbols)
   dh_installdeb
   dh_gencontrol
   dh_md5sums
   dh_builddeb
dpkg-deb: building package `netman-gui' in `../netman-gui_0.1.1-1_amd64.deb'.
dpkg-deb: building package `netman-backend' in
`../netman-backend_0.1.1-1_amd64.deb'.
 dpkg-genchanges  >../netman_0.1.1-1_amd64.changes
dpkg-genchanges: including full source code in upload
 dpkg-source -i -I --after-build netman-0.1.1
dpkg-buildpackage: full upload (original 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 netman_0.1.1-1.dsc Edward <edbarx@edbarx-pc>
gpg: skipped "Edward <edbarx@edbarx-pc>": secret key not available
gpg: /tmp/debsign.zhJsA1JW/netman_0.1.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



On 23/12/2015, Edward Bartolo <edbarx@???> wrote:
> Hi Aitor,
>
> I used 'quilt refresh' but still I cannot use git-buildpackage
> successfully. This is what git is telling me. "--git-ignore-new" was
> my salvation to successfully build Debian package using git... I am
> stuck as long as I cannot successfully run git-buildpackage to create
> a .deb package.
>
> This is the output from git-buildpackage:
>
> edbarx@edbarx-pc:~/netman-0.1.1$ git-buildpackage
> --git-upstream-tree=0.1.1 --git-export-dir=../netman_pkg_build
> gbp:error: You have uncommitted changes in your source tree:
> gbp:error: On branch master
> Your branch is up-to-date with 'origin/master'.
> Changes to be committed:
> (use "git reset HEAD <file>..." to unstage)
>
>     modified:   debian/patches/rainer-autor-20.12.2015.patch
>     modified:   netman.lps

>
>
> gbp:error: Use --git-ignore-new to ignore.
> edbarx@edbarx-pc:~/netman-0.1.1$ git-buildpackage --git-upstream-tree=0.1.1
> gbp:error: You have uncommitted changes in your source tree:
> gbp:error: On branch master
> Your branch is up-to-date with 'origin/master'.
> Changes to be committed:
> (use "git reset HEAD <file>..." to unstage)
>
>     modified:   debian/patches/rainer-autor-20.12.2015.patch
>     modified:   netman.lps

>
>
> gbp:error: Use --git-ignore-new to ignore.
> edbarx@edbarx-pc:~/netman-0.1.1$ git-buildpackage
> gbp:error: You have uncommitted changes in your source tree:
> gbp:error: On branch master
> Your branch is up-to-date with 'origin/master'.
> Changes to be committed:
> (use "git reset HEAD <file>..." to unstage)
>
>     modified:   debian/patches/rainer-autor-20.12.2015.patch
>     modified:   netman.lps

>
>
> gbp:error: Use --git-ignore-new to ignore.
>
>
> What is holding me back? This is exaspirating when one wants to get things
> done.
>
> Edward
>
> On 23/12/2015, aitor_czr <aitor_czr@???> wrote:
>> Hi Edward,
>>
>> On 12/22/2015 06:39 PM, Edward Bartolo <edbarx@???> wrote:
>>> Hi All,
>>> >>
>>> >>By hook and by crook I have 'git pushed' my netman with Rainer's
>>> >> patch.
>>> >>
>>> >>My current objective is to successive build packages using git instead
>>> >>of dpkg-buildpackages as suggested by various helpful volunteers on
>>> >>this mailing list. I am using the command in the netman root
>>> >>directory:
>>> >>
>>> >>edbarx@edbarx-pc:~/netman_from_backup_08.12.2015$ git-buildpackage
>>> >>--git-export-dir=../netman_pkg_build --git-ignore-new
>>> >>
>>> >>git-buildpackage is rejecting to do what I tell it saying:
>>> >>gbp:error: upstream/0.1.1 is not a valid treeish
>>> >>
>>> >>I searched on google this error message and found on
>>> >>http://unix.stackexchange.com/questions that the debian/ subdirectory
>>> >>may be missing, but netman debian directory is there.
>>> >>
>>> >>Netman's tree:
>>> >>
>>> >>edbarx@edbarx-pc:~/netman_from_backup_08.12.2015$  tree
>>> >>.
>>> >>├── backend.pas
>>> >>├── backend_src
>>> >>│   ├── bin
>>> >>│   ├── include
>>> >>│   │   ├── automated_scanner.h
>>> >>│   │   ├── backend.h
>>> >>│   │   ├── caller.h
>>> >>│   │   ├── core_functions.h
>>> >>│   │   ├── essid_encoder.h
>>> >>│   │   ├── file_functions.h
>>> >>│   │   └── paths.h
>>> >>│   ├── Makefile
>>> >>│   ├── obj
>>> >>│   ├── README.md
>>> >>│   └── src
>>> >>│       ├── automated_scanner.c
>>> >>│       ├── backend
>>> >>│       ├── backend.c
>>> >>│       ├── caller.c
>>> >>│       ├── core_functions.c
>>> >>│       ├── essid_encoder.c
>>> >>│       └── file_functions.c
>>> >>├── backup
>>> >>├── common_functions.pas
>>> >>├── connect_info.lfm
>>> >>├── connect_info.pas
>>> >>├── debian
>>> >>│   ├── changelog
>>> >>│   ├── compat
>>> >>│   ├── control
>>> >>│   ├── copyright
>>> >>│   ├── docs
>>> >>│   ├── files
>>> >>│   ├── netman-backend
>>> >>│   │   ├── DEBIAN
>>> >>│   │   │   ├── control
>>> >>│   │   │   ├── md5sums
>>> >>│   │   │   └── postinst
>>> >>│   │   └── usr
>>> >>│   │       ├── lib
>>> >>│   │       │   └── netman
>>> >>│   │       │       └── bin
>>> >>│   │       │           └── backend
>>> >>│   │       └── share
>>> >>│   │           └── doc
>>> >>│   │               └── netman-backend
>>> >>│   │                   ├── changelog.Debian.gz
>>> >>│   │                   └── copyright
>>> >>│   ├── netman-backend.debhelper.log
>>> >>│   ├── netman-backend.install
>>> >>│   ├── netman-backend.postinst
>>> >>│   ├── netman-backend.substvars
>>> >>│   ├── netman-gui
>>> >>│   │   ├── DEBIAN
>>> >>│   │   │   ├── control
>>> >>│   │   │   ├── md5sums
>>> >>│   │   │   └── postinst
>>> >>│   │   └── usr
>>> >>│   │       ├── bin
>>> >>│   │       │   └── netman
>>> >>│   │       └── share
>>> >>│   │           ├── applications
>>> >>│   │           │   └── netman.desktop
>>> >>│   │           ├── doc
>>> >>│   │           │   └── netman-gui
>>> >>│   │           │       ├── changelog.Debian.gz
>>> >>│   │           │       ├── copyright
>>> >>│   │           │       ├── README.Debian
>>> >>│   │           │       └── README.gz
>>> >>│   │           └── pixmaps
>>> >>│   │               └── netman.ico
>>> >>│   ├── netman-gui.debhelper.log
>>> >>│   ├── netman-gui.install
>>> >>│   ├── netman-gui.postinst
>>> >>│   ├── netman-gui.substvars
>>> >>│   ├── netman.substvars
>>> >>│   ├── patches
>>> >>│   │   ├── rainer-autor-20.12.2015.patch
>>> >>│   │   └── series
>>> >>│   ├── README.Debian
>>> >>│   ├── README.source
>>> >>│   ├── rules
>>> >>│   ├── source
>>> >>│   │   ├── format
>>> >>│   │   └── include-binaries
>>> >>│   └── tmp
>>> >>│       ├── backend
>>> >>│       ├── netman
>>> >>│       ├── netman.desktop
>>> >>│       └── netman.ico
>>> >>├── formeditconnectprops.lfm
>>> >>├── formeditconnectprops.pas
>>> >>├── helpwndu.lfm
>>> >>├── helpwndu.pas
>>> >>├── lib
>>> >>│   └── x86_64-linux
>>> >>├── LICENSE
>>> >>├── mainform.lfm
>>> >>├── mainform.pas
>>> >>├── Makefile
>>> >>├── netman.desktop
>>> >>├── netman.ico
>>> >>├── netman_icons.lrs
>>> >>├── netman.lpi
>>> >>├── netman.lpr
>>> >>├── netman.lps
>>> >>├── netman.res
>>> >>├── network-transmit-receive.ico
>>> >>├── network-wired-disconnected.ico
>>> >>└── README

>>> >>
>>> >>30 directories, 80 files
>>> >>
>>
>> debian/tmp ???
>> debian/netman-backend/usr/lib/netman/bin/backend ???
>> debian/netman-gui/usr/bin/netman ???
>>
>> Are you using a clean repository? Your repository worked for me.
>>
>> Whitch is the content of your debian/changelog?
>>
>> One suggestion: don't use --git-ignore-new. Instead, unapply all the
>> quilt patches using 'quilt refresh'.
>>
>>    Aitor.

>>
>