Skip to content

Commit

Permalink
Preparations for 0.9.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfcw committed Nov 14, 2017
1 parent 4ce2835 commit c9a681c
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 26 deletions.
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Since 0.9.6:
- Julien Gilli added an option to disable monotonic time faking
- Azat Khuzhin added support for COARSE clocks
- Preliminary support for CLOCK_BOOTTIME (Linux)
- Fixed compilation on macOS Sierra and various compiler warnings
- Fixed compilation on macOS (High) Sierra and various compiler warnings
- Support for select() call added by Hitoshi Harada (umitanuki)
- Updated documentation

Expand Down
7 changes: 3 additions & 4 deletions README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
libfaketime, version 0.9.7beta1 (May 2017)
libfaketime, version 0.9.7 (November 2017)
==========================================


Expand Down Expand Up @@ -71,7 +71,7 @@ documentation whether it can be achieved by using libfaketime directly.
rebuilding libfaketimeMT.so.1

* Java-/JVM-based applications work but you need to pass in an extra argument
(DONT_FAKE_MONOTONIC). See usage basics below for details. Without this
(DONT_FAKE_MONOTONIC). See usage basics below for details. Without this
argument the java command usually hangs.

* libfaketime will eventually be bypassed by applications that dynamically load
Expand Down Expand Up @@ -140,7 +140,7 @@ Tue Nov 23 12:01:05 CEST 2016
user@host> LD_PRELOAD=/usr/local/lib/libfaketime.so.1 FAKETIME="-15d" date
Mon Nov 8 12:01:12 CEST 2016

user@host> LD_PRELOAD=/usr/local/lib/libfaketime.so.1 FAKETIME="-15d"
user@host> LD_PRELOAD=/usr/local/lib/libfaketime.so.1 FAKETIME="-15d"
DONT_FAKE_MONOTONIC=1 java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Expand Down Expand Up @@ -532,4 +532,3 @@ Bug reports, feature suggestions, success reports, and patches/pull
requests are highly appreciated:

https://github.com/wolfcw/libfaketime

2 changes: 1 addition & 1 deletion README.OSX
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ README file for libfaketime on macOS
Support for macOS has meanwhile matured and many command line and
GUI applications will run stable.

Developments and tests are done on Sierra currently.
Developments and tests are done on High Sierra currently.
Use libfaketime 0.9.6 or earlier on OS X (i.e., before Sierra).

Version 0.9.5 and higher no longer works with OSX <= 10.6 due to
Expand Down
4 changes: 2 additions & 2 deletions man/faketime.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH FAKETIME "1" "June 2014" "faketime 0.9.6" wolfcw
.TH FAKETIME "1" "November 2017" "faketime 0.9.7" wolfcw
.SH NAME
faketime \- manipulate the system time for a given command
.SH SYNOPSIS
Expand Down Expand Up @@ -54,7 +54,7 @@ This is the most often used format and specifies the faked time relatively to th
Start-at timestamps: \fB"@YYYY-MM-DD hh:mm:ss"\fR
The wall clock will start counting at the given timestamp for the program. This can be used for specifying absolute timestamps without freezing the clock.
.SH ADVANCED USAGE
When using relative time offsets or start-at timestamps (see ADVANCED TIMESTAMP FORMAT above and option \fB\-f\fR), the clock speed can be adjusted, i.e. time may run faster or slower for the executed program. For example, \fB"+5y x10"\fR will set the faked time 5 years into the future and make the time pass 10 times as fast (one real second equals 10 seconds measured by the program). Similarly, the flow of time can be slowed, e.g. using \fB"-7d x0,2"\fR, which will set the faked time 7 days in the past and set the clock speed to 20 percent, i.e. it takes five real world seconds for one second measured by the program. Again, depending on your locale, either "x2.0" or "x2,0" may be required regarding the delimiter. You can also make faketime to advance the reported time by a preset interval upon each time() call independently from the system's time using \fB"-7d i2,0"\fR, where
When using relative time offsets or start-at timestamps (see ADVANCED TIMESTAMP FORMAT above and option \fB\-f\fR), the clock speed can be adjusted, i.e. time may run faster or slower for the executed program. For example, \fB"+5y x10"\fR will set the faked time 5 years into the future and make the time pass 10 times as fast (one real second equals 10 seconds measured by the program). Similarly, the flow of time can be slowed, e.g. using \fB"-7d x0,2"\fR, which will set the faked time 7 days in the past and set the clock speed to 20 percent, i.e. it takes five real world seconds for one second measured by the program. Again, depending on your locale, either "x2.0" or "x2,0" may be required regarding the delimiter. You can also make faketime to advance the reported time by a preset interval upon each time() call independently from the system's time using \fB"-7d i2,0"\fR, where
\fB"i"\fR is followed by the increase interval in seconds.
.PP
Faking times for multiple programs or even system-wide can be simplified by using ~/.faketimerc files and /etc/faketimerc. Please refer to the README that came with faketime for warnings and details.
Expand Down
9 changes: 4 additions & 5 deletions packaging/OSX/Fink/libfaketime.info
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Package: libfaketime
Version: 0.9.5
Version: 0.9.7
Revision: 1

