You are not logged in.

#76 2017-10-25 20:13:32

SolarAquarion
Member
Registered: 2014-05-18
Posts: 92

Re: aurutils - helper tools for the aur

for some reason building in the aurutils chroot has a build failing

Offline

#77 2017-10-25 20:35:05

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

https://github.com/AladW/aurutils/blob/ … ME#L36-L53

Last edited by Alad (2017-10-25 20:35:34)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#78 2017-11-07 09:19:01

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 51

Re: aurutils - helper tools for the aur

Hi Alad,
I am once more stumped as to how to work with aur utils. The old way to remove stuff from the repo no longer works for me:

sudo repo-remove /var/cache/pacman/aur/aur.files.tar firefox-developer
==> ERROR: '/var/cache/pacman/aur/aur.files.tar' does not have a valid database archive extension.

Offline

#79 2017-11-07 10:39:54

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

Why are you running with sudo? The repo directory and db it contains should be owned by your user.

As to your issue, you're working on the .files database (for pacman -F), not the actual database. i.e. try

repo-remove /var/cache/pacman/aur/aur.db.tar firefox-developer

instead of

repo-remove /var/cache/pacman/aur/aur.files.tar firefox-developer

If that works create an alias to avoid these issues in future.

alias rremove='repo-remove /var/cache/pacman/aur/aur.db.tar'

Last edited by Alad (2017-11-07 22:13:34)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#80 2017-11-07 12:06:55

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 51

Re: aurutils - helper tools for the aur

Thanks Alad, I tried this in my vain attempts to get this to work.

$ repo-remove /var/cache/pacman/aur/aur.tar firefox-developer
==> ERROR: '/var/cache/pacman/aur/aur.tar' does not have a valid database archive extension.

Offline

#81 2017-11-07 12:27:33

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: aurutils - helper tools for the aur

man repo-remove wrote:

       A package database is a tar file, optionally compressed. Valid
       extensions are “.db” followed by an archive extension of “.tar”,
       “.tar.gz”, “.tar.bz2”, “.tar.xz”, or “.tar.Z”. The file does not need
       to exist, but all parent directories must exist.


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

#82 2017-11-07 13:10:57

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

Really, now you've that Alad guy left out the .db, see the man quote above...

EDIT: That post should have been directed at me... hmm

Last edited by Alad (2017-11-07 22:14:24)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#83 2017-11-08 13:46:06

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 51

Re: aurutils - helper tools for the aur

$ repo-remove /var/cache/pacman/aur/aur.db.tar firefox-developer
==> Extracting database to a temporary location...
==> ERROR: Repository file '/var/cache/pacman/aur//aur.files.tar' is not a proper pacman database.

I really am too stupid to use this thing.

Offline

#84 2017-11-08 13:56:05

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: aurutils - helper tools for the aur

You didn't set up an alias called repo-remove did you?

type repo-remove
pacman -Qkk pacman

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

#85 2017-11-08 14:45:06

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 51

Re: aurutils - helper tools for the aur

$ type repo-remove
repo-remove is /usr/bin/repo-remove
$ pacman -Qkk pacman /var/cache/pacman/aur/aur.db.tar firefox-developer
backup file: pacman: /etc/pacman.conf (Modification time mismatch)
backup file: pacman: /etc/pacman.conf (Size mismatch)
pacman: 349 total files, 0 altered files
error: package '/var/cache/pacman/aur/aur.db.tar' was not found
warning: '/var/cache/pacman/aur/aur.db.tar' is a file, you might want to use -p/--file.
error: package 'firefox-developer' was not found

aurutils 1.5.3-5

Thanks for all your help, but I guess aurutils is somehow overkill for what I want to do and somehow I always run into these weird issues. I should probably switch to something else.

Offline

#86 2017-11-08 15:08:25

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

Local repositories are a more complex apparatus than the usual foreign packages, so there's more details to keep in mind. In this case the error is likely related due to previous use of repose, which is not compatible to repo-add.

Uninstalling repose and rebuilding the database with repo-add should do the trick, see https://bbs.archlinux.org/viewtopic.php … 9#p1707649


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#87 2017-11-08 15:31:39

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 51

Re: aurutils - helper tools for the aur

That did the trick, thanks. I guess I should switch to something else and no longer bother you with those issues. This one was clearly my fault.

Offline

#88 2017-11-08 16:19:15

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

It doesn't bother me - the reason behind the error was non-trivial, and aurutils 1.5 still supports both repose and repo-add.

Last edited by Alad (2017-11-08 16:19:24)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#89 2017-12-05 14:48:50

JeromeDGDG
Member
Registered: 2015-05-13
Posts: 5

Re: aurutils - helper tools for the aur

Hello Alad,
thank you for aurutils tool.
I read the manual, but i don't find an information: how to clean cache please ?
I have 4Go on my home/user/.cache/aursync directory. I would like to clear this cache (i think something like pacman -Scc, but for aurutils tools).
Thank you

Offline

#90 2017-12-05 14:52:55

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: aurutils - helper tools for the aur

If you set your repositories up as a pacman cache, as described in the manual, you can clean the repositories using pacman -Sc. Just answer no for the normal cache and yes for the aurutils cache (be sure to use -Sc and not -Scc as the second will nuke your cache/repository).

Offline

#91 2017-12-05 14:56:11

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: aurutils - helper tools for the aur

runical wrote:

If you set your repositories up as a pacman cache, as described in the manual, you can clean the repositories using pacman -Sc. Just answer no for the normal cache and yes for the aurutils cache (be sure to use -Sc and not -Scc as the second will nuke your cache/repository).

That wasn't the question, the question is about the cached PKGBUILD etc.

JeromeDGDG wrote:

Hello Alad,
thank you for aurutils tool.
I read the manual, but i don't find an information: how to clean cache please ?
I have 4Go on my home/user/.cache/aursync directory. I would like to clear this cache (i think something like pacman -Scc, but for aurutils tools).
Thank you

If you use a shared $SRCDEST in makepkg.conf then you can clean everything in one directory. As for ~/.cache/aursync, this is quite small and keeping it around lets you diff between what you've previously reviewed and the new changes... so I'm not sure what especial utility there is in adding an additional option to purge it...


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

Offline

#92 2017-12-05 15:05:59

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: aurutils - helper tools for the aur

Ah, curse my quick reading. My bad and thank you for catching it!

Offline

#93 2017-12-05 15:34:30

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

If you use a shared $SRCDEST in makepkg.conf then you can clean everything in one directory. As for ~/.cache/aursync, this is quite small and keeping it around lets you diff between what you've previously reviewed and the new changes... so I'm not sure what especial utility there is in adding an additional option to purge it...

Alternatively you can leverage that every package is a git repository:

find ~/.cache/aursync -type d -name .git -execdir git clean -xi \;

This assumes you're not using -t (which I suggest not using anyway, since you lose the ability to diff)

Last edited by Alad (2017-12-05 15:34:52)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#94 2017-12-22 04:49:25

bgdawes
Member
Registered: 2017-02-01
Posts: 10

Re: aurutils - helper tools for the aur

I'd be remiss if I didn't recommend aurutils now that pacaur is no longer being maintained. This tool-set is truly an incredible suite of AUR utilities. The idea and philosophy behind this AUR helper sets it apart from all others; specifically, housing AUR packages in a separate repository (or repositories).  Using aurutils just feels right.

Also, I'm a very inexperienced user of both Arch / Linux in general and I was able to get up and running with aurutils; it's very much worth the effort to read the man pages and experiment with the tools to set up your configuration. You'll be very happy you did.

Thanks Alad!


"The problem with the world is that the intelligent people are full of doubts, while the stupid ones are full of confidence."
- Charles Bukowski

Offline

#95 2017-12-24 16:12:33

SolarAquarion
Member
Registered: 2014-05-18
Posts: 92

Re: aurutils - helper tools for the aur

I'm trying to build habs and i'm having issues with aurqueue, specifically wanting to build the PKGBUILDs in the pkgbuild directories that are created

solaraquarion@apollo   ~/habs    (git)-[ master]   aurqueue ./* > queue               ✔  1273  11:19:52
tsort: -: input contains a loop:
tsort: happy
tsort: ghc
tsort: -: input contains a loop:
tsort: alex
tsort: haskell-quickcheck
tsort: haskell-tf-random
tsort: haskell-primitive
tsort: ghc

Last edited by SolarAquarion (2017-12-24 16:20:33)

Offline

#96 2017-12-28 16:27:09

tetrox
Member
Registered: 2017-10-08
Posts: 9

Re: aurutils - helper tools for the aur

Hey,

I'm wondering why each time I build a package and repo-add is ran again, I get a NULL package in the log:

copied '/var/tmp/aurbuild.sXi9mwRa/grive-0.5.0-8-x86_64.pkg.tar.xz' -> '/home/terence/.cache/pacman/aur/grive-0.5.0-8-x86_64.pkg.tar.xz' (archive : '/home/terence/.cache/pacman/aur/grive-0.5.0-8-x86_64.pkg.tar.xz~')
'/var/tmp/aurbuild.sXi9mwRa/grive-0.5.0-8-x86_64.pkg.tar.xz' supprimé
adding (null) (null)
adding libc++abi 5.0.1-1
adding libreoffice-uglyfix-freetype2 2.8.1-1
adding skypeforlinux-bin 8.13.76.4-1
[...]

I'm also wondering if it's normal to see all the already synced packages being added over the db again, thus taking a while at the db writing step.

Thanks!

Offline

#97 2017-12-28 16:38:04

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: aurutils - helper tools for the aur

This is happening because you aren't using repo-add, you're using repose. wink

Also see https://github.com/AladW/aurutils/pull/238

Last edited by eschwartz (2017-12-28 16:51:00)


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

Offline

#98 2017-12-28 16:42:47

tetrox
Member
Registered: 2017-10-08
Posts: 9

Re: aurutils - helper tools for the aur

Eschwartz wrote:

This is happening because you aren't using repo-add, you're using repoctl. wink

Also see https://github.com/AladW/aurutils/pull/238

Thanks for the answer, I'm not sure to understand what you mean tho. I have repose installed and I didn't know repoctl was a thing.
Thanks for the link, I guess it would be better to remove repose then.

Last edited by tetrox (2017-12-28 16:45:23)

Offline

#99 2017-12-28 16:51:25

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: aurutils - helper tools for the aur

That was a typo. You saw nothing. wink


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

Offline

#100 2017-12-28 17:57:48

tetrox
Member
Registered: 2017-10-08
Posts: 9

Re: aurutils - helper tools for the aur

Makes more sense now ^^
I removed repose and I'm waiting for a package to finish building to see how it goes (it wasn't installing a package after aurbuild-ing/aursync-ing one or is it the expected behaviour?)
Maybe repose should be removed from the man pages if it creates troubles (that's what made me install it) ?

Offline

Board footer

Powered by FluxBB