Page 1 of 1

Error during debianization from source.

Posted: 2009-11-06 09:25
by prasanthp
While debianizing one package from source, i got following error. Plz help to resolve this.


root@boss[libmokoui2-0.3+bzr20080407]#dpkg-buildpackage -r -us -uc -sa
dpkg-buildpackage: source package libmokoui2
dpkg-buildpackage: source version 0.3+bzr20080407-0midboss
dpkg-buildpackage: source changed by Prasanth P <prasanthp@cdac.in>
dpkg-buildpackage: host architecture i386
debian/rules clean
debian/rules:3: /usr/share/cdbs/1/class/autotools.mk: No such file or directory
debian/rules:4: /usr/share/cdbs/1/rules/debhelper.mk: No such file or directory
debian/rules:5: /usr/share/cdbs/1/rules/simple-patchsys.mk: No such file or directory
debian/rules:6: /usr/share/cdbs/1/class/gnome.mk: No such file or directory
make: *** No rule to make target `/usr/share/cdbs/1/class/gnome.mk'. Stop.
dpkg-buildpackage: failure: debian/rules clean gave error exit status 2

Re: Error during debianization from source.

Posted: 2009-11-06 10:08
by jku
The package seems to be missing a build dependency to package "cdbs".

Re: Error during debianization from source.

Posted: 2009-11-06 12:04
by prasanthp
Thanks for the Reply...

I cdbs was already there.. Then i updraded that..

But now i am getting this error.

dpkg-buildpackage -rfakeroot -us -uc -sa
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package libmokoui2
dpkg-buildpackage: source version 0.3+bzr20080407-0midboss
dpkg-buildpackage: source changed by Prasanth P <prasanthp@cdac.in>
dpkg-buildpackage: host architecture i386
fakeroot debian/rules clean
test -x debian/rules
dh_testroot
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 /usr/bin/make -C . -k distclean
make[1]: Entering directory `/root/Desktop/test/python-mokoui /libmokoui2-0.3+bzr20080407'
make[1]: *** No rule to make target `distclean'.
make[1]: Leaving directory `/root/Desktop/test/python-mokoui /libmokoui2-0.3+bzr20080407'
make: [makefile-clean] Error 2 (ignored)
rm -f debian/stamp-makefile-build
/usr/bin/make -f debian/rules reverse-config
make[1]: Entering directory `/root/Desktop/test/python-mokoui /libmokoui2-0.3+bzr20080407'
make[1]: Nothing to be done for `reverse-config'.
make[1]: Leaving directory `/root/Desktop/test/python-mokoui /libmokoui2-0.3+bzr20080407'
if [ "reverse-patches" = "reverse-patches" ]; then rm -f debian/stamp-patched; fi
patches: debian/patches/auto_mode_better.patch debian/patches/spring2.patch
Trying reverse patch debian/patches/spring2.patch at level 1 ... 0 ... success.
Trying reverse patch debian/patches/auto_mode_better.patch at level 1 ... success.
if [ "reverse-patches" != "reverse-patches" ]; then touch debian/stamp-patched; fi
if [ "reverse-patches" != "reverse-patches" ] ; then \
/usr/bin/make -f debian/rules update-config ; \
fi
for dir in debian/patches ; do \
rm -f $dir/*.log ; \
done
rm -f debian/stamp-autotools-files
dh_clean
cd . && \
rm -f intltool-extract intltool-merge intltool-update po/.intltool-merge-cache; \
if test -d doc; then find doc -name '*.omf.out' -exec rm -f \{\} \; ; fi; \
if test -d help; then find help -name '*.omf.out' -exec rm -f \{\} \; ; fi
dpkg-source -b libmokoui2-0.3+bzr20080407
dpkg-source: building libmokoui2 using existing libmokoui2_0.3+bzr20080407.orig.tar.gz
dpkg-source: building libmokoui2 in libmokoui2_0.3+bzr20080407-0midboss.diff.gz
dpkg-source: cannot represent change to gtk-doc.make:
dpkg-source: new version is symlink
dpkg-source: old version is nonexistent
dpkg-source: building libmokoui2 in libmokoui2_0.3+bzr20080407-0midboss.dsc
dpkg-source: unrepresentable changes to source
dpkg-buildpackage: failure: dpkg-source -b libmokoui2-0.3+bzr20080407 gave error exit status 1

Re: Error during debianization from source.

Posted: 2009-11-10 00:06
by Jackiebrown
You should clean out the build tree after updating cdbs

It is suppose to clean the directory for you but it looks like that step is failing