buildinstall woes..

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

 



Hi,

I am following the excellent document by Tony Nugent (Thanks Tony, the
doucment really rox) to build a custom RH box. At the buildinstall step I
was foxed by an error,

/usr/sbin/chroot: cannot execute usr/sbin/ldconfig: No such file or
directory

On investigation it turned out that the glibc and openssl package was not
expanded by the expandPackageSet() routine in the upd-instroot. On further
investigation I found that these are the only 2 packages that have an i386
and i686 version with same version no.

swathi:/mnt/d/root/i386# ls | grep openssl-0.9.6b-18.
openssl-0.9.6b-18.i386.rpm
openssl-0.9.6b-18.i686.rpm

swathi:/mnt/d/root/i386# ls | grep glibc-2.2.5-34.i
glibc-2.2.5-34.i386.rpm
glibc-2.2.5-34.i686.rpm


I made a workaround by adding

rpm2cpio /root/redhat/i386/RedHat/RPMS/glibc-2.2.5-34.i686.rpm | (cd
$PKGDEST; cpio -E $KEEPFILES --quiet -iumd)

after the loop (the full context at the end of the mail).

Is this a bug or am I missing some thing?

raj

--
expandPackageSet() {
    echo "INSIDE EXPANDPACKAGES"
    sleep 3
    RPMS=$1
    PKGDEST=$2
    KEEPFILES=$3
    echo $RPMS

    for n in $RPMS; do
        echo "Expanding packages..." $(basename $n)
        if [ $(rpm -qp --qf '%{NAME}' $n) = "glibc-common" ] ; then
            GLIBC=$n
        fi
        rpm2cpio $n | (cd $PKGDEST; cpio -E $KEEPFILES --quiet -iumd)
        echo  "Expanding packages..." "$(basename $n | sed 's/./ /g')"
    done
        rpm2cpio /root/redhat/i386/RedHat/RPMS/glibc-2.2.5-34.i686.rpm |
(cd $PKGDEST; cpio -E $KEEPFILES --quiet -iumd)
        rpm2cpio /root/redhat/i386/RedHat/RPMS/openssl-0.9.6b-18.i686.rpm
| (cd $PKGDEST; cpio -E $KEEPFILES --quiet -iumd)
}







[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux