I tried to emerge the app-misc/rio package and got the following results: # emerge app-misc/rio Calculating dependencies ...done! >>> emerge (1 of 1) app-misc/rio-1.0.7 to / >>> md5 src_uri ;-) rio007.tgz >>> Unpacking source... >>> Unpacking rio007.tgz to /var/tmp/portage/rio-1.0.7/work >>> Source unpacked. make: *** No targets specified and no makefile found. Stop. !!! ERROR: app-misc/rio-1.0.7 failed. !!! Function src_compile, Line 20, Exitcode 2 !!! compile failed # Reproducible: Always Steps to Reproduce: 1. emerge app-misc/rio Actual Results: # emerge app-misc/rio Calculating dependencies ...done! >>> emerge (1 of 1) app-misc/rio-1.0.7 to / >>> md5 src_uri ;-) rio007.tgz >>> Unpacking source... >>> Unpacking rio007.tgz to /var/tmp/portage/rio-1.0.7/work >>> Source unpacked. make: *** No targets specified and no makefile found. Stop. !!! ERROR: app-misc/rio-1.0.7 failed. !!! Function src_compile, Line 20, Exitcode 2 !!! compile failed # Expected Results: The port app-misc/rio should have compiled, and installed. I had to manually go into /var/tmp/portage/rio-1.0.7/work/rio107 type 'make', then copy the resulting 'rio' binary over to a bin directory. # emerge info Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.7) ================================================================= System uname: 2.6.7 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.50GHz Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /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/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X X509 Xaw3d aalib accessibility acl acpi afs aim alsa apache2 apm arts artswrappersuid avi berkdb bidi bonobo canna caps cdr cjk crypt cscope cups curl dga directfb dvb dvd encode esd ethereal evo fam fbcon firebird flac flash foomaticdb freetds gb gd gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icq idea imagemagick imap imlib innodb ipv6 jabber java jikes joystick jpeg kde ladcca lcms ldap libg libg++ libgda libwww lirc mad maildir mcal mikmod mmx motif mozilla mpeg mpi msn mysql ncurses nls oav oggvorbis opengl oscar oss pam pcmcia pda pdflib perl png pnp postgres ppds python qt quicktime readline ruby samba sasl scanner sdl slang slp snmp speex spell sqlite sse ssl svga tcltk tcpd tetex theora tiff truetype trusted unicode usb videos wmf wxwindows x86 xinerama xml2 xmms xv yahoo yaz zeo zlib" #
Seems the issue for not compiling is because the var UNPACKDIR was not set properly, hence the original failure, plus the makefile is in need of some fixing. The package assumes g++ is present on the system, uses preset CXXFLAGS, and suids the resulting binary. AFAIK, suid is bad for small proggies like this -- if the user needs root access for the running of the program, they should use sudo or be the superuser. Attached is a patch to the ebuild to get it to actually compile and a patch that fixes the makefile issues. Reccommended the makefile patch gets fired back upstream.
Created attachment 38271 [details, diff] Fixes the ebuild to compile properly
Created attachment 38272 [details, diff] Fixes the makefile in the package source
Re-assign a stale bug.
Fixed in cvs with minor modifications. Also added a patch to -r1 to fix warning messages. Thanks for reporting!