You are not logged in.

#1 2013-08-03 13:09:43

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

[SOLVED] Yaourt can't see/update aur packages.

With or without sudo the output is this:

$ yaourt -Sua
Foreign packages: - 6 / 6
$ yaourt -Qm
local/archey 20130324-3
local/compton-git 2013.07.05.gb1e0ef8-1
local/maelstrom 3.0.6-3
local/nethack-x11 3.4.3-8
local/rssowl 2.2-1
local/teamviewer 8.0.17147-5

Also the package compton-git in my system is 2013.07.05.gb1e0ef8-1 but in aur is 2013.04.21.g85e7d18-1.
Is it a bug or something?

Last edited by manolos (2013-08-03 16:27:23)

Offline

#2 2013-08-03 14:10:14

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Yaourt can't see/update aur packages.

Your packages are all up-to-date.. why do you think they aren't?

Some (most?) VCS packages now have dynamic pkgvers which get updated when you build them. The version listed on the AUR is just the version that the package was at when the packager uploaded it, you should be tracking the upstream git repository for changes (and/or periodically rebuildng your local package).

Last edited by WorMzy (2013-08-03 14:15:32)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-08-03 14:14:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Yaourt can't see/update aur packages.

I didn't look up those packages, but if any of them are out of date, it's likely because you are missing a 'y' in the flags to yaourt.  -Sua just updates up to whatever database you already have locally.

Also, AFAIK, you'll need to use the --devel flag for vcs packages.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2013-08-03 14:51:26

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Yaourt can't see/update aur packages.

WorMzy wrote:

Your packages are all up-to-date.. why do you think they aren't?

Some (most?) VCS packages now have dynamic pkgvers which get updated when you build them. The version listed on the AUR is just the version that the package was at when the packager uploaded it, you should be tracking the upstream git repository for changes (and/or periodically rebuildng your local package).

So its normal to say Foreign packages and not:

==> Searching for new version on AUR
broadcom-wl: up to date
codecs: up to date
yaourt: up to date

?

Offline

#5 2013-08-03 14:52:46

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Yaourt can't see/update aur packages.

Trilby wrote:

I didn't look up those packages, but if any of them are out of date, it's likely because you are missing a 'y' in the flags to yaourt.  -Sua just updates up to whatever database you already have locally.

Also, AFAIK, you'll need to use the --devel flag for vcs packages.

I use y on pacman and yaourt to update database. I get the same outpout

Last edited by manolos (2013-08-03 14:53:20)

Offline

#6 2013-08-03 15:08:17

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Yaourt can't see/update aur packages.

manolos wrote:
WorMzy wrote:

Your packages are all up-to-date.. why do you think they aren't?

Some (most?) VCS packages now have dynamic pkgvers which get updated when you build them. The version listed on the AUR is just the version that the package was at when the packager uploaded it, you should be tracking the upstream git repository for changes (and/or periodically rebuildng your local package).

So its normal to say Foreign packages and not:

==> Searching for new version on AUR
broadcom-wl: up to date
codecs: up to date
yaourt: up to date

?

Yes.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2013-08-03 16:26:53

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Yaourt can't see/update aur packages.

WorMzy wrote:
manolos wrote:
WorMzy wrote:

Your packages are all up-to-date.. why do you think they aren't?

Some (most?) VCS packages now have dynamic pkgvers which get updated when you build them. The version listed on the AUR is just the version that the package was at when the packager uploaded it, you should be tracking the upstream git repository for changes (and/or periodically rebuildng your local package).

So its normal to say Foreign packages and not:

==> Searching for new version on AUR
broadcom-wl: up to date
codecs: up to date
yaourt: up to date

?

Yes.

Ok thank you both of you for your time. Sorry my bad, I thought something was wrong.

Offline

#8 2013-08-03 22:14:51

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Yaourt can't see/update aur packages.

WorMzy wrote:

...you should be tracking the upstream git repository for changes...

What is the best way to do this?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-08-04 00:49:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Yaourt can't see/update aur packages.

cfr wrote:
WorMzy wrote:

...you should be tracking the upstream git repository for changes...

What is the best way to do this?

You can visit upstream git repo and see what has changed since you last updated. packer can update development (vcs) packages, you can also use e.g. cower to download the PKGBUILD etc. and run 'makepkg -si'.

Last edited by karol (2013-08-04 00:49:59)

Offline

#10 2013-08-04 01:02:24

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Yaourt can't see/update aur packages.

Thanks, karol. I was just wondering if there was any automatic way of tracking changes in git repositories. In case there is an updated pkgbuild for cower to download, I should know. I already get notified of updates for official and AUR packages (cron job, scripts, cower, pacman). It is the cases in which the git code changes with no change to the pkgbuild that I have no warning system for. Personally, I would never run makepkg -si but I'm paranoid.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#11 2013-08-04 01:12:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Yaourt can't see/update aur packages.

If you're paranoid, checking upstream updates manually makes sense ;P

Maybe you can run git to see if your local copy of the upstream repo is at the latest revision or not.

Offline

#12 2013-08-04 01:18:20

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Yaourt can't see/update aur packages.

karol wrote:

If you're paranoid, checking upstream updates manually makes sense ;P

Not that paranoid. I quit being paranoid when paranoia takes effort.

I actually never run makepkg -si because I always build packages in an unprivileged account so it can't install dependencies or successfully call sudo.

Maybe you can run git to see if your local copy of the upstream repo is at the latest revision or not.

Hmm... that's an idea.  Will have to learn git, but still... Thanks!

Last edited by cfr (2013-08-04 01:18:37)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#13 2013-08-04 01:42:39

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Yaourt can't see/update aur packages.

cfr wrote:
karol wrote:

If you're paranoid, checking upstream updates manually makes sense ;P

Not that paranoid. I quit being paranoid when paranoia takes effort.

I actually never run makepkg -si because I always build packages in an unprivileged account so it can't install dependencies or successfully call sudo.

Maybe you can run git to see if your local copy of the upstream repo is at the latest revision or not.

Hmm... that's an idea.  Will have to learn git, but still... Thanks!

Using the example in this topic (https://github.com/chjj/compton), you can eiither 1) create a github account and "watch" Christopher Jeffrey (chjj)'s repo (enabling email-notifications if they're not enabled by default), or you can subscribe to his atom (RSS) feed: https://github.com/chjj.atom (which may include prejects that youre not personally interested in).

Alternatively, you can do what Karol suggested, and clone the repo locally, and use a cron implementation to pull changes periodically. I do the same with Linus Torvald's linux repo, using a script to display the current tag on xmobar. Due to the frequent commit/tagging of upstream repositories, AUR PKGUILDs often trail behind upstream releases, (linux-mainline would be a good example of this).

Or, again alternatively, you can check the status of the upstream repo using gitweb (or equivalent) to check for commits more recnet than your locally built package.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#14 2013-08-04 02:15:54

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Yaourt can't see/update aur packages.

Thanks also. If I can figure it out, I like karol's suggestion because I could wrap it into my current notification of updates for pacman and AUR. That is, I could make it so I get a single notification of all updates just by pulling this in as well.

For -git packages, am I right in thinking that the build already basically checks out a copy of the repo as part of the compilation of the package?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#15 2013-08-04 02:17:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Yaourt can't see/update aur packages.

cfr wrote:

For -git packages, am I right in thinking that the build already basically checks out a copy of the repo as part of the compilation of the package?

Yes, I think that's true for -hg and other vcs too. You should be able to reuse some code from the PKGBUILDs.

Offline

#16 2013-08-04 02:19:35

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Yaourt can't see/update aur packages.

Great. I was actually thinking I could use the copies but maybe that's not a great idea. I'll have to see what works, I guess. Thanks again.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB