Closed abmusse closed 9 years ago
Original comment by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).
I've put this code in place and it is working.
Original comment by Tony Cairns (Bitbucket: rangercairns, GitHub: rangercairns).
Do you want me to do ... or ... are you doing update?
Original comment by Tony Cairns (Bitbucket: rangercairns, GitHub: rangercairns).
Take out TOOLKIT ...
#!shell
...
echo "setup $RPM_WGET ..."
...
Original comment by Tony Cairns (Bitbucket: rangercairns, GitHub: rangercairns).
Wow ... that looks totally wrong, replace with new package_setup_rpm
#!shell
function package_setup_rpm {
cdhere=$(pwd)
echo "setup $RPM_RTE ..."
restore -xvqf $RPM_RTE
cd $cdhere
mkdir /QOpenSys/opt
cp -R usr/opt/* /QOpenSys/opt/.
rm -R usr
ln -s /QOpenSys/opt /QOpenSys/var/opt
ln -s /QOpenSys/opt /opt
mkdir /var
ln -s /QOpenSys/var/opt /var/opt
ln -s /opt/freeware/bin/rpm /usr/bin/rpm
cd /opt/freeware/lib
ln -s libpopt.so.0.0.0 libpopt.so
ln -s librpm.so.0.0.0 librpm.so
ln -s librpmbuild.so.0.0.0 librpmbuild.so
cd $cdhere
echo "setup $TOOLKIT_RPM_WGET ..."
rpm --ignoreos --ignorearch --nodeps --replacepkgs -hUv $RPM_WGET
}
Original report by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).
The
package_setup_rpm
function inpkg_setup.sh
is attempting to symlink to/usr/local/bin
and/usr/local/lib
but those do not yet exist within chroot.Should they exist or should the symlink instead be for
/usr/bin
and/usr/lib
?