Package Details: alpm_octopi_utils 1.0.2-5

Git Clone URL: https://aur.archlinux.org/alpm_octopi_utils.git (read-only, click to copy)
Package Base: alpm_octopi_utils
Description: Alpm utils for Octopi
Upstream URL: https://github.com/aarnt/alpm_octopi_utils
Licenses: GPL-3.0-or-later
Provides: alpm-octopi-utils
Submitter: ImNtReal
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 1130
Popularity: 30.69
First Submitted: 2016-10-21 15:33 (UTC)
Last Updated: 2024-03-26 23:56 (UTC)

Latest Comments

1 2 3 Next › Last »

matmoul commented on 2024-03-18 21:24 (UTC) (edited on 2024-03-18 21:35 (UTC) by matmoul)

@hardflacon It's sure that it's not the best practice...

But as it seems that you have found the answer in your issue on the Archlinux gitlab, I will wait for the answer.

Ref to your issue : https://gitlab.archlinux.org/pacman/pacman/-/issues/106

I like the solution with "$CARCH"

PS: I've missed the make install, I will work there for the next push..

hardfalcon commented on 2024-03-16 15:42 (UTC) (edited on 2024-03-16 16:12 (UTC) by hardfalcon)

The line

arch=('any')

is wrong and should be replaced with something like

arch=('aarch64' 'armv7h' 'i686' 'x86_64')

or possibly

arch=("$CARCH")

If you build the package with arch=('any'), the resulting package will have the any architecture, thereby erronously suggesting that you could install/use that package on any CPU architecture, even though it actually contains the architecture-specific file /usr/lib/libalpm_octopi_utils.so.

This is also described both in the PKGBUILD man page and on the PKGBUILD wiki page.

Besides, using pull request #4 from upstream would allow to make the install() function a little more elegant (IMO).

class101 commented on 2021-06-01 17:13 (UTC)

Patch is submitted upstream

If you want to patch on your end, here is the updated PKGBUILD

https://gist.github.com/class101/fa8e56b084f184ac653901aa7a646964

666 commented on 2021-06-01 16:27 (UTC)

Broken for me as well as of newest pacman upgrade. Downgrading pacman would probably fix it for now.

jns0l3nt commented on 2021-06-01 14:08 (UTC)

Also broken for me as of the latest pacman update.

class101 commented on 2021-06-01 09:12 (UTC) (edited on 2021-06-01 13:23 (UTC) by class101)

Edit: After investigation, I remove the out of date flag here as it seems to be the upstream sources that needs to be patched indeed to support pacman 6.x. Lets try to contribute to a patch if we can, and if the source are patched and this package is not, there will be a good reason to flag it out of date. Got it.


After Pacman update to 6.0.0. All the octopi packages linked to this seem to fail to build, an api update seem required in the code, e.g, alpm_db_search() changed from 2 to 3 arguments

alpm_octopi_utils.c: In function ‘alpm_utils_search_all_dbs’:
alpm_octopi_utils.c:270:18: error: too few arguments to function ‘alpm_db_search’
  270 |         _tmp8_ = alpm_db_search (_tmp6_, _tmp7_);
      |                  ^~~~~~~~~~~~~~
In file included from alpm_octopi_utils.c:24:
/usr/include/alpm.h:1413:5: note: declared here
 1413 | int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles,
      |     ^~~~~~~~~~~~~~
alpm_octopi_utils.c:298:35: error: too few arguments to function ‘alpm_db_search’
  298 |                         _tmp18_ = alpm_db_search (_tmp16_, _tmp17_);
      |                                   ^~~~~~~~~~~~~~
In file included from alpm_octopi_utils.c:24:
/usr/include/alpm.h:1413:5: note: declared here
 1413 | int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles,
      |     ^~~~~~~~~~~~~~
alpm_octopi_utils.c:307:35: error: too few arguments to function ‘alpm_db_search’
  307 |                         _tmp21_ = alpm_db_search (_tmp19_, _tmp20_);
      |                                   ^~~~~~~~~~~~~~
In file included from alpm_octopi_utils.c:24:
/usr/include/alpm.h:1413:5: note: declared here
 1413 | int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles,
      |     ^~~~~~~~~~~~~~
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
make[1]: *** [Makefile:18: libalpm_octopi_utils.so] Error 1
make[1]: Leaving directory '/home/arno/.cache/paru/clone/alpm_octopi_utils/src/alpm_octopi_utils-2bb9349507f8155155c9b5f12b1f30e60e157d30/src'
make: *** [Makefile:11: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'alpm_octopi_utils-1.0.2-2'

matmoul commented on 2020-12-26 23:25 (UTC) (edited on 2020-12-26 23:47 (UTC) by matmoul)

@gardotd426 : Thanks for your feedback, perhaps an issue with pacman 6...

I hope this will fixed before the release but now, I'll take a eye on it...

gardotd426 commented on 2020-12-26 23:06 (UTC)

I've figured out the problem (which you might want to look into).

Your package doesn't build with makepkg/pacman 6.0, which will be releasing soon.

I switched back to 5.2.2-1 and it works. But I've been using 6.0 for the parallel downloads. Once they release it, this package will stop building.

gardotd426 commented on 2020-12-26 23:03 (UTC)

It's saying too few arguments to function:

This error occurs when numbers of actual and formal arguments are different in the program.