ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] qtopia-4 RPM build error.


From: Stuart Hughes
Subject: Re: [Ltib] qtopia-4 RPM build error.
Date: Wed, 21 Apr 2010 14:52:46 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Lukasz,

I suspect you're using Ubuntu and have /bin/dash and the shell linked to
/bin/sh?

If so then that explains the issue as dash does not support the function
keyword.  To work around this, try replacing (in
dist/lfs-5.1/qtopia/qtopia-4.spec):

 function NO { echo "PROJECTS-=$1"; }

with:

NO() { echo "PROJECTS-=$1"; }

You may run into more issues as the developers of this spec file
designed it with bash in mind.  A useful resource to help you with this
is: https://wiki.ubuntu.com/DashAsBinSh

If you managed to get this ported to run under dash, would you submit a
patch to the .spec file back to the list.

Regards, Stuart


Lukasz Gesieniec wrote:
> Hi Stuart,
> 
> I removed rpm/BUILD/qtopia-4-4.3.0 and this is result:
> 
> 
> + echo Patch #18 (qtopia-opensource-4.3.0-video-playback-01.patch):
> Patch #18 (qtopia-opensource-4.3.0-video-playback-01.patch):
> + patch -p1 -s
> + echo Patch #19 (qtopia-opensource-4.3.0-open_with_O_CREAT_fix.patch):
> Patch #19 (qtopia-opensource-4.3.0-open_with_O_CREAT_fix.patch):
> + patch -p1 -s
> + [ -n  ]
> + [ -n y ]
> + Q_MEDIA_CONFIG=-mediaengines gstreamer
> + [ -n y ]
> + Q_SOUND_CONFIG=-sound-system alsa
> + [ -z  ]
> + Q_IRDA_CONFIG=-no-infrared
> + export QWS_PLATFORM=phy3250
> + perl -e print uc phy3250
> + export UC_QWS_PLATFORM=PHY3250
> + mkdir -p devices/phy3250
> + CONFIG_PRI=devices/phy3250/config.pri
> + [ -f devices/phy3250/config.pri ]
> + echo DEFINES+=QT_QWS_PHY3250
> + echo #DEFINES+=DEBUG
> + mkdir -p devices/phy3250/src
> + function NO { echo PROJECTS-=
> /home/lukaszge/ltib/tmp/rpm-tmp.94951: 1: function: not found
> error: Bad exit status from /home/lukaszge/ltib/tmp/rpm-tmp.94951 (%prep)
> 
> 
> RPM build errors:
>     Bad exit status from /home/lukaszge/ltib/tmp/rpm-tmp.94951 (%prep)
> Build time for qtopia-4: 464 seconds
> 
> Failed building qtopia-4
> 
> Regards,
> Lukasz
> 
> 
> Dnia 21-04-2010 o 11:00:19 Stuart Hughes <address@hidden> napisał(a):
> 
>> Hi Lukasz,
>>
>> I can't really support this package as I don't use/build qtopia.
>> However looking at the .spec file, something must have gone wrong in the
>>  %prep phase when you first tried to build it as it is this which
>> creates the build directory.  Look at the end of the %prep section and
>> you'll see:
>>
>> # Create build dir
>> mkdir ../build
>>
>> My advice would be to remove rpm/BUILD/qtopia-4-4.3.0, re-run and then
>> analyse why the %prep phase is not creating the build directory.  Maybe
>> your platform is not supported for this package (which one is it?)
>>
>> Regards, Stuart
>>
>> Lukasz Gesieniec wrote:
>>>
>>> Hi,
>>>
>>> I have a problem with qtopia-4 package, please help.
>>>
>>>
>>> Processing: qtopia-4
>>> ======================
>>> Build path taken because: directory build, force set, build key set, no
>>> prebuilt rpm,
>>>
>>> rpmbuild --dbpath /home/lukaszge/ltib/rootfs//var/lib/rpm --target arm
>>> --define '_unpackaged_files_terminate_build 0' --define '_target_cpu
>>> arm' --define '__strip strip' --define '_topdir /home/lukaszge/ltib/rpm'
>>> --define '_prefix /usr' --define '_tmppath /home/lukaszge/ltib/tmp'
>>> --define '_rpmdir /home/lukaszge/ltib/rpm/RPMS'  --define '_mandir
>>> /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir
>>> /var' -bc --short-circuit
>>> /home/lukaszge/ltib/dist/lfs-5.1/qtopia/qtopia-4.spec
>>> Building target platforms: arm
>>> Building for target arm
>>> Executing(%build): /bin/sh -e /home/lukaszge/ltib/tmp/rpm-tmp.9540
>>> + umask 022
>>> + cd /home/lukaszge/ltib/rpm/BUILD
>>> + cd qtopia-4-4.3.0
>>> + cd build
>>> cd: 1: can't cd to build
>>> error: Bad exit status from /home/lukaszge/ltib/tmp/rpm-tmp.9540
>>> (%build)
>>>
>>>
>>> RPM build errors:
>>>     Bad exit status from /home/lukaszge/ltib/tmp/rpm-tmp.9540 (%build)
>>> Build time for qtopia-4: 0 seconds
>>>
>>> Failed building qtopia-4
>>>
>>> Regards,
>>> Lukasz
>>>
> 
> 




reply via email to

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