Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153898 - /bin/date fail's
Summary: /bin/date fail's
Status: RESOLVED DUPLICATE of bug 153513
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-02 22:08 UTC by Oleg Kostyuk
Modified: 2006-11-03 01:37 UTC (History)
0 users

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 Oleg Kostyuk 2006-11-02 22:08:41 UTC
All goes well here:

tux ~ # date -d "2006/10/28 -1 day" +"%Y%m%d"
20061027
tux ~ # date -d "2006/10/28 +0 day" +"%Y%m%d"
20061028
tux ~ # date -d "2006/10/28 +1 day" +"%Y%m%d"
20061029

But now I'll got invalid result:

tux ~ # date -d "2006/10/29 -1 day" +"%Y%m%d"
20061028
tux ~ # date -d "2006/10/29 +0 day" +"%Y%m%d"
20061029
tux ~ # date -d "2006/10/29 +1 day" +"%Y%m%d"
20061029

Last command should return "20061030" !!!
But for next date - all is fine again:

tux ~ # date -d "2006/10/30 -1 day" +"%Y%m%d"
20061029
tux ~ # date -d "2006/10/30 +0 day" +"%Y%m%d"
20061030
tux ~ # date -d "2006/10/30 +1 day" +"%Y%m%d"
20061031

Also, because of this error I've got:

tux ~ # emerge-delta-webrsync 
Looking for available base versions for a delta
fetching patches
--08:02:53--  http://ftp.heanet.ie/pub/gentoo///snapshots/deltas/snapshot-20061029-20061029.patch.bz2.md5sum
           => `/usr/portage/distfiles/snapshot-20061029-20061029.patch.bz2.md5sum'
.......

And of course, there is no file named snapshot-20061029-20061029.patch.bz2.md5sum, so emerge-delta-webrsync failed.



tux ~ # emerge --info
Portage 2.1.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.5
Last Sync: Mon, 30 Oct 2006 01:47:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.3.5, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
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-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS=" http://ftp.heanet.ie/pub/gentoo/ http://mirror.etf.bg.ac.yu/gentoo/ http://www.ibiblio.org/gentoo/ http://www.gigaload.org/gentoo.org/"
LANG="en"
LINGUAS="en en_GB ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm bash-completion berkdb bitmap-fonts cli cracklib dga dlloader doc dri eds elibc_glibc emboss encode examples foomaticdb ggi gif gpm gstreamer gtk gtk2 iconv input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux lcms libg++ libwww linguas_en linguas_en_GB linguas_ru lirc_devices_all logrotate mailwrapper mmx mng mozilla mp3 mysql ncurses nls nptl nptlonly ogg oggvorbis opengl pam pcre perl png postgres pppd qt3 qt4 readline reflection sdl session smp spell spl sse ssl syslog tiff truetype truetype-fonts type1-fonts udev userland_GNU v4l v4l2 vhosts video_cards_fbdev video_cards_i810 video_cards_i830 video_cards_vesa vorbis xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-03 01:37:45 UTC

*** This bug has been marked as a duplicate of 153513 ***