You are not logged in.

#1 2024-03-14 19:33:01

SeagullFish
Member
Registered: 2023-08-10
Posts: 26

[SOLVED] Error while attempting to upgrade Pamac

Hello.

Pamac is notifying me that there is an update available for the package libpamac-git[AUR] (version 11.6.4.r0.g9108cba-1). Attempting to upgrade the package with Pamac fails with the following output:

Preparing...
Synchronizing package databases...
Refreshing extra.db...
Refreshing AUR...
Cloning libpamac-git build files...
Generating libpamac-git information...
Checking 1libpamac-git dependencies...
Organizing dependencies...
Checking internal conflicts...

Building libpamac-git...
==> Making package: libpamac-git 11.6.4.r0.g9108cba-1 (th. 14. mars 2024 kl. 20.03 +0100)
==> Checking dependencies needed for running...
==> Checking dependencies needed for building...
==> Fetching sources...
  -> Updating libpamac git archive...
==> Validating source files with sha256sums...
    libpamac ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Cloning local libpamac archive over git...
Cloning into 'libpamac'...
done.
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
The Meson build system
Version: 1.4.0
Source dir: /var/tmp/pamac-build-foo/libpamac-git/src/libpamac
Build dir: /var/tmp/pamac-build-foo/libpamac-git/src/libpamac/builddir
Build type: native build
Project name: libpamac
Project version: 11.6.4
C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20230801")
C linker for the host machine: cc ld.bfd 2.42.0
Vala compiler for the host machine: valac (valac 0.56.15)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: YES (/usr/bin/pkg-config) 2.1.0
Run-time dependency gobject-2.0 found: YES 2.78.4
Run-time dependency gio-2.0 found: YES 2.78.4
Run-time dependency gthread-2.0 found: YES 2.78.4
Dependency libalpm found: NO found 13.0.2 but need: '>=14.0'
Found CMake: /usr/bin/cmake (3.28.3)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency libalpm found: NO (tried cmake)

../src/meson.build:4:10: ERROR: Dependency lookup for libalpm with method 'pkgconfig' failed: Invalid version, need 'libalpm' ['>=14.0'] found '13.0.2'.

A full log can be found at /var/tmp/pamac-build-foo/libpamac-git/src/libpamac/builddir/meson-logs/meson-log.txt
==> ERROR: An error occurred i build().
    Aborting...

Attempting to upgrade the package with Aura in stead of Pamac also fails with a similar (the same?) error and a slightly different output:

[foo@bar ~]$ sudo aura -Ax libpamac-git
[sudo] passord for foo: 
aura >>= Determining dependencies...
aura >>= AUR Packages:
libpamac-git
aura >>= Continue? [Y/n] Y
aura >>= Building libpamac-git...
==> Making package: libpamac-git 11.6.4.r0.g9108cba-1 (th. 14. mars 2024 kl. 19.36 +0100)
==> Checking dependencies needed for running...
==> Checking dependencies needed for building...
==> Fetching sources...
  -> Updating libpamac git archive...
remote: Enumerating objects: 148, done.
remote: Counting objects: 100% (148/148), done.
remote: Compressing objects: 100% (99/99), done.
remote: Total 99 (delta 86), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (99/99), 27.59 KiB | 434.00 KiB/s, done.
From https://gitlab.manjaro.org/applications/libpamac
   e74fe0e..9108cba  master     -> master
 * [new tag]         11.6.3     -> 11.6.3
 * [new tag]         11.6.4     -> 11.6.4
==> Validating source files with sha256sums...
    libpamac ... Skipped
==> Extracting sources...
  -> Cloning local libpamac archive over git...
From /var/cache/aura/vcs/libpamac-git/libpamac-git/libpamac
   e74fe0e..9108cba  master     -> origin/master
 * [new tag]         11.6.3     -> 11.6.3
 * [new tag]         11.6.4     -> 11.6.4
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ mappe...
==> Starting build()...
Directory already configured.

Just run your build command (e.g. ninja) and Meson will regenerate as necessary.
Run "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.

ERROR: Build data file '/var/cache/aura/vcs/libpamac-git/libpamac-git/src/libpamac/builddir/meson-private/build.dat' references functions or classes that don't exist. This probably means that it was generated with an old version of meson. Consider reconfiguring the directory with "meson setup --reconfigure".
==> ERROR: An error occurred in build().
    Aborting...
aura >>= There was a makepkg failure.
aura >>= Would you like to continue anyway? [Y/n] n
aura >>= Building failed.

I don't understand how I should run "meson setup --reconfigure" and "meson setup --wipe", as suggested. These are the results of my attempts:

[foo@bar ~]$ meson setup --reconfigure

ERROR: Must specify at least one directory name.
[foo@bar ~]$ meson setup --wipe

ERROR: Must specify at least one directory name.
[foo@bar ~]$ meson setup --wipe /var/cache/aura/vcs/libpamac-git/libpamac-git/libpamac

ERROR: Neither source directory '/var/cache/aura/vcs/libpamac-git/libpamac-git/libpamac' nor build directory None contain a build file meson.build.
[foo@bar ~]$ meson setup --wipe /var/cache/aura/vcs/libpamac-git/libpamac-git

ERROR: Neither source directory '/var/cache/aura/vcs/libpamac-git/libpamac-git' nor build directory None contain a build file meson.build.
[foo@bar ~]$ meson setup --wipe /var/cache/aura/vcs/libpamac-git/libpamac-git/src/libpamac/builddir/

ERROR: Neither source directory '/var/cache/aura/vcs/libpamac-git/libpamac-git/src/libpamac/builddir/' nor build directory None contain a build file meson.build.
[foo@bar ~]$ meson setup --wipe /var/cache/aura/vcs/libpamac-git/libpamac-git/src/libpamac/

ERROR: Directory is not empty and does not contain a previous build:
/home/foo
[foo@bar ~]$ meson setup --wipe /var/cache/aura/vcs/libpamac-git/libpamac-git/src/libpamac/builddir/meson-private/

ERROR: Neither source directory '/var/cache/aura/vcs/libpamac-git/libpamac-git/src/libpamac/builddir/meson-private/' nor build directory None contain a build file meson.build.
Question:

Any ideas, anyone?

Last edited by SeagullFish (2024-03-16 19:20:36)

Offline

#2 2024-03-14 20:48:48

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,410
Website

Re: [SOLVED] Error while attempting to upgrade Pamac

../src/meson.build:4:10: ERROR: Dependency lookup for libalpm with method 'pkgconfig' failed: Invalid version, need 'libalpm' ['>=14.0'] found '13.0.2'.

pamac looks like it needs pacman-6.1

Offline

#3 2024-03-14 23:00:27

tdtooke
Member
Registered: 2023-04-11
Posts: 107

Re: [SOLVED] Error while attempting to upgrade Pamac

On a side note in my experience unless Gnome just recently did a major upgrade you don't need a git version of pamac.

Offline

#4 2024-03-16 11:36:32

SeagullFish
Member
Registered: 2023-08-10
Posts: 26

Re: [SOLVED] Error while attempting to upgrade Pamac

Allan wrote:

pamac looks like it needs pacman-6.1

Thank you for your input. I uninstalled pamac-aur-git[AUR] and libpamac-git[AUR]. Then successfully upgraded several packages to newer versions. Pacman was among these:

[foo@bar ~]$ sudo aura -Syu
[...]
Packages (6) ghostscript-10.03.0-2  net-snmp-5.9.4-2  ostree-2024.5-1  pacman-6.1.0-3  pacman-contrib-1.10.4-4  sane-1.3.0-2
[...]
(8/8) Warn about old perl modules
tdtooke wrote:

On a side note in my experience unless Gnome just recently did a major upgrade you don't need a git version of pamac.

Thank you for your input. Taking this into consideration, I tried installing the non-git package pamac-aur[AUR] which depends on libpamac-aur[AUR] (although I don't understand the difference between a git-version and a non-git version of the same software). This attempt failed:

[foo@bar ~]$ sudo aura -Ayu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
aura >>= Fetching package information...
aura >>= Comparing package versions...
aura >>= No packagee updates from AUR necessary.
[foo@bar ~]$ sudo aura -Ax pamac-aur
aura >>= Determining dependencies...

aura >>= Dependencies from AUR:
libpamac-aur
aura >>= AUR Packages:
pamac-aur
aura >>= Continue? [Y/n] Y 
aura >>= Building libpamac-aur...
==> ERROR: Cannot find the debugedit binary required for including source files in debug packages.
aura >>= There was a makepkg failure.
aura >>= Would you like to continue anyway? [J/n] n
aura >>= Building failed.

Thus, I tried re-installing pamac-aur-git[AUR] which depends on libpamac-git[AUR] instead. This attempt also failed:

[foo@bar ~]$ sudo aura -Ax pamac-aur-git
aura >>= Determining dependencies...

aura >>= Dependencies from repository:
pacman
aura >>= Dependencies from AUR:
libpamac-git
aura >>= AUR Packages:
pamac-aur-git
aura >>= Continue? [Y/n] Y
warning: pacman-6.1.0-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) pacman-6.1.0-3

Total Installed Size:  4.78 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                                                                                                 [########################################################################################] 100%
(1/1) checking package integrity                                                                                                               [########################################################################################] 100%
(1/1) loading package files                                                                                                                    [########################################################################################] 100%
(1/1) checking for file conflicts                                                                                                              [########################################################################################] 100%
(1/1) checking available disk space                                                                                                            [########################################################################################] 100%
:: Processing package changes...
(1/1) reinstalling pacman                                                                                                                      [########################################################################################] 100%
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...
aura >>= Building libpamac-git...
==> ERROR: Cannot find the debugedit binary required for including source files in debug packages.
aura >>= There was a makepkg failure.
aura >>= Would you like to continue anyway? [Y/n] n
aura >>= Building failed.
Question:

Now I no longer have a working installation of Pamac. How can I solve this?

Offline

#5 2024-03-16 11:43:19

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,410
Website

Re: [SOLVED] Error while attempting to upgrade Pamac

==> ERROR: Cannot find the debugedit binary required for including source files in debug packages.

Install that package.   Or turn off debug packages in your pacman.conf.

Offline

#6 2024-03-16 14:48:13

Fuxino
Member
From: Slovakia
Registered: 2014-09-26
Posts: 187

Re: [SOLVED] Error while attempting to upgrade Pamac

SeagullFish wrote:

Now I no longer have a working installation of Pamac. How can I solve this?

Don't use pamac? big_smile

Apart from that, debugedit is part of base-devel meta package, you should have that installed as prerequisite for using the AUR: https://wiki.archlinux.org/title/Arch_U … requisites


Arch + XMonad

Dotfiles: https://github.com/Fuxino/dotfiles

Offline

#7 2024-03-16 19:20:06

SeagullFish
Member
Registered: 2023-08-10
Posts: 26

Re: [SOLVED] Error while attempting to upgrade Pamac

Allan wrote:
==> ERROR: Cannot find the debugedit binary required for including source files in debug packages.

Install that package.   Or turn off debug packages in your pacman.conf.

Thank you for your input! You were right about this. smile

Fuxino wrote:

Apart from that, debugedit is part of base-devel meta package, you should have that installed as prerequisite for using the AUR: https://wiki.archlinux.org/title/Arch_U … requisites

TY!!! big_smile big_smile big_smile

That wiki-page was very explanatory. I read the whole page now, and learned several other things as well. Also this page was very useful, as configuring /etc/makepkg.conf probably makes compiling run faster. However, I can't seem to find any information or hyperlinks pointing to any of these two wiki-pages at neither the installation guide, the list of applications, nor the general recommendations. For that reason, I didn't catch this information at the time of installing Arch Linux. There is actually a hyperlink present at the very top of the AUR helpers wiki-page, but it seems that I missed it when I read that page before installing aura[AUR]. I wonder if there is any other post-installation wiki-page I should have read, that could have pointed me to the page you mentioned...? hmm

Regardless, installing base-devel solved the issue. Subsequently, I got pamac-aur[AUR] installed without issues. Thus, I change the status of this thread to [SOLVED] now. cool Again: Thank you, everyone.

Offline

Board footer

Powered by FluxBB