Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: '--root' option leads to aur-build '-r' option (aka '--rmdeps') instead of '--root' #1148

Closed
paul-ri opened this issue Mar 19, 2024 · 2 comments

Comments

@paul-ri
Copy link

paul-ri commented Mar 19, 2024

Before filing a bug, check the following:

  1. Do you use the latest release of aurutils and its dependencies? If so,
    is the issue reproducible from the master branch?
  2. Does the package conform to
    PKGBUILD(5) and the
    AUR package guidelines?
  3. Does the package provide the correct metadata on the
    AUR RPC interface?
  4. Does the package build with makepkg -s or extra-x86_64-build ?
  5. Does the package use internal makepkg functions? (see FS#43502)
  6. Is the problem reproducible, and not due to a misconfiguration of
    pacman, makepkg, sudoers, gpg or others?

If yes to all, create a debug log:

AUR_DEBUG=1 aur <name> <arguments> >aurutils.log 2>&1

and attach aurutils.log to this issue.

Description

Logs: aurutils.log

I believe the following aur-sync line (link) should append --root instead of -r to build_repo_args, since this leads to aur-build's --rmdeps option instead of the --root option. aur-sync's manual suggests --root is a valid option.

The following command:

aur sync --no-ver --no-confirm --no-view --database REDACTED_REPO --root /home/build/database yay
# leads to 
++(/usr/lib/aurutils/aur-sync:279): aur build --syncdeps --noconfirm -d REDACTED_REPO -r /home/build/database --status
# which leads to
++(/usr/lib/aurutils/aur-build:261): aur repo --repo REDACTED_REPO --status

Fails with:

+(/usr/lib/aurutils/aur-repo:197): printf '%s: %q: object is remote (use -S to query)\n' repo https://SOME_S3_BUCKET-2.amazonaws.com/REDACTED_REPO-arch/repo/x86_x64

Modifying the code locally as suggested runs successfully.

Thanks for the great project! I've used it for a couple of years smoothly without having to touch the script I wrote a while ago. So I may be mislead in how I'm using it. Regardless, the config option issue seems legit.

@paul-ri paul-ri changed the title aur-sync '--root' option leads to aur-build '-r' option (aka '--rmdeps') instead of '--root' sync: '--root' option leads to aur-build '-r' option (aka '--rmdeps') instead of '--root' Mar 19, 2024
AladW added a commit that referenced this issue Mar 20, 2024
instead of -r (--rmdeps).

Issue #1149, #1148
@AladW
Copy link
Member

AladW commented Mar 20, 2024

Fixed in 19.1

@paul-ri
Copy link
Author

paul-ri commented Mar 20, 2024

Wohoo, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants