ltib
[Top][All Lists]
Advanced

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

Re: FC12 install problem (was Re: [Ltib] LTIB installation problem)


From: Stuart Hughes
Subject: Re: FC12 install problem (was Re: [Ltib] LTIB installation problem)
Date: Fri, 09 Apr 2010 17:44:13 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Shila,

Please do not post very large files to the LTIB list (I did ask you to
send off-list), they will bounce.

I miss-typed the rpmbuild test, it should be (bin not lib):
/opt/freescale/ltib/usr/bin/rpmbuild --version

Your log file is not complete, it's not showing anything (attach the
actual host_config.log next time).

I see that your output is prompting for a sudo password?  This indicates
that you do not have sudo setup for your user.  LTIB should have tested
and warned you about this, but Freescale may have disabled this test.

Make sure you have sudo permissions, you can do this by running (as your
normal user):
$ sudo -l

You should see something like this (the paths from a Freescale BSP are
different).

User seh may run the following commands on this host:
    (root) NOPASSWD: /bin/rpm, (root) /opt/ltib/usr/bin/rpm

The important thing is that you have the host rpm and ltib rpm (for you
maybe /opt/freescale/ltib/usr/bin/rpm).

Also please can you confirm you are on FC12.

Regards, Stuart



Shila Haque wrote:
> Hi Stuart,
>  
> Thanks for your reply. I followed your instruction and got the error. I
> am sending the log file (another one is text file) as an attachment. I
> got the RPM version 4.0.4 but did get any for rpmbuild and the output
> are as follows:
>  
> address@hidden ~]# execstack -c /opt/freescale/ltib/usr/lib/librpmio-4.0.4.so
> address@hidden ~]# /opt/freescale/ltib/usr/bin/rpm --version
> RPM version 4.0.4
> address@hidden ~]# /opt/freescale/ltib/usr/lib/rpmbuild --version
> bash: /opt/freescale/ltib/usr/lib/rpmbuild: No such file or directory
> address@hidden ~]# rm -rf /opt/freescale/ltib
> address@hidden ~]# exit
> exit
> address@hidden ltib-p2020ds-20091119]$ rm -rf /tmp/rpm*
> address@hidden ltib-p2020ds-20091119]$ ./ltib
> 
> Installing host support packages.
> 
> This only needs to be done once per host, but may take up to
> an hour to complete ...
> 
> If an error occurs, a log file with the full output may be found in:
> /home/hwtesting/ltib-p2020ds-20091119/host_config.log
> 
> [sudo] password for hwtesting:
> Exiting on error or interrupt
> Please see >> /home/hwtesting/ltib-p2020ds-20091119/host_config.log for
> details
> address@hidden ltib-p2020ds-20091119]$
> 
> Thanks,
>  
> Shila
> 
> ------------------------------------------------------------------------
> *From:* Stuart Hughes [mailto:address@hidden
> *Sent:* Fri 4/9/2010 4:09 AM
> *To:* Shila Haque
> *Cc:* address@hidden
> *Subject:* Re: FC12 install problem (was Re: [Ltib] LTIB installation
> problem)
> 
> Hi Shila,
> 
> It looks to me like rpm-fs may not have been installed.  With the fails
> and re-tries it's quite possible something got missed.
> 
> * Can you confirm that you're still on Fedora 12?
> * Can you confirm that you ran execstack -c on the librpmio library?
> 
> Also can you run these commands and post the output (the paths are from
> memory):
> 
> $ /opt/freescale/ltib/usr/bin/rpm --version
> $ /opt/freescale/ltib/usr/lib/rpmbuild --version
> 
> If those don't show RPM version 4.0.4 then please re-try this:
> 
> AS root:
> # rm -rf /opt/freescale/ltib
> 
> # as your normal user
> rm -rf /tmp/rpm*
> ./ltib
> 
> send me the complete log if it fails (off the list)
> 
> Regards, Stuart
> 
> 
> Shila Haque wrote:
>> Hi Stuart,
>>
>> Thanks a lot for your feedback. I am using the Freescale BPS and
>> verified the library path as you instruction. I kept the line "rpm-build
>> 0" in ltib in command and also removed the 2>/dev/null from the
>> 'rpm-build' line of the bin/Ltibutils.pm
>>
>> Now I am getting the following error at host_config.log:
>> .....
>> Making all in tools
>> make[2]: Entering directory
>> `/opt/freescale/ltib/usr/src/rpm/BUILD/texinfo-4.8/tools'
>> make[2]: *** No rule to make target `all'.  Stop.
>> make[2]: Leaving directory
>> `/opt/freescale/ltib/usr/src/rpm/BUILD/texinfo-4.8/tools'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory
>> `/opt/freescale/ltib/usr/src/rpm/BUILD/texinfo-4.8'
>> make: *** [all] Error 2
>> error: Bad exit status from
>> /home/hwtesting/ltib-p2020ds-20091119/tmp/rpm-tmp.13841 (%build)
>>
>>
>> RPM build errors:
>>     Bad exit status from
>> /home/hwtesting/ltib-p2020ds-20091119/tmp/rpm-tmp.13841 (%build)
>> Build time for texinfo: 16 seconds
>>
>> Failed building texinfo
>> Died at ./ltib line 1380.
>> traceback:
>>  main::build_host_rpms:1380
>>   main::host_checks:1435
>>    main:542
>>
>>
>> Started: Thu Apr  8 08:36:20 2010
>> Ended:   Thu Apr  8 08:38:08 2010
>> Elapsed: 108 seconds
>>
>> These packages failed to build:
>> texinfo
>>
>> Build Failed
>>
>> Thanks,
>>
>> Shila
>>
>>
>>
>> -----Original Message-----
>> From: Stuart Hughes [mailto:address@hidden
>> Sent: Wednesday, April 07, 2010 3:52 AM
>> To: Shila Haque
>> Cc: address@hidden
>> Subject: Re: FC12 install problem (was Re: [Ltib] LTIB installation
>> problem)
>>
>> Hi Shila/all,
>>
>> I've checked-in an update to LTIB which fixes the install problem on
>> FC12.
>>
>> For people with existing BSPs please use the work-around below to fix
>> the problem (execstack -c).
>>
>> Regards, Stuart
>>
>> Stuart Hughes wrote:
>>> Hi Shila,
>>>
>>> I looked into this a bit more and I think the problem is with SELINUX
>>> (or a violation by rpm in LTIB).  Did you get any alerts about
>>> librpmio-4.0.4.so?
>>>
>>> Can you try this as root:
>>>
>>> For an Savannah (public) LTIB:
>>> # execstack -c /opt/ltib/usr/lib/librpmio-4.0.4.so
>>>
>>> For Freescale BSPs (please verify the library path):
>>> # execstack -c /opt/freescale/ltib/usr/lib/librpmio-4.0.4.so
>>>
>>> After that go back to your normal user and re-try running LTIB.
>>>
>>> Regards, Stuart
>>>
>>>
>>> Shila Haque wrote:
>>>> Hi Stuart,
>>>>
>>>> I really appreciated your help. I checked the host_config.log (I sent
>>>> this in my earlier email) and got the following:
>>>>
>>>> Processing platform: Host support packages
>>>> ============================================
>>>> using
>>>>
>> /home/hwtesting/ltib-p2020ds-20091119/config/platform/host/ltib.preconfi
>>>> g
>>>>
>>>> Processing: fake-provides
>>>> ===========================
>>>> Build path taken because: no prebuilt rpm,
>>>>
>>>> rpmbuild --dbpath ///opt/freescale/ltib/var/lib/rpm --target i686
>>>> --define '_unpackaged_files_terminate_build 0' --define '_target_cpu
>>>> i686' --define '__strip strip' --define '_topdir
>>>> /opt/freescale/ltib/usr/src/rpm' --define '_prefix
>>>> /opt/freescale/ltib/usr' --define '_tmppath
>>>> /home/hwtesting/ltib-p2020ds-20091119/tmp' --define '_rpmdir
>>>> /opt/freescale/ltib/usr/src/rpm/RPMS'  --define '_mandir
>>>> /opt/freescale/ltib/usr/share/man' --define '_sysconfdir
>>>> /opt/freescale/ltib/etc' --define '_localstatedir /var' -bb --clean
>>>> --rmsource
>>>>
>> /home/hwtesting/ltib-p2020ds-20091119/dist/lfs-5.1/fake-provides/fake-pr
>>>> ovides.spec
>>>>
>>>> Failed building fake-provides
>>>> Died at ./ltib line 1380.
>>>> traceback:
>>>>  main::build_host_rpms:1380
>>>>   main::host_checks:1435
>>>>    main:542
>>>>
>>>>
>>>> Started: Tue Apr  6 09:10:15 2010
>>>> Ended:   Tue Apr  6 09:10:16 2010
>>>> Elapsed: 1 seconds
>>>>
>>>> These packages failed to build:
>>>> fake-provides
>>>>
>>>> Build Failed
>>>>
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Shila
>>>>
>>>> -----Original Message-----
>>>> From: Stuart Hughes [mailto:address@hidden
>>>> Sent: Tuesday, April 06, 2010 9:57 AM
>>>> To: Shila Haque
>>>> Cc: address@hidden
>>>> Subject: Re: [Ltib] LTIB installation problem
>>>>
>>>> Hi Shila,
>>>>
>>>> I can't tell from your output what is wrong.  I've not tried FC12
>> with
>>>> the latest LTIB and I don't have the version you are using.
>>>>
>>>> Is that all the output? can you send me the actual host_config.log
>> off
>>>> the list.  I'm not sure I can help though as the version you have is
>> not
>>>> the one I maintain.
>>>>
>>>> Regards, Stuart
>>>>
>>>>
>>>> Shila Haque wrote:
>>>>> Hi Stuart,
>>>>>
>>>>> Thanks a lot for your reply.
>>>>>
>>>>> I checked again the bin/Ltibutils.pm and found it looks like the
>> same
>>>> as
>>>>> mention.
>>>>>
>>>>> Then I did the following:
>>>>> First, I removed the 2>/dev/null from the 'rpm-build' line and then
>>>> run.
>>>>> But I got the same error as rpm-build 0 failed.
>>>>> Then I commented out the line " rpm-build 0" at line 94 in ltib and
>>>> run
>>>>> and got the following error:
>>>>>
>>>>> address@hidden ltib-p2020ds-20091119]$ ./ltib
>>>>>
>>>>> Installing host support packages.
>>>>>
>>>>> This only needs to be done once per host, but may take up to
>>>>> an hour to complete ...
>>>>>
>>>>> If an error occurs, a log file with the full output may be found in:
>>>>> /home/hwtesting/ltib-p2020ds-20091119/host_config.log
>>>>>
>>>>> Exiting on error or interrupt
>>>>> Please see >> /home/hwtesting/ltib-p2020ds-20091119/host_config.log
>>>> for
>>>>> details
>>>>> address@hidden ltib-p2020ds-20091119]$
>>>>>
>>>>>
>>>>>
>>>>> I checked the host_config.log and got the following:
>>>>>
>>>>>
>>>>>
>>>>> Processing platform: Host support packages
>>>>> ============================================
>>>>> using
>>>>>
>> /home/hwtesting/ltib-p2020ds-20091119/config/platform/host/ltib.preconfi
>>>>> g
>>>>>
>>>>> Processing: fake-provides
>>>>> ===========================
>>>>> Build path taken because: no prebuilt rpm,
>>>>>
>>>>> rpmbuild --dbpath ///opt/freescale/ltib/var/lib/rpm --target i686
>>>>> --define '_unpackaged_files_terminate_build 0' --define '_target_cpu
>>>>> i686' --define '__strip strip' --define '_topdir
>>>>> /opt/freescale/ltib/usr/src/rpm' --define '_prefix
>>>>> /opt/freescale/ltib/usr' --define '_tmppath
>>>>> /home/hwtesting/ltib-p2020ds-20091119/tmp' --define '_rpmdir
>>>>> /opt/freescale/ltib/usr/src/rpm/RPMS'  --define '_mandir
>>>>> /opt/freescale/ltib/usr/share/man' --define '_sysconfdir
>>>>> /opt/freescale/ltib/etc' --define '_localstatedir /var' -bb --clean
>>>>> --rmsource
>>>>>
>> /home/hwtesting/ltib-p2020ds-20091119/dist/lfs-5.1/fake-provides/fake-pr
>>>>> ovides.spec
>>>>>
>>>>> Failed building fake-provides
>>>>> Died at ./ltib line 1380.
>>>>> traceback:
>>>>>  main::build_host_rpms:1380
>>>>>   main::host_checks:1435
>>>>>    main:542
>>>>>
>>>>>
>>>>> Started: Tue Apr  6 09:10:15 2010
>>>>> Ended:   Tue Apr  6 09:10:16 2010
>>>>> Elapsed: 1 seconds
>>>>>
>>>>> These packages failed to build:
>>>>> fake-provides
>>>>>
>>>>> Build Failed
>>>>>
>>>>>
>>>>> I really appreciated your help.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Shila
>>>>>
>>>>>
>>>>>
>>>
>>> _______________________________________________
>>> LTIB home page: http://ltib.org <http://ltib.org/>
>>>
>>> Ltib mailing list
>>> address@hidden
>>> http://lists.nongnu.org/mailman/listinfo/ltib
>>>
>>
> 




reply via email to

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