Error: Failed to build jade-application-kit

Hi. I am an absolute beginner to GNU/Linux world. I just installed Manjaro Linux. I want to immigrate from windows 10 to Manjaro and one important thing that I need is MS-Office. (The open-source office suits are not good for my use.) I encountered an error while installing ms-office-online:

# pamac install ms-office-online
Warning: ms-office-online is only available from AUR
Preparing...
Cloning ms-office-online build files...
Running as unit: run-u823.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 2.985s
Running as unit: run-u824.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 10ms
Checking ms-office-online dependencies...
Cloning jade-application-kit build files...
Running as unit: run-u826.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 769ms
Running as unit: run-u827.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 12ms
Checking jade-application-kit dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (2):
  jade-application-kit  3.5.6-1      AUR
  ms-office-online      2:2.1.1-1    AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building jade-application-kit...
Running as unit: run-u829.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: jade-application-kit 3.5.6-1 (Sun 21 Mar 2021 03:19:01 PM +0330)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v3.5.6.tar.gz
==> Validating source files with sha512sums...
    v3.5.6.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
Finished with result: exit-code
Main processes terminated with: code=exited/status=1
Service runtime: 1.048s
Error: Failed to build jade-application-kit

What should I do now?

Welcome to the Forum!

To deal with this error, you have to build the package jade-application-kit from the AUR first and during the installation edit the PLGBUILD file replacing this line:

sha512sums=('2e41c765f64f9add00a4c467a474f19397d27a19d1b02243167f53cfdefe9b3e34f0f1a3de0a9c61a40df1ec0fb6bcdde26731c0e9a3195a6348fc46ee8289c7')

with this one:

sha512sums=('5d1e65763371fe61e56eded78092f94737381a4707edac8b87003264c236b88ebc1db159c00e639ef8686e15489977b1fd3dfdbd00c53934aa1b4a38f9ad9454')

After the package has been installed, proceed with the installation of ms-office-online from the AUR.


Another option would be to install jade-application-kit by hand as mentioned in the Manjaro Wiki:
https://wiki.manjaro.org/index.php/Arch_User_Repository#Installing_from_the_AUR_by_hand

Right after you have changed directory to the cloned folder and before using the command makepkg -s, run updpkgsums in the same directory containing the PKGBUILD file.

(The AUR page of jade-application-kit can be found here.)

After that you can install the package ms-office-online from the AUR.

Hi. Thanks a lot for your welcome and help(s), but they didn’t work.

  • After the first solution:

Building jade-application-kit…
==> Making package: jade-application-kit 3.5.6-1 (Tue 23 Mar 2021 07:11:56 PM +0430)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> Retrieving sources…
→ Found v3.5.6.tar.gz
==> Validating source files with sha512sums…
v3.5.6.tar.gz … Passed
==> Removing existing $srcdir/ directory…
==> Extracting sources…
→ Extracting v3.5.6.tar.gz with bsdtar
==> Starting prepare()…
/var/tmp/pamac-build-ilia/jade-application-kit/PKGBUILD: line 21: cd: /var/tmp/pamac-build-ilia/jade-application-kit/src/Jade-Application-Kit-3.5.6: No such file or directory
==> ERROR: A failure occurred in prepare().
Aborting…

  • And After the second solution (after running makepkg command):

    ==> Making package: jade-application-kit 3.5.6-1 (Tue 23 Mar 2021 07:28:10 PM +0430)
    ==> Checking runtime dependencies…
    ==> Checking buildtime dependencies…
    ==> Retrieving sources…
    → Found v3.5.6.tar.gz
    ==> Validating source files with sha512sums…
    v3.5.6.tar.gz … Passed
    ==> Extracting sources…
    → Extracting v3.5.6.tar.gz with bsdtar
    ==> Starting prepare()…
    /home/ilia/jade-application-kit/PKGBUILD: line 21: cd: /home/ilia/jade-application-kit/src/Jade-Application-Kit-3.5.6: No such file or directory
    ==> ERROR: A failure occurred in prepare().
    Aborting…

I did all the things that you said, but got no answers. I’d appreciate it if you help me install ms-office-online (jade-application-kit).

1 Like

I can reproduce this issue. Apparently, the PKGBUILD file of the said package has some errors, which I would recommend to report to the AUR maintainer.


Workaround:

First, download a snapshot of jade-application-kit from this page (the option is on the right side of the page under Package Actions).

Extract the contents of the compressed file and copy the files PKGBUILD and import_fix.patch in a new directory (for example you can create a directory called builds).

Navigate in the new directory containing the two files you copied and replace the content of the PKGBUILD file with this:

# Maintainer: Yigit Dallilar <yigit.dallilar@gmail.com>
# Prev. Maintainer: Prasad Kumar
# Author: Vitor Lopes <vmnlop@gmail.com>

pkgname=jade-application-kit
pkgver=3.5.6
pkgrel=1
pkgdesc="Build desktop applications using web technologies on Linux, with Python, JavaScript, HTML5, and CSS3 and webkit."
arch=('any')
url="https://github.com/codesardine/Jade-Application-Kit"
license=('GPL3')
optdepends=()
provides=('jade-application-kit')
conflicts=('jade-application-kit-git')
depends=('python' 'python-gobject' 'webkit2gtk' 'pyside2' 'python-pyqtwebengine')
makedepends=('python-setuptools')
source=("https://github.com/codesardine/Jade-Application-Kit/archive/v${pkgver}.tar.gz")
sha512sums=('5d1e65763371fe61e56eded78092f94737381a4707edac8b87003264c236b88ebc1db159c00e639ef8686e15489977b1fd3dfdbd00c53934aa1b4a38f9ad9454')

prepare() {
    cd "${srcdir}"/jak-${pkgver}
	#patch --strip=1  < ../import_fix.patch
}

build() {
    cd "${srcdir}"/jak-${pkgver}
    python setup.py build
}

package() {
    cd "${srcdir}"/jak-${pkgver}
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}

Open a terminal window, cd in the new directory and run makepkg -si. This command will build and install the package in your system.

After the installation of jade-application-kit is completed, try building the package ms-office-online from the AUR using Pamac (or any AUR helper), or using the same method described above.

Hope that helps!

Thanks a lot bill_t! :yellow_heart:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.