#!/bin/sh
export AR="arm-xilinx-linux-gnueabi-gcc-ar"
export AS="arm-xilinx-linux-gnueabi-as "
export BUILD_AR="ar"
export BUILD_AS="as "
export BUILD_CC="gcc "
export BUILD_CCLD="gcc "
export BUILD_CFLAGS="-isystemFIXMESTAGINGDIRHOST/usr/include -O2 -pipe"
export BUILD_CPP="gcc  -E"
export BUILD_CPPFLAGS="-isystemFIXMESTAGINGDIRHOST/usr/include"
export BUILD_CXX="g++ "
export BUILD_CXXFLAGS="-isystemFIXMESTAGINGDIRHOST/usr/include -O2 -pipe"
export BUILD_FC="gfortran "
export BUILD_LD="ld "
export BUILD_LDFLAGS="-LFIXMESTAGINGDIRHOST/usr/lib                         -LFIXMESTAGINGDIRHOST/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,FIXMESTAGINGDIRHOST/usr/lib                         -Wl,-rpath-link,FIXMESTAGINGDIRHOST/lib                         -Wl,-rpath,FIXMESTAGINGDIRHOST/usr/lib                         -Wl,-rpath,FIXMESTAGINGDIRHOST/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2"
export BUILD_NM="nm"
export BUILD_RANLIB="ranlib"
export BUILD_STRIP="strip"
export CC="arm-xilinx-linux-gnueabi-gcc  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Wdate-time --sysroot=FIXMESTAGINGDIRTARGET"
export CCLD="arm-xilinx-linux-gnueabi-gcc  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Wdate-time --sysroot=FIXMESTAGINGDIRTARGET"
export CC_FOR_BUILD="gcc "
export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0=/usr/src/debug/rpcbind/1.2.6-r0                      -fdebug-prefix-map=/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0=/usr/src/debug/rpcbind/1.2.6-r0                      -fdebug-prefix-map=FIXMESTAGINGDIRTARGET=                      -fdebug-prefix-map=FIXMESTAGINGDIRHOST= "
export CFLAGS_FOR_BUILD="-isystemFIXMESTAGINGDIRHOST/usr/include -O2 -pipe"
export CPP="arm-xilinx-linux-gnueabi-gcc -E --sysroot=FIXMESTAGINGDIRTARGET  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Wdate-time"
export CPPFLAGS=""
export CPPFLAGS_FOR_BUILD="-isystemFIXMESTAGINGDIRHOST/usr/include"
export CPP_FOR_BUILD="gcc  -E"
export CXX="arm-xilinx-linux-gnueabi-g++  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Wdate-time --sysroot=FIXMESTAGINGDIRTARGET"
export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0=/usr/src/debug/rpcbind/1.2.6-r0                      -fdebug-prefix-map=/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0=/usr/src/debug/rpcbind/1.2.6-r0                      -fdebug-prefix-map=FIXMESTAGINGDIRTARGET=                      -fdebug-prefix-map=FIXMESTAGINGDIRHOST=  -fvisibility-inlines-hidden"
export CXXFLAGS_FOR_BUILD="-isystemFIXMESTAGINGDIRHOST/usr/include -O2 -pipe"
export CXX_FOR_BUILD="g++ "
unset DISTRO
export FC="arm-xilinx-linux-gnueabi-gfortran  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Wdate-time --sysroot=FIXMESTAGINGDIRTARGET"
export GIT_CEILING_DIRECTORIES="/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0"
export HOME="/home/xbrbbot"
export LC_ALL="en_US.UTF-8"
export LD="arm-xilinx-linux-gnueabi-ld --sysroot=FIXMESTAGINGDIRTARGET "
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0=/usr/src/debug/rpcbind/1.2.6-r0                      -fdebug-prefix-map=/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0=/usr/src/debug/rpcbind/1.2.6-r0                      -fdebug-prefix-map=FIXMESTAGINGDIRTARGET=                      -fdebug-prefix-map=FIXMESTAGINGDIRHOST=  -Wl,-z,relro,-z,now"
export LDFLAGS_FOR_BUILD="-LFIXMESTAGINGDIRHOST/usr/lib                         -LFIXMESTAGINGDIRHOST/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,FIXMESTAGINGDIRHOST/usr/lib                         -Wl,-rpath-link,FIXMESTAGINGDIRHOST/lib                         -Wl,-rpath,FIXMESTAGINGDIRHOST/usr/lib                         -Wl,-rpath,FIXMESTAGINGDIRHOST/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2"
export LD_FOR_BUILD="ld "
unset MACHINE
export MAKE="make"
export NM="arm-xilinx-linux-gnueabi-gcc-nm"
export OBJCOPY="arm-xilinx-linux-gnueabi-objcopy"
export OBJDUMP="arm-xilinx-linux-gnueabi-objdump"
export OMP_NUM_THREADS="24"
export PATH="/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/scripts:FIXMESTAGINGDIRHOST/usr/bin/arm-xilinx-linux-gnueabi:FIXMESTAGINGDIRTARGET/usr/bin/crossscripts:FIXMESTAGINGDIRHOST/usr/sbin:FIXMESTAGINGDIRHOST/usr/bin:FIXMESTAGINGDIRHOST/sbin:FIXMESTAGINGDIRHOST/bin:/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/bitbake/bin:FIXME_HOSTTOOLS_DIR"
export PERL_HASH_SEED="0"
export PKG_CONFIG_DIR="FIXMESTAGINGDIRTARGET/usr/lib/pkgconfig"
export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
export PKG_CONFIG_LIBDIR="FIXMESTAGINGDIRTARGET/usr/lib/pkgconfig"
export PKG_CONFIG_PATH="FIXMESTAGINGDIRTARGET/usr/lib/pkgconfig:FIXMESTAGINGDIRTARGET/usr/share/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR="FIXMESTAGINGDIRTARGET"
export PKG_CONFIG_SYSTEM_INCLUDE_PATH="/usr/include"
export PKG_CONFIG_SYSTEM_LIBRARY_PATH="/lib:/usr/lib"
export PSEUDO_DISABLED="1"
export PSEUDO_UNLOAD="1"
export PYTHONHASHSEED="0"
export RANLIB="arm-xilinx-linux-gnueabi-gcc-ranlib"
export READELF="arm-xilinx-linux-gnueabi-readelf"
unset SHELL
export SOURCE_DATE_EPOCH="1620666619"
export SOURCE_DATE_EPOCH_FALLBACK="1302044400"
export STRINGS="arm-xilinx-linux-gnueabi-strings"
export STRIP="arm-xilinx-linux-gnueabi-strip"
unset TARGET_ARCH
export TZ="UTC"
export base_bindir="/bin"
export base_libdir="/lib"
export base_prefix=""
export base_sbindir="/sbin"
export bindir="/usr/bin"
export datadir="/usr/share"
export docdir="/usr/share/doc"
export exec_prefix="/usr"
export includedir="/usr/include"
export infodir="/usr/share/info"
export libdir="/usr/lib"
export libexecdir="/usr/libexec"
export localstatedir="/var"
export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib /lib"
export mandir="/usr/share/man"
export nonarch_base_libdir="/lib"
export nonarch_libdir="/usr/lib"
export oldincludedir="/usr/include"
export prefix="/usr"
export sbindir="/usr/sbin"
export servicedir="/srv"
export sharedstatedir="/com"
export sysconfdir="/etc"
export systemd_system_unitdir="/lib/systemd/system"
export systemd_unitdir="/lib/systemd"
export systemd_user_unitdir="/usr/lib/systemd/user"

