Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83338 - dev-libs/newt-0.50.35-r4 does not build
Summary: dev-libs/newt-0.50.35-r4 does not build
Status: RESOLVED DUPLICATE of bug 81031
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 15:06 UTC by John Nilsson
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
MAKEOPTS="-j1" emerge newt --oneshot &> newtbuild (newtbuild,110.67 KB, text/plain)
2005-02-25 15:08 UTC, John Nilsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Nilsson 2005-02-25 15:06:45 UTC
The build output is attached.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r15 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r7epia0 i686)
=================================================================
System uname: 2.6.10-gentoo-r7epia0 i686 VIA Nehemiah
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 20 2005, 04:27:23)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=c3-2 -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11 /etc/gconf /etc/init.d /etc/terminfo
/etc/texmf/web2c /usr /etc/env.d"
CXXFLAGS="-march=c3-2 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.uni-c.dk/gentoo/ http://ftp.du.se/pub/os/gentoo
http://mirror.uni-c.dk/gentoo/"
LANG="sv_SE.utf8"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/fluidportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 avi berkdb bitmap-fonts crypt curl dvd emboss encode f77
flac font-server gdbm gif gtk2 imlib jpeg kde libg++ libwww mad mikmod mmx mpeg
ncurses oggvorbis pdflib perl png python quicktime readline slang spell sqlite
sse ssl tcpd tetex threads truetype truetype-fonts type1-fonts unichrome unicode
vhosts xml2 xv zlib video_cards_cle266 video_cards_via"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 1 John Nilsson 2005-02-25 15:08:55 UTC
Created attachment 52158 [details]
MAKEOPTS="-j1" emerge newt --oneshot &> newtbuild

The output from the build
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-26 02:33:02 UTC
something is badly wrong with your python:
"for ver in python.3 ; do \"

this is the output on my machine:
"for ver in python2.3 ; do \"

Comment 3 John Nilsson 2005-02-26 09:43:32 UTC
I reemerged python. It didn't help.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-26 18:07:08 UTC
could you open up newt-0.50.35-r4.ebuild, and after the call to 'python_version'
please insert this line:

einfo "python_version: '$PYVER_ALL' '$PYVER_MAJOR' '$PYVER_MINOR' '$PYVER_MICRO' '$PYVER'"

and run the emerge again,
then include the output from the above line?
Comment 5 John Nilsson 2005-02-26 19:17:09 UTC
I added:

einfo "python_version: '$PYVER_ALL' '$PYVER_MAJOR' '$PYVER_MINOR' '$PYVER_MICRO' '$PYVER'"
env | grep PY

to the ebuild

and 

env | grep PY

as the last statement in python_version() from python.eclass

and got:

PYVER_ALL=2.3.4
PYVER=.3
PYVER_MINOR=3
PYVER_MICRO=4
PYTHON_DONTCOMPILE=1
PYVER_MAJOR=
 * python_version: '2.3.4' '' '3' '4' '.3'
PYVER_ALL=2.3.4
PYVER=.3
PYVER_MINOR=3
PYVER_MICRO=4
PYTHON_DONTCOMPILE=1
PYVER_MAJOR=


however:


minibox etc # python -V
Python 2.3.4
minibox etc # tmpstr="$(python -V 2>&1 )"; echo ${tmpstr#Python } | cut -d. -f1
2
minibox etc # tmpstr="$(python -V 2>&1 )"; echo ${tmpstr#Python } | cut -d. -f2
3
minibox etc # tmpstr="$(python -V 2>&1 )"; echo ${tmpstr#Python } | cut -d. -f3
4


now this is strange...


it seems, for some reson way beyond me, that "cut -d. -f1" does not work in that particular context it is executed in while emerging newt...
Comment 6 John Nilsson 2005-02-26 19:22:02 UTC
emerge metakit yields similar results, which at least rules out the newt ebuild.

It's completley beyond me why cut wouldn't work in that eclass...

replacing cut -d. -f1 in the eclass with simply cat does print out 2.3.4 so the pipe works.

If it was consistent and wouldn't work in the shell I could atleast suspect some compiler bug.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-26 19:22:51 UTC
ah,
found the problem.
it's cut being broken when compiled with -Os

*** This bug has been marked as a duplicate of 81031 ***
Comment 8 John Nilsson 2005-02-26 19:33:40 UTC
So I was close =)