You are not logged in.

#1 2019-05-11 21:29:41

Tharbad
Member
Registered: 2016-02-27
Posts: 318

[SOLVED] Building in clean chroot

Hi,

I need to clean build https://aur.archlinux.org/packages/qt4 from aur.
I used https://wiki.archlinux.org/index.php/De … lassic_way:
1) Created CHROOT=$(pwd)/chroot
2) mkarchroot -C pacman.conf -M qt4/PKGBUILD $CHROOT/root base-devel
(I used my system pacman.conf)
3) makechrootpkg -c -r $CHROOT from the qt4 dir (I cloned the repo).

And I got

==> Synchronizing chroot copy [/home/<user>/Dev/Arch/chrootbase/chroot/root] -> [user]...done
==> ERROR: qt4 is not available for the '' architecture.
==> ERROR: Could not download sources.

What am I missing?
Also, the wiki implies that there might be an easier way but It's not explained there.

Thanks

Last edited by Tharbad (2019-05-12 01:08:48)

Offline

#2 2019-05-11 21:37:06

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

Re: [SOLVED] Building in clean chroot

Tharbad wrote:

2) mkarchroot -C pacman.conf -M qt4/PKGBUILD $CHROOT/root base-devel

wiki wrote:

Alternatively, provide a custom pacman.conf and makepkg.conf with the following:

$ mkarchroot -C <pacman.conf> -M <makepkg.conf> $CHROOT/root base-devel

But why are you even trying to use a custome pacman or makepkg conf?

Last edited by Trilby (2019-05-11 21:38:19)


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

Offline

#3 2019-05-11 21:50:54

Tharbad
Member
Registered: 2016-02-27
Posts: 318

Re: [SOLVED] Building in clean chroot

Trilby wrote:
Tharbad wrote:

2) mkarchroot -C pacman.conf -M qt4/PKGBUILD $CHROOT/root base-devel

wiki wrote:

Alternatively, provide a custom pacman.conf and makepkg.conf with the following:

$ mkarchroot -C <pacman.conf> -M <makepkg.conf> $CHROOT/root base-devel

But why are you even trying to use a custome pacman or makepkg conf?

Because that's what I thought I should do? So i shouldn't use either?
So the -M <makepkg.conf> is for the chroot?
What pacman.conf should I use?

Offline

#4 2019-05-11 21:58:03

loqs
Member
Registered: 2014-03-06
Posts: 18,479

Re: [SOLVED] Building in clean chroot

You do not need to specify a custom pacman or makepkg makearchroot will use defaults from the wiki

$ mkarchroot $CHROOT/root base-devel

or simpler is to use the convenience script (assuming you are in the directory with the PKGBUILD) just the following is enough to build the package in a clean chroot using the packages from the none testing repositories.

extra-x86_64-build

Offline

#5 2019-05-11 22:01:27

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,907
Website

Re: [SOLVED] Building in clean chroot

Tharbad wrote:

the wiki implies that there might be an easier way but It's not explained there.

Sure it is, it's directly above the section you linked to: https://wiki.archlinux.org/index.php/De … nience_way


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

#6 2019-05-11 22:09:37

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

Re: [SOLVED] Building in clean chroot

While you most likely shouldn't use those options, if you do use them you need to provide a makepkg.conf, not a PKGBUILD.  This is what actually caused the failure: you told it to use a PKGBUILD as a makepkg.conf and none of the necessary variables (e.g., CARCH) are defined in the PKGBUILD.


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

Offline

#7 2019-05-11 22:28:12

Tharbad
Member
Registered: 2016-02-27
Posts: 318

Re: [SOLVED] Building in clean chroot

WorMzy wrote:
Tharbad wrote:

the wiki implies that there might be an easier way but It's not explained there.

Sure it is, it's directly above the section you linked to: https://wiki.archlinux.org/index.php/De … nience_way

Yea. I didn't understand what I need to do from what's written in that section. On second read, it seems quite clear.

Last edited by Tharbad (2019-05-11 22:31:35)

Offline

#8 2019-05-11 22:32:44

Tharbad
Member
Registered: 2016-02-27
Posts: 318

Re: [SOLVED] Building in clean chroot

How do I delete the chroot I created? A simple delete folder?

Offline

#9 2019-05-11 23:25:14

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,907
Website

Re: [SOLVED] Building in clean chroot

Yep, unless you're on btrfs, in which case subvol delete.


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

#10 2019-05-12 01:08:26

Tharbad
Member
Registered: 2016-02-27
Posts: 318

Re: [SOLVED] Building in clean chroot

Thanks

Offline

Board footer

Powered by FluxBB