Skip to content

Instantly share code, notes, and snippets.

@oreo639
Last active January 9, 2023 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oreo639/ba4dd28e022681467b1239f5375624c8 to your computer and use it in GitHub Desktop.
Save oreo639/ba4dd28e022681467b1239f5375624c8 to your computer and use it in GitHub Desktop.
arches=(
'x86_64'
'x86_64-musl'
'i686'
'armv6l'
'armv6l-musl'
'aarch64'
'aarch64-musl'
)
for arch in ${arches[@]}; do
echo "=> $arch"
IFS=$'\n' PKGS=(${PKGS[@]} $(XBPS_TARGET_ARCH="$arch" xbps-query -MRX libssp --repository=https://repo-default.voidlinux.org/current/aarch64/musl/ --repository=https://repo-default.voidlinux.org/current/musl/ --repository=https://repo-default.voidlinux.org/current/aarch64/))
done
#echo ${PKGS[@]}
IFS=$'\n' PKGS=($(echo "${PKGS[@]}" | tr ' ' '\n' | sort -u | awk -vLine="libssp-devel" '!index($0,Line)'))
for pkg in ${PKGS[@]}; do
pkgname=${pkg%\-*}
realpkg=$(readlink srcpkgs/$pkgname)
if [ -z "$realpkg" ]; then
realpkg=$pkgname
fi
REALPKGS=(${REALPKGS[@]} ${realpkg})
echo "=> ${realpkg}"
done
IFS=$'\n' PKGS=($(echo "${REALPKGS[@]}" | tr ' ' '\n' | sort -u | awk -vLine="libssp-devel" '!index($0,Line)'))
echo ${PKGS[@]}
echo ${#PKGS[*]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment