Try to fix the symlink creation for x86 by copying the code form amd64.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
This commit is contained in:
parent
b7f49f29b5
commit
cee3787b3f
1 changed files with 13 additions and 5 deletions
|
@ -32,9 +32,17 @@ update_symlinks() {
|
||||||
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
||||||
pushd $d >/dev/null
|
pushd $d >/dev/null
|
||||||
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
# 20yymmddThhmmssZ
|
||||||
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for 20YYMMDD stuff
|
# 20yymmddhhmmss
|
||||||
ln -sf $f $of
|
# 20yymmdd
|
||||||
|
# 20yy.n
|
||||||
|
of=$(perl -p \
|
||||||
|
-e 's/20\d{6}T\d{6}Z/latest/g;' \
|
||||||
|
-e 's/20\d{6}\d{6}/latest/g;' \
|
||||||
|
-e 's/20\d{6}/latest/g;' \
|
||||||
|
-e 's/20\d{2}\.\d{2}/latest/g;' \
|
||||||
|
<<<"$f")
|
||||||
|
ln -svf "$f" "$of"
|
||||||
done
|
done
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
|
@ -61,7 +69,7 @@ post_build() {
|
||||||
pushd ${BUILD_SRCDIR_BASE}/default >/dev/null
|
pushd ${BUILD_SRCDIR_BASE}/default >/dev/null
|
||||||
mkdir -p ${TMPDIR}/empty
|
mkdir -p ${TMPDIR}/empty
|
||||||
"${cmd[@]}" ${TMPDIR}/empty ${DEST_DEFAULT}
|
"${cmd[@]}" ${TMPDIR}/empty ${DEST_DEFAULT}
|
||||||
for file in $(ls stage{3,4}*{${DATESTAMP},${TIMESTAMP}}*${EXTENSIONS} ); do
|
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} stage{3,4}*${TIMESTAMP}*${EXTENSIONS} ); do
|
||||||
if [ -f $file ]; then
|
if [ -f $file ]; then
|
||||||
"${cmd[@]}" ${file}* ${DEST_DEFAULT}
|
"${cmd[@]}" ${file}* ${DEST_DEFAULT}
|
||||||
fi
|
fi
|
||||||
|
@ -75,7 +83,7 @@ post_build() {
|
||||||
|
|
||||||
pushd ${BUILD_SRCDIR_BASE}/hardened >/dev/null
|
pushd ${BUILD_SRCDIR_BASE}/hardened >/dev/null
|
||||||
"${cmd[@]}" ${TMPDIR}/empty ${DEST_HARDENED}
|
"${cmd[@]}" ${TMPDIR}/empty ${DEST_HARDENED}
|
||||||
for file in $(ls stage{3,4}*{${DATESTAMP},${TIMESTAMP}}*${EXTENSIONS} ); do
|
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} stage{3,4}*${TIMESTAMP}*${EXTENSIONS} ); do
|
||||||
if [ -f $file ]; then
|
if [ -f $file ]; then
|
||||||
"${cmd[@]}" $file* ${DEST_HARDENED}
|
"${cmd[@]}" $file* ${DEST_HARDENED}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue