Mailinglist Archive: opensuse-buildservice (306 mails)

< Previous Next >
[opensuse-buildservice] chroot: cannot run command `dpkg': No such file or directory
  • From: Richard Bos <rbos@xxxxxxxxxxxx>
  • Date: Mon, 4 Jan 2010 21:52:24 +0000
  • Message-id: <201001042152.24946.rbos@xxxxxxxxxxxx>
I'm trying to build .deb packages. I have created the different files that
are needed for .deb packages, such as debian.control, debian.rules and the
.dsc file. The tarbals and changes file exists as file, and as a side note
the package builds find for many rpm based distributions.

When I execute an 'osc build Ubuntu_9.10 i586 ib2009.dsc' , or another one
like: osc build Debian_5.0 i586 ib2009.dsc, the build fails with:
......
......
cycle: libpam0g -> libpam-runtime -> libpam-modules
breaking dependency libpam-modules -> libpam0g
cycle: g++-4.4 -> libstdc++6-4.4-dev
breaking dependency g++-4.4 -> libstdc++6-4.4-dev
done
installing autotools-dev-20090427.1-None.all
chroot: cannot run command `dpkg': No such file or directory

The buildroot was: /var/tmp/build-root-Ubuntu_9.10-i586

Did I forget something, like a dependency? I have attached the related .deb
files, as they are not present on the build server.

Hopefully, can shine some light on this error.

--
TIA,

Richard
Format: 1.0
Source: ib2009
Version: 1
Binary: ib2009
Maintainer: Richard Bos <rbos@xxxxxxxxxxxx>
Architecture: any
Build-Depends: debhelper (>= 4.1.16)
DebTransform-Tar: ib2009_linux.tar.gz
DebTransform-Files-Tar: ib.tar.bz2
Files:
Source: ib2009
Section: production
Priority: optional
Maintainer: Richard Bos <rbos@xxxxxxxxxxxx>
Build-Depends: debhelper (>= 4.1.16)

Package: ib2009
Architecture: any
Depends: ${shlibs:Depends}
Description:
Nederlandse Inkomstenbelasting (IB) aangifte voor het jaar 2009
English: Dutch income tax form for the year 2009

#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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

# This is the debhelper compatibility version to use.
export DH_COMPAT=4

build: build-stamp
build-stamp:
dh_testdir

# Add here commands to compile the package.
# make all
# --- end custom part for compiling

touch build-stamp

clean:
dh_testdir
dh_testroot
rm -f build-stamp

# Add here commands to clean up after the build process.
# make clean
# --- end custom part for cleaning up

dh_clean

install:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs

# Add here commands to install the package
# The DESTDIR Has To Be Exactly
/usr/src/packages/BUILD/debian/debian/<nameOfPackage>
# make install DESTDIR=/usr/src/packages/BUILD/debian/ace
mkdir -p debian/ib2009/usr/bin
cp -a bin/* debian/ib2009/usr/bin
mkdir -p debian/ib2009/usr/share/applications
cp -a share/* debian/ib2009/usr/share
sed s/@JAAR@/2009/ debian/ib.desktop >
debian/ib2009/usr/share/applications/ib2009.desktop
mkdir -p debian/ib2009/usr/share/icons/hicolor/apps
for F in ib-*.png; do
SIZE=$(basename $F | sed 's/ib-\(.\+\).png/\1/')
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/$SIZE/apps
cp $F
%{buildroot}%{_datadir}/icons/hicolor/$SIZE/apps/%{ibname}.png
done

# --- end custom part for installing

# 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_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
dh_installman
dh_installinfo
# dh_undocumented
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
#RB dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

< Previous Next >