* [PR PATCH] opentoonz: update to 1.5.0
@ 2021-05-16 14:33 FollieHiyuki
2021-05-21 5:39 ` [PR PATCH] [Merged]: " ericonr
0 siblings, 1 reply; 2+ messages in thread
From: FollieHiyuki @ 2021-05-16 14:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1721 bytes --]
There is a new pull request by FollieHiyuki against master on the void-packages repository
https://github.com/FollieHiyuki/void-packages opentoonz-update
https://github.com/void-linux/void-packages/pull/30933
opentoonz: update to 1.5.0
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
There is a big warning to uninstall all the previous versions before installing V1.5i.0. I don't know whether we should be worry about it.
A patch file from https://github.com/void-linux/void-packages/pull/30933.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-opentoonz-update-30933.patch --]
[-- Type: text/x-diff, Size: 8592 bytes --]
From 80e08b19058811d79617735d662c1a16359989d1 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sun, 16 May 2021 17:06:07 +0300
Subject: [PATCH] opentoonz: update to 1.5.0
---
srcpkgs/opentoonz/patches/QPainterPath.patch | 35 ------------------
srcpkgs/opentoonz/patches/big-endian.patch | 38 --------------------
srcpkgs/opentoonz/patches/invalid-char.patch | 10 ------
srcpkgs/opentoonz/patches/musl.patch | 22 ------------
srcpkgs/opentoonz/patches/musl2.patch | 30 ----------------
srcpkgs/opentoonz/template | 8 ++---
6 files changed, 4 insertions(+), 139 deletions(-)
delete mode 100644 srcpkgs/opentoonz/patches/QPainterPath.patch
delete mode 100644 srcpkgs/opentoonz/patches/big-endian.patch
delete mode 100644 srcpkgs/opentoonz/patches/invalid-char.patch
delete mode 100644 srcpkgs/opentoonz/patches/musl.patch
delete mode 100644 srcpkgs/opentoonz/patches/musl2.patch
diff --git a/srcpkgs/opentoonz/patches/QPainterPath.patch b/srcpkgs/opentoonz/patches/QPainterPath.patch
deleted file mode 100644
index cc9ac227f742..000000000000
--- a/srcpkgs/opentoonz/patches/QPainterPath.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 3ccd50532913049804bd7569fb7f88415cd45ee9 Mon Sep 17 00:00:00 2001
-From: Christophe Giboudeaux <christophe@krop.fr>
-Date: Tue, 9 Jun 2020 09:47:56 +0200
-Subject: [PATCH] Fix build with Qt 5.15.
-
-QPainterPath is no longer included indirectly.
----
- toonz/sources/tnztools/toolutils.cpp | 1 +
- toonz/sources/toonzqt/functionpanel.cpp | 1 +
- 2 files changed, 2 insertions(+)
-
-diff --git a/toonz/sources/tnztools/toolutils.cpp b/toonz/sources/tnztools/toolutils.cpp
-index 1ceff93722..db4032f737 100644
---- toonz/sources/tnztools/toolutils.cpp
-+++ toonz/sources/tnztools/toolutils.cpp
-@@ -42,6 +42,7 @@
- #include "tools/strokeselection.h"
-
- #include <QPainter>
-+#include <QPainterPath>
- #include <QGLWidget> // for QGLWidget::convertToGLFormat
- #include <QFont>
- #include <QFontMetrics>
-diff --git a/toonz/sources/toonzqt/functionpanel.cpp b/toonz/sources/toonzqt/functionpanel.cpp
-index 4cc6612634..b6a0c09239 100644
---- toonz/sources/toonzqt/functionpanel.cpp
-+++ toonz/sources/toonzqt/functionpanel.cpp
-@@ -24,6 +24,7 @@
-
- // Qt includes
- #include <QPainter>
-+#include <QPainterPath>
- #include <QMouseEvent>
- #include <QWheelEvent>
- #include <QMenu>
diff --git a/srcpkgs/opentoonz/patches/big-endian.patch b/srcpkgs/opentoonz/patches/big-endian.patch
deleted file mode 100644
index fe4573ec08d2..000000000000
--- a/srcpkgs/opentoonz/patches/big-endian.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-Fix up some big endian paths that did not survive refactoring.
-
---- toonz/sources/image/tzl/tiio_tzl.cpp
-+++ toonz/sources/image/tzl/tiio_tzl.cpp
-@@ -945,7 +945,7 @@ void TLevelWriterTzl::saveImage(const TImageP &img, const TFrameId &_fid,
- Header *header = (Header *)buff;
-
- TRasterP ras;
-- m_codec->decompress(buff, buffSize, ras);
-+ m_codec->decompress(buff, buffSize, ras, false);
- delete[] buff;
- assert((TRasterCM32P)ras);
- assert(ras->getLx() == header->m_lx);
---- toonz/sources/sound/wav/tsio_wav.cpp
-+++ toonz/sources/sound/wav/tsio_wav.cpp
-@@ -373,17 +373,17 @@ bool TSoundTrackWriterWav::save(const TSoundTrackP &sndtrack) {
- #if (!TNZ_LITTLE_ENDIAN)
- {
- if (fmtChunk.m_bitPerSample == 8)
-- memcpy((void *)waveData, (void *)sndtrack->getRawData(), soundDataLength);
-+ memcpy((void *)waveData.get(), (void *)sndtrack->getRawData(), soundDataLength);
- else if (fmtChunk.m_bitPerSample == 16) {
-- swapAndCopySamples((short *)sndtrack->getRawData(), (short *)waveData,
-+ swapAndCopySamples((short *)sndtrack->getRawData(), (short *)waveData.get(),
- sndtrack->getSampleCount() * fmtChunk.m_chans);
- } else if (fmtChunk.m_bitPerSample == 24) { // swap e togliere quarto byte
- UCHAR *begin = (UCHAR *)sndtrack->getRawData();
- for (int i = 0; i < (int)sndtrack->getSampleCount() * fmtChunk.m_chans;
- ++i) {
-- *(waveData + 3 * i) = *(begin + 4 * i + 3);
-- *(waveData + 3 * i + 1) = *(begin + 4 * i + 2);
-- *(waveData + 3 * i + 2) = *(begin + 4 * i + 1);
-+ *(waveData.get() + 3 * i) = *(begin + 4 * i + 3);
-+ *(waveData.get() + 3 * i + 1) = *(begin + 4 * i + 2);
-+ *(waveData.get() + 3 * i + 2) = *(begin + 4 * i + 1);
- }
- }
- }
diff --git a/srcpkgs/opentoonz/patches/invalid-char.patch b/srcpkgs/opentoonz/patches/invalid-char.patch
deleted file mode 100644
index a2d6b684419b..000000000000
--- a/srcpkgs/opentoonz/patches/invalid-char.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- toonz/sources/common/twain/twain.h.orig 2021-01-22 18:20:20.834440241 +0700
-+++ toonz/sources/common/twain/twain.h 2021-01-22 18:20:28.671469813 +0700
-@@ -2209,7 +2209,6 @@
- #elif defined(TWH_CMP_GNU)
- #pragma pack(pop, before_twain)
- #elif defined(TWH_CMP_BORLAND)
--#pragma option a.
- #elif defined(TWH_CMP_XCODE)
- #if PRAGMA_STRUCT_ALIGN
- #pragma options align = reset
diff --git a/srcpkgs/opentoonz/patches/musl.patch b/srcpkgs/opentoonz/patches/musl.patch
deleted file mode 100644
index 3b382d499ab4..000000000000
--- a/srcpkgs/opentoonz/patches/musl.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- toonz/sources/common/tcore/tstopwatch.cpp.orig
-+++ toonz/sources/common/tcore/tstopwatch.cpp
-@@ -11,7 +11,7 @@
- #if defined(__APPLE_CC__)
- #include <unistd.h>
- #else
--#include <sys/unistd.h>
-+#include <unistd.h>
- #endif
- #include <limits.h>
- #include <sys/times.h>
---- toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp.orig
-+++ toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp
-@@ -51,7 +51,7 @@
- #endif
-
- #ifdef LINUX
--#include <sys/sysctl.h>
-+#include <unistd.h>
- #endif
-
- // forward declaration
diff --git a/srcpkgs/opentoonz/patches/musl2.patch b/srcpkgs/opentoonz/patches/musl2.patch
deleted file mode 100644
index fb69095d27f4..000000000000
--- a/srcpkgs/opentoonz/patches/musl2.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Based on https://github.com/opentoonz/opentoonz/pull/3500
-
-diff --git a/toonz/sources/stdfx/igs_resource_msg_from_err_unix.cpp b/toonz/sources/stdfx/igs_resource_msg_from_err_unix.cpp
-index da51594e..c3a9da17 100644
---- toonz/sources/stdfx/igs_resource_msg_from_err_unix.cpp
-+++ toonz/sources/stdfx/igs_resource_msg_from_err_unix.cpp
-@@ -1,3 +1,5 @@
-+#define _POSIX_C_SOURCE 200809L
-+#undef _GNU_SOURCE
- #include <cerrno>
- #include <cstring> /* memset */
- #include <vector>
-@@ -120,7 +121,7 @@ HP-UX(v11.23)では、strerror_r()をサポートしない。
- 注意::strerror()はThread SafeではなくMulti Threadでは正常動作しない
- */
- errmsg += ::strerror(erno);
--#elif ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE)
-+#elif !defined(__APPLE__)
- /*
- http://japanese-linux-man-pages.coding-school.com/man/X_strerror_r-3
- より、POSIX.1.2002で規定されたXSI準拠のバージョンのstrerror_r()
-@@ -130,7 +131,7 @@ http://japanese-linux-man-pages.coding-school.com/man/X_strerror_r-3
- if (0 == ret) {
- errmsg += buff;
- } else if (-1 == ret) {
-- swtich(errno) {
-+ switch(errno) {
- case EINVAL:
- errmsg +=
- "strerror_r() gets Error : The value of errnum is not a "
diff --git a/srcpkgs/opentoonz/template b/srcpkgs/opentoonz/template
index 3d697cefb54a..bcb9e96a69d8 100644
--- a/srcpkgs/opentoonz/template
+++ b/srcpkgs/opentoonz/template
@@ -1,7 +1,7 @@
# Template file for 'opentoonz'
pkgname=opentoonz
-version=1.4.0
-revision=2
+version=1.5.0
+revision=1
build_wrksrc="toonz/sources"
build_style=cmake
make_cmd=make
@@ -9,13 +9,13 @@ hostmakedepends="qt5-qmake qt5-host-tools pkg-config automake libtool"
makedepends="qt5-devel qt5-svg-devel qt5-script-devel qt5-tools-devel qt5-multimedia-devel
superlu-devel glew-devel libjpeg-turbo-devel liblzma-devel liblz4-devel lzo-devel
libusb-devel SDL2-devel libmypaint-devel boost-devel libfreeglut-devel
- openblas-devel"
+ openblas-devel qt5-serialport-devel libopencv4-devel"
short_desc="Full-featured 2D animation creation software"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="BSD-3-Clause"
homepage="https://opentoonz.github.io/e/"
distfiles="https://github.com/opentoonz/opentoonz/archive/v${version}.tar.gz"
-checksum=176caca191bf2747964ecaf8cbb6be6a738fd04b464a2ba182b5aaf96ccaefa9
+checksum=fba0f381fb71ffda89e6423b4d461450d4851f93830342e69e36313070af5990
export CMAKE_GENERATOR="Unix Makefiles"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: opentoonz: update to 1.5.0
2021-05-16 14:33 [PR PATCH] opentoonz: update to 1.5.0 FollieHiyuki
@ 2021-05-21 5:39 ` ericonr
0 siblings, 0 replies; 2+ messages in thread
From: ericonr @ 2021-05-21 5:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1551 bytes --]
There's a merged pull request on the void-packages repository
opentoonz: update to 1.5.0
https://github.com/void-linux/void-packages/pull/30933
Description:
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
There is a big warning to uninstall all the previous versions before installing V1.5i.0. I don't know whether we should be worry about it.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-21 5:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-16 14:33 [PR PATCH] opentoonz: update to 1.5.0 FollieHiyuki
2021-05-21 5:39 ` [PR PATCH] [Merged]: " ericonr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).