summaryrefslogtreecommitdiff
path: root/kde-apps/filelight
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-15 01:41:15 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-15 01:41:15 +0100
commite0fdb8199de0e7a9b7c72d7f38d2e3ddaecdacd0 (patch)
tree7a71d24a0bfba0874deeb5e8131d579dfb40e1d1 /kde-apps/filelight
parent7cffc3e7845d1a3ae331145c5e1226e314badf4a (diff)
gentoo auto-resync : 15:07:2022 - 01:41:14
Diffstat (limited to 'kde-apps/filelight')
-rw-r--r--kde-apps/filelight/Manifest4
-rw-r--r--kde-apps/filelight/filelight-22.04.3.ebuild5
-rw-r--r--kde-apps/filelight/files/filelight-22.04.3-fix_musl_dev_bsize.patch66
-rw-r--r--kde-apps/filelight/files/filelight-22.04.3-fix_sincos_impl.patch75
4 files changed, 149 insertions, 1 deletions
diff --git a/kde-apps/filelight/Manifest b/kde-apps/filelight/Manifest
index e5f0615141c2..51b74bab4a5e 100644
--- a/kde-apps/filelight/Manifest
+++ b/kde-apps/filelight/Manifest
@@ -1,5 +1,7 @@
+AUX filelight-22.04.3-fix_musl_dev_bsize.patch 2186 BLAKE2B 744fbb84ce78fbc7341a2028762b6d2bafd20def112e1ddb374d931750bdccb85bb66feebff702984032efb9ab5394ec8ebfa30ae30b037f2e59bb4da3a65d33 SHA512 9635c447e531a6ec96ccc977f5067d534eae9b1e3df217be48c4b138faac60d29c949d08d423e28c1434fe955499991284ee32a9983d52c9ca1bcb8d56bb7e94
+AUX filelight-22.04.3-fix_sincos_impl.patch 2108 BLAKE2B 6f01b643f89944086871cda67cfc4323467719be410ef523dd9b808401492d0203a5917d567c2bd9a0e9bccdbf5b8d2599cecf20fffcb600d06ad50c2a748ef2 SHA512 651c5e129b42675e2440655b27e1a9849385a1e6e7f0fbba09cdbc6ce57873d129b9a76b0134af5d54fa2467cbf2612491d7a151161965035403082ab40298e6
DIST filelight-21.12.3.tar.xz 684300 BLAKE2B e47d55560b85e184fc16f4b7d30c523a98c7a563ab359258f20497a962db1b7d4dca56c219b4fd59aa0aece3923f36f47e9c14cfe5518a39486b389cf6181652 SHA512 1b2658fd9c5ff2c13fa8b3c351cba6d1026a82e1fa48dee6fe46e558c54761919ca958c3093e567257a573941488733f60ff16904509d4868e62a9cb0a4c9eab
DIST filelight-22.04.3.tar.xz 692604 BLAKE2B d8c443c3b0ea7aed6971b7b1ca6cdeab5dc186fdf45f24fd05d1c12a8a358aaf7b0e47916a71791c13d02f89818e11043a83d3dd4a3fa6da9a2cb69bdbf42004 SHA512 ff42c1dd7b8bd92c9f8c7d958428d5616b6fafb059ef72f22e3d774c614c05576529ac2ba3840222c35d0c700ea60d58baf233cd1d77e17845f8051b7e591b48
EBUILD filelight-21.12.3.ebuild 937 BLAKE2B 5219aa225c0605f2c01a69b400814b2695654f8b629511460c119fad557d14970cf972397b4ecc1c002fee3b8afd33826541220af9120546522d268e99e56065 SHA512 44be01ab1297e8942fcd582973e038bab837e3d84ed8c6e72de085a35f93eebf6445f3b5fce504f857eec4e5cf748f87099f7b0d73ad666e85456688632b857a
-EBUILD filelight-22.04.3.ebuild 945 BLAKE2B 9dfd963399d0b794b2c78bcff250ebaf5619ab5a353b825841323bd249c8e643b0d912666389b3cf3ed20ff30babca5d8fe7089dce426a237f5d0c773a84a93e SHA512 273e536dfb9d33a7ff586b99946d36b8f522755504648e1c8724b41fa5495b32540905a855c0bb271acf62a9c342dd6ba3ae09ab664c1cc52db012e3702dd0c7
+EBUILD filelight-22.04.3.ebuild 1063 BLAKE2B 2038ad568e2249ee7c6ab55da07390e31ac31a03f9f23acbd3cf13cfb7846612299c1376fbae400ce8e70fb389aa5c2b97f81c7a1309d553c20a92552ea280f7 SHA512 2a604282dce0bed965dc95935a5c3f7d37c1546e48e82681fe59b1a3767bc9f40b150a7604f414ed066b2e110c137fb17a0bc40de262afa31e60e5cbf15720d3
MISC metadata.xml 318 BLAKE2B 922a5e32e706b2976c5f359a14194d268d3f499398576c80ce5fad8c0fcea0fbf048de4480a80a6a1889c88b8b6c14147654a3ab4d5ffbcc258c2290da63f6d1 SHA512 614cb8dda7ad2088e5d6ef39b449bb4be0ac72cd0231c320188d76d1816dce6490c5114bb4798112c4b11d99d30a9e82ff8fcf08ffa8c049589682a5e38208f6
diff --git a/kde-apps/filelight/filelight-22.04.3.ebuild b/kde-apps/filelight/filelight-22.04.3.ebuild
index f0a32cd6e429..611ae666b1ee 100644
--- a/kde-apps/filelight/filelight-22.04.3.ebuild
+++ b/kde-apps/filelight/filelight-22.04.3.ebuild
@@ -18,6 +18,11 @@ SLOT="5"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
IUSE=""
+PATCHES=(
+ "${FILESDIR}"/${PN}-22.04.3-fix_musl_dev_bsize.patch
+ "${FILESDIR}"/${PN}-22.04.3-fix_sincos_impl.patch
+)
+
DEPEND="
>=dev-qt/qtgui-${QTMIN}:5
>=dev-qt/qtsvg-${QTMIN}:5
diff --git a/kde-apps/filelight/files/filelight-22.04.3-fix_musl_dev_bsize.patch b/kde-apps/filelight/files/filelight-22.04.3-fix_musl_dev_bsize.patch
new file mode 100644
index 000000000000..1b428b0582f5
--- /dev/null
+++ b/kde-apps/filelight/files/filelight-22.04.3-fix_musl_dev_bsize.patch
@@ -0,0 +1,66 @@
+https://invent.kde.org/utilities/filelight/-/merge_requests/42
+https://invent.kde.org/utilities/filelight/-/merge_requests/42/diffs?commit_id=f35d454513f2fc39fea0a5af7c94977c1ffb37aa
+
+DEV_BSIZE and S_BLKSIZE represent the same thing, but S_BLKSIZE isn't defined in musl libc, so use DEV_BSIZE instead.
+---
+ autotests/directoryIteratorTest.cpp | 8 ++++----
+ src/posixWalker.cpp | 2 +-
+ src/posixWalker.h | 1 +
+ 3 files changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/autotests/directoryIteratorTest.cpp b/autotests/directoryIteratorTest.cpp
+index d50c32b..fece8dd 100644
+--- a/autotests/directoryIteratorTest.cpp
++++ b/autotests/directoryIteratorTest.cpp
+@@ -60,9 +60,9 @@ private Q_SLOTS:
+ #ifdef Q_OS_WINDOWS
+ QCOMPARE(file.size, 7682);
+ #elif defined(Q_OS_FREEBSD)
+- QCOMPARE(file.size, 1 * S_BLKSIZE);
++ QCOMPARE(file.size, 1 * DEV_BSIZE);
+ #else
+- QCOMPARE(file.size, 16 * S_BLKSIZE);
++ QCOMPARE(file.size, 16 * DEV_BSIZE);
+ #endif
+
+ if (withSymlink) {
+@@ -83,9 +83,9 @@ private Q_SLOTS:
+ #ifdef Q_OS_WINDOWS
+ QCOMPARE(symlink.size, 7682);
+ #elif defined(Q_OS_FREEBSD)
+- QCOMPARE(file.size, 1 * S_BLKSIZE);
++ QCOMPARE(file.size, 1 * DEV_BSIZE);
+ #else
+- QCOMPARE(symlink.size, 16 * S_BLKSIZE);
++ QCOMPARE(symlink.size, 16 * DEV_BSIZE);
+ #endif
+ }
+ }
+diff --git a/src/posixWalker.cpp b/src/posixWalker.cpp
+index be6935f..6538408 100644
+--- a/src/posixWalker.cpp
++++ b/src/posixWalker.cpp
+@@ -99,7 +99,7 @@ void POSIXWalker::next()
+ S_ISFIFO(statbuf.st_mode) || S_ISSOCK(statbuf.st_mode);
+ m_entry.isDir = S_ISDIR(statbuf.st_mode);
+ m_entry.isFile = S_ISREG(statbuf.st_mode);
+- m_entry.size = statbuf.st_blocks * S_BLKSIZE;
++ m_entry.size = statbuf.st_blocks * DEV_BSIZE;
+ break;
+ }
+ }
+diff --git a/src/posixWalker.h b/src/posixWalker.h
+index 4a78d52..ba72a98 100644
+--- a/src/posixWalker.h
++++ b/src/posixWalker.h
+@@ -7,6 +7,7 @@
+ #include <fcntl.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
++#include <sys/param.h>
+ #include <unistd.h>
+
+ #include <cerrno>
+--
+2.35.1
+
diff --git a/kde-apps/filelight/files/filelight-22.04.3-fix_sincos_impl.patch b/kde-apps/filelight/files/filelight-22.04.3-fix_sincos_impl.patch
new file mode 100644
index 000000000000..1c33e0d2e234
--- /dev/null
+++ b/kde-apps/filelight/files/filelight-22.04.3-fix_sincos_impl.patch
@@ -0,0 +1,75 @@
+https://invent.kde.org/utilities/filelight/-/merge_requests/42
+https://invent.kde.org/utilities/filelight/-/commit/861afa5fb0d2a839d7e83f7df644952219b84a3c
+
+Instead of hardcoding knowledege about glibc versions, check for the
+presence of sincos with CMake.
+
+Commit 93577e2a4927cf1640e8ac7153cd22ff54180bba wrongly added a
+SINCOS_H_IMPLEMENTATION macro instead of making it a static inline
+function or similar, so remove that as well.
+---
+ src/CMakeLists.txt | 6 ++++++
+ src/radialMap/map.cpp | 1 -
+ src/radialMap/sincos.h | 10 ++--------
+ 3 files changed, 8 insertions(+), 9 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 5634ff9..7007297 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -9,6 +9,12 @@ ecm_setup_version(${PROJECT_VERSION}
+ VARIABLE_PREFIX FILELIGHT
+ VERSION_HEADER version.h)
+
++include(CheckCXXSymbolExists)
++check_cxx_symbol_exists(sincos "math.h" HAVE_SINCOS)
++if (HAVE_SINCOS)
++ add_definitions(-DHAVE_SINCOS)
++endif()
++
+ add_library(filelightInternal STATIC fileTree.cpp directoryIterator.cpp)
+ if (WIN32)
+ target_sources(filelightInternal PRIVATE windowsWalker.cpp)
+diff --git a/src/radialMap/map.cpp b/src/radialMap/map.cpp
+index b60d1da..b6bb55b 100644
+--- a/src/radialMap/map.cpp
++++ b/src/radialMap/map.cpp
+@@ -20,7 +20,6 @@
+ #include "radialMap.h" // defines
+
+ #include "Config.h"
+-#define SINCOS_H_IMPLEMENTATION (1)
+ #include "sincos.h"
+ #include "widget.h"
+
+diff --git a/src/radialMap/sincos.h b/src/radialMap/sincos.h
+index 142504b..986a899 100644
+--- a/src/radialMap/sincos.h
++++ b/src/radialMap/sincos.h
+@@ -10,21 +10,15 @@
+
+ #include <math.h>
+
+-#if !defined(__GLIBC__) || (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
++#ifndef HAVE_SINCOS
+
+ #include <qmath.h>
+
+-void
+-sincos(double angleRadians, double *Sin, double *Cos);
+-
+-#ifdef SINCOS_H_IMPLEMENTATION
+-void
+-sincos(double angleRadians, double *Sin, double *Cos)
++static inline void sincos(double angleRadians, double *Sin, double *Cos)
+ {
+ *Sin = qSin(angleRadians);
+ *Cos = qCos(angleRadians);
+ }
+-#endif
+
+ #endif
+
+--
+2.35.1
+