building thundrbird

Asked by littlewiki

I was just trying to create a debian package of thunderbird in hardy.I dloaded the relevant three files from the directory,"dpkg-source -x" the .dsc file and put the debian file in the extracted mozilla directory(extracted from the orig.tar.gz file) .Now if I follow the instructions in the debian manual,I'm not able to go any further than this :

wiki@wiki-desktop:~/Projects/ubuntu/hardy/thunderbird.dev/mozilla$ dpkg-buildpackage -rfakeroot
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package thunderbird
dpkg-buildpackage: source version 2.0.0.16+nobinonly-0ubuntu0.8.04.1
dpkg-buildpackage: source changed by Alexander Sack <email address hidden>
dpkg-buildpackage: host architecture i386
 fakeroot debian/rules clean
cd: 1: can't cd to build-tree/mozilla
test -x debian/rules
test "`id -u`" = 0
rm -rf build-tree
rm
rm: missing operand
Try `rm --help' for more information.
make: [cleanbuilddir] Error 1 (ignored)
rm debian/stamp-patch-* 2>/dev/null
make: [cleanbuilddir] Error 1 (ignored)
for i in ./nsprpub/build/autoconf/config.guess ./build/autoconf/config.guess ./directory/c-sdk/config/autoconf/config.guess ./nsprpub/build/autoconf/config.sub ./build/autoconf/config.sub ./directory/c-sdk/config/autoconf/config.sub ; do \
  if test -e $i.cdbs-orig ; then \
   mv $i.cdbs-orig $i ; \
  fi ; \
 done
dh_clean
/usr/bin/make -f debian/rules reverse-config
cd: 1: can't cd to build-tree/mozilla
make[1]: Entering directory `/home/wiki/Projects/ubuntu/hardy/thunderbird.dev/mozilla'
for i in ./nsprpub/build/autoconf/config.guess ./build/autoconf/config.guess ./directory/c-sdk/config/autoconf/config.guess ./nsprpub/build/autoconf/config.sub ./build/autoconf/config.sub ./directory/c-sdk/config/autoconf/config.sub ; do \
  if test -e $i.cdbs-orig ; then \
   mv $i.cdbs-orig $i ; \
  fi ; \
 done
make[1]: Leaving directory `/home/wiki/Projects/ubuntu/hardy/thunderbird.dev/mozilla'
if [ -d "build-tree/mozilla" ] ; then \
   cd build-tree/mozilla && QUILT_PATCHES=patches quilt --quiltrc /dev/null pop -a -R || test $? = 2 ; \
 fi
if [ -n "patches" ] ; then \
   if [ -L build-tree/mozilla/patches ] ; then \
     rm build-tree/mozilla/patches ; \
   fi ; \
 fi
rm -rf build-tree/mozilla/.pc
rm -f debian/stamp-patch*
/usr/bin/make -C build-tree/mozilla -k distclean
make: *** build-tree/mozilla: No such file or directory. Stop.
make: [makefile-clean] Error 2 (ignored)
rm -f debian/stamp-makefile-build
rm -f debian/stamp-autotools-files
set -e; for i in ; do \
  rm -f debian/$i; \
  done
set -e; rm -f /home/wiki/Projects/ubuntu/hardy/thunderbird.dev/mozilla/debian/thunderbird.1
 dpkg-source -b mozilla
dpkg-source: warning: Version number suggests Ubuntu changes, but there is no XSBC-Original-Maintainer field
dpkg-source: warning: source directory './mozilla' is not <sourcepackage>-<upstreamversion> 'thunderbird-2.0.0.16+nobinonly'
dpkg-source: building thunderbird in thunderbird_2.0.0.16+nobinonly-0ubuntu0.8.04.1.tar.gz
dpkg-source: building thunderbird in thunderbird_2.0.0.16+nobinonly-0ubuntu0.8.04.1.dsc
 debian/rules build
cd: 1: can't cd to build-tree/mozilla
test -x debian/rules
mkdir -p "build-tree/mozilla"
set -e; for i in ; do \
  uudecode -o debian/$i debian/$i.uu; \
  done
set -e; /usr/bin/docbook-to-man /home/wiki/Projects/ubuntu/hardy/thunderbird.dev/mozilla/debian/thunderbird.sgml > /home/wiki/Projects/ubuntu/hardy/thunderbird.dev/mozilla/debian/thunderbird.1
/usr/bin/make -f debian/rules reverse-config
make[1]: Entering directory `/home/wiki/Projects/ubuntu/hardy/thunderbird.dev/mozilla'
for i in ./nsprpub/build/autoconf/config.guess ./build/autoconf/config.guess ./directory/c-sdk/config/autoconf/config.guess ./nsprpub/build/autoconf/config.sub ./build/autoconf/config.sub ./directory/c-sdk/config/autoconf/config.sub ; do \
  if test -e $i.cdbs-orig ; then \
   mv $i.cdbs-orig $i ; \
  fi ; \
 done
make[1]: Leaving directory `/home/wiki/Projects/ubuntu/hardy/thunderbird.dev/mozilla'
if [ -n "patches" ] ; then \
   if [ -L build-tree/mozilla/patches ] ; then : ; else \
     (cd build-tree/mozilla; ln -s /home/wiki/Projects/ubuntu/hardy/thunderbird.dev/mozilla/debian/patches patches) ; \
   fi ; \
 fi
cd build-tree/mozilla && QUILT_PATCHES=patches quilt --quiltrc /dev/null push -a || test $? = 2
Applying patch main-fsh
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|---
| config/autoconf.mk.in | 6 +++---
| 1 file changed, 3 insertions(+), 3 deletions(-)
|
|Index: mozilla/config/autoconf.mk.in
|===================================================================
|--- mozilla.orig/config/autoconf.mk.in 2006-09-14 20:07:03.000000000 +0200
|+++ mozilla/config/autoconf.mk.in 2007-04-10 19:27:03.000000000 +0200
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch main-fsh does not apply (enforce with -f)
make: *** [debian/stamp-patched] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

I guess since there are loads of patches ,the process gets complicated.I have all the dependencies installed since I can build thunderbird from the source .Do I need to have a specific directory structure when I am doing this as this one line points it : "|--- mozilla.orig/config/autoconf.mk.in 2006-09-14 20:07:03.000000000 +0200" ?

Regards,
AGD

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu thunderbird Edit question
Assignee:
No assignee Edit question
Solved by:
Fabien Tassin
Solved:
Last query:
Last reply:
Revision history for this message
littlewiki (little-wiki) said :
#1

I guess I should have said "unable to package thunderbird" as I'm actually able to configure and build TB ,mozilla style(tar.gz)

Revision history for this message
Fabien Tassin (fta) said :
#2

Run dpkg-buildpackage from the directory directly above, not inside "mozilla".
You should always check that you are in the directory containing the "debian" dir when you run
dpkg-buildpackage.

Revision history for this message
Best Fabien Tassin (fta) said :
#3

more precisely, as discussed on IRC, your "debian" directory is misplaced. move it one level above and you're good to go.

Revision history for this message
littlewiki (little-wiki) said :
#4

Thanks Fabien Tassin, that solved my question.