Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373913 - app-admin/rsyslog-5.8.1: init script uses deprecated option from start-stop-daemon
Summary: app-admin/rsyslog-5.8.1: init script uses deprecated option from start-stop-d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: s-s-d-deprecated
  Show dependency tree
 
Reported: 2011-07-03 13:52 UTC by Martin Dummer
Modified: 2011-09-05 09:29 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 Martin Dummer 2011-07-03 13:52:06 UTC
when executing "/etc/init.d/rsyslog reload" then there appears a warning in the system log:

/etc/init.d/rsyslog[27347]: WARNING: -o/--oknodo is deprecated and will be removed in the future

This happens on a regular basis when logrotate does his job. 

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/rsyslog start
2. tail -F /var/log/messages
3. /etc/init.d/rsyslog reload
Actual Results:  
---
2011-07-03T15:45:18+02:00 bxn /etc/init.d/rsyslog[27347]: WARNING: -o/--oknodo is deprecated and will be removed in the future
2011-07-03T15:45:18.860866+02:00 bxn rsyslogd: [origin software="rsyslogd" swVersion="5.8.1" x-pid="6411" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
...

Expected Results:  
no warning in the system log
Comment 1 Ultrabug gentoo-dev 2011-07-07 16:12:06 UTC
Hi Martin,

Although I can indeed reproduce your bug, would you mind attaching your emerge --info please ?

Thanks
Comment 2 Martin Dummer 2011-07-08 06:47:20 UTC
Yes.... of course... 

HOSTNAME ~ # emerge --info
Portage 2.2.0_alpha43 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r3, 2.6.39-gentoo-r2-st5 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r2-st5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9600_@_2.80GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 07 Jul 2011 21:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.5 [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.4.5, 4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r3
Repositories: gentoo vdr-devel MD-s-Lokales-Overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10 AdobeFlash-10.1 googleearth"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --ask-enter-invalid"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo "
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j4"
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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vdr-devel /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi akonadi alsa amd64 ao apng audiofile bash-completion berkdb bluetooth branding bzip2 cairo captury cardbus cdda cdr cisco cli consolekit cracklib cron crypt css cups curl cxx dbus declarative device-mapper dhcpcd disk-partition dri dts dvb dvd dvdr ebook embedded emboss emerald enca encode exif extras fam ffmpeg firefox flac fontconfig fortran gd gdbm gdu geolocation gif gimp git glitz gnutls gphoto2 gpm gstreamer gtk httpd hybrid-auth iconv icu id3tag ieee1394 ipod ipv6 java jpeg kde kipi kvm lame laptop lcms ldap lensfun libass libcaca libnotify libproxy live lm_sensors logrotate lzo mad mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg mtp mudflap multilib musicbrainz mysql ncurses networkmanager nfsv3 nfsv4 nls nptl nptlonly nsplugin ntlm ntp nvidia ogg old-daemons openexr opengl openipmi openmp pam pango pcre pdf perl phonon plasma pm-utils png policykit ppds pppd python qemu qt3support qt4 rdesktop rdp readline resolvconf rss samba sasl sdl semantic-desktop session smi smp sndfile snmp spell sql sse sse2 sse3 ssl ssse3 startup-notification stl svg sysfs tcpd test-programs threads threadsafe thumbnail tiff truetype udev unicode usb utils v4l v4l2 vcd vdpau vim-syntax vnc vorbis webkit x264 xattr xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="devinput" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Ultrabug gentoo-dev 2011-07-12 09:40:20 UTC
Hi Martin,

This bug is similar to bug #372671 which discuss this matter. I spoke with idl0r about it and as this would break baselayout1 users' init scripts, we'll have to wait until it is deprecated/removed from tree.

We'll keep this bug open till then and I'll update it as soon as I can.

Thanks for your report.

Regards
Comment 4 Ultrabug gentoo-dev 2011-09-05 09:29:47 UTC
Hello Martin,

+*rsyslog-5.8.5 (05 Sep 2011)
+
+  05 Sep 2011; Ultrabug <ultrabug@gentoo.org> files/5-stable/rsyslog.initd,
+  -rsyslog-5.8.1.ebuild, +rsyslog-5.8.5.ebuild, metadata.xml:
+  Init script handles baselayout 1 & 2, fix #373913 thanks to Martin Dummer for
+  reporting. Version bump wrt #381637 and drop old vulnerable version. Add
+  optional zeromq support to rsyslog.
+

Since baselayout-1 removal is still underway, I have updated the init script to handle both versions. This fixes this bug, thank you again.

I'll remove the condition when baselayout-1 is removed.