You are not logged in.

#1 2018-06-11 05:09:52

Maruba
Member
Registered: 2018-06-11
Posts: 12

[Solved] unrecognized option '--color never' in pacaur. My system is

Trying to install "swift" via pacaur:

      /bin/pacman: unrecognized option '--color never'

I've seen that this error existed in pacman recently and has been fixed already.

I've updated my system just now.

But why does the error occur in pacAUR? And  taking into account the fact that I've run "sudo pacman -Suy"?

Last edited by Maruba (2018-06-21 05:13:27)

Offline

#2 2018-06-11 05:16:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 25,898
Website

Re: [Solved] unrecognized option '--color never' in pacaur. My system is

Pacman doesn't update AUR packages.  Rebuild pacaur.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

#3 2018-06-11 05:53:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 5,450

Re: [Solved] unrecognized option '--color never' in pacaur. My system is

Maruba wrote:

I've seen that this error existed in pacman recently and has been fixed already.

Fixed, yes. Released? No.

Offline

#4 2018-06-11 16:15:55

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 2,374

Re: [Solved] unrecognized option '--color never' in pacaur. My system is

It's not even fixed, actually. There's a *proposed* fix, which is entirely different: https://bugs.archlinux.org/task/58820

But Allan has not yet merged any new patches for the new 6.0 release cycle. Once he does, this would be fixed in pacman-git.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2018-06-11 16:28:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 20,122
Website

Re: [Solved] unrecognized option '--color never' in pacaur. My system is

Odd, it works for me still:

$ sudo pacman --color never -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do

All of that was without color or bold ...


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2018-06-11 16:31:13

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 2,374

Re: [Solved] unrecognized option '--color never' in pacaur. My system is

Did you look at the bugreport I linked?

It's even in the OP's explanation:

      /bin/pacman: unrecognized option '--color never'

I could duplicate this quite trivially, because it's not a bug in pacman, it's a bug in makepkg.

$ sudo pacman '--color never' -Syu
pacman: unrecognized option '--color never'

I think it's obvious why this doesn't work, and why makepkg should not be doing that.

EDIT: Migod, I just looked at the pacaur codebase and my eyes started bleeding. Now I remember why I stopped looking last time. wink
See this gem: https://github.com/rmarquis/pacaur/blob … caur#L2155

pacopts+=("--color $color")

But it doesn't matter, because later it just uses

${pacopts[@]}

No quotes.

EDIT2: The more you look, the more you notice some really eye-watering code which tries grepping pacman.conf to determine whether to pass explicit --color options to pacman... and also --nocolor to makepkg. It's the makepkg --nocolor bit that breaks, because when makepkg gets arrays wrong it actually matters as they get properly quoted when used.

And people claim pacaur is "better" than yaourt. How many have actually read the code???

Last edited by eschwartz (2018-06-11 16:40:51)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#7 2018-06-11 16:41:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 20,122
Website

Re: [Solved] unrecognized option '--color never' in pacaur. My system is

Ah, sorry.  I didn't expect it to be something that silly.  I thought the suggestion was that flag stopped working, not that makepkg or other tools were giving ridiculous flags to pacman.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2018-06-13 18:00:33

beatboxchad
Member
Registered: 2012-02-16
Posts: 2

Re: [Solved] unrecognized option '--color never' in pacaur. My system is

I found that uncommenting the the line:

#Color

in my /etc/pacman.conf served as a temporary workaround.

Offline

Board footer

Powered by FluxBB