Merge pull request #5707 from antonlacon/whitespace

packages-checker: remove trailing whitespace
This commit is contained in:
CvH 2021-10-02 13:35:36 +02:00 committed by GitHub
commit 2f7157f418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 8 deletions

View File

@ -14,7 +14,7 @@ PKG_BUILD_FLAGS="-sysroot"
PKG_CONFIGURE_OPTS_TARGET="--disable-mad" PKG_CONFIGURE_OPTS_TARGET="--disable-mad"
# TODO: mtpfs runs host utils while building, fix and set # TODO: mtpfs runs host utils while building, fix and set
pre_configure_target() { pre_configure_target() {
export LIBS="-lusb-1.0 -ludev" export LIBS="-lusb-1.0 -ludev"
} }

View File

@ -18,7 +18,7 @@ PKG_LIBVAR="PCSX-REARMED_LIB"
make_target() { make_target() {
cd ${PKG_BUILD} cd ${PKG_BUILD}
if target_has_feature neon; then if target_has_feature neon; then
export HAVE_NEON=1 export HAVE_NEON=1
export BUILTIN_GPU=neon export BUILTIN_GPU=neon
@ -28,7 +28,7 @@ make_target() {
# check if this flag is still needed when this package is updated # check if this flag is still needed when this package is updated
export CFLAGS="${CFLAGS} -fcommon" export CFLAGS="${CFLAGS} -fcommon"
case ${TARGET_ARCH} in case ${TARGET_ARCH} in
aarch64) aarch64)
make -f Makefile.libretro DYNAREC=lightrec platform=aarch64 GIT_VERSION=${PKG_VERSION} make -f Makefile.libretro DYNAREC=lightrec platform=aarch64 GIT_VERSION=${PKG_VERSION}

View File

@ -19,7 +19,7 @@ unpack() {
post_unpack() { post_unpack() {
# hack/workaround for borked upstream kernel/media_build # hack/workaround for borked upstream kernel/media_build
# without removing atomisp there a lot additional includes that # without removing atomisp there a lot additional includes that
# slowdown build process after modpost from 3min to 6min # slowdown build process after modpost from 3min to 6min
# even if atomisp is disabled via kernel.conf # even if atomisp is disabled via kernel.conf
rm -rf ${PKG_BUILD}/drivers/staging/media/atomisp rm -rf ${PKG_BUILD}/drivers/staging/media/atomisp

View File

@ -19,7 +19,7 @@ unpack() {
post_unpack() { post_unpack() {
# hack/workaround for borked upstream kernel/media_build # hack/workaround for borked upstream kernel/media_build
# without removing atomisp there a lot additional includes that # without removing atomisp there a lot additional includes that
# slowdown build process after modpost from 3min to 6min # slowdown build process after modpost from 3min to 6min
# even if atomisp is disabled via kernel.conf # even if atomisp is disabled via kernel.conf
rm -rf ${PKG_BUILD}/drivers/staging/media/atomisp rm -rf ${PKG_BUILD}/drivers/staging/media/atomisp

View File

@ -179,7 +179,7 @@ pre_make_target() {
continue continue
fi fi
if [ "$($PKG_BUILD/scripts/config --state ${OPTION%%=*})" != "${OPTION##*=}" ]; then if [ "$(${PKG_BUILD}/scripts/config --state ${OPTION%%=*})" != "${OPTION##*=}" ]; then
MISSING_KERNEL_OPTIONS+="\t${OPTION}\n" MISSING_KERNEL_OPTIONS+="\t${OPTION}\n"
fi fi
done < ${DISTRO_DIR}/${DISTRO}/kernel_options done < ${DISTRO_DIR}/${DISTRO}/kernel_options

View File

@ -39,7 +39,7 @@ post_makeinstall_target() {
cp ${PKG_DIR}/config/weston.ini ${INSTALL}/usr/share/weston cp ${PKG_DIR}/config/weston.ini ${INSTALL}/usr/share/weston
safe_remove ${INSTALL}/usr/share/wayland-sessions safe_remove ${INSTALL}/usr/share/wayland-sessions
safe_remove ${INSTALL}/usr/bin/weston-calibrator safe_remove ${INSTALL}/usr/bin/weston-calibrator
safe_remove ${INSTALL}/usr/bin/weston-simple-* safe_remove ${INSTALL}/usr/bin/weston-simple-*
safe_remove ${INSTALL}/usr/bin/weston-touch-calibrator safe_remove ${INSTALL}/usr/bin/weston-touch-calibrator
} }

View File

@ -39,7 +39,7 @@ makeinstall_target() {
ln -sf /var/lib/nvidia_drv.so ${INSTALL}/${XORG_PATH_MODULES}/drivers/nvidia_drv.so ln -sf /var/lib/nvidia_drv.so ${INSTALL}/${XORG_PATH_MODULES}/drivers/nvidia_drv.so
mkdir -p ${INSTALL}/${XORG_PATH_MODULES}/extensions mkdir -p ${INSTALL}/${XORG_PATH_MODULES}/extensions
# rename to avoid conflicts with X.Org-Server module libglx.so # rename to avoid conflicts with X.Org-Server module libglx.so
cp -P libglxserver_nvidia.so.${PKG_VERSION} ${INSTALL}/${XORG_PATH_MODULES}/extensions/libglx_nvidia.so cp -P libglxserver_nvidia.so.${PKG_VERSION} ${INSTALL}/${XORG_PATH_MODULES}/extensions/libglx_nvidia.so
mkdir -p ${INSTALL}/etc/X11 mkdir -p ${INSTALL}/etc/X11

View File

@ -7,9 +7,17 @@
# follow certain coding standards used in the project. Corrections are grouped # follow certain coding standards used in the project. Corrections are grouped
# by the subdirectory within the packages feed, and then commited. # by the subdirectory within the packages feed, and then commited.
# Corrections made:
# PKG_VAR="$PKG_VAR stuff" -> PKG_VAR+=" stuff"
# $PKG_VAR -> ${PKG_VAR}
# result=`subcommand` -> result=$(subcommand)
# [ test ] ; then -> [ test ]; then
# trailing whitespace at end of line
for directory in $(find packages/ -mindepth 1 -maxdepth 1 -type d | sort); do for directory in $(find packages/ -mindepth 1 -maxdepth 1 -type d | sort); do
for file in $(find "${directory}" -type f -name "package.mk" | sort); do for file in $(find "${directory}" -type f -name "package.mk" | sort); do
tools/fixlecode.py -qw -f "${file}" tools/fixlecode.py -qw -f "${file}"
sed -i 's/[[:blank:]]*$//g' "${file}"
done done
git commit -qs -m "${directory##*/}: automated code cleanup" "${directory}" git commit -qs -m "${directory##*/}: automated code cleanup" "${directory}"
done done