:: Re: [DNG] Apply Rainer's patch to n…
Góra strony
Delete this message
Reply to this message
Autor: aitor_czr
Data:  
Dla: Edward Bartolo, Rainer Weikusat, dng
Temat: Re: [DNG] Apply Rainer's patch to netman.


On 12/20/2015 02:11 PM, aitor_czr wrote:
> By the way. This is the result of the proccess:
>
> $ git-buildpackage -j4 -tc -k465D41B1 --git-export-dir="../build-area" 
> --git-pristine-tar --git-tag --git-ignore-branch
> pristine-tar: successfully generated 
> /home/aitor/NETMAN_5/build-area/netman_0.1.1-85ee69e.orig.tar.bz2
> gbp:info: Exporting 'HEAD' to '/home/aitor/NETMAN_5/build-area/netman-tmp'
> gbp:info: Moving '/home/aitor/NETMAN_5/build-area/netman-tmp' to 
> '/home/aitor/NETMAN_5/build-area/netman-0.1.1-85ee69e'
>  dpkg-buildpackage -rfakeroot -D -us -uc -i -I -j4 -tc
> dpkg-buildpackage: source package netman
> dpkg-buildpackage: source version 0.1.1-85ee69e-jessie3
> dpkg-buildpackage: source distribution unstable
> dpkg-buildpackage: source changed by Aitor Cuadrado Zubizarreta 
> <aitor_czr@???>
>  dpkg-source -i -I --before-build netman-0.1.1-85ee69e
> dpkg-buildpackage: host architecture amd64
>  fakeroot debian/rules clean
> dh clean --with quilt,python2
>    dh_testdir
>    dh_auto_clean
> make[1]: Entering directory 
> '/home/aitor/NETMAN_5/build-area/netman-0.1.1-85ee69e'
> Makefile:23: *** missing separator (did you mean TAB instead of 8 
> spaces?).  Stop.
> make[1]: Leaving directory 
> '/home/aitor/NETMAN_5/build-area/netman-0.1.1-85ee69e'
> dh_auto_clean: make -j1 distclean returned exit code 2
> debian/rules:4: recipe for target 'clean' failed
> make: *** [clean] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit 
> status 2
> debuild: fatal error at line 1376:
> dpkg-buildpackage -rfakeroot -D -us -uc -i -I -j4 -tc *failed*
> gbp:error: 'debuild -i -I -j4 -tc -k465D41B1' failed: it exited with 29


There were spaces instead of tab keys in the Makefile. Fixed it:

diff --git a/Makefile b/Makefile
index 55df54f..e045055 100644
--- a/Makefile
+++ b/Makefile
@@ -13,5 +13,13 @@ clean:
      rm -f lib/*/*.*
      rm -f backend netman


-.PHONY: all clean
+INST := install -o root -g root
+INST_X := $(INST) -m 0755
+INST_D := $(INST) -m 0644

+install: all
+    $(INST_X) -d $(DESTDIR)
+    $(INST_X) netman backend_src/bin/backend $(DESTDIR)
+    $(INST_D) netman.ico netman.desktop $(DESTDIR)
+
+.PHONY: all clean install
diff --git a/debian/netman-backend.install b/debian/netman-backend.install
index 5028afe..f7832d3 100644
--- a/debian/netman-backend.install
+++ b/debian/netman-backend.install
@@ -1 +1 @@
-backend_src/src/backend /usr/lib/netman/bin
\ No newline at end of file
+backend /usr/lib/netman/bin
diff --git a/debian/rules b/debian/rules
index 0e6d2ad..01b984c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,11 +3,3 @@
  %:
      dh $@ --with quilt,python2


-override_dh_auto_clean:
-    dh_auto_clean
-
-override_dh_auto_configure:
-    #fpc  -MObjFPC -Scghi -Tlinux -vewn -Filib/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. 
-FUlib/x86_64-linux -l -dLCL -dLCLgtk2 netman.lpr && cd backend_src/src 
&& gcc -g -I../include core_functions.c file_functions.c backend.c 
essid_encoder.c -o backend
-    lazbuild -B netman.lpr && cd backend_src/src && gcc -lm 
-I../include core_functions.c file_functions.c backend.c essid_encoder.c 
automated_scanner.c -o backend
-
-override_dh_auto_build:



Cheers,

     Aitor.