Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Catalyst (http://www.linux-archive.org/gentoo-catalyst/)
-   -   /usr/bin/python symlink not created in stage1 build (http://www.linux-archive.org/gentoo-catalyst/495856-usr-bin-python-symlink-not-created-stage1-build.html)

Matt Turner 03-01-2011 06:20 PM

/usr/bin/python symlink not created in stage1 build
 
On Wed, Feb 16, 2011 at 2:13 PM, Matt Turner <mattst88@gmail.com> wrote:
> At the end of my stage1 build, I see (forgive me, Gmail's almost
> definitely going to line wrap the hell out of this)
>
> copying stage1-preclean-chroot.sh to
> /space/catalyst/tmp/default/stage1-mips4_n32-20110212/tmp/stage1root/tmp/
> copying chroot-functions.sh to
> /space/catalyst/tmp/default/stage1-mips4_n32-20110212/tmp/stage1root/tmp/
> Running stage1-preclean-chroot.sh in chroot
> /space/catalyst/tmp/default/stage1-mips4_n32-20110212/tmp/stage1root
> /tmp/chroot-functions.sh: /usr/sbin/env-update: /usr/bin/python: bad
> interpreter: No such file or directory
> ** Python seems to be broken, attempting to locate CHOST ourselves ...
> ** Switching native-compiler to mips64-unknown-linux-gnu-4.5.2 ... [ ok ]
> /tmp/chroot-functions.sh: /usr/sbin/env-update: /usr/bin/python: bad
> interpreter: No such file or directory
> /usr/bin/binutils-config: /usr/bin/portageq: /usr/bin/python: bad
> interpreter: No such file or directory
> ** Switching to mips64-unknown-linux-gnu-2.21 ... [ ok ]
> /tmp/chroot-functions.sh: /usr/sbin/env-update: /usr/bin/python: bad
> interpreter: No such file or directory
>
> So no /usr/bin/python symlink gets created. This causes the subsequent
> stage2 build to fail. I can chroot into the stage1 directory's
> tmp/stage1root/ and confirm this with eselect.
>
> # eselect python list
> Available Python interpreters:
> *[1] * python2.7
>
> What's going on here and how do I make it work?
>
> nightmorph seems to allude to this problem here:
> http://www.gossamer-threads.com/lists/gentoo/dev/222149
>
> Thanks,
> Matt

For completion sake, the problem is that the python ebuilds are
broken. They don't add a python symlink if no python symlink existed
before. This has been broken for a long time, and it's really stupidly
annoying, especially when the fix has been available in the python
overlay for three months.

http://overlays.gentoo.org/proj/python/changeset/405/overlays/python/dev-lang/python/python-2.7.2_pre20101128.ebuild

Push it into the tree so that you don't continue to break my stage builds.

Matt

Matt Turner 03-01-2011 08:19 PM

/usr/bin/python symlink not created in stage1 build
 
On Tue, Mar 1, 2011 at 7:20 PM, Matt Turner <mattst88@gentoo.org> wrote:
> On Wed, Feb 16, 2011 at 2:13 PM, Matt Turner <mattst88@gmail.com> wrote:
>> At the end of my stage1 build, I see (forgive me, Gmail's almost
>> definitely going to line wrap the hell out of this)
>>
>> copying stage1-preclean-chroot.sh to
>> /space/catalyst/tmp/default/stage1-mips4_n32-20110212/tmp/stage1root/tmp/
>> copying chroot-functions.sh to
>> /space/catalyst/tmp/default/stage1-mips4_n32-20110212/tmp/stage1root/tmp/
>> Running stage1-preclean-chroot.sh in chroot
>> /space/catalyst/tmp/default/stage1-mips4_n32-20110212/tmp/stage1root
>> /tmp/chroot-functions.sh: /usr/sbin/env-update: /usr/bin/python: bad
>> interpreter: No such file or directory
>> ** Python seems to be broken, attempting to locate CHOST ourselves ...
>> ** Switching native-compiler to mips64-unknown-linux-gnu-4.5.2 ... [ ok ]
>> /tmp/chroot-functions.sh: /usr/sbin/env-update: /usr/bin/python: bad
>> interpreter: No such file or directory
>> /usr/bin/binutils-config: /usr/bin/portageq: /usr/bin/python: bad
>> interpreter: No such file or directory
>> ** Switching to mips64-unknown-linux-gnu-2.21 ... [ ok ]
>> /tmp/chroot-functions.sh: /usr/sbin/env-update: /usr/bin/python: bad
>> interpreter: No such file or directory
>>
>> So no /usr/bin/python symlink gets created. This causes the subsequent
>> stage2 build to fail. I can chroot into the stage1 directory's
>> tmp/stage1root/ and confirm this with eselect.
>>
>> # eselect python list
>> Available Python interpreters:
>> *[1] * python2.7
>>
>> What's going on here and how do I make it work?
>>
>> nightmorph seems to allude to this problem here:
>> http://www.gossamer-threads.com/lists/gentoo/dev/222149
>>
>> Thanks,
>> Matt
>
> For completion sake, the problem is that the python ebuilds are
> broken. They don't add a python symlink if no python symlink existed
> before. This has been broken for a long time, and it's really stupidly
> annoying, especially when the fix has been available in the python
> overlay for three months.
>
> http://overlays.gentoo.org/proj/python/changeset/405/overlays/python/dev-lang/python/python-2.7.2_pre20101128.ebuild
>
> Push it into the tree so that you don't continue to break my stage builds.
>
> Matt

This actually has been committed recently, my apologies.

Matt Turner 03-01-2011 08:19 PM

/usr/bin/python symlink not created in stage1 build
 
On Tue, Mar 1, 2011 at 7:20 PM, Matt Turner <mattst88@gentoo.org> wrote:
> On Wed, Feb 16, 2011 at 2:13 PM, Matt Turner <mattst88@gmail.com> wrote:
>> At the end of my stage1 build, I see (forgive me, Gmail's almost
>> definitely going to line wrap the hell out of this)
>>
>> copying stage1-preclean-chroot.sh to
>> /space/catalyst/tmp/default/stage1-mips4_n32-20110212/tmp/stage1root/tmp/
>> copying chroot-functions.sh to
>> /space/catalyst/tmp/default/stage1-mips4_n32-20110212/tmp/stage1root/tmp/
>> Running stage1-preclean-chroot.sh in chroot
>> /space/catalyst/tmp/default/stage1-mips4_n32-20110212/tmp/stage1root
>> /tmp/chroot-functions.sh: /usr/sbin/env-update: /usr/bin/python: bad
>> interpreter: No such file or directory
>> ** Python seems to be broken, attempting to locate CHOST ourselves ...
>> ** Switching native-compiler to mips64-unknown-linux-gnu-4.5.2 ... [ ok ]
>> /tmp/chroot-functions.sh: /usr/sbin/env-update: /usr/bin/python: bad
>> interpreter: No such file or directory
>> /usr/bin/binutils-config: /usr/bin/portageq: /usr/bin/python: bad
>> interpreter: No such file or directory
>> ** Switching to mips64-unknown-linux-gnu-2.21 ... [ ok ]
>> /tmp/chroot-functions.sh: /usr/sbin/env-update: /usr/bin/python: bad
>> interpreter: No such file or directory
>>
>> So no /usr/bin/python symlink gets created. This causes the subsequent
>> stage2 build to fail. I can chroot into the stage1 directory's
>> tmp/stage1root/ and confirm this with eselect.
>>
>> # eselect python list
>> Available Python interpreters:
>> *[1] * python2.7
>>
>> What's going on here and how do I make it work?
>>
>> nightmorph seems to allude to this problem here:
>> http://www.gossamer-threads.com/lists/gentoo/dev/222149
>>
>> Thanks,
>> Matt
>
> For completion sake, the problem is that the python ebuilds are
> broken. They don't add a python symlink if no python symlink existed
> before. This has been broken for a long time, and it's really stupidly
> annoying, especially when the fix has been available in the python
> overlay for three months.
>
> http://overlays.gentoo.org/proj/python/changeset/405/overlays/python/dev-lang/python/python-2.7.2_pre20101128.ebuild
>
> Push it into the tree so that you don't continue to break my stage builds.
>
> Matt

This actually has been committed recently, my apologies.


All times are GMT. The time now is 05:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.