You are not logged in.
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
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
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
# 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
# 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
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
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
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
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
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.
Offline