# line: 99, file: /scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/meta/classes/useradd.bbclass
useradd_sysroot() {
	# Pseudo may (do_prepare_recipe_sysroot) or may not (do_populate_sysroot_setscene) be running
	# at this point so we're explicit about the environment so pseudo can load if
	# not already present.
	# PSEUDO_SYSROOT can contain references to the build architecture and COMPONENT_DIR
	# so needs the STAGING_FIXME below
	export PSEUDO="PSEUDO_PREFIX=FIXME_PSEUDO_SYSROOT/usr PSEUDO_LOCALSTATEDIR=FIXME_PSEUDO_LOCALSTATEDIR PSEUDO_PASSWD=FIXMESTAGINGDIRTARGET:FIXME_PSEUDO_SYSROOT PSEUDO_NOSYMLINKEXP=1 PSEUDO_IGNORE_PATHS=/usr/,/etc/,/lib,/dev/,/run/,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0/temp,FIXMESTAGINGDIRTARGET,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/sstate-cache,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/stamps,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/sstate-control,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/buildstats,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/sysroots-components,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/pkgdata,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0/deploy-,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0/sstate-build-package_,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0/sstate-install-package_,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0/pkgdata-sysroot,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/deploy,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/buildhistory,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/cache,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/scripts,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/meta/files/common-licenses,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/meta-openembedded/meta-python/licenses,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/meta-openembedded/meta-multimedia/licenses,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/meta-openembedded/meta-networking/licenses,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/meta-openembedded/meta-webserver/licenses,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/meta-openembedded/meta-oe/licenses,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/meta-qt5/licenses,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/meta-virtualization/files/custom-licenses,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/meta-python2/licenses,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/meta/COPYING,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0/rpcbind-1.2.6,/scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/rpcbind/1.2.6-r0/build PSEUDO_DISABLED=0 FIXME_PSEUDO_SYSROOT/usr/bin/pseudo"

	# Explicitly set $D since it isn't set to anything
	# before do_prepare_recipe_sysroot
	D=FIXMESTAGINGDIRTARGET

	# base-passwd's postinst may not have run yet in which case we'll get called later, just exit.
	# Beware that in some cases we might see the fake pseudo passwd here, in which case we also must
	# exit.
	if [ ! -f $D/etc/passwd ] ||
			grep -q this-is-the-pseudo-passwd $D/etc/passwd; then
		exit 0
	fi

	# It is also possible we may be in a recipe which doesn't have useradd dependencies and hence the
	# useradd/groupadd tools are unavailable. If there is no dependency, we assume we don't want to
	# create users in the sysroot
	if ! command -v useradd; then
		bbwarn "command useradd not found!"
		exit 0
	fi

	# Add groups and users defined for all recipe packages
	GROUPADD_PARAM=""
	USERADD_PARAM="--system --no-create-home --home-dir /                        --shell /bin/false --user-group rpc"
	GROUPMEMS_PARAM=""

	# Tell the system to use the environment vars
	UA_SYSROOT=1

	useradd_preinst
}

# line: 32, file: /scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/meta/classes/logging.bbclass
bbwarn() {
	if [ -p FIXME_LOGFIFO ] ; then
		printf "%b\0" "bbwarn $*" > FIXME_LOGFIFO
	else
		echo "WARNING: $*"
	fi
}

# line: 16, file: /scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/meta/classes/useradd.bbclass
useradd_preinst() {
OPT=""
SYSROOT=""

if test "x$D" != "x"; then
	# Installing into a sysroot
	SYSROOT="$D"
	OPT="--root $D"

	# Make sure login.defs is there, this is to make debian package backend work
	# correctly while doing rootfs.
	# The problem here is that if /etc/login.defs is treated as a config file for
	# shadow package, then while performing preinsts for packages that depend on
	# shadow, there might only be /etc/login.def.dpkg-new there in root filesystem.
	if [ ! -e $D/etc/login.defs -a -e $D/etc/login.defs.dpkg-new ]; then
	    cp $D/etc/login.defs.dpkg-new $D/etc/login.defs
	fi

	# user/group lookups should match useradd/groupadd --root
	export PSEUDO_PASSWD="$SYSROOT"
fi

# If we're not doing a special SSTATE/SYSROOT install
# then set the values, otherwise use the environment
if test "x$UA_SYSROOT" = "x"; then
	# Installing onto a target
	# Add groups and users defined only for this package
	GROUPADD_PARAM="${GROUPADD_PARAM}"
	USERADD_PARAM="${USERADD_PARAM}"
	GROUPMEMS_PARAM="${GROUPMEMS_PARAM}"
fi

# Perform group additions first, since user additions may depend
# on these groups existing
if test "x`echo $GROUPADD_PARAM | tr -d '[:space:]'`" != "x"; then
	echo "Running groupadd commands..."
	# Invoke multiple instances of groupadd for parameter lists
	# separated by ';'
	opts=`echo "$GROUPADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'`
	remaining=`echo "$GROUPADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
	while test "x$opts" != "x"; do
		perform_groupadd "$SYSROOT" "$OPT $opts"
		if test "x$opts" = "x$remaining"; then
			break
		fi
		opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'`
		remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
	done
fi

if test "x`echo $USERADD_PARAM | tr -d '[:space:]'`" != "x"; then
	echo "Running useradd commands..."
	# Invoke multiple instances of useradd for parameter lists
	# separated by ';'
	opts=`echo "$USERADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'`
	remaining=`echo "$USERADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
	while test "x$opts" != "x"; do
		perform_useradd "$SYSROOT" "$OPT $opts"
		if test "x$opts" = "x$remaining"; then
			break
		fi
		opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'`
		remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
	done
fi

if test "x`echo $GROUPMEMS_PARAM | tr -d '[:space:]'`" != "x"; then
	echo "Running groupmems commands..."
	# Invoke multiple instances of groupmems for parameter lists
	# separated by ';'
	opts=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'`
	remaining=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
	while test "x$opts" != "x"; do
		perform_groupmems "$SYSROOT" "$OPT $opts"
		if test "x$opts" = "x$remaining"; then
			break
		fi
		opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'`
		remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
	done
fi
}

# line: 13, file: /scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/meta/classes/useradd_base.bbclass
perform_groupadd() {
	local rootdir="$1"
	local opts="$2"
	bbnote "rpcbind: Performing groupadd with [$opts]"
	local groupname=`echo "$opts" | awk '{ print $NF }'`
	local group_exists="`grep "^$groupname:" $rootdir/etc/group || true`"
	if test "x$group_exists" = "x"; then
		eval flock -x $rootdir/etc -c \"$PSEUDO groupadd \$opts\" || true
		group_exists="`grep "^$groupname:" $rootdir/etc/group || true`"
		if test "x$group_exists" = "x"; then
			bbfatal "rpcbind: groupadd command did not succeed."
		fi
	else
		bbnote "rpcbind: group $groupname already exists, not re-creating it"
	fi
}

# line: 47, file: /scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/meta/classes/useradd_base.bbclass
perform_groupmems() {
	local rootdir="$1"
	local opts="$2"
	bbnote "rpcbind: Performing groupmems with [$opts]"
	local groupname=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-g" || $i == "--group") print $(i+1) }'`
	local username=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-a" || $i == "--add") print $(i+1) }'`
	bbnote "rpcbind: Running groupmems command with group $groupname and user $username"
	local mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`"
	if test "x$mem_exists" = "x"; then
		eval flock -x $rootdir/etc -c \"$PSEUDO groupmems \$opts\" || true
		mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`"
		if test "x$mem_exists" = "x"; then
			bbfatal "rpcbind: groupmems command did not succeed."
		fi
	else
		bbnote "rpcbind: group $groupname already contains $username, not re-adding it"
	fi
}

# line: 30, file: /scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/meta/classes/useradd_base.bbclass
perform_useradd() {
	local rootdir="$1"
	local opts="$2"
	bbnote "rpcbind: Performing useradd with [$opts]"
	local username=`echo "$opts" | awk '{ print $NF }'`
	local user_exists="`grep "^$username:" $rootdir/etc/passwd || true`"
	if test "x$user_exists" = "x"; then
		eval flock -x $rootdir/etc -c  \"$PSEUDO useradd \$opts\" || true
		user_exists="`grep "^$username:" $rootdir/etc/passwd || true`"
		if test "x$user_exists" = "x"; then
			bbfatal "rpcbind: useradd command did not succeed."
		fi
	else
		bbnote "rpcbind: user $username already exists, not re-creating it"
	fi
}

# line: 54, file: /scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/meta/classes/logging.bbclass
bbfatal() {
	if [ -p FIXME_LOGFIFO ] ; then
		printf "%b\0" "bbfatal $*" > FIXME_LOGFIFO
	else
		echo "ERROR: $*"
	fi
	exit 1
}

# line: 21, file: /scratch/jenkins-BUILDS-eSDK-2022.1_stable-pipeline-build-153_ZynqFull/sources/core/meta/classes/logging.bbclass
bbnote() {
	if [ -p FIXME_LOGFIFO ] ; then
		printf "%b\0" "bbnote $*" > FIXME_LOGFIFO
	else
		echo "NOTE: $*"
	fi
}

useradd_sysroot
