You are not logged in.

#1 2015-10-26 13:22:16

edward.81
Member
Registered: 2014-10-25
Posts: 46

makechrootpkg can't install dependency.

I wanted to compile llvm-svn and mesa-git from aur package (and lib32 version too).
llvm-svn fail to compile outside of chroot so i started reading the wiki page about clean chroot compiling (https://wiki.archlinux.org/index.php/De … ean_Chroot).
Just because i wanted to compile mesa too in the chroot and the install everything, the problem is that i cant find a way to install the just compiled llvm-svn to build the mesa package. The wiki say to use this command "makechrootpkg -r $CHROOT -I package-1.0-1-i686.pkg.tar.xz" and it work "successful" but when i move into the mesa folder containing the PKGBUILD the previous installed llvm package is vanished.
The workaround solution for solving is copy the generated package on the chroot/root directory and the installing it with pacman: "arch-nspawn $CHROOT/root pacman -U mypackage.pkg.tar.xz"

The question is. How i can install the packages on the readonly (?) tree of my chroot?

Offline

#2 2015-10-26 13:45:10

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

Re: makechrootpkg can't install dependency.

Hmm... this is why I wrote clean-chroot-manager: https://aur.archlinux.org/packages/clea … t-manager/


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

Offline

#3 2015-10-26 19:49:05

Muflone
Package Maintainer (PM)
From: Italy
Registered: 2013-10-08
Posts: 107
Website

Re: makechrootpkg can't install dependency.

I usually use
extra-x86_64-build -- -I /path/file.tar.xz

Offline

#4 2015-10-27 00:44:07

edward.81
Member
Registered: 2014-10-25
Posts: 46

Re: makechrootpkg can't install dependency.

graysky wrote:

Hmm... this is why I wrote clean-chroot-manager: https://aur.archlinux.org/packages/clea … t-manager/

I take a look. Thank you.

Offline

#5 2015-10-29 10:36:57

edward.81
Member
Registered: 2014-10-25
Posts: 46

Re: makechrootpkg can't install dependency.

graysky wrote:

Hmm... this is why I wrote clean-chroot-manager: https://aur.archlinux.org/packages/clea … t-manager/

I tried and I'm puzzled now.

I create the clean chroot with ccm64
$ sudo ccm64 c
the i builded llvm-svn
$ sudo ccm64 s

Now here I found a bit lost on how to install the package, i was looking for a way to invoke the install procedure from ccm64 but i don't find a way (If I'm right why you don't add an option for installing the packages directly from ccm64? )
exported the CHROOT
then with arch-nspawn i run an update
$ arch-nspawn $CHROOT/root pacman -Syu
and installed the wanted packages
$ arch-nspawn $CHROOT/root pacman -S blablabla-svn

now i moved to the next package and tried a build

$ sudo ccm64 S
[...]
==> Installing missing dependencies...
error: target not found: llvm-svn
error: target not found: clang-svn
==> ERROR: 'pacman' failed to install missing dependencies.
[...]

The I just wtf.

$ arch-nspawn $CHROOT/root pacman -Qs llvm-svn
local/lib32-llvm-svn 3.8.0svn_r251620-1
    The LLVM Compiler Infrastructure (32-bit)
local/llvm-svn 3.8.0svn_r251564-1 (llvm-toolchain-svn)
    The LLVM Compiler Infrastructure

What I did wrong?

EDIT: Ok, shame on me with "ccm64 s" is working. I think that i misunderstand the difference from s and S. (and everything else)

Last edited by edward.81 (2015-10-29 10:41:00)

Offline

Board footer

Powered by FluxBB