emerge PyQt4 resulted in (...) g++ -c -pipe -O2 -march=athlon-xp -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include -o moc_translator.o moc_translator.cpp translator.cpp:22:27: qplatformdefs.h: No such file or directory translator.cpp: In member function `bool Translator::load(const QString&, const QString&, const QString&, const QString&)': translator.cpp:425: error: `O_RDONLY' undeclared (first use this function) (...) make[1]: *** [translator.o] Error 1 I searched for qplatformdefs.h and found it at /usr/share/qt4/mkspecs/linux-g++. /usr/mkspecs didn't exist. So I came up with .. A quick solution: ln -s /usr/share/qt4/mkspecs /usr/mkspecs emerge PyQt4 It's probably not a preferable solution - but possibly useful.
I think the ebuild in the portage tree corresponding to the official PyQt4 release needs some work. MY_P=PyQt-x11-gpl-${PV/_beta/beta}" should read "PyQt-x11-gpl-${PV}" and cp -r examples3/* ${D}/usr/share/doc/${PF}/examples needs to be changed to cp -r examples/* ${D}/usr/share/doc/${PF}/examples I think it might also be useful to at least mark this ebuild as masked on amd64. Just my $0.02
It is package.masked...
It's package.masked but ~x86 is the only keyword. I'm asking that ~amd64 be added to the keywords in the PyQt4 ebuild.
adding amd64 team for CC. I fixed the two issues you addressed in #1. Thanks for reporting those.
Compiles fine, but don't know how to test it. Portage 2.1.2_pre3-r5 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo x86_64) ================================================================= System uname: 2.6.18-gentoo x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-56 Gentoo Base System version 1.13.0_alpha2 Last Sync: Fri, 20 Oct 2006 14:30:07 +0000 ccache version 2.4 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect cvs distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict test" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="en_US.UTF-8" LINGUAS="en pl" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/data/gentoo/kadu-overlay /home/data/gentoo/peper /home/data/gentoo/proxy /home/data/gentoo/voip/trunk /home/data/gentoo/misc-overlay /home/data/gentoo/sunrise" SYNC="rsync://192.168.1.1/gentoo-portage" USE="amd64 7zip X a52 aac acl acpi alsa amarok amazon amuled asf audiofile bash-completion berkdb bidi bitmap-fonts bluetooth browserplugin bzip2 c++ cairo ccache cdda cddb cdr cdrom chroot cli cpudetection cracklib crypt css curl curlwrappers dbus divx dlloader doc dri dts dv dvd dvdr dvdread eds elibc_glibc emboss encode escreen exif extensions extraicons extramodules extras fam ffmpeg firefox flac fortran gdbm gg gif gimp gnutls gphoto2 gpm gstreamer gstreamer010 gtk gtk2 guile hal imagemagick input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics insecure-patches ipv6 irmc isdnlog jabber java javascript jingle jpeg jpeg2k junit kcal kde kdeenablefinal kdepim kernel_linux kig-scripting kipi lcms libg++ linguas_en linguas_pl live lm_sensors logitech-mouse logrotate loudmouth mad mikmod mime mng mozilla mozsvg mp3 mp4live mpeg mpeg2 mplayer multiuser musepack musicbrainz ncurses neXt nforce2 nls no-old-linux nowin nptl nptlonly nsplugin ntfs nvidia objc offensive ogg opengl oss pam pcre pda pdf perl pmu png ppds pppd python qt3 qt4 quicktime readline realmedia reflection remote rrdtool samba sdl session sms sndfile snmp spell spl sql sqlite sqlite3 ssl startup-notification stats stream svg symlink sysfs tagwriting tcpd theora threads tidy tiff truetype truetype-fonts type1 type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 vcd video_cards_nvidia vim-pager vim-with-x visualization vlm voice vorbis wifi withsamplescripts wmf wxgtk1 wxwindows xine xml xorg xscreensaver xv xvid xvmc yv12 zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** Bug 146707 has been marked as a duplicate of this bug. ***
added ~amd64.