Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275869 - keepdir -r doesn't work
Summary: keepdir -r doesn't work
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-29 20:03 UTC by Mr. Bones. (RETIRED)
Modified: 2015-06-11 16:35 UTC (History)
1 user (show)

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 Mr. Bones. (RETIRED) gentoo-dev 2009-06-29 20:03:46 UTC
Looking at the source for keepdir in ebuild.sh it seems that -R and -r are trying to be supported to create .keep files in a tree of directories.  However, "${D}" is missing on the find command so it looks at the build host instead of the image when looking for directory names.

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29.5 i686)
=================================================================
System uname: Linux-2.6.29.5-i686-AMD_Phenom-tm-_9550_Quad-Core_Processor-with-glibc2.0
Timestamp of tree: Unknown
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O3 -pipe -Wall -Wno-pointer-sign"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/X11/app-defaults /etc/X11/rstart /etc/X11/serverconfig /etc/X11/starthere /etc/X11/xdm /etc/bash_completion /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/pango /etc/revdep-rebuild /etc/sandbox.d /etc/sound/events /etc/ssmtp /etc/terminfo /etc/udev/rules.d /usr/lib/X11/xkb"
CXXFLAGS="-march=amdfam10 -O2 -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache cvs distlocks fixpackages parallel-fetch protect-owned sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.mcs.anl.gov/pub/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/msterret/gentoo-x86"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa arts artworkextra bash-completion branding browserplugin bzip2 bzip3 cairo cdr cli cracklib crypt cscope cups dbus divx4linux dri dvd dvdr dvdread encode esd evo firefox flac foomaticdb gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv java joystick jpeg libnotify live lzo mad matroska midi mikmod mmx mmx2 mmxext modplug mozbranding moznocompose moznoirc moznomail mp3 mpeg mudflap musepack ncurses nptl nptlonly nsplugin nvidia ogg openal opengl openmp oss pam pcre pdf perl png ppds pppd python qt3support quicktime readline sdl session spell spl sqlite sqlite3 srt sse sse2 ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb userlocales vim-syntax vorbis win32codecs wma x86 xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa vga dummy nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Alex Xu (Hello71) 2015-06-11 16:35:03 UTC
keepdir doesn't pretend to support -r now, and also that function doesn't seem to make much sense; why would you want to keep a whole tree?