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

Reply via email to