Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71687 - Unwanted "emerging by path"
Summary: Unwanted "emerging by path"
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-18 11:31 UTC by Ivar Ylvisaker
Modified: 2004-11-18 11:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivar Ylvisaker 2004-11-18 11:31:09 UTC
I get the "emerging by path" option (see "man emerge") without specifying the path by emerging an ebuild while in the directory containing the ebuild.  For example:

bash-2.05b# pwd
/usr/portage/sys-apps/portage
bash-2.05b# emerge --pretend portage-2.0.51_rc7.ebuild
emerging by path implies --oneshot... adding --oneshot to options.

*** emerging by path is broken and may not always work!!!


These are the packages that I would merge, in order:

Calculating dependencies
*** You are emerging a masked package. It is MUCH better to use
*** /etc/portage/package.* to accomplish this. See portage(5) man
*** page for details.
>>> Waiting 10 seconds before starting...
>>> (Control-C to abort)...
Continuing... in: 10 9 8 7 6 5 4 3 2 1
 ...done!
[ebuild     UD] sys-apps/portage-2.0.51_rc7 [2.0.51-r3]

bash-2.05b# cd ..
bash-2.05b# pwd
/usr/portage/sys-apps
bash-2.05b# emerge --pretend portage-2.0.51_rc7.ebuild

These are the packages that I would merge, in order:

Calculating dependencies
*** You need to adjust PORTDIR or PORTDIR_OVERLAY to emerge this package.

bash-2.05b# 

I suspect that this is not the desired behavior.

Ivar

Reproducible: Always
Steps to Reproduce:
1. See example
2.
3.

Actual Results:  
See example

Expected Results:  
Ordinary emerge

bash-2.05b# emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r4 i686)
=================================================================
System uname: 2.6.9-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/
http://www.ibiblio.org/pub/Linux/distributions/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 aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups directfb doc
dvd encode esd f77 fam firebird flac foomatic foomaticdb fortran gdbm gif gpm
gtk gtk2 imagemagick imlib jpeg kde ldap libg++ libwww mad mikmod mmx motif
mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres
python qt quicktime readline scanner sdl slang spell sse ssl svga tcltk tcpd
tiff truetype usb x86 xml xml2 xmms xv zlib"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-11-18 11:41:26 UTC
You're specifying a path... Just the basename, but you're still giving a path.

Thus, it's not an atom. See the manpages about allowed specifications.