-
Notifications
You must be signed in to change notification settings - Fork 3
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
Libalpm13 fixups #13
Libalpm13 fixups #13
Conversation
alpm_set_arch -> alpm_add_architecture it seems to do the same thing as the old set_arch
The parameters are different types, not 100% sure this patch works properly, even if it builds. The new type is a struct containing a void* data entry, defined in /usr/include/alpm_list.h but thank you, you may be right IDK yet! |
I'm not sure how it looked when it was
for a moment I considered the replacement would be
which makes the whole get/set step look redundant over just the add. I havent gotten any definite answer though on if my assumptions are correct and I havent worked with libalpm before so its all up for change at this point. is there any case I could test the arch being set correctly? I havent really run into it before, maybe try to find a package that doesnt support my arch and see if that'll error? would that implicated it works correctly? further thoughts after bothering some folks in #archlinux, I think using |
(gcc -lalpm -o xyz xyz.c)
because if that was now an alpm_list_t then you would simply need to swap the wrapper to the new function name and alter the type from a string to an object or something. |
I dont think you're supposed to manipulate the list like that, the add function is there for that reason and seems to work as expected:
I dont do that, as I said the function signature of |
Oh yes, I see. Sorry, I was thinking about set not add as I had been reading about that. The arch string is probably originating from the pacman commandline option --arch and this is most likely going to be used in the same way for aur packages so it won't be affected by the pacman changes and should still be a string. |
Thank you, that is marvelous, merged now. If you come up with any more good ideas they will be welcomed, if cautiously sometimes! |
some things were stopping it from compiling with the new version of libalpm, heres my attempt at fixing them.
from what I can tell
alpm_option_add_architecture
matches the now removedalpm_option_set_arch
, the signature is the same and it seems to work for what its worth at least.the zsh completion patch had some issues and seemingly broken parts that broke it as well so I also fixed that up.