Re: [openthinclient-user] Error when building a package using the tcos_buildpackage command.

2014-10-28 Thread Steffen Hönig

Hi Mahmoud,

When you edit the debian/rules file you must take care of the 
indentation of the command black (in my example the do block).


A typical debian target would be %:

target:
do something
do something else
^^

this must be a Tab not Spaces!


Steffen

Am 27.10.2014 um 13:17 schrieb Mahmoud Ramadan Ali:

Sorry Steffen,
I don't know exactly what do you mean by setting the command lines to 
start with tab but not spaces ! can you give an example for a command 
sentence to apply that to the rules file command lines ? also i have 
attached my rules file to tel me which lines i should apply to them 
that fix...

Best Regards.

On Mon, Oct 27, 2014 at 12:24 PM, Steffen Hönig 
s.hoe...@openthinclient.com mailto:s.hoe...@openthinclient.com wrote:


Hi Mahmoud,

as debian/rules files are nothing but regular makefiles you need
to adhere to their syntax rules and one of them is that command
lines have to start with a TAB (not spaces!) to be recognized by
make. So go fix your indentation.


Am 24.10.2014 um 22:46 schrieb Mahmoud Ramadan Ali:

Hiii Steffen,
I have added the line to the rules file and i did thet job and
created the directory but now i'm reviving another error...
/*
debian/rules:67: *** missing separator (did you mean TAB instead
of 8 spaces?).  Stop.
dpkg-buildpackage: error: fakeroot -u debian/rules clean gave
error exit status 2*/

any ideas ?

On Fri, Oct 24, 2014 at 12:22 PM, Hönig, Steffen
s.hoe...@openthinclient.com
mailto:s.hoe...@openthinclient.com wrote:

Hi,

that's a know bug for now, you need to add a directory manually:
(let the app be called foo in this case)

$mkdir  -p  foo/foo-2.0-01/package-rootfs/opt/foo


2014-10-24 1:23 GMT+02:00 Mahmoud Ramadan Ali
cisco.and.more.b...@gmail.com
mailto:cisco.and.more.b...@gmail.com:

Hi everyone,
I have an error when building a package using the
tcos_buildpackage command showing that it
cannot stat `package-rootfs': No such file or directory
my assumption is that something is wrong with the rules
file in the debian directory...i think that the file is
not complete to create the package-rootfs directory...i
have attached my rules file if anyone want to have a look
at it...thanks in advance

root@debian:/home/mahmoud/Desktop/sap01/sap01-2.0-01#
mailto:root@debian:/home/mahmoud/Desktop/sap01/sap01-2.0-01#
tcos_buildpackage
dpkg-buildpackage: warning: using a gain-root-command
while being root
dpkg-buildpackage: source package sap01
dpkg-buildpackage: source version 2.0-01-2
dpkg-buildpackage: source changed by root
root@localhost.localdomain
mailto:root@localhost.localdomain
dpkg-buildpackage: host architecture i386
 dpkg-source --before-build sap01-2.0-01
 fakeroot -u debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
dh_clean
dh_clean: Compatibility levels before 5 are deprecated
(level 4 in use)
 dpkg-source -b sap01-2.0-01
dpkg-source: warning: no source format specified in
debian/source/format, see dpkg-source(1)
dpkg-source: info: using source format `1.0'
dpkg-source: info: building sap01 in sap01_2.0-01-2.tar.gz
dpkg-source: info: building sap01 in sap01_2.0-01-2.dsc
 debian/rules build
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
touch build-stamp
 fakeroot -u debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_clean: dh_clean -k is deprecated; use dh_prep instead
