You are not logged in.

#1 2016-12-27 09:29:51

Schala
Member
Registered: 2012-02-14
Posts: 72
Website

Building in chroot, but package has AUR package deps

I'm trying to follow instructions on building packages in a clean chroot. The problem is I don't know how to build AND install to this clean chroot. I'm trying to build mingw-w64-qt5-base from the AUR in said chroot, but it requires other AUR mingw-w64 packages. The wiki instructions only help so much, so I'm rather stumped. Any help would be appreciated.


Hardware: Gigabyte X570 AORUS Pro, AMD Ryzen 5900X, Nvidia GTX 1080, 32 GB DDR4 RAM
Choice software: Arch Linux 64-bit with KDE desktop / Windows 11 Home 64-bit

Offline

#2 2016-12-27 09:47:34

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Building in chroot, but package has AUR package deps

I am not sure what your issue is. If your package depends on other AUR packages then you install them as well. That's how AUR dependencies work.

Offline

#3 2016-12-27 09:49:08

Schala
Member
Registered: 2012-02-14
Posts: 72
Website

Re: Building in chroot, but package has AUR package deps

Well, how would I install them to the clean chroot instead of my actual root?


Hardware: Gigabyte X570 AORUS Pro, AMD Ryzen 5900X, Nvidia GTX 1080, 32 GB DDR4 RAM
Choice software: Arch Linux 64-bit with KDE desktop / Windows 11 Home 64-bit

Offline

#4 2016-12-27 10:07:17

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Building in chroot, but package has AUR package deps

Well, I haven't used this myself, but this should do the job:

https://wiki.archlinux.org/index.php/De … the_Chroot

Offline

#5 2016-12-27 10:12:45

Schala
Member
Registered: 2012-02-14
Posts: 72
Website

Re: Building in chroot, but package has AUR package deps

Unfortunately, that's exactly what I'm finding vague/not enough info on. I tried what it said, but it tries to install what I built in chroot to my real root


Hardware: Gigabyte X570 AORUS Pro, AMD Ryzen 5900X, Nvidia GTX 1080, 32 GB DDR4 RAM
Choice software: Arch Linux 64-bit with KDE desktop / Windows 11 Home 64-bit

Offline

#6 2016-12-27 11:04:04

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Building in chroot, but package has AUR package deps

None of the commands in that section are supposed to do that, what is the value of $CHROOT variable on your system ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2016-12-27 11:05:02

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Building in chroot, but package has AUR package deps

Check out graysky's clean-chroot-manager.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2016-12-27 12:27:02

mis
Member
Registered: 2016-03-16
Posts: 234

Re: Building in chroot, but package has AUR package deps

If you use extra-x86_64-build you can use the -I option.

extra-x86_64-build -- -I /path/to/foobar-1-1-x86_64.pkg.tar.gz

makechrootpkg also has the -I option

makechrootpkg -h

-I <pkg>   Install a package into the working copy of the chroot

Last edited by mis (2016-12-27 12:27:36)

Offline

#9 2016-12-27 14:50:53

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

Re: Building in chroot, but package has AUR package deps

Or you could use a local repo to keep the chroot "clean", bind mount it and sync it with makechrootpkg -u

https://github.com/AladW/aurutils/blob/ … tils.7#L70
https://github.com/AladW/aurutils/blob/ … build#L146


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

Offline

#10 2016-12-27 15:07:09

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Building in chroot, but package has AUR package deps

Alad wrote:

Or you could use a local repo to keep the chroot "clean", bind mount it and sync it with makechrootpkg -u

CCM does all this for you:

slithery wrote:

Check out graysky's clean-chroot-manager.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#11 2016-12-27 15:13:26

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

Re: Building in chroot, but package has AUR package deps

Well, I guess he has two tools to choose from then.


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

Offline

Board footer

Powered by FluxBB