When an emerge ntp is done it fails when trying to patch the file. The outputs are attached. Reproducible: Always Steps to Reproduce: 1.emerge ntp 2. 3. Actual Results: bash-2.05b# emerge ntp Calculating dependencies ...done! >>> emerge (1 of 1) net-misc/ntp-4.1.1b-r5 to / >>> md5 ;-) ntp-4.1.1b.tar.gz >>> Unpacking source... >>> Unpacking ntp-4.1.1b.tar.gz to /var/tmp/portage/ntp-4.1.1b-r5/work tar (child): /usr/portage/distfiles/ntp-4.1.1b.tar.gz: Cannot open: Permission denied tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors /usr/sbin/ebuild.sh: line 205: die: command not found /usr/sbin/ebuild.sh: line 20: cd: /var/tmp/portage/ntp-4.1.1b-r5/work/ntp-4.1.1b: No such file or directory * Applying ntp-bk.diff... * Failed Patch: ntp-bk.diff! * * Include in your bugreport the contents of: * * /var/tmp/portage/ntp-4.1.1b-r5/temp/ntp-bk.diff-2322.out !!! ERROR: net-misc/ntp-4.1.1b-r5 failed. !!! Function epatch, Line 309, Exitcode 0 !!! Failed Patch: ntp-bk.diff! ***** ntp-bk.diff ***** ======================= PATCH COMMAND: patch -p0 < /usr/portage/net-misc/ntp/files/ntp-bk.diff ======================= can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -urN ntp-4.1.72.orig/Makefile.am ntp-4.1.72/Makefile.am |--- ntp-4.1.72.orig/Makefile.am Wed May 1 18:53:03 2002 |+++ ntp-4.1.72/Makefile.am Wed May 1 18:54:10 2002 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ======================= PATCH COMMAND: patch -p1 < /usr/portage/net-misc/ntp/files/ntp-bk.diff ======================= can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -urN ntp-4.1.72.orig/Makefile.am ntp-4.1.72/Makefile.am |--- ntp-4.1.72.orig/Makefile.am Wed May 1 18:53:03 2002 |+++ ntp-4.1.72/Makefile.am Wed May 1 18:54:10 2002 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ======================= PATCH COMMAND: patch -p2 < /usr/portage/net-misc/ntp/files/ntp-bk.diff ======================= missing header for unified diff at line 4 of patch can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -urN ntp-4.1.72.orig/Makefile.am ntp-4.1.72/Makefile.am |--- ntp-4.1.72.orig/Makefile.am Wed May 1 18:53:03 2002 |+++ ntp-4.1.72/Makefile.am Wed May 1 18:54:10 2002 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ======================= PATCH COMMAND: patch -p3 < /usr/portage/net-misc/ntp/files/ntp-bk.diff ======================= missing header for unified diff at line 4 of patch can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -urN ntp-4.1.72.orig/Makefile.am ntp-4.1.72/Makefile.am |--- ntp-4.1.72.orig/Makefile.am Wed May 1 18:53:03 2002 |+++ ntp-4.1.72/Makefile.am Wed May 1 18:54:10 2002 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ======================= PATCH COMMAND: patch -p4 < /usr/portage/net-misc/ntp/files/ntp-bk.diff ======================= missing header for unified diff at line 4 of patch can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -urN ntp-4.1.72.orig/Makefile.am ntp-4.1.72/Makefile.am |--- ntp-4.1.72.orig/Makefile.am Wed May 1 18:53:03 2002 |+++ ntp-4.1.72/Makefile.am Wed May 1 18:54:10 2002 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored Expected Results: Installed Portage 2.0.47-r7 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20 i686 AMD Athlon(tm) processor GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" 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="/usr/local/portage" USE="x86 3dnow apm avi crypt cups encode gif imlib jpeg kde libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga java X sdl gpm tcpd pam ssl python oggvorbis qt motif opengl aalib alsa cdr dga directfb dvd fbcon -gnome -gtk imap mozilla mysql -oss pda perl tcltk tiff usb xml" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -Os -pipe -fpeephole -fgcse -mmmx -m3dnow -ffast-math -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args" CXXFLAGS="-march=athlon-tbird -Os -pipe -fpeephole -fgcse -mmmx -m3dnow -ffast-math -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache buildpkg userpriv"
try removing 'userpriv' from FEATURES and emerging as root
That worked so I guess the ebuild should print a warning about this and you can say this one is resolved.
emerge ntp myaction None myopts ['--buildpkg'] emerge: root access required. fixed with Portage 2.0.48