/usr/share/scratchbox2/wrappers/ldconfig is in scratchbox2 2.2.4-1debian1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #!/bin/bash
#
# "ldconfig" wrapper for scratchbox 2:
# ldconfig is a statically linked binary.
#
# Copyright (c) 2008 Nokia Corporation.
# All rights reserved.
# Author: Lauri T. Aarnio
#
# Licensed under GPL version 2
args="$*"
prog="$0"
progbase=`basename $0`
function error_not_inside_sb2()
{
echo "SB2: $progbase wrapper: This wrapper can only be used from inside"
echo "the scratchbox 2'ed environment"
exit 1
}
if [ -z "$SBOX_SESSION_DIR" ]
then
error_not_inside_sb2
fi
. $SBOX_SESSION_DIR/sb2-session.conf
if [ -z "$sbox_mapmode" -o -z "$sbox_dir" ]
then
error_not_inside_sb2
fi
sbox_ldconfig_path=""
sbox_ldconfig_root=""
# read-in mode-specific settings
if [ -f $sbox_dir/share/scratchbox2/modeconf/sb2rc.$sbox_mapmode ]
then
. $sbox_dir/share/scratchbox2/modeconf/sb2rc.$sbox_mapmode "$progbase"
fi
if [ -z "$sbox_ldconfig_path" ]
then
sbox_ldconfig_path="$sbox_target_root/sbin/ldconfig"
fi
if [ -z "$sbox_ldconfig_root" ]
then
sbox_ldconfig_root="$sbox_target_root"
fi
export SBOX_ALLOW_STATIC_BINARY=$sbox_ldconfig_path
exec $sbox_ldconfig_path -r "$sbox_ldconfig_root" $args
|