[maemo-developers] microb engine doesn't compile

From: Jeremiah Foster jeremiah at jeremiahfoster.com
Date: Fri Jun 26 13:07:23 EEST 2009
On Jun 26, 2009, at 5:07, Zhihai Wang wrote:

> Hi,
> I checked out the latest engine source code from https://garage.maemo.org/svn/browser/mozilla/trunk/microb-engine/microb-engine 
>  and find out the last modified date is 2009-03-28.
> Then I tried dpkg-buildpackage -d -rfakeroot -uc -b in sbox- 
> CHINOOK_ARMEL, it doesn't compile.
> Is the svn migrated, or something is wrong with my environment?

I am unsure if it is your specific environment that is the problem, it  
appears more likely that the shell script you are running is the  
problem. That shell script looks to be dpkg-buildpackage, which is a  
bash script. bash has bashisms which might not translate well when you  
run them under another shell. If chinook does not have bash as a shell  
for example, it will run the bash shell script under dash, or ash most  
likely, and you can get syntax errors as a consequence, like the one  
at the bottom of your email.

Jeremiah


> dpkg-buildpackage -d -rfakeroot -uc -b
> dpkg-buildpackage: source package is microb-engine
> dpkg-buildpackage: source version is 20090207-6
> dpkg-buildpackage: source changed by Oleg Romashin <oleg.romashin at nokia.com 
> >
> dpkg-buildpackage: host architecture armel
> dpkg-buildpackage: source version without epoch 20090207-6
>  fakeroot debian/rules clean
> rm -f /home/user/microb-engine/microb-engine/stampdir/patch
> Unapplying patches...nothing to do.
> dh_testdir
> dh_testroot
> rm -f build-stamp configure-stamp unpack-stamp patch-stamp
> #Removing object_tree
> rm -rf build-tree/obj-*
> #Removing unpacked sources
> rm -rf build-tree/mozilla/patches
> rm -rf build-tree/mozilla/.pc
> rm -f debian/shlibs.local
> #chmod -f a-x debian/patches/*.diff
> rm -rf /home/user/microb-engine/microb-engine/stampdir
> rm -rf /home/user/microb-engine/microb-engine/patches
> rm -f /home/user/microb-engine/microb-engine/.pc
> rm -f /home/user/microb-engine/microb-engine/debian/patches/series
> rm -rf /home/user/microb-engine/microb-engine/tarballs
> # uuencode source files
> for str1 in "*.png" "*.gif" "*.tar.gz"; do \
> for str in `find ./debian -name "$str1"`;do \
> if [ -s $str ]; then \
>   uuencode $str $str > $str.uu; rm $str; \
> fi; \
> done; \
> done
> chmod a-x debian/resources/tools/*
> dh_clean
>  debian/rules build
> mkdir -p build-tree
> mkdir -p /home/user/microb-engine/microb-engine/stampdir/log
> #Small hack for old X11R6 directory
> # uudecode source files
> for str in `find ./debian -name "*.uu"`;do \
> if [ -s $str ]; then \
>   uudecode -o $(echo $str | sed 's/\.uu//g') $str; rm $str; \
> fi ;\
> done
> if [ -f /home/user/microb-engine/microb-engine/client.mk ]; then\
>   rm -f build-tree/mozilla && ln -s /home/user/microb-engine/microb- 
> engine build-tree/mozilla;\
> else\
>   if [ -d build-tree/mozilla ]; then \
>     if [ -d build-tree/mozilla/.hg ]; then \
>       hg pull -R build-tree/mozilla && hg update -R build-tree/ 
> mozilla -C; \
>     else \
>       hg archive -r upstream/20090207 -t files build-tree/mozilla; \
>     fi \
>   else \
>     hg clone -r upstream/20090207 /home/user/microb-engine/microb- 
> engine build-tree/mozilla && hg update -C -R build-tree/mozilla; \
> #           hg archive -r upstream/20090207 -t files build-tree/ 
> mozilla; \
>   fi;\
> fi
> /scratchbox/tools/bin/sh: -c: line 2: syntax error: unexpected end  
> of file
>
>
>
> -- 
> Best Regards,
>
> Zhihai Wang
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090626/8f5ad17c/attachment.htm 
More information about the maemo-developers mailing list