ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Can ltib rpm host package installed in --nodeps way


From: Lv Terry-R65388
Subject: Re: [Ltib] Can ltib rpm host package installed in --nodeps way
Date: Fri, 3 Feb 2012 06:40:48 +0000

Hi Stuart,

        I add --nodeps to function check_toolchain_setup() in ltib file for 
toolchain to install.

my $cmd =   "$cf->{sudo} $cf->{rpm} "
                    . "--dbpath $cf->{defpfx}/var/lib/rpm "
-                   . "-ivh --force --ignorearch $tc";
+                   . "-ivh --force --ignorearch --nodeps $tc";
             print "$cmd\n";

        The side effect might be that toolchains that need system dependencies 
may not run.

        Will it cause other issues?

        Thanks~~

Yours
Terry

-----Original Message-----
From: Stuart Hughes [mailto:address@hidden 
Sent: 2012年1月14日 21:19
To: Lv Terry-R65388
Cc: address@hidden
Subject: Re: [Ltib] Can ltib rpm host package installed in --nodeps way

Hi Terry,

Normally toolchains are built in a way that minimises their dependencies so 
that they may be run on many version/distributions of Linux.

In this case it looks like it's been build with more dependencies.

You can install with nodeps, but it is likely that when you ship it to other 
people they won't be able to run the toolchain if it's vintage is older than 
the machine that built the toolchain.

Regards, Stuart

On 10/01/12 09:42, Lv Terry-R65388 wrote:
> Hi,
> 
>       I'm trying to add a new cross-compiler toolchain in ltib.
>       The toolchain needs libc6 2.13 and libc6 2.13 is provided itself.
> 
>       I packed the toolchain to rpm package and tried to run ltib to install 
> it.
>       I encountered the following errors:
> 
> address@hidden:~/toolchain_ltib/ltib$ ./ltib
> Installing: gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i386.rpm
> sudo /opt/freescale/ltib/usr/bin/rpm --dbpath 
> /opt/freescale/ltib/var/lib/rpm -ivh --force --ignorearch 
> /opt/freescale/pkgs/gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i3
> 86.rpm Failed to install: 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i386.rpm:
> error: failed dependencies:
>         libc.so.6(GLIBC_2.0)   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
>         libc.so.6(GLIBC_2.1)   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
>         libc.so.6(GLIBC_2.1.2)   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
>         libc.so.6(GLIBC_2.1.3)   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
>         libc.so.6(GLIBC_2.2)   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
>         libc.so.6(GLIBC_2.3)   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
>         libdl.so.2(GLIBC_2.0)   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
>         libdl.so.2(GLIBC_2.1)   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
>         libm.so.6(GLIBC_2.0)   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
>         libpthread.so.0(GLIBC_2.2)   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
>         libz.so.1   is needed by 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1
> 
> traceback:
>  main::check_toolchain_setup:2552
>   main::pre_build_checks:1453
>    main:557
> 
> 
> Started: Tue Jan 10 16:41:03 2012
> Ended:   Tue Jan 10 16:41:05 2012
> Elapsed: 2 seconds
> 
> 
> Build Failed
> 
> Exiting on error or interrupt
> address@hidden:~/toolchain_ltib/ltib$
> 
>       If I install this rpm package manually with --nodeps, it can be 
> installed.
> 
> address@hidden:~/toolchain_ltib$ sudo rpm -ivh 
> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i386.rpm --nodeps
> rpm: RPM should not be used directly install RPM packages, use Alien instead!
> rpm: However assuming you know what you are doing...
> Preparing...                ########################################### [100%]
>    
> 1:gcc-linaro-4.6.3-glibc-########################################### 
> [100%]
> 
>       So my question is: can I install this rpm package in ltib in a implicit 
> --nodeps way.
>       That is, I can tell ltib to install this package using --nodeps in spec 
> or elsewhere, not need to add --nodeps as an option for ./ltib.
> 
>       Thanks a lot~~
> 
> Yours
> Terry
> 
> 
> _______________________________________________
> LTIB home page: http://ltib.org
> 
> Ltib mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/ltib
> 


reply via email to

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