You are not logged in.
Pages: 1
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) mkarchroot -C pacman.conf -M qt4/PKGBUILD $CHROOT/root base-devel
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
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
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
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
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
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
How do I delete the chroot I created? A simple delete folder?
Offline
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
Thanks
Offline
Pages: 1