AnsweredAssumed Answered

adding a package via LTIB fails

Question asked by cyrus ara on Jun 8, 2014
Latest reply on Jun 10, 2014 by Yiping Wang

Hi,

I have installed and built "ltib-mpc8315erdb-20080630" on ubuntu 10.04 (the process was hard but it was successfull at last).

But when I try to add any package (e.g. net-SNMP or bridge-utils) the build fails (LTIB output is shown below)

It seems LTIB complains about missing dependencies (i.e. for net-snmp), or missing autoconf (in case of bridge utils). If LTIB has been sucessfully built for the 1st time, why should it complain again? What is the solution to this problem.

 

Processing: net-snmp

======================

sudo --force-debian /opt/freescale/ltib/usr/bin/rpm --root /home/myuser/ltib-mpc8315erdb-20080630/rootfs --dbpath /var/lib/rpm -e --allmatches --nodeps --define '_tmppath /tmp/ltib' net-snmp 2>/dev/null

usage: sudo -h | -K | -k | -L | -V

usage: sudo -v [-AknS] [-p prompt]

usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U username] [-u  username|#uid] [-g groupname|#gid] [command]

usage: sudo [-AbEHknPS] [-C fd] [-g groupname|#gid] [-p prompt] [-u  username|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>]

usage: sudo -e [-AknS] [-C fd] [-g groupname|#gid] [-p prompt] [-u  username|#uid] file ...

sudo /opt/freescale/ltib/usr/bin/rpm --root /home/myuser/ltib-mpc8315erdb-20080630/rootfs --dbpath /var/lib/rpm --prefix / --ignorearch -ivh --force --excludedocs --define '_tmppath /tmp/ltib' --force-debian /home/myuser/ltib-mpc8315erdb-20080630/rpm/RPMS/ppc/net-snmp-5.4.1-1.ppc.rpm

error: Failed dependencies:

    libc.so.6(GLIBC_2.7) is needed by net-snmp-5.4.1-1.ppc

    perl(File::Temp) is needed by net-snmp-5.4.1-1.ppc

    perl(FileHandle) is needed by net-snmp-5.4.1-1.ppc

    perl(Net::Ping) is needed by net-snmp-5.4.1-1.ppc

    perl(Net::SMTP) is needed by net-snmp-5.4.1-1.ppc

    perl(Term::ReadKey) is needed by net-snmp-5.4.1-1.ppc

    perl(Term::ReadLine) is needed by net-snmp-5.4.1-1.ppc

    perl(Tk) is needed by net-snmp-5.4.1-1.ppc

 

f_buildrpms() returned an error, exiting

traceback:

main:501

 

Started: Sat Jun  7 00:11:22 2014

Ended:   Sat Jun  7 00:11:42 2014

Elapsed: 20 seconds

 

Build Failed

 

Exiting on error or interrupt

myuser@ubuntu:~/ltib-mpc8315erdb-20080630$

==================================================================================

 

Again a similar problem when trying to add the "bridge-utils" package can be seen as follows:

 

Processing: bridge-utils

==========================

Build path taken because: build key set, no prebuilt rpm,

 

rpmbuild --dbpath /home/myuser/ltib-mpc8315erdb-20080630/rootfs//var/lib/rpm --target ppc --define '_unpackaged_files_terminate_build 0' --define '_target_cpu ppc' --define '__strip strip' --define '_topdir /home/myuser/ltib-mpc8315erdb-20080630/rpm' --define '_prefix /usr' --define '_tmppath /home/myuser/ltib-mpc8315erdb-20080630/tmp' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit  /home/myuser/ltib-mpc8315erdb-20080630/dist/lfs-5.1/bridge-utils/bridge-utils.spec

Building target platforms: ppc

Building for target ppc

Executing(%build): /bin/sh -e /home/myuser/ltib-mpc8315erdb-20080630/tmp/rpm-tmp.EEHs5b

+ umask 022

+ cd /home/myuser/ltib-mpc8315erdb-20080630/rpm/BUILD

+ cd bridge-utils-1.2

+ autoconf

/home/myuser/ltib-mpc8315erdb-20080630/tmp/rpm-tmp.EEHs5b: 1: autoconf: not found

error: Bad exit status from /home/myuser/ltib-mpc8315erdb-20080630/tmp/rpm-tmp.EEHs5b (%build)

 

RPM build errors:

    Bad exit status from /home/myuser/ltib-mpc8315erdb-20080630/tmp/rpm-tmp.EEHs5b (%build)

Build time for bridge-utils: 0 seconds

 

Failed building bridge-utils

 

f_buildrpms() returned an error, exiting

traceback:

main:501

 

Started: Sat Jun  7 00:22:36 2014

Ended:   Sat Jun  7 00:22:43 2014

Elapsed: 7 seconds

 

These packages failed to build:

bridge-utils

 

Build Failed

 

Exiting on error or interrupt

myuser@ubuntu:~/ltib-mpc8315erdb-20080630$

 

Any help is most appreciated

Outcomes