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

Can't pass --asdeps to pacman for AUR packages #511

Closed
kgizdov opened this issue Sep 25, 2018 · 7 comments · Fixed by #576
Closed

Can't pass --asdeps to pacman for AUR packages #511

kgizdov opened this issue Sep 25, 2018 · 7 comments · Fixed by #576

Comments

@kgizdov
Copy link

kgizdov commented Sep 25, 2018

Hi,

As the title says. I am confused as to why I can't just run:

$ sudo aura -Axa --asdeps icu59
Invalid option `--asdeps'

Did you mean this?
    --deps

Usage: aura ((-A|--aursync) PACKAGES | (-B|--save) | (-C|--downgrade) PACKAGES |
            (-L|--viewlog) | (-O|--orphans) | (-V|--version) | --languages |
            --viewconf | ((-D|--database) PACKAGES | (-F|--files) | (-Q|--query)
            [PACKAGES] | (-R|--remove) PACKAGES | (-S|--sync) [PACKAGES] |
            (-T|--deptest) PACKAGES | (-U|--upgrade) PACKAGES))

I want to locally build an AUR package with mixed deps (some from core, some from AUR), and I want the deps to not be explicitly installed. The only way is to mark them after the fact...

I am using the master aura built with stack.

@fosskers
Copy link
Owner

Hm? The deps should be getting marked as not explicitly installed already, for both Pacman and AUR deps. If they're not, that's a bug.

@kgizdov
Copy link
Author

kgizdov commented Sep 25, 2018

No, I mean the following - I have a package that needs core and AUR dependencies. But I want to build it locally with makepkg for debugging. So I need to install the AUR deps on their own, because makepkg doesn't understand AUR when run as makepkg -s. Thus, I want to specify to install the AUR packages as dependencies.

@fosskers
Copy link
Owner

Ah, gotcha. Yes, that's reasonable. It would be annoying to have to manually do aura -D --as-deps foo bar baz... for the entire list of deps.

@kgizdov
Copy link
Author

kgizdov commented Mar 4, 2020

@fosskers would this be equivalently fixed as in this commit. If so, should I replicate and make a pull request? I don't have any haskell experience and will probably mess it up, but I can give it a go.

@fosskers
Copy link
Owner

fosskers commented Mar 4, 2020

Yes, I believe so, thanks for pointing that out. Let me just fix this for you right now.

@fosskers
Copy link
Owner

fosskers commented Mar 4, 2020

colin@yumi ~/c/h/aura (colin/asdeps)> aura -Au --dryrun --asdeps
aura >>= Fetching package information...
aura >>= Comparing package versions...
aura >>= AUR Packages to upgrade:
catt                        :: 0.10.3-1       -> 0.11.0-1
freetype2-demos-infinality  :: 2.8-2          -> 2.10.0-4
spotify                     :: 1:1.1.10.546-2 -> 1:1.1.10.546-3
yubico-yubioath-desktop-git :: 1134-1         -> 1342-1

aura >>= Determining dependencies...
aura >>= AUR dependencies:
catt
freetype2-demos-infinality
spotify
yubico-yubioath-desktop-git
colin@yumi ~/c/h/aura (colin/asdeps)> aura -Au --dryrun
aura >>= Fetching package information...
aura >>= Comparing package versions...
aura >>= AUR Packages to upgrade:
catt                        :: 0.10.3-1       -> 0.11.0-1
freetype2-demos-infinality  :: 2.8-2          -> 2.10.0-4
spotify                     :: 1:1.1.10.546-2 -> 1:1.1.10.546-3
yubico-yubioath-desktop-git :: 1134-1         -> 1342-1

aura >>= Determining dependencies...
aura >>= AUR Packages:
catt
freetype2-demos-infinality
spotify
yubico-yubioath-desktop-git

Notice the difference?

@fosskers fosskers linked a pull request Mar 4, 2020 that will close this issue
@fosskers
Copy link
Owner

fosskers commented Mar 4, 2020

^ that PR seems to fix it.

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

Successfully merging a pull request may close this issue.

2 participants