dh_clean: Compatibility levels before 5 are deprecated
(level 4 in use)
rm -rf debian/tempcopy debian/sap01
mkdir -p debian/tempcopy debian/sap01/sfs/package  \
cp -al package-rootfs debian/tempcopy/  \
cp -al tcos debian/tempcopy/package-rootfs/opt/sap01/
cp: cannot stat `package-rootfs': No such file or directory
make: *** [install] Error 1
dpkg-buildpackage: error: fakeroot -u debian/rules binary
gave error exit status 2



--

___
The Open Source Thin Client Solution
http://openthinclient.org
openthinclient-user@lists.sourceforge.net
mailto:openthinclient-user@lists.sourceforge.net

Re: [openthinclient-user] Error when building a package using the tcos_buildpackage command.

2014-10-27 Thread Mahmoud Ramadan Ali
Sorry Steffen,
I don't know exactly what do you mean by setting the command lines to start
with tab but not spaces ! can you give an example for a command sentence to
apply that to the rules file command lines ? also i have attached my rules
file to tel me which lines i should apply to them that fix...
Best Regards.

On Mon, Oct 27, 2014 at 12:24 PM, Steffen Hönig s.hoe...@openthinclient.com
 wrote:

  Hi Mahmoud,

 as debian/rules files are nothing but regular makefiles you need to adhere
 to their syntax rules and one of them is that command lines have to start
 with a TAB (not spaces!) to be recognized by make. So go fix your
 indentation.


 Am 24.10.2014 um 22:46 schrieb Mahmoud Ramadan Ali:

  Hiii Steffen,
  I have added the line to the rules file and i did thet job and created
 the directory but now i'm reviving another error...


 * debian/rules:67: *** missing separator (did you mean TAB instead of 8
 spaces?).  Stop. dpkg-buildpackage: error: fakeroot -u debian/rules clean
 gave error exit status 2*

  any ideas ?

 On Fri, Oct 24, 2014 at 12:22 PM, Hönig, Steffen 
 s.hoe...@openthinclient.com wrote:

 Hi,

  that's a know bug for now, you need to add a directory manually:
 (let the app be called foo in this case)


 $ mkdir -p foo/foo-2.0-01/package-rootfs/opt/foo


  2014-10-24 1:23 GMT+02:00 Mahmoud Ramadan Ali 
 cisco.and.more.b...@gmail.com:

   Hi everyone,
  I have an error when building a package using the tcos_buildpackage
 command showing that it
 cannot stat `package-rootfs': No such file or directory  my assumption
 is that something is wrong with the rules file in the debian
 directory...i think that the file is not complete to create the
 package-rootfs directory...i have attached my rules file if anyone want
 to have a look at it...thanks in advance

 root@debian:/home/mahmoud/Desktop/sap01/sap01-2.0-01# tcos_buildpackage
 dpkg-buildpackage: warning: using a gain-root-command while being root
 dpkg-buildpackage: source package sap01
 dpkg-buildpackage: source version 2.0-01-2
 dpkg-buildpackage: source changed by root root@localhost.localdomain
 root@localhost.localdomain
 dpkg-buildpackage: host architecture i386
  dpkg-source --before-build sap01-2.0-01
  fakeroot -u debian/rules clean
 dh_testdir
 dh_testroot
 rm -f build-stamp configure-stamp
 dh_clean
 dh_clean: Compatibility levels before 5 are deprecated (level 4 in use)
  dpkg-source -b sap01-2.0-01
 dpkg-source: warning: no source format specified in
 debian/source/format, see dpkg-source(1)
 dpkg-source: info: using source format `1.0'
 dpkg-source: info: building sap01 in sap01_2.0-01-2.tar.gz
 dpkg-source: info: building sap01 in sap01_2.0-01-2.dsc
  debian/rules build
 dh_testdir
 # Add here commands to configure the package.
 touch configure-stamp
 dh_testdir
 touch build-stamp
  fakeroot -u debian/rules binary
 dh_testdir
 dh_testroot
 dh_clean -k
 dh_clean: dh_clean -k is deprecated; use dh_prep instead
 dh_clean: Compatibility levels before 5 are deprecated (level 4 in use)
 rm -rf debian/tempcopy debian/sap01
 mkdir -p debian/tempcopy debian/sap01/sfs/package  \
 cp -al package-rootfs debian/tempcopy/  \
 cp -al tcos debian/tempcopy/package-rootfs/opt/sap01/
 cp: cannot stat `package-rootfs': No such file or directory
 make: *** [install] Error 1
 dpkg-buildpackage: error: fakeroot -u debian/rules binary gave error
 exit status 2



 --

 ___
 The Open Source Thin Client Solution http://openthinclient.org
 openthinclient-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openthinclient-user




  --
 Mit freundlichen Grüßen

 Steffen Hönig
 --
 Development  Support

 openthinclient gmbh, Büro Dresden
 Frühlingstr. 11, 01099 Dresden, Deutschland
 Telefon: +49 35141886215-1
 Mobil:   +49 176 99635238
 mailto: s.hoe...@openthinclient.com j.fren...@openthinclient.com


 openthinclient gmbh
 Heilbronner Str. 150, 70191 Stuttgart, Deutschland
 Telefon: +49 711 1378636-0
 Telefax: +49 711 1378636-9
 Amtsgericht Stuttgart: HRB 245 177; USt-ID: DE216017092
 Geschäftsführer: Alexander Stecher
 http://openthinclient.com


 --

 ___
 The Open Source Thin Client Solution http://openthinclient.org
 openthinclient-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openthinclient-user




 --



 ___
 The Open Source Thin Client Solution 
 http://openthinclient.orgopenthinclient-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/openthinclient-user


 --
 Mit freundlichen Grüßen

 Steffen Hönig

 Development  Support

 openthinclient gmbh, Büro Dresden
 Frühlingstr. 11, 01099 Dresden, Deutschland

Re: [openthinclient-user] Error when building a package using the tcos_buildpackage command.

2014-10-24 Thread Hönig , Steffen
Hi,

that's a know bug for now, you need to add a directory manually:
(let the app be called foo in this case)


$ mkdir -p foo/foo-2.0-01/package-rootfs/opt/foo



2014-10-24 1:23 GMT+02:00 Mahmoud Ramadan Ali cisco.and.more.b...@gmail.com
:

 Hi everyone,
 I have an error when building a package using the tcos_buildpackage
 command showing that it
 cannot stat `package-rootfs': No such file or directory  my assumption is
 that something is wrong with the rules file in the debian directory...i
 think that the file is not complete to create the package-rootfs
 directory...i have attached my rules file if anyone want to have a look at
 it...thanks in advance

 root@debian:/home/mahmoud/Desktop/sap01/sap01-2.0-01# tcos_buildpackage
 dpkg-buildpackage: warning: using a gain-root-command while being root
 dpkg-buildpackage: source package sap01
 dpkg-buildpackage: source version 2.0-01-2
 dpkg-buildpackage: source changed by root root@localhost.localdomain
 dpkg-buildpackage: host architecture i386
  dpkg-source --before-build sap01-2.0-01
  fakeroot -u debian/rules clean
 dh_testdir
 dh_testroot
 rm -f build-stamp configure-stamp
 dh_clean
 dh_clean: Compatibility levels before 5 are deprecated (level 4 in use)
  dpkg-source -b sap01-2.0-01
 dpkg-source: warning: no source format specified in debian/source/format,
 see dpkg-source(1)
 dpkg-source: info: using source format `1.0'
 dpkg-source: info: building sap01 in sap01_2.0-01-2.tar.gz
 dpkg-source: info: building sap01 in sap01_2.0-01-2.dsc
  debian/rules build
 dh_testdir
 # Add here commands to configure the package.
 touch configure-stamp
 dh_testdir
 touch build-stamp
  fakeroot -u debian/rules binary
 dh_testdir
 dh_testroot
 dh_clean -k
 dh_clean: dh_clean -k is deprecated; use dh_prep instead
 dh_clean: Compatibility levels before 5 are deprecated (level 4 in use)
 rm -rf debian/tempcopy debian/sap01
 mkdir -p debian/tempcopy debian/sap01/sfs/package  \
 cp -al package-rootfs debian/tempcopy/  \
 cp -al tcos debian/tempcopy/package-rootfs/opt/sap01/
 cp: cannot stat `package-rootfs': No such file or directory
 make: *** [install] Error 1
 dpkg-buildpackage: error: fakeroot -u debian/rules binary gave error exit
 status 2



 --

 ___
 The Open Source Thin Client Solution http://openthinclient.org
 openthinclient-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openthinclient-user




-- 
Mit freundlichen Grüßen

Steffen Hönig
--
Development  Support

openthinclient gmbh, Büro Dresden
Frühlingstr. 11, 01099 Dresden, Deutschland
Telefon: +49 35141886215-1
Mobil:   +49 176 99635238
mailto: s.hoe...@openthinclient.com j.fren...@openthinclient.com


openthinclient gmbh
Heilbronner Str. 150, 70191 Stuttgart, Deutschland
Telefon: +49 711 1378636-0
Telefax: +49 711 1378636-9
Amtsgericht Stuttgart: HRB 245 177; USt-ID: DE216017092
Geschäftsführer: Alexander Stecher
http://openthinclient.com
--
___
The Open Source Thin Client Solution http://openthinclient.org
openthinclient-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openthinclient-user


Re: [openthinclient-user] Error when building a package using the tcos_buildpackage command.

2014-10-24 Thread Mahmoud Ramadan Ali
Hiii Steffen,
I have added the line to the rules file and i did thet job and created the
directory but now i'm reviving another error...


*debian/rules:67: *** missing separator (did you mean TAB instead of 8
spaces?).  Stop.dpkg-buildpackage: error: fakeroot -u debian/rules clean
gave error exit status 2*

any ideas ?

On Fri, Oct 24, 2014 at 12:22 PM, Hönig, Steffen 
s.hoe...@openthinclient.com wrote:

 Hi,

 that's a know bug for now, you need to add a directory manually:
 (let the app be called foo in this case)


 $ mkdir -p foo/foo-2.0-01/package-rootfs/opt/foo



 2014-10-24 1:23 GMT+02:00 Mahmoud Ramadan Ali 
 cisco.and.more.b...@gmail.com:

 Hi everyone,
 I have an error when building a package using the tcos_buildpackage
 command showing that it
 cannot stat `package-rootfs': No such file or directory  my assumption
 is that something is wrong with the rules file in the debian
 directory...i think that the file is not complete to create the
 package-rootfs directory...i have attached my rules file if anyone want
 to have a look at it...thanks in advance

 root@debian:/home/mahmoud/Desktop/sap01/sap01-2.0-01# tcos_buildpackage
 dpkg-buildpackage: warning: using a gain-root-command while being root
 dpkg-buildpackage: source package sap01
 dpkg-buildpackage: source version 2.0-01-2
 dpkg-buildpackage: source changed by root root@localhost.localdomain
 dpkg-buildpackage: host architecture i386
  dpkg-source --before-build sap01-2.0-01
  fakeroot -u debian/rules clean
 dh_testdir
 dh_testroot
 rm -f build-stamp configure-stamp
 dh_clean
 dh_clean: Compatibility levels before 5 are deprecated (level 4 in use)
  dpkg-source -b sap01-2.0-01
 dpkg-source: warning: no source format specified in debian/source/format,
 see dpkg-source(1)
 dpkg-source: info: using source format `1.0'
 dpkg-source: info: building sap01 in sap01_2.0-01-2.tar.gz
 dpkg-source: info: building sap01 in sap01_2.0-01-2.dsc
  debian/rules build
 dh_testdir
 # Add here commands to configure the package.
 touch configure-stamp
 dh_testdir
 touch build-stamp
  fakeroot -u debian/rules binary
 dh_testdir
 dh_testroot
 dh_clean -k
 dh_clean: dh_clean -k is deprecated; use dh_prep instead
 dh_clean: Compatibility levels before 5 are deprecated (level 4 in use)
 rm -rf debian/tempcopy debian/sap01
 mkdir -p debian/tempcopy debian/sap01/sfs/package  \
 cp -al package-rootfs debian/tempcopy/  \
 cp -al tcos debian/tempcopy/package-rootfs/opt/sap01/
 cp: cannot stat `package-rootfs': No such file or directory
 make: *** [install] Error 1
 dpkg-buildpackage: error: fakeroot -u debian/rules binary gave error exit
 status 2



 --

 ___
 The Open Source Thin Client Solution http://openthinclient.org
 openthinclient-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openthinclient-user




 --
 Mit freundlichen Grüßen

 Steffen Hönig
 --
 Development  Support

 openthinclient gmbh, Büro Dresden
 Frühlingstr. 11, 01099 Dresden, Deutschland
 Telefon: +49 35141886215-1
 Mobil:   +49 176 99635238
 mailto: s.hoe...@openthinclient.com j.fren...@openthinclient.com


 openthinclient gmbh
 Heilbronner Str. 150, 70191 Stuttgart, Deutschland
 Telefon: +49 711 1378636-0
 Telefax: +49 711 1378636-9
 Amtsgericht Stuttgart: HRB 245 177; USt-ID: DE216017092
 Geschäftsführer: Alexander Stecher
 http://openthinclient.com


 --

 ___
 The Open Source Thin Client Solution http://openthinclient.org
 openthinclient-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openthinclient-user


