You are not logged in.

#1 2023-01-21 09:37:49

me2kool2talk2u
Member
Registered: 2023-01-21
Posts: 5

I can't install vala-panel-extras-volume-git

I am trying to install the volume applet for vala panel but I get this :

 -> Could not find all required packages:
	libgweather>=3.12.0 (Wanted by: vala-panel-extras-volume-git -> vala-panel-extras-common-git)
	libgweather>=3.12.0 (Wanted by: vala-panel-extras-volume-git)

also I have libgweather 4.2.0 installed

Offline

#2 2023-01-21 11:40:51

Adriik
Member
From: Argentina
Registered: 2022-03-10
Posts: 107

Re: I can't install vala-panel-extras-volume-git

Pacman reports that the package name for libgweather is "libgweather-4".
Edit the PKGBUILD and change "libgweather>=3.12.0" to "libgweather-4" in the makedepends array.

Edit: I see in function package_vala-panel-extras-weather-git() there's another "libgweather>=3.12.0". Try change that too.

Last edited by Adriik (2023-01-21 11:43:25)


I'm just someone. Please use [code] [/code] tags.
Command cheatsheetCommand not found?
If I write something wrong in English, please correct me.
♪ Muchachos, ahora nos volvimos a ilusionar ★★★ ♪

Offline

#3 2023-01-21 17:53:50

me2kool2talk2u
Member
Registered: 2023-01-21
Posts: 5

Re: I can't install vala-panel-extras-volume-git

Didn't work

Offline

#4 2023-01-21 18:24:19

loqs
Member
Registered: 2014-03-06
Posts: 15,623

Re: I can't install vala-panel-extras-volume-git

It needs libgweather 3 https://gitlab.com/vala-panel-project/v … .build#L13

If the weather applet is disabled then the build fails due to https://gitlab.com/vala-panel-project/v … /issues/19

Last edited by loqs (2023-01-21 18:24:33)

Offline

#5 2023-01-21 19:17:41

me2kool2talk2u
Member
Registered: 2023-01-21
Posts: 5

Re: I can't install vala-panel-extras-volume-git

I replaced the meson.build with this https://gitlab.com/vala-panel-project/v … .build#L13 and downgraded vala to 0.54.6 now I get this 

