On Tue, Nov 18, 2008 at 3:09 PM, Adriaan de Groot <groot at kde.org> wrote:
> On Tuesday 18 November 2008 19:59:36 Ben Taylor wrote:
>> This patch is for Dude, but has also been tested on the hg-dev to
>> build XSTUFF on S10/x64 (xstuff on S10/32-bit already worked).
>
> Looks like it suffers from an "all the world is an x86 or amd64" complex.
yep. my bad.
forgot about sparc. This should fix it.
Ben
Index: XSTUFF/20071107/Solaris/build.sh
===================================================================
--- XSTUFF/20071107/Solaris/build.sh (revision 2836)
+++ XSTUFF/20071107/Solaris/build.sh (working copy)
@@ -12,7 +12,13 @@
mv XW_NV XW_NV_not_built_when_is64
cd ../..
XSTUFF_VER_SUBDIR="${XSTUFF_DIR#${PWD}}"
- cd ..
+ if [ -d "../${_arch}" ]; then
+ cd ..
+ WORK_XSTUFF_PREFIX="../../.."
+ else
+ XSTUFF_VER_SUBDIR=`echo ${XSTUFF_VER_SUBDIR} | sed 's,${_arch}/,,'`
+ WORK_XSTUFF_PREFIX="../.."
+ fi
for subdir in *
do
if [ -d ${subdir} ]
@@ -28,7 +34,8 @@
# Found the 32 bit subdir. Symlink the 64 bit
build area
# to point to the 32 bit build area.
cd "${XSTUFF_DIR}"
- ln -s
"../../../${subdir}${XSTUFF_VER_SUBDIR}/XW_NV" "${XW_NV}"
+ WORK_XSTUFF_PREFIX=${WORK_XSTUFF_PREFIX}/${subdir}
+ ln -s
"${WORK_XSTUFF_PREFIX}/${XSTUFF_VER_SUBDIR}/XW_NV" "${XW_NV}"
exit 0
fi
done