xbps
xbps copied to clipboard
Libfetch update
Syncing most of the code with the FreeBSD version and fixing some things about the keep-alive handling. This should fix some problems and make it easier to resolve https://github.com/void-linux/xbps/issues/152.
I've been testing this with a bash script:
#!/bin/bash
#
export LD_LIBRARY_PATH=$PWD/lib
cmd=$PWD/bin/xbps-fetch/xbps-fetch
XBPS_UHELPER_CMD=xbps-uhelper
XBPS_TARGET_WORDSIZE=64
XBPS_WORDSIZE=64
XBPS_TARGET_MACHINE=x86_64
vopt_if() {
:
}
vopt_conflict() {
:
}
vopt_bool() {
:
}
vopt_enable() {
:
}
vopt_with() {
:
}
for dir in ~/void-packages/srcpkgs/*; do
[[ -h "$dir" ]] && continue
unset arr
unset distfiles
. "$dir/template"
args=(${distfiles})
[[ ${#args} -eq 0 ]] && continue
mkdir -p "/tmp/xbps-fetch/${pkgname}-${version}"
cd "/tmp/xbps-fetch/${pkgname}-${version}"
valgrind "$cmd" -dv "${args[@]}" 2>&1 | tee "/tmp/xbps-fetch/$pkgname.log"
rv=$?
if [[ $rv -ne 0 ]]; then
echo "ERROR: $rv"
mv "/tmp/xbps-fetch/$pkgname.log" "/tmp/xbps-fetch/$pkgname.error.log"
else
mv "/tmp/xbps-fetch/$pkgname.log" "/tmp/xbps-fetch/$pkgname.good.log"
fi
done
This pull request introduces 2 alerts when merging 490cca2ac66cab8bdc25afdd44f3eab9d508d7f7 into 01180f9cb60893c4a57935fda106b1d5f77e2b49 - view on LGTM.com
new alerts:
- 1 for Use of potentially dangerous function
- 1 for Array argument size mismatch
This pull request introduces 1 alert when merging ada5a80468f789f10630525bd505008810b94425 into 01180f9cb60893c4a57935fda106b1d5f77e2b49 - view on LGTM.com
new alerts:
- 1 for Array argument size mismatch