ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] qtopia package build failure while building ltib from CVS (S


From: Stuart Hughes
Subject: Re: [Ltib] qtopia package build failure while building ltib from CVS (Savannah)
Date: Mon, 24 Aug 2009 09:53:55 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Rajesh,

I suspect that /bin/sh is linked to 'dash' as its failing 'source' which is definitely present in bash.

Either change the default shell to bash, or change the instances of source to '. ./xxxx' as indicated in the patch Daniel sent.

Regards, Stuart

address@hidden wrote:
Hi Stuart,

I am using Ubuntu linux but the shell is "/bin/bash". I wnet ahead and
applied your patch and after that I am running into a new issue mentioned
below.

------------------------------------------------------------------------
Processing: qtopia
====================
Build path taken because: directory build, build key set, no prebuilt rpm,

rpmbuild --dbpath /home/rmarathe/myltib/ltib/rootfs//var/lib/rpm --target
arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu
arm' --define '__strip strip' --define '_topdir
/home/rmarathe/myltib/ltib/rpm' --define '_prefix /usr' --define '_tmppath
/home/rmarathe/myltib/ltib/tmp' --define '_rpmdir
/home/rmarathe/myltib/ltib/rpm/RPMS'  --define '_mandir /usr/share/man'
--define '_sysconfdir /etc' --define '_localstatedir /var' -bc
--short-circuit /home/rmarathe/myltib/ltib/dist/lfs-5.1/qtopia/qtopia.spec
Building target platforms: arm
Building for target arm
Executing(%build): /bin/sh -e /home/rmarathe/myltib/ltib/tmp/rpm-tmp.37505
+ umask 022
+ cd /home/rmarathe/myltib/ltib/rpm/BUILD
+ cd qtopia-free-2.2.0
+ source ./ltibqtopiaconfig
/home/rmarathe/myltib/ltib/tmp/rpm-tmp.37505: 1: source: not found
error: Bad exit status from /home/rmarathe/myltib/ltib/tmp/rpm-tmp.37505
(%build)


RPM build errors:
    Bad exit status from /home/rmarathe/myltib/ltib/tmp/rpm-tmp.37505
(%build)
Build time for qtopia: 0 seconds

Failed building qtopia


f_buildrpms() returned an error, exiting
traceback:
 main:555


Started: Mon Aug 24 09:47:56 2009
Ended:   Mon Aug 24 09:48:00 2009
Elapsed: 4 seconds

These packages failed to build:
qtopia

Build Failed

Exiting on error or interrupt

------------------------------------------------------------------------
It says "source .." not found as it is looking for a file
"./ltibqtopiaconfig". But I do see another file by name "configure" in the
same directory but not the other file.

So, will changing the spec file work here too ?

thanks and regards,
Rajesh Marathe.


Hi Rajesh,

It looks like a shell quoting problem, it doesn't happen with the bash
shell I'm using (3.2), are you using Ubuntu/dash (ls /bin/sh or echo
$SHELL), maybe it behaves differently.

You could change your default shell to bash, or if you prefer you can
try this patch (add extra quotes):

--- dist/lfs-5.1/qtopia/qtopia.spec     21 Aug 2009 08:02:28 -0000      1.4
+++ dist/lfs-5.1/qtopia/qtopia.spec     21 Aug 2009 15:26:34 -0000
@@ -90,8 +90,8 @@
  esac

  # Use toolchain flags when not spoofing
-export EXTRA_CFLAGS=$TOOLCHAIN_CFLAGS
-export EXTRA_LDFLAGS=$TOOLCHAIN_CFLAGS
+export EXTRA_CFLAGS="$TOOLCHAIN_CFLAGS"
+export EXTRA_LDFLAGS="$TOOLCHAIN_CFLAGS"

I don't have Ubuntu so am not able to fully build-test this.  If this is
the problem then there may be other parts that need quotes.

Regards, Stuart










reply via email to

[Prev in Thread] Current Thread [Next in Thread]