summaryrefslogtreecommitdiff
path: root/app-office/calligra
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-16 08:04:03 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-16 08:04:03 +0000
commit97f40b36b1afa9726e32962d11f3ac2d0bc5792e (patch)
tree1c7d586bc8a53d3b768630527bb80a477d661fa3 /app-office/calligra
parentb435e036d9775b71048373b91d4c7c3398826858 (diff)
gentoo auto-resync : 16:02:2023 - 08:04:02
Diffstat (limited to 'app-office/calligra')
-rw-r--r--app-office/calligra/Manifest3
-rw-r--r--app-office/calligra/calligra-3.2.1-r5.ebuild4
-rw-r--r--app-office/calligra/files/calligra-3.2.1-clang-16-c++17.patch359
3 files changed, 362 insertions, 4 deletions
diff --git a/app-office/calligra/Manifest b/app-office/calligra/Manifest
index 3790a1b02875..21e2f32d3224 100644
--- a/app-office/calligra/Manifest
+++ b/app-office/calligra/Manifest
@@ -1,4 +1,5 @@
AUX calligra-3.1.89-no-arch-detection.patch 404 BLAKE2B ef2ea38d3fdabedd98eafd4b9526a3dd5a7c02f4af8109301f3535969475034795483cfb0fa1f1ddad9fa41ef81409d39bf3a06fb781016217355be646d1affd SHA512 d97d2a26622f43987446ac87b14952b9e46f3b919c84c6ada4b18ebde5aa94e6f69b931ec5d61ab391f9a4811e81eb11f2136f0a3384f644679c0db87943102a
+AUX calligra-3.2.1-clang-16-c++17.patch 11578 BLAKE2B 397815898c7b3f3859a811e9502f9cf14a37975e3f466114f79dcc8b8ac20a74d60ae972814d760be90e9291a3b22b24cff2fe62e9ec3c631feadad484caaf16 SHA512 7e7b93431c2e379765db71757e5706182ac3842c23055cdf5c541a1d724292cfab8da46b8fa7b1db5a94eb9de24a028e4394f771d160c30b8fe567e0c7dca8ad
AUX calligra-3.2.1-cmake-3.16.patch 2484 BLAKE2B 7a3aad5be9c793e027b9dcd2344f86622ddfbe0272ae0ff5ed624cbf030168148704dad5d225a8930ba3c7e5d18cabe9493603ffe16c47511f10deb064c47f08 SHA512 8dd6498dd5b225a630f69da37e5e53f513c9d4bc764e3ddedfb06b6403faca298358340264366972953ca5cc4ec3c2eb59fe76fb7fc0d924653a5c885f2a5e4f
AUX calligra-3.2.1-cxx17-fixes.patch 19375 BLAKE2B 86a926340eecef0793caf16e4cffd04a8e78635b35b3255a3e614afd2f56190973b1e27df17240495b73e87c4402f40a29c5a4ab407a42cfc034815fd931834b SHA512 29015d101103a707ccd09d91656d41146fba6d1a38257a7ff961fcbd8c9e297064587cd34bb1a00fc60d69c1c56247de5bc1e5ea0a0e3171891543cf9473ba51
AUX calligra-3.2.1-cxx17-for-poppler-22.patch 857 BLAKE2B f4ce16863c99be4681e6a2bc70d6b2ada2d69a15669fb2d0cdf567ef03af3e304b1eeccda88cb7af2e8c7f4791c52391e7f68549e6efe303cd2090a3bf9795f0 SHA512 d30a064fdddab8c067612700d777be283100242a4142f6c550f9a4467ee7d5d534f3db9fc70ca969616535d9a3d42c3527765be4f65ca3ccf32b29386dace5ad
@@ -9,5 +10,5 @@ AUX calligra-3.2.1-poppler-22.03.0-1.patch 3030 BLAKE2B c919e410dd252a3fefed1ca0
AUX calligra-3.2.1-poppler-22.03.0-2.patch 3453 BLAKE2B 02967036156934898862c9fe157033d0f946f78858ffd8d9a75fb7cca0d93e62c4d1a5fb8fed74de190addede37e32c07915e4b60da04634417e99d13bd35f20 SHA512 3322c81a2b596d3b1e49a0af4c0f13934f6674cdb0dfa7f9c5552117cfc4858ea2a7720c6a405c18b121a61c9bdce62b575703c58a9137addeed3906d210a518
AUX calligra-3.2.1-poppler-22.04.0.patch 897 BLAKE2B 27619f10b4902da729f9e5d99c872e95bb61953de7c2a27d760e463b3d27e950cf113515671d9fb15ff5fcdd51c30c6d266e7166fdf64499f445afa02120c7f2 SHA512 9ec649c29051d5ca9faf9e6f84b6ba2cfe2ba600c5d84feaa0f87df1b1656fe5616be4ff3413ae985894f68cc2dceb7eca344f2642bc3e9b429915e506994009
DIST calligra-3.2.1.tar.xz 55207684 BLAKE2B 332629f18adbee649e8d25a1eedf4ee48af7d8cbb79382c70678bacfa89d9a10797eb0ff42cb5aad51ef2c28aa7071e687bd34053cadcc40ac1936bb9a40dc20 SHA512 e53a939aa1b277c2291cfd626868c77085fc9cc7774df160b5b1afceb33314b4381fa8ffe03636cbde6e35cc2abd170a51e7f9c1a99191339313b9c9c3b1526f
-EBUILD calligra-3.2.1-r5.ebuild 5620 BLAKE2B b3922346559ad26b62f95a3f563b7d3b313dc1e1f3c5c0f1c1b05db6b0c02956ce913d3830736ee7ea4a70f0e6ade0696c81729842f3780615e2e47bede6aba2 SHA512 072efe74004abc5f8193f3a59c0c94601ad00caa812d756835d8ecffca5ad5df58b0e6f0d1c6b73da4bf1c8abe915281b8a762931300f41cad98114a0c73111f
+EBUILD calligra-3.2.1-r5.ebuild 5562 BLAKE2B 5e46aad452be85eb22f3667f6d6f697ad83b2128ef1dfe3cde07d0d29d253eac7c05877ecde77b0218273703ad16279d397e4d512a10b0ebf16d611572883a9c SHA512 79e297a2d6e3866765cd922c4df735a1d0913dfdfafacad0a21a53f61fb0045a1f0cb0571b6b361da46497baca4b476acb34c23fcc032304e03ce1d3fa81c492
MISC metadata.xml 1279 BLAKE2B a815b1fb41dea6bd2da248722708606b3bb56b4e3df2036e141f0f53bc432a3a40f26cc0edff1425965f72f3b9d4cd8bf3397b538598d248145fd195481a282b SHA512 b59cd1b0469cdc8aa4354bb918152fe66535ca1ed9c3b83178b1753f04128f8ce5fc64a0daab36b8b1aa92568ef5ae9d298539b40a82fa8a974536a55150f5e8
diff --git a/app-office/calligra/calligra-3.2.1-r5.ebuild b/app-office/calligra/calligra-3.2.1-r5.ebuild
index f26074e74960..c9290de8b5ac 100644
--- a/app-office/calligra/calligra-3.2.1-r5.ebuild
+++ b/app-office/calligra/calligra-3.2.1-r5.ebuild
@@ -122,6 +122,7 @@ PATCHES=(
"${FILESDIR}"/${P}-cxx17-fixes.patch
"${FILESDIR}"/${P}-poppler-22.03.0-{1,2}.patch
"${FILESDIR}"/${P}-poppler-22.04.0.patch
+ "${FILESDIR}"/${P}-clang-16-c++17.patch
)
pkg_pretend() {
@@ -144,9 +145,6 @@ src_prepare() {
src_configure() {
local cal_ft myproducts
- # Uses removed 'register' keyword, drop on next release. bug #883067
- append-cxxflags -std=c++14
-
# applications
for cal_ft in ${CAL_FTS[@]}; do
use calligra_features_${cal_ft} && myproducts+=( "${cal_ft^^}" )
diff --git a/app-office/calligra/files/calligra-3.2.1-clang-16-c++17.patch b/app-office/calligra/files/calligra-3.2.1-clang-16-c++17.patch
new file mode 100644
index 000000000000..d826e006249d
--- /dev/null
+++ b/app-office/calligra/files/calligra-3.2.1-clang-16-c++17.patch
@@ -0,0 +1,359 @@
+Fixed in upstream master but in a far larger patch.
+
+C++ 17 removes 'register'. GCC allows it as an extension (for now?) but Clang
+16 which defaults to -std=c++17 doesn't.
+
+Further, we have to use C++17 for Poppler, so we can't just force e.g. c++14.
+
+https://bugs.gentoo.org/883067#c4
+https://bugs.gentoo.org/894578
+--- a/sheets/part/Digest.cpp
++++ b/sheets/part/Digest.cpp
+@@ -250,8 +250,8 @@ typedef struct digest_impl_st {
+ */
+ static void __rtl_digest_swapLong(sal_uInt32 *pData, sal_uInt32 nDatLen)
+ {
+- register sal_uInt32 *X;
+- register int i, n;
++ sal_uInt32 *X;
++ int i, n;
+
+ X = pData;
+ n = nDatLen;
+@@ -465,10 +465,10 @@ static void __rtl_digest_initSHA(
+ */
+ static void __rtl_digest_updateSHA(DigestContextSHA *ctx)
+ {
+- register sal_uInt32 A, B, C, D, E, T;
+- register sal_uInt32 *X;
++ sal_uInt32 A, B, C, D, E, T;
++ sal_uInt32 *X;
+
+- register DigestSHA_update_t *U;
++ DigestSHA_update_t *U;
+ U = ctx->m_update;
+
+ A = ctx->m_nA;
+@@ -577,10 +577,10 @@ static void __rtl_digest_endSHA(DigestContextSHA *ctx)
+ static const sal_uInt8 end[4] = {
+ 0x80, 0x00, 0x00, 0x00
+ };
+- register const sal_uInt8 *p = end;
++ const sal_uInt8 *p = end;
+
+- register sal_uInt32 *X;
+- register int i;
++ sal_uInt32 *X;
++ int i;
+
+ X = ctx->m_pData;
+ i = (ctx->m_nDatLen >> 2);
+--- a/sheets/ui/CellToolBase_p.cpp
++++ b/sheets/ui/CellToolBase_p.cpp
+@@ -246,7 +246,7 @@ void CellToolBase::Private::processArrowKey(QKeyEvent *event)
+ /* NOTE: hitting the tab key also calls this function. Don't forget
+ to account for it
+ */
+- register Sheet * const sheet = q->selection()->activeSheet();
++ Sheet * const sheet = q->selection()->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -300,7 +300,7 @@ void CellToolBase::Private::processEscapeKey(QKeyEvent * event)
+
+ bool CellToolBase::Private::processHomeKey(QKeyEvent* event)
+ {
+- register Sheet * const sheet = q->selection()->activeSheet();
++ Sheet * const sheet = q->selection()->activeSheet();
+ if (!sheet)
+ return false;
+
+@@ -355,7 +355,7 @@ bool CellToolBase::Private::processHomeKey(QKeyEvent* event)
+
+ bool CellToolBase::Private::processEndKey(QKeyEvent *event)
+ {
+- register Sheet * const sheet = q->selection()->activeSheet();
++ Sheet * const sheet = q->selection()->activeSheet();
+ if (!sheet)
+ return false;
+
+@@ -438,7 +438,7 @@ bool CellToolBase::Private::processNextKey(QKeyEvent *event)
+
+ void CellToolBase::Private::processOtherKey(QKeyEvent *event)
+ {
+- register Sheet * const sheet = q->selection()->activeSheet();
++ Sheet * const sheet = q->selection()->activeSheet();
+
+ // No null character ...
+ if (event->text().isEmpty() || !q->selection()->activeSheet()->map()->isReadWrite() ||
+@@ -456,7 +456,7 @@ void CellToolBase::Private::processOtherKey(QKeyEvent *event)
+
+ bool CellToolBase::Private::processControlArrowKey(QKeyEvent *event)
+ {
+- register Sheet * const sheet = q->selection()->activeSheet();
++ Sheet * const sheet = q->selection()->activeSheet();
+ if (!sheet)
+ return false;
+
+@@ -801,7 +801,7 @@ QRect CellToolBase::Private::moveDirection(Calligra::Sheets::MoveTo direction, b
+ {
+ debugSheetsUI << "Canvas::moveDirection";
+
+- register Sheet * const sheet = q->selection()->activeSheet();
++ Sheet * const sheet = q->selection()->activeSheet();
+ if (!sheet)
+ return QRect();
+
+--- a/sheets/part/Headers.cpp
++++ b/sheets/part/Headers.cpp
+@@ -102,7 +102,7 @@ void RowHeader::mousePress(KoPointerEvent * _ev)
+ if (!m_cellToolIsActive)
+ return;
+
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -192,7 +192,7 @@ void RowHeader::mouseRelease(KoPointerEvent * _ev)
+
+ m_bMousePressed = false;
+
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -295,7 +295,7 @@ void RowHeader::mouseDoubleClick(KoPointerEvent*)
+ {
+ if (!m_cellToolIsActive)
+ return;
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -317,7 +317,7 @@ void RowHeader::mouseMove(KoPointerEvent* _ev)
+ return;
+ }
+
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -379,7 +379,7 @@ void RowHeader::mouseMove(KoPointerEvent* _ev)
+
+ void RowHeader::paint(QPainter* painter, const QRectF& painterRect)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -545,7 +545,7 @@ void ColumnHeader::mousePress(KoPointerEvent * _ev)
+ m_pCanvas->enableAutoScroll();
+ }
+
+- const register Sheet * const sheet = m_pCanvas->activeSheet();
++ const Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -682,7 +682,7 @@ void ColumnHeader::mouseRelease(KoPointerEvent * _ev)
+
+ m_bMousePressed = false;
+
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -794,7 +794,7 @@ void ColumnHeader::mouseDoubleClick(KoPointerEvent*)
+ {
+ if (!m_cellToolIsActive)
+ return;
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -813,7 +813,7 @@ void ColumnHeader::mouseMove(KoPointerEvent* _ev)
+ if (!m_cellToolIsActive)
+ return;
+
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+
+ if (!sheet)
+ return;
+@@ -911,7 +911,7 @@ void ColumnHeader::mouseMove(KoPointerEvent* _ev)
+
+ void ColumnHeader::resize(const QSizeF& size, const QSizeF& oldSize)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -929,7 +929,7 @@ void ColumnHeader::resize(const QSizeF& size, const QSizeF& oldSize)
+
+ void ColumnHeader::paint(QPainter* painter, const QRectF& painterRect)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+--- a/sheets/part/CanvasBase.cpp
++++ b/sheets/part/CanvasBase.cpp
+@@ -230,7 +230,7 @@ bool CanvasBase::eventFilter(QObject *o, QEvent *e)
+
+ void CanvasBase::validateSelection()
+ {
+- register Sheet * const sheet = activeSheet();
++ Sheet * const sheet = activeSheet();
+ if (!sheet)
+ return;
+ #if 0
+@@ -443,7 +443,7 @@ void CanvasBase::paint(QPainter* painter, const QRectF& painterRect)
+ if (doc()->map()->isLoading() || isViewLoading())
+ return;
+
+- register Sheet * const sheet = activeSheet();
++ Sheet * const sheet = activeSheet();
+ if (!sheet)
+ return;
+
+@@ -513,7 +513,7 @@ bool CanvasBase::dragEnter(const QMimeData* mimeData)
+
+ bool CanvasBase::dragMove(const QMimeData* mimeData, const QPointF& eventPos, const QObject *source)
+ {
+- register Sheet * const sheet = activeSheet();
++ Sheet * const sheet = activeSheet();
+ if (!sheet) {
+ return false;
+ }
+@@ -596,7 +596,7 @@ void CanvasBase::dragLeave()
+
+ bool CanvasBase::drop(const QMimeData* mimeData, const QPointF& eventPos, const QObject *source)
+ {
+- register Sheet * const sheet = activeSheet();
++ Sheet * const sheet = activeSheet();
+ // FIXME Sheet protection: Not all cells have to be protected.
+ if (!sheet || sheet->isProtected()) {
+ return false;
+@@ -656,7 +656,7 @@ bool CanvasBase::drop(const QMimeData* mimeData, const QPointF& eventPos, const
+
+ QRect CanvasBase::viewToCellCoordinates(const QRectF& viewRect) const
+ {
+- register Sheet * const sheet = activeSheet();
++ Sheet * const sheet = activeSheet();
+ if (!sheet)
+ return QRect();
+
+@@ -685,7 +685,7 @@ QRect CanvasBase::visibleCells() const
+
+ QRectF CanvasBase::cellCoordinatesToView(const QRect& cellRange) const
+ {
+- register Sheet * const sheet = activeSheet();
++ Sheet * const sheet = activeSheet();
+ if (!sheet)
+ return QRectF();
+
+@@ -706,7 +706,7 @@ QRectF CanvasBase::cellCoordinatesToView(const QRect& cellRange) const
+
+ void CanvasBase::showToolTip(const QPoint& p)
+ {
+- register Sheet * const sheet = activeSheet();
++ Sheet * const sheet = activeSheet();
+ if (!sheet)
+ return;
+ SheetView * const sheetView = this->sheetView(sheet);
+--- a/sheets/part/HeaderItems.cpp
++++ b/sheets/part/HeaderItems.cpp
+@@ -161,7 +161,7 @@ void RowHeaderItem::wheelEvent(QGraphicsSceneWheelEvent* _ev)
+
+ void RowHeaderItem::paintSizeIndicator(int mouseY)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -216,7 +216,7 @@ void RowHeaderItem::removeSizeIndicator()
+
+ void RowHeaderItem::updateRows(int from, int to)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -324,7 +324,7 @@ void ColumnHeaderItem::resizeEvent(QGraphicsSceneResizeEvent* _ev)
+
+ void ColumnHeaderItem::paintSizeIndicator(int mouseX)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -389,7 +389,7 @@ void ColumnHeaderItem::removeSizeIndicator()
+
+ void ColumnHeaderItem::updateColumns(int from, int to)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+--- a/sheets/part/HeaderWidgets.cpp
++++ b/sheets/part/HeaderWidgets.cpp
+@@ -155,7 +155,7 @@ void RowHeaderWidget::wheelEvent(QWheelEvent* _ev)
+
+ void RowHeaderWidget::paintSizeIndicator(int mouseY)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -209,7 +209,7 @@ void RowHeaderWidget::removeSizeIndicator()
+
+ void RowHeaderWidget::updateRows(int from, int to)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -314,7 +314,7 @@ void ColumnHeaderWidget::resizeEvent(QResizeEvent* _ev)
+
+ void ColumnHeaderWidget::paintSizeIndicator(int mouseX)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+@@ -379,7 +379,7 @@ void ColumnHeaderWidget::removeSizeIndicator()
+
+ void ColumnHeaderWidget::updateColumns(int from, int to)
+ {
+- register Sheet * const sheet = m_pCanvas->activeSheet();
++ Sheet * const sheet = m_pCanvas->activeSheet();
+ if (!sheet)
+ return;
+
+--- a/sheets/ui/CellToolBase.cpp
++++ b/sheets/ui/CellToolBase.cpp
+@@ -987,7 +987,7 @@ void CellToolBase::mouseDoubleClickEvent(KoPointerEvent* event)
+
+ void CellToolBase::keyPressEvent(QKeyEvent* event)
+ {
+- register Sheet * const sheet = selection()->activeSheet();
++ Sheet * const sheet = selection()->activeSheet();
+ if (!sheet) {
+ return;
+ }