You are not logged in.

#1 2020-01-16 10:58:34

mahisefa
Member
Registered: 2020-01-16
Posts: 4

[SOLVED]openboard makepkg error

Hi
Could I ask this question here?
I try to makepkg from openboard but there was an error on makepkg output:

ix.io output


Excuse for bad format message (message edit)

Last edited by mahisefa (2020-01-17 20:24:53)

Offline

#2 2020-01-16 12:17:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,650

Re: [SOLVED]openboard makepkg error

Please post text as text and not as images: https://wiki.archlinux.org/index.php/Co … s_and_code

And post the complete output. Right now this looks like an actual code issue, but as no one else is complaining it might be something specific to your system failing earlier.

Moving to AUR issues...

Offline

#3 2020-01-16 14:51:23

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED]openboard makepkg error

V1del, I wonder how you even figured out that much. When I try to view these images, I get the following message:

Secure Connection Failed

An error occurred during a connection to www.directupload.net. Peer using unsupported version of security protocol.

Error code: SSL_ERROR_UNSUPPORTED_VERSION

    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem.

Learn more…

This website might not support the TLS 1.2 protocol, which is the minimum version supported by Firefox Developer Edition. Enabling TLS 1.0 and TLS 1.1 might allow this connection to succeed.

TLS 1.0 and TLS 1.1 will be permanently disabled in a future release.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2020-01-16 19:06:10

loqs
Member
Registered: 2014-03-06
Posts: 17,316

Re: [SOLVED]openboard makepkg error

https://gitlab.freedesktop.org/poppler/ … e69a2ca9c6

diff --git a/PKGBUILD b/PKGBUILD
index 9378377..0df631c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,7 +27,7 @@ md5sums=('fe3644033dccfd16c80b683210e4ac57'
          '04c421c140e983d41975943ede5fe61a'
          '21d1749400802f8fc0669feaf77de683'
          '30a7928f696f958d5e8f06e02c49639f'
-         '8b774d204501bb8515ee224651a7d624'
+         '9a8f9ec3b244390b4c17a10494a94d29'
          '879116c683374b2dde291014e44a29fe')
 
 prepare() {
diff --git a/poppler.patch b/poppler.patch
index 50c6223..19f7b70 100644
--- a/poppler.patch
+++ b/poppler.patch
@@ -1,5 +1,17 @@
+diff --git a/OpenBoard.pro b/OpenBoard.pro
+index b8a7ae5..0dcf3b8 100644
+--- a/OpenBoard.pro
++++ b/OpenBoard.pro
+@@ -3,6 +3,7 @@ TEMPLATE = app
+ 
+ THIRD_PARTY_PATH=../OpenBoard-ThirdParty
+ 
++CONFIG += c++14
+ CONFIG -= flat
+ CONFIG += debug_and_release \
+           no_include_pwd
 diff --git a/src/pdf/XPDFRenderer.cpp b/src/pdf/XPDFRenderer.cpp
-index a3e828e4..583882aa 100644
+index a3e828e..a77ee49 100644
 --- a/src/pdf/XPDFRenderer.cpp
 +++ b/src/pdf/XPDFRenderer.cpp
 @@ -32,6 +32,7 @@
@@ -10,7 +22,15 @@ index a3e828e4..583882aa 100644
  
  #include "core/memcheck.h"
  
-@@ -51,7 +52,7 @@ XPDFRenderer::XPDFRenderer(const QString &filename, bool importingFile)
+@@ -47,11 +48,15 @@ XPDFRenderer::XPDFRenderer(const QString &filename, bool importingFile)
+     {
+         // globalParams must be allocated once and never be deleted
+         // note that this is *not* an instance variable of this XPDFRenderer class
++#if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 83
++        globalParams = std::make_unique<GlobalParams>();
++#else
+         globalParams = new GlobalParams(0);
++#endif
          globalParams->setupBaseFonts(QFile::encodeName(UBPlatformUtils::applicationResourcesDirectory() + "/" + "fonts").data());
      }
  
@@ -19,7 +39,20 @@ index a3e828e4..583882aa 100644
      sInstancesCount.ref();
  }
  
-@@ -99,16 +100,28 @@ QString XPDFRenderer::title() const
+@@ -70,8 +75,12 @@ XPDFRenderer::~XPDFRenderer()
+ 
+     if (sInstancesCount.loadAcquire() == 0 && globalParams)
+     {
++#if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 83
++        globalParams.reset();
++#else
+         delete globalParams;
+         globalParams = 0;
++#endif
+     }
+ }
+ 
+@@ -99,16 +108,28 @@ QString XPDFRenderer::title() const
  {
      if (isValid())
      {
@@ -52,7 +85,7 @@ index a3e828e4..583882aa 100644
              }
          }
      }
-@@ -172,12 +185,12 @@ QImage* XPDFRenderer::createPDFImage(int pageNumber, qreal xscale, qreal yscale,
+@@ -172,12 +193,12 @@ QImage* XPDFRenderer::createPDFImage(int pageNumber, qreal xscale, qreal yscale,
          SplashColor paperColor = {0xFF, 0xFF, 0xFF}; // white
          if(mSplash)
              delete mSplash;
@@ -71,7 +104,7 @@ index a3e828e4..583882aa 100644
          mSliceY = 0.;
  
 diff --git a/src/pdf/XPDFRenderer.h b/src/pdf/XPDFRenderer.h
-index 8ab200bc..003a2055 100644
+index 8ab200b..003a205 100644
 --- a/src/pdf/XPDFRenderer.h
 +++ b/src/pdf/XPDFRenderer.h
 @@ -36,10 +36,10 @@

Offline

#5 2020-01-17 03:24:22

mahisefa
Member
Registered: 2020-01-16
Posts: 4

Re: [SOLVED]openboard makepkg error

Thanks to loqs .
would you please help me more and tell me what can i do or wiki for use code

Last edited by mahisefa (2020-01-17 03:42:40)

Offline

#6 2020-01-17 09:00:13

loqs
Member
Registered: 2014-03-06
Posts: 17,316

Re: [SOLVED]openboard makepkg error

Paste the diff to a file ( in this example I am using PKGBUILD.patch which is in the parent directory of the package ) then

cd openboard/
git apply -v ../PKGBUILD.patch
../PKGBUILD.patch:24: trailing whitespace.
 
../PKGBUILD.patch:26: trailing whitespace.
 
../PKGBUILD.patch:60: trailing whitespace.
 
../PKGBUILD.patch:71: trailing whitespace.
 
Checking patch PKGBUILD...
Checking patch poppler.patch...
Applied patch PKGBUILD cleanly.
Applied patch poppler.patch cleanly.
warning: 4 lines add whitespace errors.

Then try building the package.

Offline

#7 2020-01-17 16:35:24

mahisefa
Member
Registered: 2020-01-16
Posts: 4

Re: [SOLVED]openboard makepkg error

Yes
Thanks a lot to loqs.
It was the best solution and thanks for your guidance to run code .

What can i do, Just use worthless word  "thanks"  smile

Offline

#8 2020-01-17 17:21:56

loqs
Member
Registered: 2014-03-06
Posts: 17,316

Re: [SOLVED]openboard makepkg error

Could you please leave a note on https://aur.archlinux.org/packages/openboard/ to let the maintainer know about the issue.

Offline

#9 2020-01-17 18:35:23

mahisefa
Member
Registered: 2020-01-16
Posts: 4

Re: [SOLVED]openboard makepkg error

Yes.Sure.

Offline

#10 2020-01-17 19:00:34

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED]openboard makepkg error

Please remember to mark your thread [SOLVED] (edit the title of your first post).

How to Post

Online

Board footer

Powered by FluxBB