You are not logged in.

#626 2017-03-14 19:04:53

leosanvieira
Member
Registered: 2016-04-21
Posts: 26

Re: pacaur - an AUR helper that minimizes user interaction

Thanks, working as expected now, but still throwing the 'invalid option '"--needed"' message when issuing "pacaur -Qua --devel --needed" but only once now instead of twice. The same behaviour doesn't happen when i issue "pacaur -Qum --devel --needed".

Offline

#627 2017-03-14 21:29:33

Spyhawk
Member
Registered: 2006-07-07
Posts: 460

Re: pacaur - an AUR helper that minimizes user interaction

Thx, fixed as well.

Offline

#628 2017-03-15 12:29:24

leosanvieira
Member
Registered: 2016-04-21
Posts: 26

Re: pacaur - an AUR helper that minimizes user interaction

Thanks again, everything working as expected now.

Offline

#629 2017-03-20 21:58:35

leosanvieira
Member
Registered: 2016-04-21
Posts: 26

Re: pacaur - an AUR helper that minimizes user interaction

@Spyhawk,
Sorry for bothering you again but it seems i may have found another bug, after today's pacaur-git updates, when i issue "pacaur -Qqum --devel --needed" or the "-Qqua" equivalent it shows 2 updates for pacaur-git(my noob guess is that it's showing one update for the bump in version to 4.7.6-1 and another due to the commits in the github repository).
The same behaviour doesn't happen when i issue "pacaur -Qum --devel --needed" or the "-Qua" equivalent.

Last edited by leosanvieira (2017-03-20 21:59:48)

Offline

#630 2017-03-20 23:42:30

Spyhawk
Member
Registered: 2006-07-07
Posts: 460

Re: pacaur - an AUR helper that minimizes user interaction

@leosanvieira> Indeed. Great catch, thx! Fixed in master.

Offline

#631 2017-03-27 16:03:06

Lucki
Member
Registered: 2014-03-06
Posts: 3

Re: pacaur - an AUR helper that minimizes user interaction

Hi,

is there an equivalent flag to (makepkg) '--cleanbuild' for a clean srcdir before building a package?
Besides the general 'warning: Using existing $srcdir' some packages cannot be build with an old srcdir.

Offline

#632 2017-03-27 18:47:42

Spyhawk
Member
Registered: 2006-07-07
Posts: 460

Re: pacaur - an AUR helper that minimizes user interaction

No, build is done by makepkg -od then makepkg -sefc. I might add this -C flag by default if there is no side effect with other packages. Do you have an example of such failing package?
Note pacaur won't support PKGBUILDs that don't build with makepkg -o && makepkg -e, as they usually need to be fixed by their maintainer.

Last edited by Spyhawk (2017-03-27 18:49:14)

Offline

#633 2017-03-27 19:10:51

Lucki
Member
Registered: 2014-03-06
Posts: 3

Re: pacaur - an AUR helper that minimizes user interaction

I had an existing srcdir for natron (2.2.3-1 -> 2.2.6-2) and lib32-qt4 (4.8.7-6 -> 4.8.7-10), both failed during the normal update.
Both are building fine after removing the existing srcdir.

Edit:
I'm sorry, but I can't reproduce this. Have you added the -c flag "recently"? Maybe my srcdir was a relict of a manual build…
However, see this as a feature request to prevent something like this. Workflow would be makepkg -Cod & makepkg -sefc.

Last edited by Lucki (2017-03-27 21:59:54)

Offline

#634 2017-03-31 10:43:51

Spyhawk
Member
Registered: 2006-07-07
Posts: 460

Re: pacaur - an AUR helper that minimizes user interaction

No, the -c flag has been here for a long time.
Edit: Adding -C is likely to break stuff in some situation. I won't do any change until the issue is correctly identified here, and I cannot reproduce either.

Last edited by Spyhawk (2017-04-03 08:17:00)

Offline

#635 2017-06-14 06:32:29

zaxdan69
Member
Registered: 2016-06-04
Posts: 59

Re: pacaur - an AUR helper that minimizes user interaction

Hello,
I'm using pacaur from a yad script and I want to get only the package names from pacaur' s output which is like this:

ddrescue-gui  1.6.1-3 -> 1.7.1-1    :: aur grisbi  1.0.1-1 -> 1.0.2-1    :: aur pacaur  4.7.8-1 -> 4.7.9-1    :: aur xfce4-dockbarx-plugin 0.4.1-1 -> 0.5-1 

like this:

ddrescue-gui 
grisbi
pacaur
xfce4-dockbarx-plugin

Is there any argument to achive this?

Offline

#636 2017-06-14 09:17:36

Spyhawk
Member
Registered: 2006-07-07
Posts: 460

Re: pacaur - an AUR helper that minimizes user interaction

--quiet, although you probably want to use `cower -uq` directly.

Last edited by Spyhawk (2017-06-14 09:17:45)

Offline

#637 2017-06-14 10:06:06

zaxdan69
Member
Registered: 2016-06-04
Posts: 59

Re: pacaur - an AUR helper that minimizes user interaction

Thanks a lot, works fine with cower -uq.

Offline

#638 2017-07-26 22:55:40

Z2h-A6n
Member
Registered: 2014-08-06
Posts: 5

