Package Details: package-query 1.12-1

Git Clone URL: https://aur.archlinux.org/package-query.git (read-only, click to copy)
Package Base: package-query
Description: Query ALPM and AUR
Upstream URL: https://github.com/archlinuxfr/package-query/
Licenses: GPL
Submitter: tuxce
Maintainer: archlinuxfr (Skunnyk, f2404)
Last Packager: Skunnyk
Votes: 1146
Popularity: 0.38
First Submitted: 2010-03-24 23:18 (UTC)
Last Updated: 2021-06-02 15:03 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 51 Next › Last »

malosasha commented on 2021-06-02 14:56 (UTC) (edited on 2021-06-02 14:59 (UTC) by malosasha)

There is a PR pending on the official github repo, until it is merged one can use this PKGBUILD :


pkgname=package-query
pkgver=1.11
pkgrel=1
pkgdesc="Query ALPM and AUR"
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h' 'arm' 'aarch64' 'pentium4')
url="https://github.com/archlinuxfr/package-query/"
license=('GPL')
depends=('pacman>=5.2' 'yajl>=2.0')
source=("git+https://github.com/egormanga/package-query#branch=fix-libalpm13")

build() {
  cd "$srcdir/$pkgname"
  ./autogen.sh
  ./configure --localstatedir=/var --prefix=/usr --sysconfdir=/etc --with-aur-url=https://aur.archlinux.org
  make
}

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

# vim:set ts=2 sw=2 et:
md5sums=('SKIP')

gile commented on 2021-06-02 11:14 (UTC)

Same here.

ktec commented on 2021-06-02 10:42 (UTC)

Just tried fresh clone from github, and makepkg -sicC and I get the

alpm-query.c:397:29: error: too few arguments to function ‘alpm_db_search’
  397 |         alpm_list_t *pkgs = alpm_db_search (db, targets);

error others seem to get.

jghodd commented on 2021-06-01 20:56 (UTC) (edited on 2021-06-01 22:02 (UTC) by jghodd)

all 3 aur helpers are broken because of this - yaourt, yay and paru. yaourt and yay come precompiled so no ability to re-link. paru tries to build an alpm unit and fails because of the changes to libalpm/alpm.h. please fix.

semeion commented on 2021-06-01 18:56 (UTC)

I hope it get fixed.

erickwill commented on 2021-06-01 17:17 (UTC)

Compiling from source returns an error as many times described. An update with a fix will be amazing and appreciated.

thaewrapt commented on 2021-06-01 12:43 (UTC)

@maderios Once again, update your build system (it's where you are running makepkg) and try to rebuild the package. And read the issue carefully.

maderios commented on 2021-06-01 12:09 (UTC)

@thaewrapt Are you really using Arch? Issue concerns only "yaourt", an old Arch package that doesn't exist no more:

After a recent update, yaourt is broken probably over package-query.
$ yaourt pacman
$ package-query: error while loading shared libraries: libalpm.so.12: cannot open shared object file: No such file or directory

atkrad commented on 2021-06-01 11:22 (UTC)

I have an issue with version 1.11 when build it:

alpm-query.c: In function ‘init_alpm’:
alpm-query.c:74:9: warning: implicit declaration of function ‘alpm_option_set_arch’; did you mean ‘alpm_option_set_dlcb’? [-Wimplicit-function-declaration]
   74 |         alpm_option_set_arch (handle, config.arch);
      |         ^~~~~~~~~~~~~~~~~~~~
      |         alpm_option_set_dlcb
alpm-query.c: In function ‘parse_config_server’:
alpm-query.c:96:28: warning: implicit declaration of function ‘alpm_option_get_arch’; did you mean ‘alpm_option_get_dlcb’? [-Wimplicit-function-declaration]
   96 |         const char *arch = alpm_option_get_arch (config.handle);
      |                            ^~~~~~~~~~~~~~~~~~~~
      |                            alpm_option_get_dlcb
alpm-query.c:96:28: warning: initialization of ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
alpm-query.c: In function ‘search_pkg’:
alpm-query.c:397:29: error: too few arguments to function ‘alpm_db_search’
  397 |         alpm_list_t *pkgs = alpm_db_search (db, targets);
      |                             ^~~~~~~~~~~~~~
In file included from util.h:23,
                 from alpm-query.c:28:
/usr/include/alpm.h:1413:5: note: declared here
 1413 | int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles,
      |     ^~~~~~~~~~~~~~
make[2]: *** [Makefile:429: alpm-query.o] Error 1
make[2]: Leaving directory '/tmp/package-query/src/package-query-1.11/src'
make[1]: *** [Makefile:409: all-recursive] Error 1
make[1]: Leaving directory '/tmp/package-query/src/package-query-1.11'
make: *** [Makefile:341: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...