testing/nomacs: fix build v1 PROPOSED

Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/%3C20190814192250.31575-1-raschi.alex%40gmail.com%3E/mbox | git am -3
Learn more about email & git

[PATCH] testing/nomacs: fix build Export this patch

Alex Raschi
---
 testing/nomacs/APKBUILD           |  8 +++++---
 testing/nomacs/fix-std-cout.patch | 20 ++++++++++++++++++++
 2 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100644 testing/nomacs/fix-std-cout.patch

diff --git a/testing/nomacs/APKBUILD b/testing/nomacs/APKBUILD
index d51f2b6dae..45ffb8f626 100644
--- a/testing/nomacs/APKBUILD
+++ b/testing/nomacs/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Alex Raschi <raschi.alex@gmail.com>
 pkgname=nomacs
 pkgver=3.12
-pkgrel=2
+pkgrel=3
 pkgdesc="Small and fast Qt image viewer"
 url="https://nomacs.org/"
 arch="all"
@@ -18,7 +18,8 @@ makedepends="cmake
 	libzip-dev"
 subpackages="$pkgname-doc $pkgname-lang"
 options="!check" # no test suite
-source="$pkgname-$pkgver.tar.gz::https://github.com/nomacs/$pkgname/archive/$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/nomacs/$pkgname/archive/$pkgver.tar.gz
+        fix-std-cout.patch"
 builddir="$srcdir/$pkgname-$pkgver/ImageLounge"
 
 build() {
@@ -55,4 +56,5 @@ lang() {
 	mv "$pkgdir"/"$langdir"/* "$subpkgdir"/"$langdir"/
 }
 
-sha512sums="4508354d48a6115cd40f701cc90cbbcb84490e99eaac0295db48f6fea99550d5e2b3e7365128d0c9cc4eeb621906f55e275603d84cb8b6bb164d0b5e2e192119  nomacs-3.12.tar.gz"
+sha512sums="4508354d48a6115cd40f701cc90cbbcb84490e99eaac0295db48f6fea99550d5e2b3e7365128d0c9cc4eeb621906f55e275603d84cb8b6bb164d0b5e2e192119  nomacs-3.12.tar.gz
+1530398feaa341687fd5e0117507b2262d46deb3052988e97156beee81d9611c8035be03ab616868a2dcff93fa5e82279f6a73af7edc70630451cfa28f9a4765  fix-std-cout.patch"
diff --git a/testing/nomacs/fix-std-cout.patch b/testing/nomacs/fix-std-cout.patch
new file mode 100644
index 0000000000..c0d09bad6c
--- /dev/null
+++ b/testing/nomacs/fix-std-cout.patch
@@ -0,0 +1,20 @@
+--- a/src/DkGui/DkNoMacs.cpp
+@@ -25,6 +25,7 @@
+ 
+  *******************************************************************************************************/
+ 
++#include <iostream>
+ #include "DkNoMacs.h"
+ 
+ // my stuff
+--- a/src/DkCore/DkMetaData.cpp
+@@ -25,6 +25,7 @@
+ 
+  *******************************************************************************************************/
+ 
++#include <iostream>
+ #include "DkMetaData.h"
+ #include "DkUtils.h"
+ #include "DkMath.h"
-- 
2.22.0
View this thread in the archives