Re: pacaur - an AUR helper that minimizes user interaction

I'm having trouble building timew-git, seemingly because prepare() is never run by makepkg.

The package builds with no errors using makepkg -od && makepkg -sefc, but fails with an error in package() using pacaur -S timew-git. This error seems to be due to some necessary commands in prepare() which are never run.

I had an old version of the package installed, but I uninstalled with pacaur -Rn and cleaned ~/.cache/pacaur with pacaur -Sc before trying to reinstall.

I think this is related to the problems that Lucki and vishwin were having in posts #633 and #616 respectively.

Any advice is appreciated.

Offline

#639 2017-07-27 11:31:53

Spyhawk
Member
Registered: 2006-07-07
Posts: 460

Re: pacaur - an AUR helper that minimizes user interaction

One of the patch doesn't apply correctly:


$ makepkg
...
==> Starting prepare()...
Submodule 'src/libshared' (https://git.tasktools.org/scm/tm/libshared.git) registered for path 'src/libshared'
Cloning into '/tmp/makepkg/timew-git/src/timew/src/libshared'...
done.
Submodule path 'src/libshared': checked out '577c22e4c78dbcb9b0bc605d54650e791f3ff4ba'
patching file doc/holidays/refresh
patching file ext/on-modify.timewarrior
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file ext/on-modify.timewarrior.rej
==> ERROR: A failure occurred in prepare().
    Aborting...

This is an issue with the packaging itself. This has been reported on the AUR page (comments) by some people.

Last edited by Spyhawk (2017-07-27 11:34:52)

Offline

#640 2017-07-27 13:47:18

Z2h-A6n
Member
Registered: 2014-08-06
Posts: 5

Re: pacaur - an AUR helper that minimizes user interaction

Thanks for looking into it. I saw the comments on the AUR page before. It looks like I must have fixed the patch manually and forgot about it when I was playing around with makepkg. I get the same results as you if I run makepkg on a fresh clone of the repository, so it looks like a mistake on my part.

Offline

#641 2017-07-27 15:41:58

Eschwartz
Bug Wrangler
Registered: 2014-08-08
Posts: 1,025

Re: pacaur - an AUR helper that minimizes user interaction

Spyhawk wrote:

One of the patch doesn't apply correctly:


$ makepkg
...
==> Starting prepare()...
Submodule 'src/libshared' (https://git.tasktools.org/scm/tm/libshared.git) registered for path 'src/libshared'
Cloning into '/tmp/makepkg/timew-git/src/timew/src/libshared'...
done.
Submodule path 'src/libshared': checked out '577c22e4c78dbcb9b0bc605d54650e791f3ff4ba'
patching file doc/holidays/refresh
patching file ext/on-modify.timewarrior
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file ext/on-modify.timewarrior.rej
==> ERROR: A failure occurred in prepare().
    Aborting...

This is an issue with the packaging itself. This has been reported on the AUR page (comments) by some people.

No, this is an issue with pacaur itself, which doesn't respect the error code returned by `makepkg -odC --skipinteg ${makeopts[@]} &>/dev/null`

The fact that the PKGBUILD is broken, does not absolve pacaur of the responsibility to pass that error on to the user after it squelches the stdout/stderr of `makepkg -o` (regarding which, on a personal level I fundamentally want to see all output, no matter what, and dislike pacaur hiding it from me).

Last edited by Eschwartz (2017-07-27 15:47:57)

Offline

#642 2017-07-27 16:27:50

Spyhawk
Member
Registered: 2006-07-07
Posts: 460

Re: pacaur - an AUR helper that minimizes user interaction

The issue referred to here was obviously the package not compiling.

Eschwartz wrote:

The fact that the PKGBUILD is broken, does not absolve pacaur of the responsibility to pass that error on to the user after it squelches the stdout/stderr of `makepkg -o` (regarding which, on a personal level I fundamentally want to see all output, no matter what, and dislike pacaur hiding it from me).

I do entirely agree with this.

Offline

#643 2017-07-27 18:23:26

Z2h-A6n
Member
Registered: 2014-08-06
Posts: 5

Re: pacaur - an AUR helper that minimizes user interaction

Eschwartz wrote:

No, this is an issue with pacaur itself, which doesn't respect the error code returned by `makepkg -odC --skipinteg ${makeopts[@]} &>/dev/null`

Thanks, I think that's what was confusing me. It's more obvious why the installation fails if  '&>/dev/null' is removed, or if the line is replaced with:

if [[ $silent - true ]]; then
    makepkg -od --skipinteg ${makeopts[@]} &>/dev/null
else
    makepkg -od --skipinteg ${makeopts[@]}
fi

Offline

#644 2017-07-27 18:52:42

Spyhawk
Member
Registered: 2006-07-07
Posts: 460

Re: pacaur - an AUR helper that minimizes user interaction

Yes indeed. I did not try to install this package with pacaur, but tried makepkg directly and didn't realised the error was hidden.

Pacaur works relatively well, but handles unexpected errors notoriously badly, so I'm not entirely surprised (though it's less worst than a few months ago). This particular behavior is easy to fix, but there is also room for improvements in quite lot of other part of the code too.

Offline

Board footer

Powered by FluxBB