You are not logged in.

#426 2021-03-29 00:25:16

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,272

Re: aurutils - helper tools for the aur

Alad wrote:

aur-build already does something like that by using a pacman.conf with only a single repo inside:

https://github.com/AladW/aurutils/blob/ … #L371-L374

That's.... actually so simple I feel stupid. Thanks Alad!


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#427 2021-04-18 01:04:17

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,272

Re: aurutils - helper tools for the aur

Alad wrote:

Maybe I should remove that remark on multiple repositories since it seems to lead more to confusion than enlightening ideas. Anyway:

1. One reason for keeping VCS packages in a separate repo is that it gives an exact definition on what a VCS package is (the package suffix does not necessarily, see https://bugs.archlinux.org/task/56602): it is whatever you put in the VCS repo. That again can be used with aur-srcver.

Keeping ABS packages in a separate repo allows you to put it above any other repositories in pacman.conf, which is something you wouldn't want to do with an AUR repo.

I'd not classify further than the above. For modified AUR pkgbuilds, it's unfortunate pacman/vercmp supports no "~user" prefix like dpkg but as ABS pkgbuilds, you can use a custom group (e.g group=custom) to distinguish them.

I recall previously being able to use aur-srcver or some similar incantation to check all -git suffixed, is this no longer possible? Where can I read the 'correct' way of checking VCS packages for updates using srcver?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#428 2021-04-19 09:04:32

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

Re: aurutils - helper tools for the aur

It was moved to a man page because the existing mechanism was slow and not very general.

https://github.com/AladW/aurutils/blob/ … 7/aurvcs.7


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

Online

#429 2021-05-02 15:05:21

sshaikh
Member
Registered: 2019-07-03
Posts: 51

Re: aurutils - helper tools for the aur

I'm trying to use aurutils to build linux-xanmod in a chroot.

The PKGBUILD looks for environment variables to change some options.

How can I pass those environment variables to the chroot? I'm using aur build to do so.

EDIT: actually it seems it would require $HOME and $XDG_CONFIG_HOME to be set.

Last edited by sshaikh (2021-05-02 15:08:07)

Offline

#430 2021-05-03 19:23:35

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

Re: aurutils - helper tools for the aur

You can try specifying them on the makechrootpkg command line, e.g.

aur build -c --margs="HOME=$HOME,XDG_CONFIG_HOME=$XDG_CONFIG_HOME <...>

Note: I haven't actually tested this.


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

Online

#431 2021-06-13 05:55:27

Strykar
Member
Registered: 2018-02-17
Posts: 48

Re: aurutils - helper tools for the aur

In version 2.3.7, to check aur updates I'd:

/usr/bin/aur repo -d custom --list | \
	/usr/bin/aur vercmp && \
	/usr/bin/pacman -Qm | \
	/usr/bin/aur vercmp

And to update aur packages I'd:

/usr/bin/grep -Fxf <(/usr/bin/pacman -Qq) \
	<(/usr/bin/pacman -Slq custom) > ~/installed.txt \
	&& /usr/bin/xargs -a ~/installed.txt \
	/usr/bin/aur sync repo -d custom

I read the change document and I'm still confused sad
Would someone please post examples to check and update aur packages with aurutils 3.0.x like the one's above?

Offline

#432 2021-06-13 10:48:02

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

Re: aurutils - helper tools for the aur

I'm not sure how that command-line wouldn't work with aurutils 3.x?


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

Online

#433 2021-08-16 09:15:56

Cphusion
Member
Registered: 2021-03-22
Posts: 23

Re: aurutils - helper tools for the aur

@Alad I didn't know where the right place is to contact you but I thought here would be appropriate. Since I've started using Arch about 2 years ago I have tried 2 AUR helpers,
yay and aurutils. I ended up sticking with aurutils because I like the fact that aurutils is a tool for searching and building while leaving the installation of the packages up to
pacman, I really disliked yay acting as a replacement for pacman because it being a wrapper. I just wanted to thank you for the development of aurutils and all the time that you
put into it, it's really appreciated!!

Offline

#434 2021-08-16 10:06:50

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

Re: aurutils - helper tools for the aur

Sure, you're welcome smile


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

Online

#435 2021-09-26 19:08:08

Jason P.
Member
Registered: 2015-02-26
Posts: 159

Re: aurutils - helper tools for the aur

Hi @Alad,

I'm creating a package from source on a chroot and I need to play around with git bisect. It seems that aur chroot --build always fetches sources (git repos) so local changes get overwritten. Bisecting inside the container is not even possible. Note that I'm not speaking of mounting the chroot for this, just accessing the directory itself.

$ git log
error: object directory /startdir/iwd/objects does not exist; check .git/objects/info/alternates
fatal: bad object HEAD

$ git tag
error: object directory /startdir/iwd/objects does not exist; check .git/objects/info/alternates
error: refs/tags/0.1 does not point to a valid object!
error: refs/tags/0.10 does not point to a valid object!
error: refs/tags/0.11 does not point to a valid object!
error: refs/tags/0.12 does not point to a valid object!

How could I approach this while still building on a container?

Thanks.

Offline

#436 2021-09-27 09:36:01

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

Re: aurutils - helper tools for the aur

I'm not sure on bisecting inside the container itself, but you should be able to pass -e to the container makepkg instance, i.e. aur chroot --build -e.

Last edited by Alad (2021-09-27 09:36:22)


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

Online

#437 2021-09-27 11:26:55

Jason P.
Member
Registered: 2015-02-26
Posts: 159

Re: aurutils - helper tools for the aur

Well, this is the command I'm running:

aur chroot --build -D /var/cache/build/x86_64 --makepkg-conf=/etc/makepkg.conf -- -- -e

makechrootpkg arguments are just arguments for makepkg in this case, thus the double '--' but maybe I'm getting it wrong.

This is part of the output:

==> Making package: iwd-git 1.18-1 (Mon Sep 27 12:58:27 2021)
==> Retrieving sources...
  -> Updating iwd git repo...
Fetching origin
From https://git.kernel.org/pub/scm/network/wireless/iwd
 - [deleted]           (none)     -> refs/bisect/bad
 - [deleted]           (none)     -> refs/bisect/good-c96812a5f6954eb4ad173a8d1c5b70fab8905019
  -> Updating ell git repo...
Fetching origin
==> Validating source files with sha256sums...
    iwd ... Skipped
    ell ... Skipped
==> Making package: iwd-git 1.18-1 (Mon 27 Sep 2021 12:58:30 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Updated version: iwd-git r5913.1187fcb-1
==> Removing existing $pkgdir/ directory...
==> Starting build()...
   build goes fine

As expected, whatever is in the container gets built, but I didn't find a way of passing my changed sources from PKGBUILD directory to the container. Remote sources are fetched every time overwriting changes.

Bisecting inside container directory is not feasible because of missing references, as I've showed in my previous post.

So far I've also tried to use file:/// sources but it didn't work. Maybe just copying folders inside container and rebuild is enough...

Edit:

==> Retrieving sources...
  -> Cloning iwd git repo...
Cloning into bare repository '/var/cache/build/.cache/aurutils/sync/iwd-git/iwd'...
remote: Enumerating objects: 28365, done.
remote: Total 28365 (delta 0), reused 0 (delta 0), pack-reused 28365
Receiving objects: 100% (28365/28365), 5.41 MiB | 1.82 MiB/s, done.
Resolving deltas: 100% (20918/20918), done.
  -> Cloning ell git repo...
Cloning into bare repository '/var/cache/build/.cache/aurutils/sync/iwd-git/ell'...

This is the reason I cannot bisect inside the container directory. I could do a clean build first and the go inside to bisect if 'regular' git repo was cloned. At this point maybe just a manual copy would suffice hehe.

Last edited by Jason P. (2021-09-27 11:34:30)

Offline

#438 2021-09-27 15:03:55

Jason P.
Member
Registered: 2015-02-26
Posts: 159

Re: aurutils - helper tools for the aur

I figured it out. holdver flag was the thing.

--holdver
    When using VCS sources (PKGBUILD(5)) any currently checked out source
    will not be updated to the latest revision.

Offline

Board footer

Powered by FluxBB