--
___
The Open Source Thin Client Solution http://openthinclient.org
openthinclient-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openthinclient-user


[openthinclient-user] Error when building a package using the tcos_buildpackage command.

2014-10-23 Thread Mahmoud Ramadan Ali
Hi everyone,
I have an error when building a package using the tcos_buildpackage
command showing that it
cannot stat `package-rootfs': No such file or directory  my assumption is
that something is wrong with the rules file in the debian directory...i
think that the file is not complete to create the package-rootfs
directory...i have attached my rules file if anyone want to have a look at
it...thanks in advance

root@debian:/home/mahmoud/Desktop/sap01/sap01-2.0-01# tcos_buildpackage
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package sap01
dpkg-buildpackage: source version 2.0-01-2
dpkg-buildpackage: source changed by root root@localhost.localdomain
dpkg-buildpackage: host architecture i386
 dpkg-source --before-build sap01-2.0-01
 fakeroot -u debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
dh_clean
dh_clean: Compatibility levels before 5 are deprecated (level 4 in use)
 dpkg-source -b sap01-2.0-01
dpkg-source: warning: no source format specified in debian/source/format,
see dpkg-source(1)
dpkg-source: info: using source format `1.0'
dpkg-source: info: building sap01 in sap01_2.0-01-2.tar.gz
dpkg-source: info: building sap01 in sap01_2.0-01-2.dsc
 debian/rules build
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
touch build-stamp
 fakeroot -u debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_clean: dh_clean -k is deprecated; use dh_prep instead
