Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17796 - emerging with ebuild path bypasses masking
Summary: emerging with ebuild path bypasses masking
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-18 23:19 UTC by Colin Mattson
Modified: 2011-10-30 22:19 UTC (History)
1 user (show)

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


Attachments
Proposed documentation patch (17796.patch,663 bytes, patch)
2003-03-19 01:35 UTC, Colin Mattson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Mattson 2003-03-18 23:19:01 UTC
If the full path to an ebuild file is given, Portage will ignore any masks and 
emerge the package.

I am not sure if this behavior is intended, but for the sake of consistency 
emerge should behave identically no matter how one identifies the package and 
version to be installed.  The currently-available Portage documentation does 
not suggest that there should be any differences in package processing as a 
result of how the package is identified by the user.

Reproducible: Always
Steps to Reproduce:
1. Locate a package which is masked either in package.mask or flagged as 
unstable in its ebuild script.
2. Attempt to emerge that package version using the '=package-ve.rs.ion' 
notation.
3. Attempt to emerge that same package version using the full path to its 
ebuild file.

Actual Results:  
root@blackbox sys-apps # emerge =gradm-1.7b
Calculating dependencies
!!! all ebuilds that could satisfy "=gradm-1.7b" have been masked.

!!! Error calculating dependancies. Please correct.

root@blackbox sys-apps # emerge /usr/portage/sys-apps/gradm/gradm-1.7b.ebuild
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/gradm-1.7b to /
>>> Downloading http://distro.ibiblio.org/gentoo/distfiles/gradm-1.7b.tar.gz


Expected Results:  
If the user has not enabled non-stable builds, emerge should fail no matter 
how the build is referenced.

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="http://distro.ibiblio.org/gentoo 
http://mirrors.sunsite.dk/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo 
ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo 
http://gentoo.oregonstate.edu ftp://ftp.oregonstate.edu/pub/gentoo "
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/conf
ig /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi crypt cups encode gif gpm gtk imlib jpeg kde 
gnome libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime sdl spell 
svga truetype xml2 xmms xv zlib gdbm berkdb slang readline java mysql X tcpd 
pam ssl perl python oggvorbis qt motif opengl"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-18 23:36:11 UTC
this is intended behaviour; the docs team should update the docs
Comment 2 Colin Mattson 2003-03-19 01:35:13 UTC
Created attachment 9587 [details, diff]
Proposed documentation patch

Possible explanation of functionality when emerging from an ebuild file
reference
Comment 3 John Davis (zhen) (RETIRED) gentoo-dev 2003-06-24 05:59:52 UTC
I will look into this.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2003-10-21 10:32:21 UTC
Patch looks good. Committed.