Gentoo Archives: gentoo-portage-dev

From: Brian Dolbec <dolsen@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCHES] setup.py install for Portage
Date: Sun, 24 Aug 2014 19:43:21
Message-Id: 20140824124202.017bebea.dolsen@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCHES] setup.py install for Portage by "Michał Górny"
1 On Thu, 21 Aug 2014 22:19:38 +0200
2 Michał Górny <mgorny@g.o> wrote:
3
4
5 > In particular, tools that want to play with Portage internals need to
6 > export proper PORTAGE_BIN_PATH and PORTAGE_PYM_PATH before spawning
7 > them. The correct values can be obtained using portageq:
8 >
9 > $ portageq envvar PORTAGE_BIN_PATH
10 > /usr/lib/portage/python3.4
11 > $ portageq envvar PORTAGE_PYM_PATH
12 > /usr/lib64/python3.4/site-packages
13 >
14 >
15 > Please look through the patches and test at will :). Thanks.
16 >
17 > --
18 > Michał Górny
19 >
20 >
21
22 There is breakage in catalyst runs.
23
24 [08:26] <iamben> has anyone tried mgorny's new portage ebuild? after
25 portage is emerged for stage1, it's missing /usr/lib/portage/bin/
26 altogether, for me
27
28 I did a search thru the catalyst code. It is hard-coded in only 1
29 place:
30
31 lines 35, 37 in stage1-controller.sh
32
33 code snipit:
34
35 clean)
36 # Clean out man, info and doc files
37 rm -rf usr/share/{man,doc,info}/*
38 # Zap all .pyc and .pyo files
39 find . -iname "*.py[co]" -exec rm -f {} \;
40 # Cleanup all .a files except libgcc.a, *_nonshared.a and
41 # /usr/lib/portage/bin/*.a
42 find . -type f -iname "*.a" | grep -v 'libgcc.a' | \
43 grep -v 'nonshared.a' | grep -v '/usr/lib/portage/bin/' | \
44 grep -v 'libgcc_eh.a' | xargs rm -f
45 ;;
46
47 *)
48
49 Michał can you supply me a patch to fix this in catalyst and I will apply it.
50
51 I haven't started testing myself yet.
52 --
53 Brian Dolbec <dolsen>

Replies

Subject Author
Re: [gentoo-portage-dev] [PATCHES] setup.py install for Portage "Michał Górny" <mgorny@g.o>