You are not logged in.

#1 2025-05-10 21:17:11

GreenSpoonMan
Member
Registered: 2023-10-20
Posts: 2

AUR PKGBUILD with an AUR Dependancy

Hey everyone,

I'm trying to build the project-plus-netplay AUR package, but pacman can't seem to find the official-gamecube-controller-adapter-rules dependancy.
It's not the only required AUR package, but, looking at the PKGBUILD file, it is the only one listed as a dependancy. The package is listed with official repository packages, so the error I'm getting seems logical:

==> Making package: project-plus-netplay v3.1.2-1 (Sat 10 May 2025 12:19:58 PM AKDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: official-gamecube-controller-adapter-rules
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> official-gamecube-controller-adapter-rules
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

I also tried installing the official-gamecube-controller-adapter-rules package separately, but I still get the error. I also tried manually removing the package name from the dependancy list, but it changed the checksum value of the appimage:

==> Making package: project-plus-netplay v3.1.2-1 (Sat 10 May 2025 01:01:30 PM AKDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found Faster_Project_Plus-x86-64.AppImage
  -> Found Launcher.tar.gz
  -> Found sd.tar.gz
==> Validating source files with sha256sums...
    Faster_Project_Plus-x86-64.AppImage ... FAILED
    Launcher.tar.gz ... Passed
    sd.tar.gz ... Passed
==> ERROR: One or more files did not pass the validity check!

My thought is there has to be a flag to have pacman check the AUR repository for the package, but I couldn't find anything in the wiki. I'm still fairly new to AUR, and I feel I might be overlooking an obvious solution. Any suggestions?

Offline

#2 2025-05-10 21:27:55

Xephon
Member
Registered: 2024-12-22
Posts: 96

Re: AUR PKGBUILD with an AUR Dependancy

Pacman does not support AUR. Use https://wiki.archlinux.org/title/AUR_helpers

Offline

#3 2025-05-10 22:20:45

loqs
Member
Registered: 2014-03-06
Posts: 18,433

Re: AUR PKGBUILD with an AUR Dependancy

Xephon wrote:

Pacman does not support AUR. Use https://wiki.archlinux.org/title/AUR_helpers

Why suggest an AUR helper rather than explain how to solve the issue without one?

Offline

#4 2025-05-10 22:31:22

GreenSpoonMan
Member
Registered: 2023-10-20
Posts: 2

Re: AUR PKGBUILD with an AUR Dependancy

The helper did fix the issue. Thanks, Xephon!

In case something like this comes up again, and I don't have a helper installed, how would I approach this without one?

Offline

#5 2025-05-10 22:50:30

loqs
Member
Registered: 2014-03-06
Posts: 18,433

Re: AUR PKGBUILD with an AUR Dependancy

GreenSpoonMan wrote:

In case something like this comes up again, and I don't have a helper installed, how would I approach this without one?

==> Making package: project-plus-netplay v3.1.2-1 (Sat 10 May 2025 12:19:58 PM AKDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: official-gamecube-controller-adapter-rules
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> official-gamecube-controller-adapter-rules
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

The build fails due to the package official-gamecube-controller-adapter-rules not being installed. So you need to install that first.  Which is what you stated you did, so you had correctly identified the issue.  How did you manually install that package as you did not show that step?  I tried doing that on my system and the package built without issue.
Edit:
Please also inspect the PKGBUILD for AUR packages for issues. For example project-plus-netplay installs files into the home directory of the user that built the package  breaking Arch package guidelines Directories.

Last edited by loqs (2025-05-10 23:07:50)

Offline

Board footer

Powered by FluxBB