Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106049 - epatch doesn't fail on "permission denied" with FEATURES="userpriv"
Summary: epatch doesn't fail on "permission denied" with FEATURES="userpriv"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-15 04:40 UTC by Stefaan De Roeck (RETIRED)
Modified: 2005-10-18 20:36 UTC (History)
1 user (show)

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


Attachments
eutils-pipe-assert.patch (eutils-pipe-assert.patch,1.38 KB, patch)
2005-10-12 22:07 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefaan De Roeck (RETIRED) gentoo-dev 2005-09-15 04:40:38 UTC
I get something like (ebuild currently not in portage):
>>> Unpacking inventor-2.1.5-10.src.tar.gz to
/var/tmp/portage/openinventor-2.1.5.10/work
 * Applying use-byacc.patch ...                                           [ ok ]
 * Applying no-csh.patch ...                                              [ ok ]
 * Applying gentoo-paths.patch ...
cat: /usr/portage/media-gfx/openinventor/files/gentoo-paths.patch: Permission
denied                                                                      [ ok ]
>>> Source unpacked.
etc.

when I would expect epatch to die, just as it would when it's unable to find the
patch or to apply it cleanly.  
This doesn't without FEATURES="userpriv" for obvious reasons.
sderoeck@olympia /usr/portage/media-gfx/openinventor $ ls files/ -l
-rw-r-----  1 sderoeck visics  10582 Sep 15 11:56 gentoo-paths.patch
-rw-r--r--  1 sderoeck visics   1053 Sep 14 21:31 no-csh.patch
...

emerge info:
Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo i686)
=================================================================
System uname: 2.6.13-gentoo i686 unknown
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig cvs digest distlocks sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en_US de en_GB fr nl zh_CN zh_TW"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="cvs://stefaan@cvs.gentoo.org:/var/cvsroot"
USE="x86 X afs alsa apm arts avi berkdb bitmap-fonts cdr cjk crypt cups curl eds
emboss encode esd f77 fam flac fltk foomaticdb fortran gd gdbm gif gnome gphoto2
gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jack java jpeg jpeg2k junit kde
kerberos libg++ libwww mad mikmod motif mozilla mp3 mpeg ncurses nis nls ogg
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang
spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis
xine xinerama xml2 xmms xv zlib linguas_en_US linguas_de linguas_en_GB
linguas_fr linguas_nl linguas_zh_CN linguas_zh_TW userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-09-15 06:37:56 UTC
Yes, I was bitten by this minor annoyance while testing more than once, too.
Comment 2 SpanKY gentoo-dev 2005-10-12 22:07:13 UTC
Created attachment 70528 [details, diff]
eutils-pipe-assert.patch

this should fix it
Comment 3 SpanKY gentoo-dev 2005-10-18 20:36:23 UTC
assuming proposed fix works