Source: http://www.code-wizards.com/projects/%n/%n-%v.tar.gz
Source-MD5: 89b5c71e6c6a93b1c6feba374ac37719
Source-MD5: PLACEHOLDER

Maintainer: Wolfgang Hommel <[email protected]>
HomePage: http://www.code-wizards.com/projects/%n
HomePage: https://github.com/wolfcw/libfaketime
License: GPL

Description: Modify system time for single applications
Expand All @@ -30,7 +30,7 @@ and access its full raw functionality, please see
<<

BuildDepends: fink (>= 0.28)
Distribution: 10.7, 10.8, 10.9
Distribution: 10.7, 10.8, 10.9, 10.10, 10.11, 10.12

CompileScript: <<
#! /bin/sh -ev
Expand All @@ -51,4 +51,3 @@ DocFiles: COPYING README README.OSX
Shlibs: <<
!%p/lib/faketime/%N.1.dylib
<<

5 changes: 2 additions & 3 deletions packaging/OSX/Homebrew/libfaketime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

class Libfaketime < Formula
homepage 'https://github.com/wolfcw/libfaketime'
url 'https://github.com/wolfcw/libfaketime/archive/v0.9.7b1.tar.gz'
sha1 'f38fe2b355cdfc74807646707a2f2c3e3be84032'
url 'https://github.com/wolfcw/libfaketime/archive/v0.9.7.tar.gz'
sha1 'PLACEHOLDER'

depends_on :macos => :sierra

Expand All @@ -19,4 +19,3 @@ def install
man1.install 'man/faketime.1'
end
end

6 changes: 3 additions & 3 deletions packaging/OSX/MacPorts/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
PortSystem 1.0
PortGroup github 1.0

github.setup wolfcw libfaketime 0.9.5rc3 v
github.setup wolfcw libfaketime 0.9.7 v

checksums rmd160 8d10140a181e0d5ce93bd7b0e7eeaa380eb7a9c6 \
sha256 ee2234335b3d730fdf6898d8dba9195d9ab3068c29af25270be03682d24a424f
checksums rmd160 PLACEHOLDER \
sha256 PLACEHOLDER

categories sysutils
platforms darwin
Expand Down
4 changes: 1 addition & 3 deletions packaging/OSX/README
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ command.
Some libfaketime Portfile caveats:

- Github-based source file distribution
(0.9.5rc3 is code-identical to 0.9.5 release except for Makefile patches)
- Non-clang-compilers need to be blacklisted (for libfaketime =0.9.5)
- Non-clang-compilers need to be blacklisted
- MacPorts folks have requested to avoid a platform-specific Makefile.OSX in
the future

Expand Down Expand Up @@ -64,4 +63,3 @@ Some libfaketime fink info file caveats:
make packaging work.

Submission is via https://sourceforge.net/p/fink/package-submissions/

2 changes: 1 addition & 1 deletion src/Makefile.OSX
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ INSTALL ?= install
PREFIX ?= /usr/local

CFLAGS += -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'${PREFIX}'"'
LIB_LDFLAGS += -dynamiclib -current_version 0.9.6 -compatibility_version 0.7
LIB_LDFLAGS += -dynamiclib -current_version 0.9.7 -compatibility_version 0.7

SONAME = 1
LIBS = libfaketime.${SONAME}.dylib
Expand Down
4 changes: 2 additions & 2 deletions src/faketime.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* libfaketime wrapper command
*
* This file is part of libfaketime, version 0.9.6
* This file is part of libfaketime, version 0.9.7
*
* libfaketime is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License v2 as published by the
Expand Down Expand Up @@ -48,7 +48,7 @@

#include "faketime_common.h"

const char version[] = "0.9.6";
const char version[] = "0.9.7";

#ifdef __APPLE__
static const char *date_cmd = "gdate";
Expand Down
2 changes: 1 addition & 1 deletion src/libfaketime.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of libfaketime, version 0.9.6
* This file is part of libfaketime, version 0.9.7
*
* libfaketime is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License v2 as published by the
Expand Down

0 comments on commit c9a681c

Please sign in to comment.