From 48a78d0cbab1e4a0b001df9457bfe8c0ae533eab Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 8 Nov 2018 12:18:53 -0200 Subject: [PATCH] qdirstat: update to 1.5. --- .../qdirstat/patches/fix-allperms-musl.patch | 18 ++++++++++++++++++ srcpkgs/qdirstat/template | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/qdirstat/patches/fix-allperms-musl.patch diff --git a/srcpkgs/qdirstat/patches/fix-allperms-musl.patch b/srcpkgs/qdirstat/patches/fix-allperms-musl.patch new file mode 100644 index 0000000000..af37c1dae1 --- /dev/null +++ b/srcpkgs/qdirstat/patches/fix-allperms-musl.patch @@ -0,0 +1,18 @@ +ALLPERMS isn't specified in POSIX so musl doesn't define it + +diff --git a/src/FileInfo.cpp b/src/FileInfo.cpp +index 5cc198c..197d40c 100644 +--- src/FileInfo.cpp ++++ src/FileInfo.cpp +@@ -21,6 +21,10 @@ + #include "Logger.h" + #include "Exception.h" + ++#ifndef ALLPERMS ++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) ++#endif ++ + // Some file systems (NTFS seems to be among them) may handle block fragments + // well. Don't report files as "sparse" files if the block size is only a few + // bytes less than the byte size - it may be due to intelligent fragment + diff --git a/srcpkgs/qdirstat/template b/srcpkgs/qdirstat/template index 502226eb85..06e5dc1b30 100644 --- a/srcpkgs/qdirstat/template +++ b/srcpkgs/qdirstat/template @@ -1,6 +1,6 @@ # Template file for 'qdirstat' pkgname=qdirstat -version=1.4 +version=1.5 revision=1 build_style=qmake hostmakedepends="qt5-qmake" @@ -10,7 +10,7 @@ maintainer="lemmi " license="GPL-2" homepage="https://github.com/shundhammer/qdirstat" distfiles="https://github.com/shundhammer/qdirstat/archive/${version}.tar.gz" -checksum=7f9a0a7304c55ebfad1e50c7747ba762b07068f48304b3d3919bdb65ee037999 +checksum=5de21fb1ccc9f4df29b2969aa652237b4430e2cfbe37f6eda088482ed44bdbf5 if [ "$CROSS_BUILD" ]; then hostmakedepends+=" qt5-host-tools qt5-devel"