newt fails to compile _snackmodule.so, so python snack module doesn't work. $ ebuild newt-0.52.14.ebuild compile (snip) x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -Wl,-O1 -Wl,--as-needed -shared -o libnewt.so.0.52.14 -Wl,--version-script,newt.0.52.ver -Wl,-soname,libnewt.so.0.52 shared/newt.o shared/button.o shared/form.o shared/checkbox.o shared/entry.o shared/label.o shared/listbox.o shared/scrollbar.o shared/textbox.o shared/scale.o shared/grid.o shared/windows.o shared/buttonbar.o shared/checkboxtree.o -Wl,-O1 -Wl,--as-needed -lslang ln -fs libnewt.so.0.52 libnewt.so ln -fs libnewt.so.0.52.14 libnewt.so.0.52 x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -Wl,-O1 -Wl,--as-needed -o whiptail whiptail.o dialogboxes.o -L. -Wl,-O1 -Wl,--as-needed -lnewt -lslang -lpopt [ -n "python2.7" ] && for ver in python2.7 ; do \ mkdir -p $ver ;\ PCFLAGS=`$ver-config --cflags`; \ PIFLAGS=`$ver-config --includes`; \ PLDFLAGS=`$ver-config --ldflags`; \ PLFLAGS=`$ver-config --libs`; \ x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -I/usr/include/slang $PIFLAGS $PCFLAGS -c -o $ver/snackmodule.o snackmodule.c ;\ x86_64-pc-linux-gnu-gcc --shared $PLDFLAGS $PLFLAGS -Wl,-O1 -Wl,--as-needed -o $ver/_snackmodule.so $ver/snackmodule.o -L. -lnewt -lslang ;\ done || : /bin/sh: line 2: python2.7-config: command not found /bin/sh: line 3: python2.7-config: command not found /bin/sh: line 4: python2.7-config: command not found /bin/sh: line 5: python2.7-config: command not found snackmodule.c:14:20: fatal error: Python.h: No such file or directory compilation terminated. x86_64-pc-linux-gnu-gcc: python2.7/snackmodule.o: No such file or directory touch _snackmodule.so >>> Source compiled. $ python Python 2.7.2 (default, Oct 29 2011, 05:48:29) [GCC 4.5.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import snack Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/snack.py", line 42, in <module> import _snack ImportError: No module named _snack # emerge --info Portage 2.1.10.39 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r1, 3.1.4-gentoo x86_64) ================================================================= System uname: Linux-3.1.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-2557M_CPU_@_1.70GHz-with-gentoo-2.1 Timestamp of tree: Mon, 19 Dec 2011 13:30:01 +0000 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.1.4-r3, 3.2.2 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.7 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.11.1-r1 sys-devel/binutils: 2.22 sys-devel/gcc: 4.5.3-r1 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r1 Repositories: gentoo matsuu x-portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Broadcom google-talkplugin" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=core2" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs 2 --keep-going" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="ja_JP.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="ja" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/matsuu/Dropbox/gentoo/matsuu_git_overlay /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gtk iconv icu ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb v4l v4l2 vaapi vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics mtrack" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ja" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 296367 [details, diff] files/newt-0.52.14-snack.patch
*** Bug 405881 has been marked as a duplicate of this bug. ***
Fixed in CVS. Thanks.