Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130932 - rc-update complains about .keep files.
Summary: rc-update complains about .keep files.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 133435 139311 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-22 23:53 UTC by moesasji
Modified: 2006-07-05 11:42 UTC (History)
4 users (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 moesasji 2006-04-22 23:53:29 UTC
I noticed a strange behaviour when using rc-update to show the processes starting at a specific runlevel. Basically it complains about the .keep file that is also present in the directory. If I understand it correctly the .keep file is a portage specific file that indicates that the directory should not be deleted when empty. In that case rc-update should clearly ignore this file as it is not a process, which is not done. 

What I see on typing the command 
====
pulsar # rc-update show default
 * Invalid runlevel entry: /etc/runlevels/boot/.keep
 * Invalid runlevel entry: /etc/runlevels/default/.keep
 * Invalid runlevel entry: /etc/runlevels/nonetwork/.keep
 * Invalid runlevel entry: /etc/runlevels/single/.keep
               cupsd | default
                dbus | default
               hplip | default
...(shortened)
          vixie-cron | default
====

What I expected to see is this output without the "invalid runlevel entry" messages. 

This message is clearly caused by a .keep file in the runlevel directories. These files have always been present in those directory if I see the creation date. I've never seen this before when using rc-update, so it is new behaviour.

For completeness: My emerge --info
=====
Portage 2.1_pre9-r3 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.12.0_pre18
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -ftracer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apache2 apm asf avi bash-completion berkdb bidi bitmap-fonts bootsplash bzip2 cdda cdio cdparanoia cdr cli crypt css cups curl custom-cflags dba dri dts dv dvd dvdr dvdread eds emoticon encode escreen exif fame fb fbcon ffmpeg firefox flac font-server foomaticdb fortran freetype gd gdbm gif gnutls gpm gstreamer gtk gtk2 httpd idn imagemagick imlib isdnlog java jpeg kdeenablefinal lcms libg++ libwww live lm_sensors mad matroska mikmod mjpeg mmx mmx2 mng motif mp3 mp4 mpeg mpeg4 mplayer mysql mysqli ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pam pcre pdflib perl php pic png ppds pppd python qt quicktime rar readline real reflection sdl session spell spl sse sse2 ssl stream subtitles subversion svga tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb utf8 vcd vcdimager vlm vorbis win32codecs wxwindows x264 xine xinerama xml xml2 xmms xorg xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa video_cards_fbdev"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS
=====
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-23 00:22:20 UTC
Can't reproduce with baselayout-1.12.0_pre18
Comment 2 moesasji 2006-04-23 00:30:32 UTC
That's the same version of baselayout as is installed on my system.
===
emerge -s baselayout
...
*  sys-apps/baselayout
      Latest version available: 1.12.0_pre18
      Latest version installed: 1.12.0_pre18
...
===
I have no clue what is causing this. 
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-23 00:38:53 UTC
Don't change components needlessly, it's baselayout problem.
Comment 4 SpanKY gentoo-dev 2006-04-23 01:06:16 UTC
remove the .keep files and re-emerge baselayout

if they come back, re-open the bug
Comment 5 moesasji 2006-04-23 03:33:37 UTC
removing .keep and subsequent re-emerge of baselayout indeed does not make the .keep files re-appear. Show the original problem is gone in that way and the bug appears fixed.

ps) Strange thing is that these .keep files were there since the original install in May 2005. Something must have changed to make this behaviour suddenly appear. 
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2006-05-13 22:34:39 UTC
(In reply to comment #5)
> removing .keep and subsequent re-emerge of baselayout indeed does not make the
> .keep files re-appear. Show the original problem is gone in that way and the
> bug appears fixed.
> 

It would be nice to add something to baselayout pkg_postinst about this.
Comment 7 SpanKY gentoo-dev 2006-05-15 19:20:52 UTC
*** Bug 133435 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2006-07-05 11:42:49 UTC
*** Bug 139311 has been marked as a duplicate of this bug. ***