mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
actiona: fix musl
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
ea181badff
commit
2c70cb9099
2 changed files with 20 additions and 4 deletions
20
srcpkgs/actiona/patches/bytearray-constdata.patch
Normal file
20
srcpkgs/actiona/patches/bytearray-constdata.patch
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--- actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp 2018-07-17 20:29:12.000000000 +0200
|
||||||
|
+++ actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp 2018-07-28 13:26:14.340872982 +0200
|
||||||
|
@@ -98,7 +98,7 @@
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
struct statfs statistics;
|
||||||
|
- if (statfs(drive.toLatin1(), &statistics) == 0) {
|
||||||
|
+ if (statfs(drive.toLatin1().constData(), &statistics) == 0) {
|
||||||
|
qlonglong blockSize = statistics.f_bsize;
|
||||||
|
qlonglong availBlocks = statistics.f_bavail;
|
||||||
|
return availBlocks * blockSize;
|
||||||
|
@@ -118,7 +118,7 @@
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
struct statfs statistics;
|
||||||
|
- if (statfs(drive.toLatin1(), &statistics) == 0) {
|
||||||
|
+ if (statfs(drive.toLatin1().constData(), &statistics) == 0) {
|
||||||
|
qlonglong blockSize = statistics.f_bsize;
|
||||||
|
qlonglong totalBlocks = statistics.f_blocks;
|
||||||
|
return totalBlocks * blockSize;
|
|
@ -15,10 +15,6 @@ homepage="https://actiona.tools/"
|
||||||
distfiles="https://github.com/Jmgr/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
distfiles="https://github.com/Jmgr/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
||||||
checksum=7f7a6ecef82ec51fc5d92e41a9d39d1de190135b1fb6293318feb1d88ceb8757
|
checksum=7f7a6ecef82ec51fc5d92e41a9d39d1de190135b1fb6293318feb1d88ceb8757
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
*-musl) broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/11193/steps/shell_3/logs/stdio" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -n "$CROSS_BUILD" ]; then
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" qt5-devel qt5-multimedia-devel qt5-script-devel qt5-speech-devel"
|
hostmakedepends+=" qt5-devel qt5-multimedia-devel qt5-script-devel qt5-speech-devel"
|
||||||
hostmakedepends+=" qt5-tools-devel qt5-x11extras-devel qt5-xmlpatterns-devel"
|
hostmakedepends+=" qt5-tools-devel qt5-x11extras-devel qt5-xmlpatterns-devel"
|
||||||
|
|
Loading…
Add table
Reference in a new issue