You are not logged in.

#1 2016-08-07 03:13:12

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

[SOLVED] multilib package in chroot: makechrootpkg -r $CHROOT -I

I've been following https://wiki.archlinux.org/index.php/De … lassic_Way to build packages for the past couple of weeks.

Now, I want to build a multilib AUR package. So, I edited $CHROOT/root/etc/pacman.conf and enabled multilib. The problem I'm having is that makechrootpkg doesn't seem to be interactive. For example, here I am trying to install gcc-multilib:

makechrootpkg -r $CHROOT -I gcc-multilib-6.1.1-4-x86_64.pkg.tar.xz 
loading packages...
resolving dependencies...
looking for conflicting packages...
:: gcc-multilib and gcc are in conflict. Remove gcc? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: gcc-multilib and gcc are in conflict

It just took the default answer and did not stop to let me choose 'y' to remove gcc. Is there a way to do it like this, or is there no other choice than to use the multilib-build script?

Last edited by colinkeenan (2016-08-07 14:50:44)

Offline

#2 2016-08-07 06:04:01

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

Re: [SOLVED] multilib package in chroot: makechrootpkg -r $CHROOT -I

makechrootpkg is supposed to be a noninteractive wrapper for autobuilding packages (like, on a server buildbot).

Use arch-nspawn (which will bind-mount the pacman cache into a systemd-nspawn container) to get an interactive shell, or alternatively to run commands without the `--noconfirm` flag automatically added for you.
makechrootpkg uses arch-nspawn under the hood.


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

Offline

#3 2016-08-07 10:39:49

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

Re: [SOLVED] multilib package in chroot: makechrootpkg -r $CHROOT -I


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

Offline

#4 2016-08-07 14:50:06

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: [SOLVED] multilib package in chroot: makechrootpkg -r $CHROOT -I

Thanks. Both answers are good and I really like the local repository concept used int clean-chroot-manager. I will mark this solved.

Offline

#5 2016-08-07 14:51:37

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

Re: [SOLVED] multilib package in chroot: makechrootpkg -r $CHROOT -I

colinkeenan wrote:

Thanks. Both answers are good and I really like the local repository concept used int clean-chroot-manager...

Glad you like it/find it useful.  That is the primary reason I wrote it smile


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

Offline

Board footer

Powered by FluxBB