==> Making package: vala-panel-extras-git 0.1.9.r41.g27a1673-1 (Sat 21 Jan 2023 09:15:24 PM EET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating vala-panel-extras git repo...
==> Validating source files with sha256sums...
    vala-panel-extras ... Skipped
==> Extracting sources...
  -> Creating working copy of vala-panel-extras git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Directory already configured.

Just run your build command (e.g. ninja) and Meson will regenerate as necessary.
If ninja fails, run "ninja reconfigure" or "meson setup --reconfigure"
to force Meson to regenerate.

If build failures persist, run "meson setup --wipe" to rebuild from scratch
using the same options as passed when configuring the build.
To change option values, run "meson configure" instead.
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/panos/vala-panel-extras-git/src/build
ninja: Entering directory `/home/panos/vala-panel-extras-git/src/build'
[0/1] Regenerating build files.
The Meson build system
Version: 1.0.0
Source dir: /home/panos/vala-panel-extras-git/src/vala-panel-extras
Build dir: /home/panos/vala-panel-extras-git/src/build
Build type: native build
Project name: vala-panel-extras
Project version: 0.2.0
C compiler for the host machine: cc (gcc 12.2.1 "cc (GCC) 12.2.1 20230111")
C linker for the host machine: cc ld.bfd 2.40
Vala compiler for the host machine: valac (valac 0.56.3)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Dependency glib-2.0 found: YES 2.74.4 (cached)
Dependency gio-2.0 found: YES 2.74.4 (cached)
Dependency gio-unix-2.0 found: YES 2.74.4 (cached)
Dependency gmodule-2.0 found: YES 2.74.4 (cached)
Dependency gtk+-3.0 found: YES 3.24.36 (cached)
Library m found: YES
Library gio-addons-2.0 found: YES
Configuring config.vala using configuration
Program msgfmt found: YES (/usr/bin/msgfmt)
Program msginit found: YES (/usr/bin/msginit)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Dependency alsa found: YES 1.2.8 (cached)
Dependency libcanberra found: YES 0.30 (cached)
Dependency gweather-3.0 found: YES 2.91.6 (cached)
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Dependency libgtop-2.0 found: YES 2.40.0 (cached)
Dependency xkbcommon found: YES 1.5.0 (cached)
Dependency xkbcommon-x11 found: YES 1.5.0 (cached)
Dependency xcb-xkb found: YES 1.15 (cached)
Dependency x11-xcb found: YES 1.8.3 (cached)
Dependency gdk-x11-3.0 found: YES 3.24.36 (cached)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Build targets in project: 21
NOTICE: Future-deprecated features used:
 * 0.56.0: {'meson.source_root'}

vala-panel-extras 0.2.0

  User defined options
    auto_features: enabled
    prefix       : /usr

Found ninja-1.11.1 at /usr/bin/ninja
Cleaning... 0 files.
[2/11] Compiling Vala source ../vala-panel-extras/applets/w...ras/applets/weather/weather-forecast.vala lib/internal.vapi
FAILED: applets/weather/vala-panel-extras-weather.p/weather.c applets/weather/vala-panel-extras-weather.p/weather-config.c applets/weather/vala-panel-extras-weather.p/weather-forecast.c 
valac -C --debug --debug --vapidir /home/panos/vala-panel-extras-git/src/vala-panel-extras/vapi --pkg gweather-3.0 --pkg gtk+-3.0 --pkg gmodule-2.0 --color=always --directory applets/weather/vala-panel-extras-weather.p --basedir ../vala-panel-extras/applets/weather --gresources=../vala-panel-extras/applets/weather/weather.gresource.xml ../vala-panel-extras/applets/weather/weather.vala ../vala-panel-extras/applets/weather/weather-config.vala ../vala-panel-extras/applets/weather/weather-forecast.vala lib/internal.vapi
error: Package `gweather-3.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Compilation failed: 1 error(s), 0 warning(s)
[6/11] Compiling C object applets/xkb/vala-panel-extras-xkb.p/meson-generated_xkb-backend.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

Last edited by me2kool2talk2u (2023-01-21 19:18:22)

Offline

#6 2023-01-21 20:07:25

loqs
Member
Registered: 2014-03-06
Posts: 15,623

Re: I can't install vala-panel-extras-volume-git

me2kool2talk2u wrote:

I replaced the meson.build with this https://gitlab.com/vala-panel-project/v … .build#L13

You replaced meson.build as checked out by git from the HEAD of the master branch with meson.build from the HEAD of the master branch in the web interface?   What was that intended to achieve?

Offline

#7 2023-01-21 20:24:36

me2kool2talk2u
Member
Registered: 2023-01-21
Posts: 5

Re: I can't install vala-panel-extras-volume-git

I don't know that's what I was told to do by a guy on the internet

Offline

#8 2023-01-21 20:48:28

loqs
Member
Registered: 2014-03-06
Posts: 15,623

Re: I can't install vala-panel-extras-volume-git

I linked to the line that requires libgweather 3 because you had been instructed to change the PKGBUILD to use libgweather 4 :

weather = dependency('gweather-3.0',required: get_option('weather'))

I was expecting you to either build and install libgweather3 or disable the weather applet.
Edit:
This removes the weather indicator
PKGBUILD

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

_pkgbase=vala-panel-extras
pkgbase=vala-panel-extras-git
pkgname=('vala-panel-extras-battery-git' 'vala-panel-extras-volume-git' 'vala-panel-extras-xkb-git' 'vala-panel-extras-gtop-git' 'vala-panel-extras-common-git' 'vala-panel-extras-xkb-flags-git')
pkgver=0.1.9.r41.g27a1673
pkgrel=1
pkgdesc="Simple StatusNotifierItems for Indicator plugins"
url="https://gitlab.com/vala-panel-project/vala-panel-extras"
arch=('i686' 'x86_64')
license=('GPL3')
replaces=('vala-panel-extras-meta-git')
makedepends=('meson' 'vala' 'gtk3>=3.12.0' 'libxkbcommon-x11>=0.5.0' 'libxcb>=1.10' 'alsa-lib>=1.0.26' 'libcanberra' 'libx11' 'libgtop' 'git')
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() {
  meson build "${srcdir}/${_pkgbase}" --prefix=/usr -Dweather=disabled
  meson compile -C build
}

package_vala-panel-extras-volume-git() {
  pkgdesc="Simple volume indicator"
  depends=('gtk3' 'alsa-lib>=1.0.26' 'libcanberra' 'vala-panel-extras-common-git')
  optdepends=('xfce4-sntray-plugin: for showing in Xfce'
            'vala-panel-sntray: for showing in vala-panel'
            'xfce4-snw-plugin: for showing in Xfce, alternate way'
            'enlightenment: for showing in E19'
            'indicator-application: for showing in Indicator Environment, like Pantheon or Unity'
            'plasma-desktop: for showing in KDE Frameworks'
            'kdebase-plasma: for showing in KDE4')
            
  DESTDIR="${pkgdir}" meson install -C build
  rm -fr "$pkgdir/usr/share/vala-panel-extras/"
  rm -fr "$pkgdir/usr/share/locale/"
  rm -rf $pkgdir/usr/bin/vala-panel-extras-{xkb,gtop,battery}
  rm -rf $pkgdir/usr/share/applications/org.valapanel.{xkb,gtop,battery}.desktop
  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{xkb,gtop,battery}.gschema.xml
}
package_vala-panel-extras-xkb-git() {
  pkgdesc="Simple keyboard layout indicator/switcher"
  depends=('gtk3' 'libxkbcommon-x11>=0.5' 'libxcb>=1.10' 'libx11' 'vala-panel-extras-common-git')
  optdepends=('xfce4-sntray-plugin: for showing in Xfce'
            'vala-panel-sntray: for showing in vala-panel'
            'xfce4-snw-plugin: for showing in Xfce, alternate way'
            'enlightenment: for showing in E19'
            'indicator-application: for showing in Indicator Environment, like Pantheon or Unity'
            'plasma-desktop: for showing in KDE Frameworks'
            'kdebase-plasma: for showing in KDE4'
            'vala-panel-extras-xkb-flags: builtin flags')

  DESTDIR="${pkgdir}" meson install -C build
  rm -fr "$pkgdir/usr/share/vala-panel-extras/"
  rm -fr "$pkgdir/usr/share/locale/"
  rm -rf $pkgdir/usr/bin/vala-panel-extras-{volume,gtop,battery}
  rm -rf $pkgdir/usr/share/applications/org.valapanel.{volume,gtop,battery}.desktop
  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{volume,gtop,battery}.gschema.xml
}
package_vala-panel-extras-gtop-git() {
  pkgdesc="Simple network speed indicator"
  depends=('gtk3' 'libgtop' 'vala-panel-extras-common-git')
  optdepends=('xfce4-sntray-plugin: for showing in Xfce'
            'vala-panel-sntray: for showing in vala-panel'
            'xfce4-snw-plugin: for showing in Xfce, alternate way'
            'enlightenment: for showing in E19'
            'indicator-application: for showing in Indicator Environment, like Pantheon or Unity'
            'plasma-desktop: for showing in KDE Frameworks'
            'kdebase-plasma: for showing in KDE4')

  DESTDIR="${pkgdir}" meson install -C build
  rm -fr "$pkgdir/usr/share/vala-panel-extras/"
  rm -fr "$pkgdir/usr/share/locale/"
  rm -rf $pkgdir/usr/bin/vala-panel-extras-{xkb,volume,battery}
  rm -rf $pkgdir/usr/share/applications/org.valapanel.{xkb,volume,battery}.desktop
  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{xkb,volume,battery}.gschema.xml
}
package_vala-panel-extras-xkb-flags-git() {
  arch=('any')
  pkgdesc="Flags for XKB plugin"
  optdepends=('vala-panel-extras-xkb-git')
  
  DESTDIR="${pkgdir}" meson install -C build
  rm -fr "$pkgdir/usr/share/locale/"
  rm -fr "$pkgdir/usr/share/applications/"
  rm -fr "$pkgdir/usr/share/glib-2.0/"
  rm -fr "$pkgdir/usr/bin/"
  rm -fr "$pkgdir/usr/share/vala-panel-extras/doc"
}
package_vala-panel-extras-battery-git() {
  pkgdesc="Simple battery indicator"
  depends=('gtk3' 'upower>=0.99' 'vala-panel-extras-common-git')
  optdepends=('xfce4-sntray-plugin: for showing in Xfce'
            'vala-panel-sntray: for showing in vala-panel'
            'xfce4-snw-plugin: for showing in Xfce, alternate way'
            'enlightenment: for showing in E19'
            'indicator-application: for showing in Indicator Environment, like Pantheon or Unity'
            'plasma-desktop: for showing in KDE Frameworks'
            'kdebase-plasma: for showing in KDE4')
  
  DESTDIR="${pkgdir}" meson install -C build
  rm -fr "$pkgdir/usr/share/vala-panel-extras/"
  rm -fr "$pkgdir/usr/share/locale/"
  rm -rf $pkgdir/usr/bin/vala-panel-extras-{xkb,gtop,volume}
  rm -rf $pkgdir/usr/share/applications/org.valapanel.{xkb,gtop,volume}.desktop
  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{xkb,gtop,volume}.gschema.xml
}

package_vala-panel-extras-common-git() {
  arch=('any')
  pkgdesc="Common files for vala-panel-extras"
  replaces=('vala-panel-extras-translations-git')
  
  DESTDIR="${pkgdir}" meson install -C build
  rm -fr "$pkgdir/usr/share/vala-panel-extras/xkb"
  rm -fr "$pkgdir/usr/share/applications/"
  rm -fr "$pkgdir/usr/share/glib-2.0/"
  rm -fr "$pkgdir/usr/bin/"
}

git diff

diff --git a/PKGBUILD b/PKGBUILD
index ad18a38..9a5e499 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,15 @@
 
 _pkgbase=vala-panel-extras
 pkgbase=vala-panel-extras-git
-pkgname=('vala-panel-extras-battery-git' 'vala-panel-extras-volume-git' 'vala-panel-extras-xkb-git' 'vala-panel-extras-gtop-git' 'vala-panel-extras-weather-git' 'vala-panel-extras-common-git' 'vala-panel-extras-xkb-flags-git')
-pkgver=0.1.9
-pkgrel=2
+pkgname=('vala-panel-extras-battery-git' 'vala-panel-extras-volume-git' 'vala-panel-extras-xkb-git' 'vala-panel-extras-gtop-git' 'vala-panel-extras-common-git' 'vala-panel-extras-xkb-flags-git')
+pkgver=0.1.9.r41.g27a1673
+pkgrel=1
 pkgdesc="Simple StatusNotifierItems for Indicator plugins"
 url="https://gitlab.com/vala-panel-project/vala-panel-extras"
 arch=('i686' 'x86_64')
 license=('GPL3')
 replaces=('vala-panel-extras-meta-git')
-makedepends=('meson' 'vala' 'gtk3>=3.12.0' 'libxkbcommon-x11>=0.5.0' 'libxcb>=1.10' 'alsa-lib>=1.0.26' 'libcanberra' 'libgweather>=3.12.0' 'libx11' 'libgtop' 'git')
+makedepends=('meson' 'vala' 'gtk3>=3.12.0' 'libxkbcommon-x11>=0.5.0' 'libxcb>=1.10' 'alsa-lib>=1.0.26' 'libcanberra' 'libx11' 'libgtop' 'git')
 source=("git+https://gitlab.com/vala-panel-project/${_pkgbase}.git")
 sha256sums=('SKIP')
 
@@ -23,7 +23,7 @@ pkgver() {
 }
 
 build() {
-  meson build "${srcdir}/${_pkgbase}" --prefix=/usr -Dauto_features=enabled
+  meson build "${srcdir}/${_pkgbase}" --prefix=/usr -Dweather=disabled
   meson compile -C build
 }
 
@@ -41,9 +41,9 @@ package_vala-panel-extras-volume-git() {
   DESTDIR="${pkgdir}" meson install -C build
   rm -fr "$pkgdir/usr/share/vala-panel-extras/"
   rm -fr "$pkgdir/usr/share/locale/"
-  rm -rf $pkgdir/usr/bin/vala-panel-extras-{xkb,gtop,weather,battery}
-  rm -rf $pkgdir/usr/share/applications/org.valapanel.{xkb,gtop,weather,battery}.desktop
-  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{xkb,gtop,weather,battery}.gschema.xml
+  rm -rf $pkgdir/usr/bin/vala-panel-extras-{xkb,gtop,battery}
+  rm -rf $pkgdir/usr/share/applications/org.valapanel.{xkb,gtop,battery}.desktop
+  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{xkb,gtop,battery}.gschema.xml
 }
 package_vala-panel-extras-xkb-git() {
   pkgdesc="Simple keyboard layout indicator/switcher"
@@ -60,9 +60,9 @@ package_vala-panel-extras-xkb-git() {
   DESTDIR="${pkgdir}" meson install -C build
   rm -fr "$pkgdir/usr/share/vala-panel-extras/"
   rm -fr "$pkgdir/usr/share/locale/"
-  rm -rf $pkgdir/usr/bin/vala-panel-extras-{volume,gtop,weather,battery}
-  rm -rf $pkgdir/usr/share/applications/org.valapanel.{volume,gtop,weather,battery}.desktop
-  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{volume,gtop,weather,battery}.gschema.xml
+  rm -rf $pkgdir/usr/bin/vala-panel-extras-{volume,gtop,battery}
+  rm -rf $pkgdir/usr/share/applications/org.valapanel.{volume,gtop,battery}.desktop
+  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{volume,gtop,battery}.gschema.xml
 }
 package_vala-panel-extras-gtop-git() {
   pkgdesc="Simple network speed indicator"
@@ -78,27 +78,9 @@ package_vala-panel-extras-gtop-git() {
   DESTDIR="${pkgdir}" meson install -C build
   rm -fr "$pkgdir/usr/share/vala-panel-extras/"
   rm -fr "$pkgdir/usr/share/locale/"
-  rm -rf $pkgdir/usr/bin/vala-panel-extras-{xkb,volume,weather,battery}
-  rm -rf $pkgdir/usr/share/applications/org.valapanel.{xkb,volume,weather,battery}.desktop
-  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{xkb,volume,weather,battery}.gschema.xml
-}
-package_vala-panel-extras-weather-git() {
-  pkgdesc="Simple weather indicator"
-  depends=('gtk3' 'libgweather>=3.12.0' 'vala-panel-extras-common-git')
-  optdepends=('xfce4-sntray-plugin: for showing in Xfce'
-            'vala-panel-sntray: for showing in vala-panel'
-            'xfce4-snw-plugin: for showing in Xfce, alternate way'
-            'enlightenment: for showing in E19'
-            'indicator-application: for showing in Indicator Environment, like Pantheon or Unity'
-            'plasma-desktop: for showing in KDE Frameworks'
-            'kdebase-plasma: for showing in KDE4')
-  
-  DESTDIR="${pkgdir}" meson install -C build
-  rm -fr "$pkgdir/usr/share/vala-panel-extras/"
-  rm -fr "$pkgdir/usr/share/locale/"
-  rm -rf $pkgdir/usr/bin/vala-panel-extras-{xkb,gtop,volume,battery}
-  rm -rf $pkgdir/usr/share/applications/org.valapanel.{xkb,gtop,volume,battery}.desktop
-  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{xkb,gtop,volume,battery}.gschema.xml
+  rm -rf $pkgdir/usr/bin/vala-panel-extras-{xkb,volume,battery}
+  rm -rf $pkgdir/usr/share/applications/org.valapanel.{xkb,volume,battery}.desktop
+  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{xkb,volume,battery}.gschema.xml
 }
 package_vala-panel-extras-xkb-flags-git() {
   arch=('any')
@@ -126,9 +108,9 @@ package_vala-panel-extras-battery-git() {
   DESTDIR="${pkgdir}" meson install -C build
   rm -fr "$pkgdir/usr/share/vala-panel-extras/"
   rm -fr "$pkgdir/usr/share/locale/"
-  rm -rf $pkgdir/usr/bin/vala-panel-extras-{xkb,gtop,weather,volume}
-  rm -rf $pkgdir/usr/share/applications/org.valapanel.{xkb,gtop,weather,volume}.desktop
-  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{xkb,gtop,weather,volume}.gschema.xml
+  rm -rf $pkgdir/usr/bin/vala-panel-extras-{xkb,gtop,volume}
+  rm -rf $pkgdir/usr/share/applications/org.valapanel.{xkb,gtop,volume}.desktop
+  rm -rf $pkgdir/usr/share/glib-2.0/schemas/org.valapanel.{xkb,gtop,volume}.gschema.xml
 }
 
 package_vala-panel-extras-common-git() {

Last edited by loqs (2023-01-21 22:44:10)

Offline

#9 2023-01-22 11:56:28

me2kool2talk2u
Member
Registered: 2023-01-21
Posts: 5

Re: I can't install vala-panel-extras-volume-git

thanks it worked

Offline

Board footer

Powered by FluxBB