When trying to emerge py-rrdtool-0.2.1, the build fails on the first file it tries to compile; it looks like this is from a real syntax error in the source code (rather than a weird portage problem), but I could be wrong. localhost evan # emerge py-rrdtool Calculating dependencies ...done! >>> emerge (1 of 1) dev-python/py-rrdtool-0.2.1 to / >>> md5 files ;-) py-rrdtool-0.2.1-r1.ebuild >>> md5 files ;-) py-rrdtool-0.2.1.ebuild >>> md5 files ;-) files/digest-py-rrdtool-0.2.1-r1 >>> md5 files ;-) files/digest-py-rrdtool-0.2.1 >>> md5 src_uri ;-) py-rrdtool-0.2.1.tar.gz >>> Unpacking source... >>> Unpacking py-rrdtool-0.2.1.tar.gz to /var/tmp/portage/py-rrdtool-0.2.1/work >>> Source unpacked. running build running build_py creating build creating build/lib.linux-i686-2.4 creating build/lib.linux-i686-2.4/rrdtool copying rrdtool/__init__.py -> build/lib.linux-i686-2.4/rrdtool running build_ext building 'rrdtool._rrdtool' extension creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/src i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -fPIC -I/usr/local/include -I/usr/include/python2.4 -c src/_rrdtoolmodule.c -o build/temp.linux-i686-2.4/src/_rrdtoolmodule.o src/_rrdtoolmodule.c: In function `PyRRD_graph': src/_rrdtoolmodule.c:239: error: too few arguments to function `rrd_graph' error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 !!! ERROR: dev-python/py-rrdtool-0.2.1 failed. !!! Function distutils_src_compile, Line 35, Exitcode 1 !!! compilation failed !!! If you need support, post the topmost build error, NOT this status message. And here is my emerge --info: Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r7 i686) ================================================================= System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1.40GHz Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.4.2 dev-python/pycrypto: [Not Present] dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" 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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/gentopia" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac alsa amr apache2 apm audiofile avahi avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cjk cli crypt ctype curl daap dba dbus dri dv dvb eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild fat ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imlib ipv6 isdnlog java jpeg kernel_linux lcms lesstif libg++ libwww logrotate mad matroska mbox memlimit mikmod mmx mng mp3 mp4 mpeg musepack ncurses nls nptl ntfs ogg openal opengl oss pam pam_console pcmcia pcre pdf pdflib perl plotutils png posix pppd python quicktime readline recode reflection samba sdl session simplexml slang soap sockets sox spell spl sse ssl svg svga tcltk tcpd tetex theora tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales vim-with-x vorbis win32codecs wmf x86 xfs xml xml2 xorg xsl xv xvid xvmc zlib video_cards_i810 video_cards_i830 video_cards_i915" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Created attachment 86847 [details] py-rrdtool-0.2.1-r2.ebuild and files/_rrdtoolmodule.c.patch The new ebuild allow to compile py-rrdtool v. 0.2.1 with >=net-analyzer/rrdtool-1.2.1 I successfully tested the rrd_graph function, neverthless more test should be done.
Imported to cvs, thanks for providing a patch :)
*** Bug 151244 has been marked as a duplicate of this bug. ***
x86, please stabilize the fixed version, thanks.
doesn't emerge here (x86): >>> Unpacking source... >>> Unpacking py-rrdtool-0.2.1.tar.gz to /var/tmp/portage/py-rrdtool-0.2.1-r1/work * Applying py-rrdtool-rrdtool12.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/py-rrdtool-0.2.1-r1/work/py-rrdtool-0.2.1 ... running build running build_py creating build creating build/lib.linux-i686-2.4 creating build/lib.linux-i686-2.4/rrdtool copying rrdtool/__init__.py -> build/lib.linux-i686-2.4/rrdtool running build_ext building 'rrdtool._rrdtool' extension creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/src i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=prescott -pipe -fomit-frame-pointer -fPIC -I/usr/local/include -I/usr/include/python2.4 -c src/_rrdtoolmodule.c -o build/temp.linux-i 686-2.4/src/_rrdtoolmodule.o src/_rrdtoolmodule.c: In function 'PyRRD_graph': src/_rrdtoolmodule.c:244: error: too many arguments to function 'rrd_graph' error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 # qlist -Iv rrdtool net-analyzer/rrdtool-1.0.49
Tested -r1 The only thing you need is to remove the blocker for versions higher or equal to 1.2 of rrdtools, then it 1) emerges fine 2) passes collision test 3) seems to work, but maybe you may check...
ok, looks like we only need to wait for the fixed version to be marked stable ...
problem is that 1.2.6-r1 is stable and if it says you need under it..it'll cause a up down cycle/blockage...and that is not allowed. Thus we need it fixed.
netmon *poke* need to figure out what's going on with this. As the depend for rrdtool causes a updown cycle....
*** Bug 154958 has been marked as a duplicate of this bug. ***
(In reply to comment #9) > netmon *poke* need to figure out what's going on with this. As the depend for > rrdtool causes a updown cycle.... As said in Comment #6 and in the duplicate bug, the dependency is wrong, it should be exactly the opposite, i.e. >=net-analyzer/rrdtool-1.2
Fix the dependency in cvs
dev-python/py-rrdtool-0.2.1-r1 1. emerges on x86 2. passes collision test 3. in a python shell 'import rrdtool' works Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18.1 i686) ================================================================= System uname: 2.6.18.1 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz Gentoo Base System version 1.12.6 Last Sync: Sat, 18 Nov 2006 18:00:01 +0000 ccache version 2.3 [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" CHOST="i686-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 /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--nospinner" FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/" LINGUAS="en de en_GB de_CH" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac acpi alsa apache2 asf berkdb bitmap-fonts cairo cdr cdrom cli cracklib crypt cups dbus divx dlloader dri dts dvd dvdr dvdread eds elibc_glibc emboss encode fam ffmpeg firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde kdeenablefinal kernel_linux ldap libg++ linguas_de linguas_de_CH linguas_en linguas_en_GB mad mikmod mmx mono mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection rtsp ruby samba sdl session smp spell spl sse sse2 sse3 ssl svg tcpd test tetex theora threads truetype truetype-fonts type1-fonts udev unicode userland_GNU vcd video_cards_fbdev video_cards_i810 video_cards_vesa vorbis win32codecs wxwindows x264 xine xml xorg xprint xv xvid zlib" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Same here, with the newer -r1 ebuild dependencies seem in order: # emerge -pv py-rrdtool ... [ebuild N ] net-analyzer/rrdtool-1.2.15-r2 USE="python -doc -perl -rrdcgi -tcltk (-uclibc)" 0 kB [ebuild N ] dev-python/py-rrdtool-0.2.1-r1 0 kB emerge finished successfully, import rrdtool works: gcc-profile: i686-pc-linux-gnu-4.1.1, hardened profile
So netmon herd is ok with early stabilisation of this package on x86? If so, reopen please.
Tested it on some examples as well and seems to work okay, so I'd say let's go ahead with stabilization then
We are done, close this bug if you don't feel like adding more arches.
gah, bad typos in CC field... please test and stable as well
Please fix a "Manifest" file !!!
Ouh ... it builds well, but I had to manually change the "Manifest" file and manually upgrade a "rrdtool" package to newest (~x86) version !
Stable on ppc