<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>210063</bug_id>
          
          <creation_ts>2008-02-14 02:18 0000</creation_ts>
          <short_desc>sys-libs/slang-2.1.3-r1 does not build</short_desc>
          <delta_ts>2008-11-03 10:26:06 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>245377</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>jaglover@gmail.com</reporter>
          <assigned_to>cjk@gentoo.org</assigned_to>
          <cc>ssuominen@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jaglover@gmail.com</who>
            <bug_when>2008-02-14 02:18:49 0000</bug_when>
            <thetext>On an older AMD K6-2 slsh part does not build. Turned of distcc and parallel make, still fails in same way.

Reproducible: Always

Steps to Reproduce:
1.emerge slang
2.
3.




emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.24-gentoo-r2 i586)
=================================================================
System uname: 2.6.24-gentoo-r2 i586 AMD-K6(tm) 3D processor
Timestamp of tree: Wed, 13 Feb 2008 12:46:01 +0000
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
CBUILD=&quot;i586-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=k6-2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i586-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-O2 -march=k6-2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LC_ALL=&quot;en_US.UTF-8&quot;
LINGUAS=&quot;en us_EN&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;3dnow X acpi berkdb bitmap-fonts bzip2 cairo dbus dga fftw firefox fortran gdbm gif gtk gtk2 hal iconv jpeg minimal mmx ncurses nls nptl nptlonly pam pdf perl python readline session ssl svg truetype truetype-fonts type1-fonts unicode x86 xorg zlib&quot; ALSA_CARDS=&quot;ens1371&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse&quot; KERNEL=&quot;linux&quot; LINGUAS=&quot;en us_EN&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;sis&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaglover@gmail.com</who>
            <bug_when>2008-02-14 02:21:26 0000</bug_when>
            <thetext>cd slsh; make all
make[1]: Entering directory `/var/tmp/portage/sys-libs/slang-2.1.3-r1/work/slang-2.1.3/slsh&apos;
cp ../src/config.h .
i586-pc-linux-gnu-gcc -c -O2 -march=k6-2 -pipe -fomit-frame-pointer   -I/var/tmp/portage/sys-libs/slang-2.1.3-r1/work/slang-2.1.3/src -DSLSH_CONF_DIR=&apos;&quot;/etc&quot;&apos; -DSLSH_PATH=&apos;&quot;/usr/share/slsh&quot;&apos; -DSLSH_CONF_DIR_ENV=&apos;&quot;SLSH_CONF_DIR&quot;&apos; -DSLSH_LIB_DIR_ENV=&apos;&quot;SLSH_LIB_DIR&quot;&apos; -DSLSH_PATH_ENV=&apos;&quot;SLSH_PATH&quot;&apos;  slsh.c
i586-pc-linux-gnu-gcc -c -O2 -march=k6-2 -pipe -fomit-frame-pointer   -I/var/tmp/portage/sys-libs/slang-2.1.3-r1/work/slang-2.1.3/src -DSLSH_CONF_DIR=&apos;&quot;/etc&quot;&apos; -DSLSH_PATH=&apos;&quot;/usr/share/slsh&quot;&apos; -DSLSH_CONF_DIR_ENV=&apos;&quot;SLSH_CONF_DIR&quot;&apos; -DSLSH_LIB_DIR_ENV=&apos;&quot;SLSH_LIB_DIR&quot;&apos; -DSLSH_PATH_ENV=&apos;&quot;SLSH_PATH&quot;&apos;  -DUSE_GNU_READLINE=0 readline.c
i586-pc-linux-gnu-gcc -O2 -march=k6-2 -pipe -fomit-frame-pointer   slsh.o readline.o -o slsh_exe -Wl,-export-dynamic -L/var/tmp/portage/sys-libs/slang-2.1.3-r1/work/slang-2.1.3/src/elfx86objs -lslang  -ltermcap -ldl  -lm
/usr/lib/gcc/i586-pc-linux-gnu/4.2.2/../../../../i586-pc-linux-gnu/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
make[1]: *** [slsh_exe] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-libs/slang-2.1.3-r1/work/slang-2.1.3/slsh&apos;
make: *** [elf] Error 2
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-02-14 06:49:03 0000</bug_when>
            <thetext>Try w/ MAKEOPTS=&quot;-j1&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaglover@gmail.com</who>
            <bug_when>2008-02-14 13:41:14 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Try w/ MAKEOPTS=&quot;-j1&quot;
&gt; 

No difference whatsoever. It fails in exactly same way. Previously I commented MAKEOPTS out in make.conf, now I enabled it again with -j1.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2008-02-15 11:29:15 0000</bug_when>
            <thetext>Output of &apos;emerge -pv ncurses&apos; please.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2008-02-15 12:00:48 0000</bug_when>
            <thetext>I had a theory (lazy to verify) that slang doesn&apos;t use headers, or link against ncurses, but it needs the terminfo files it installs into /usr/share/terminfo.

but ncurses doesn&apos;t install these if it was built with USE minimal.

which would mean we need a built_with_use check in pkg_setup, ..

but when I tried to reproduce this it built OK, weird..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2008-02-15 12:05:00 0000</bug_when>
            <thetext>Also need output of &quot;ncurses5-config --terminfo&quot;, preferably before and after changing USE minimal on and off for ncurses ..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaglover@gmail.com</who>
            <bug_when>2008-02-15 15:35:53 0000</bug_when>
            <thetext>I cleared manually all the cruft from /var/tmp/portage, just in case.

# emerge -pv ncurses
[ebuild   R   ] sys-libs/ncurses-5.6-r2  USE=&quot;minimal unicode -bootstrap -build -debug -doc -gpm -nocxx -profile -trace&quot; 0 kB 

# ncurses5-config --terminfo
/usr/share/terminfo

# USE=&quot;-mimimal&quot; emerge -av1 ncurses

# ncurses5-config --terminfo
/usr/share/terminfo

# emerge -av1 slang
[ebuild  N    ] sys-libs/slang-2.1.3-r1  USE=&quot;-cjk -pcre -png&quot; 0 kB

Success!!! Thank you, Vielen Dank, Kiitos!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaglover@gmail.com</who>
            <bug_when>2008-02-15 19:42:43 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; I had a theory (lazy to verify) that slang doesn&apos;t use headers, or link against
&gt; ncurses, but it needs the terminfo files it installs into /usr/share/terminfo.
&gt; 
&gt; but ncurses doesn&apos;t install these if it was built with USE minimal.
&gt; 
&gt; which would mean we need a built_with_use check in pkg_setup, ..
&gt; 
&gt; but when I tried to reproduce this it built OK, weird..
&gt; 

I can reproduce it, I built ncurses with minimal again and slang build fails truthfully. :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2008-02-15 20:45:20 0000</bug_when>
            <thetext>and I believe you both so I&apos;ve added a check in the ebuild to prevent this from happening..</thetext>
          </long_desc>
      
    </bug>

</bugzilla>