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


From: rmarathe
Subject: Re: [Ltib] qtopia package build failure while building ltib from CVS (Savannah)
Date: Mon, 24 Aug 2009 06:27:37 -0400 (EDT)
User-agent: SquirrelMail/1.4.13

Hi Stuart,

I am using Daniel's patch as reference but I am facing one more problem.
Your hunch that /bin/sh being linked to 'dash' was correct. I did the
change that you specified below. But, there is no file by name
"ltibqtopiaconfig" in that directory. This is supposed to come as part of
repository OR does it get created while running ltib configuration ?

Snapshot of error message:
================================================================
Executing(%build): /bin/sh -e /home/rmarathe/myltib/ltib/tmp/rpm-tmp.61558
+ umask 022
+ cd /home/rmarathe/myltib/ltib/rpm/BUILD
+ cd qtopia-free-2.2.0
+ . ./ltibqtopiaconfig
.: 1: Can't open ./ltibqtopiaconfig
error: Bad exit status from /home/rmarathe/myltib/ltib/tmp/rpm-tmp.61558
(%build)
=================================================================

Please let me know how to proceed.
Also thanks to you and Daniel for helping me thus far.

regards,
Rajesh Marathe.




> 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]