dh_clean: Compatibility levels before 5 are deprecated (level 4 in use)
rm -rf debian/tempcopy debian/sap01
mkdir -p debian/tempcopy debian/sap01/sfs/package  \
cp -al package-rootfs debian/tempcopy/  \
cp -al tcos debian/tempcopy/package-rootfs/opt/sap01/
cp: cannot stat `package-rootfs': No such file or directory
make: *** [install] Error 1
dpkg-buildpackage: error: fakeroot -u debian/rules binary gave error exit
status 2
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1




CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif


### debian/deschd/deschd-module/

configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.

touch configure-stamp


build: build-stamp

build-stamp: configure-stamp 
dh_testdir

#   # Add here commands to compile the package.
#   # $(MAKE)
#   #docbook-to-man debian/sap01.sgml  sap01.1

touch build-stamp

clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp

#   # Add here commands to clean up after the build process.
#   # -$(MAKE) clean

dh_clean 

install: build
dh_testdir
dh_testroot
dh_clean -k 

#   # copy the things we need inside a temporary copy 
#   # we use hardlinks to save time and discspace


rm -rf debian/tempcopy debian/sap01 
mkdir -p debian/tempcopy debian/sap01/sfs/package  \
cp -al package-rootfs debian/tempcopy/  \
cp -al tcos debian/tempcopy/package-rootfs/opt/sap01/ 

cd debian/tempcopy/package-rootfs  mksquashfs . 
../../sap01/sfs/package/sap01.sfs -noappend -always-use-fragments
#   # schema is not a part of the sfs-file 
cp -al schema debian/sap01/

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
#   dh_installchangelogs 
#   dh_installdocs
#   dh_installexamples
#   dh_install
#   dh_installmenu
#   dh_installdebconf   
#   dh_installlogrotate
#   dh_installemacsen
#   dh_installpam
#   dh_installmime
#   dh_installinit
#   dh_installcron
#   dh_installinfo
#   dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
#   dh_perl
#   dh_python
#   dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure--
___
The Open Source Thin Client Solution http://openthinclient.org
openthinclient-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openthinclient-user