You are not logged in.

#1 2019-09-03 16:11:12

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Error While Installing vala-panel-appmenu-jayatana-git

Hi,

when im trying to install vala-panel-appmenu-jayatana-git package from AUR , by the following command :

yay -S vala-panel-appmenu-jayatana-git

everything goes fine until its time to build the downloaded package via cmake , wich results the following error :

core/swing/SwingGTKFixed.java:29: error: package com.sun.java.swing.plaf.gtk is not visible
import com.sun.java.swing.plaf.gtk.GTKLookAndFeel;
                              ^
  (package com.sun.java.swing.plaf.gtk is declared in module java.desktop, which does not export it)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
make[2]: *** [java/CMakeFiles/jayatana-java.dir/build.make:80: java/CMakeFiles/jayatana-java.dir/java_compiled_jayatana-java] Error 1
make[1]: *** [CMakeFiles/Makefile2:229: java/CMakeFiles/jayatana-java.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Error making: vala-panel-appmenu-jayatana-git

does anyone know whats wrong with this ? i just want to install jayatana and enable global menu feature for Jetbrain products, u have ay better solutions then please let me know.

i also attach a full log of my proccess here.

Regards

Offline

#2 2019-09-03 17:08:27

loqs
Member
Registered: 2014-03-06
Posts: 8,783

Re: Error While Installing vala-panel-appmenu-jayatana-git

Changing the PKGBUILD to require java-environment=8 and building in a clean chroot worked locally

diff --git a/PKGBUILD b/PKGBUILD
index a808084..fd0c2a8 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,16 +6,16 @@ _opts=(
        -DCMAKE_INSTALL_LIBEXECDIR=lib
 )
 
-makedepends=('cmake' 'glib2' 'libdbusmenu-glib' 'libxkbcommon' 'java-environment>=7' 'git')
+makedepends=('cmake' 'glib2' 'libdbusmenu-glib' 'libxkbcommon' 'git')
 
 _pkgbase=vala-panel-appmenu
 pkgname=vala-panel-appmenu-jayatana-git
 _path=subprojects/jayatana
-pkgver=0.7.0
-pkgrel=2
+pkgver=0.7.3.r1.g8e8b2d0
+pkgrel=1
 pkgdesc="AppMenu module for Java Applications. Contains Bugs!"
 provides=(jayatana)
-depends=('glib2' 'libdbusmenu-glib' 'libxkbcommon' 'java-environment>=7' 'java-environment<=9')
+depends=('glib2' 'libdbusmenu-glib' 'libxkbcommon' 'java-environment=8')
 url="https://gitlab.com/vala-panel-project/vala-panel-appmenu"
 arch=('i686' 'x86_64')
 license=('MIT')

Offline

#3 2019-09-03 17:52:29

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Re: Error While Installing vala-panel-appmenu-jayatana-git

can u attach the PKGBUILD file instead of its diff output ?

i changed the PKGBUILD like below :

# Maintainer: rilian-la-te <ria.freelander@gmail.com>

_opts=(
	-DCMAKE_INSTALL_PREFIX=/usr
	-DCMAKE_INSTALL_LIBDIR=lib
	-DCMAKE_INSTALL_LIBEXECDIR=lib
)

makedepends=('cmake' 'glib2' 'libdbusmenu-glib' 'libxkbcommon' 'git')

_pkgbase=vala-panel-appmenu
pkgname=vala-panel-appmenu-jayatana-git
_path=subprojects/jayatana
pkgver=0.7.3.r1.g8e8b2d0
pkgrel=1
pkgdesc="AppMenu module for Java Applications. Contains Bugs!"
provides=(jayatana)
depends=('glib2' 'libdbusmenu-glib' 'libxkbcommon' 'java-environment=8')
url="https://gitlab.com/vala-panel-project/vala-panel-appmenu"
arch=('i686' 'x86_64')
license=('MIT')

source=("git+https://gitlab.com/vala-panel-project/${_pkgbase}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgbase}"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "${srcdir}/${_pkgbase}/${_path}"
  cmake ./ "${_opts[@]}"
  make
}

package()
{
  cd "${srcdir}/${_pkgbase}/${_path}"
  make DESTDIR="${pkgdir}" install
}

but i have no idea about installing on a new chroot or even what is it and how it is done, i read the document link you have given, but to be honest i got nothing.

can u please give me commands line by line ?

Last edited by erfanjoker (2019-09-03 18:06:27)

Offline

#4 2019-09-03 18:09:23

loqs
Member
Registered: 2014-03-06
Posts: 8,783

Re: Error While Installing vala-panel-appmenu-jayatana-git

# Maintainer: rilian-la-te <ria.freelander@gmail.com>

_opts=(
	-DCMAKE_INSTALL_PREFIX=/usr
	-DCMAKE_INSTALL_LIBDIR=lib
	-DCMAKE_INSTALL_LIBEXECDIR=lib
)

makedepends=('cmake' 'glib2' 'libdbusmenu-glib' 'libxkbcommon' 'git')

_pkgbase=vala-panel-appmenu
pkgname=vala-panel-appmenu-jayatana-git
_path=subprojects/jayatana
pkgver=0.7.3.r1.g8e8b2d0
pkgrel=1
pkgdesc="AppMenu module for Java Applications. Contains Bugs!"
provides=(jayatana)
depends=('glib2' 'libdbusmenu-glib' 'libxkbcommon' 'java-environment=8')
url="https://gitlab.com/vala-panel-project/vala-panel-appmenu"
arch=('i686' 'x86_64')
license=('MIT')

source=("git+https://gitlab.com/vala-panel-project/${_pkgbase}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgbase}"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "${srcdir}/${_pkgbase}/${_path}"
  cmake ./ "${_opts[@]}"
  make
}

package()
{
  cd "${srcdir}/${_pkgbase}/${_path}"
  make DESTDIR="${pkgdir}" install
}

Test build performed locally with extra-x86_64-build from devtools.

Offline

#5 2019-09-03 18:35:55

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Re: Error While Installing vala-panel-appmenu-jayatana-git

loqs wrote:
# Maintainer: rilian-la-te <ria.freelander@gmail.com>

_opts=(
	-DCMAKE_INSTALL_PREFIX=/usr
	-DCMAKE_INSTALL_LIBDIR=lib
	-DCMAKE_INSTALL_LIBEXECDIR=lib
)

makedepends=('cmake' 'glib2' 'libdbusmenu-glib' 'libxkbcommon' 'git')

_pkgbase=vala-panel-appmenu
pkgname=vala-panel-appmenu-jayatana-git
_path=subprojects/jayatana
pkgver=0.7.3.r1.g8e8b2d0
pkgrel=1
pkgdesc="AppMenu module for Java Applications. Contains Bugs!"
provides=(jayatana)
depends=('glib2' 'libdbusmenu-glib' 'libxkbcommon' 'java-environment=8')
url="https://gitlab.com/vala-panel-project/vala-panel-appmenu"
arch=('i686' 'x86_64')
license=('MIT')

source=("git+https://gitlab.com/vala-panel-project/${_pkgbase}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgbase}"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "${srcdir}/${_pkgbase}/${_path}"
  cmake ./ "${_opts[@]}"
  make
}

package()
{
  cd "${srcdir}/${_pkgbase}/${_path}"
  make DESTDIR="${pkgdir}" install
}

Test build performed locally with extra-x86_64-build from devtools.

thanks for your quick response, but i cant get what you mean by :

Test build performed locally with extra-x86_64-build from devtools.

can you give me the command ? or any guide ?

Offline

#6 2019-09-03 18:58:29

loqs
Member
Registered: 2014-03-06
Posts: 8,783

Re: Error While Installing vala-panel-appmenu-jayatana-git

See the link I provided in post #2 for a guide.
The command I used to build in a clean chroot instead of yay or makepg was

extra-x86_64-build

Offline

#7 2019-09-03 19:16:49

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Re: Error While Installing vala-panel-appmenu-jayatana-git

Here is what i have done step-by-step:

mkdir ~/chroot
CHROOT=$HOME/chroot
mkarchroot $CHROOT/root base-devel
arch-nspawn $CHROOT/root pacman -Syu
cd /home/erfan/chroot/root/home/
git clone https://aur.archlinux.org/vala-panel-appmenu-jayatana-git.git
cd https://aur.archlinux.org/vala-panel-appmenu-jayatana-git.git
REPLACIG YOUR PKGBUILD WITH THE ONE IN THIS DIRECTORY
extra-x86_64-build

and this is the final result i get :

Checking PKGBUILD
Checking vala-panel-appmenu-jayatana-git-0.7.3.r1.g8e8b2d0-1-x86_64.pkg.tar.xz
vala-panel-appmenu-jayatana-git E: Missing custom license directory (usr/share/licenses/vala-panel-appmenu-jayatana-git)
vala-panel-appmenu-jayatana-git W: Referenced library 'libjawt.so' is an uninstalled dependency
vala-panel-appmenu-jayatana-git W: Dependency glib2 included but already satisfied

and also full log of my last command execution , i mean the extra-x86_64-build command.

Offline

#8 2019-09-03 19:21:10

loqs
Member
Registered: 2014-03-06
Posts: 8,783

Re: Error While Installing vala-panel-appmenu-jayatana-git

Your method mixes two different methods of using chroot.  I used the following

git clone https://aur.archlinux.org/vala-panel-appmenu-jayatana-git.git
cd vala-panel-appmenu-jayatana-git
edit PKGBUILD
extra-x86_64-build

You can then install the built package with pacman

sudo pacman -U vala-panel-appmenu-jayatana-git-0.7.3.r1.g8e8b2d0-1-x86_64.pkg.tar.xz

Last edited by loqs (2019-09-03 19:21:24)

Offline

#9 2019-09-03 19:24:54

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Re: Error While Installing vala-panel-appmenu-jayatana-git

thank you very very much, i've installed it on my pc

but i got the same errors below again, are they ignorable ?

Checking vala-panel-appmenu-jayatana-git-0.7.3.r1.g8e8b2d0-1-x86_64.pkg.tar.xz
vala-panel-appmenu-jayatana-git E: Missing custom license directory (usr/share/licenses/vala-panel-appmenu-jayatana-git)
vala-panel-appmenu-jayatana-git W: Referenced library 'libjawt.so' is an uninstalled dependency
vala-panel-appmenu-jayatana-git W: Dependency glib2 included but already satisfied

Offline

#10 2019-09-03 19:34:59

loqs
Member
Registered: 2014-03-06
Posts: 8,783

Re: Error While Installing vala-panel-appmenu-jayatana-git

vala-panel-appmenu-jayatana-git E: Missing custom license directory (usr/share/licenses/vala-panel-appmenu-jayatana-git)

Should be fixed by the package maintainer from [1] the license should be GPL3 not MIT

vala-panel-appmenu-jayatana-git W: Referenced library 'libjawt.so' is an uninstalled dependency

Warning is a false positive from namcap jre8-openjdk-headless supplies libjawt.so and is a dependency of java-environment=8

vala-panel-appmenu-jayatana-git W: Dependency glib2 included but already satisfied

Explicitly listing implicit dependencies does not break packaging guidelines that I am aware of and can be ignored.

[1] https://gitlab.com/vala-panel-project/v … er/LICENSE

Offline

Board footer

Powered by FluxBB