diff options
author | Ladislav Hagara | 2013-03-07 23:44:09 +0100 |
---|---|---|
committer | Ladislav Hagara | 2013-03-07 23:44:09 +0100 |
commit | 333a893b3b5cd50a1683814ee354747e4e439173 (patch) | |
tree | 237fc04b56d933aa4412e7cd85806ce228448c98 | |
parent | beb9e6fa726e8e942786e8b217334e5cee2c90b6 (diff) |
libs/libfaketime: new spell, reports faked system time to programs
-rwxr-xr-x | libs/libfaketime/BUILD | 1 | ||||
-rwxr-xr-x | libs/libfaketime/DETAILS | 14 | ||||
-rw-r--r-- | libs/libfaketime/HISTORY | 3 | ||||
-rwxr-xr-x | libs/libfaketime/INSTALL | 1 | ||||
-rwxr-xr-x | libs/libfaketime/PRE_BUILD | 4 | ||||
-rw-r--r-- | libs/libfaketime/libfaketime-0.9.1-fix-README-NEWS.patch | 28 | ||||
-rw-r--r-- | libs/libfaketime/libfaketime-0.9.1-fix-as-needed.patch | 38 |
7 files changed, 89 insertions, 0 deletions
diff --git a/libs/libfaketime/BUILD b/libs/libfaketime/BUILD new file mode 100755 index 0000000000..8f58e6df93 --- /dev/null +++ b/libs/libfaketime/BUILD @@ -0,0 +1 @@ +make diff --git a/libs/libfaketime/DETAILS b/libs/libfaketime/DETAILS new file mode 100755 index 0000000000..39e23d3ee9 --- /dev/null +++ b/libs/libfaketime/DETAILS @@ -0,0 +1,14 @@ + SPELL=libfaketime + VERSION=0.9.1 + SOURCE=$SPELL-$VERSION.tar.gz +SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION + SOURCE_URL[0]=http://www.code-wizards.com/projects/$SPELL/$SOURCE + SOURCE_HASH=sha512:c1c5a60226dcbf56b7c854efae31712c6085bfcef3d55e11731c4ed84da4e08e7667a085f9ab2d507acc6140d76a5e807a741646a9a81d9f138c2be344b3faba + WEB_SITE=http://www.code-wizards.com/projects/libfaketime/ + ENTERED=20130307 + LICENSE[0]=GPL + SHORT="reports faked system time to programs" +cat << EOF +libfaketime (FakeTime Preload Library) reports faked system time to programs +without having to change the system-wide time +EOF diff --git a/libs/libfaketime/HISTORY b/libs/libfaketime/HISTORY new file mode 100644 index 0000000000..d769838db6 --- /dev/null +++ b/libs/libfaketime/HISTORY @@ -0,0 +1,3 @@ +2013-03-07 Ladislav Hagara <hgr@vabo.cz> + * DETAILS, PRE_BUILD, BUILD, INSTALL, libfaketime-0.9.1-fix-*patch: + spell created, version 0.9.1 diff --git a/libs/libfaketime/INSTALL b/libs/libfaketime/INSTALL new file mode 100755 index 0000000000..4e9106dde8 --- /dev/null +++ b/libs/libfaketime/INSTALL @@ -0,0 +1 @@ +make PREFIX=$INSTALL_ROOT/usr install diff --git a/libs/libfaketime/PRE_BUILD b/libs/libfaketime/PRE_BUILD new file mode 100755 index 0000000000..e09f54cdb2 --- /dev/null +++ b/libs/libfaketime/PRE_BUILD @@ -0,0 +1,4 @@ +default_pre_build && +cd $SOURCE_DIRECTORY && +patch -p1 < $SPELL_DIRECTORY/libfaketime-0.9.1-fix-as-needed.patch && +patch -p1 < $SPELL_DIRECTORY/libfaketime-0.9.1-fix-README-NEWS.patch diff --git a/libs/libfaketime/libfaketime-0.9.1-fix-README-NEWS.patch b/libs/libfaketime/libfaketime-0.9.1-fix-README-NEWS.patch new file mode 100644 index 0000000000..67175bbd53 --- /dev/null +++ b/libs/libfaketime/libfaketime-0.9.1-fix-README-NEWS.patch @@ -0,0 +1,28 @@ +From c0c19a71c5481f3082afee2ac7962bd7abfcf134 Mon Sep 17 00:00:00 2001 +From: Lukas Fleischer <info@cryptocrack.de> +Date: Sun, 22 Jan 2012 22:19:50 +0100 +Subject: [PATCH] Makefile: Fix installation of "README" and "NEWS" + +Initialize "INSTALL" in the top-level Makefile in order to avoid broken +install(1) invocations such as: + + dm0755 "/build/pkg/usr/share/doc/faketime/" + /bin/sh: dm0755: command not found + +Signed-off-by: Lukas Fleischer <info@cryptocrack.de> +--- + Makefile | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/Makefile b/Makefile +index f90e18e..d0225ba 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,3 +1,5 @@ ++INSTALL = install ++ + all: + $(MAKE) -C src all + $(MAKE) -C test all +-- +1.7.8.4 diff --git a/libs/libfaketime/libfaketime-0.9.1-fix-as-needed.patch b/libs/libfaketime/libfaketime-0.9.1-fix-as-needed.patch new file mode 100644 index 0000000000..39ef4ddafd --- /dev/null +++ b/libs/libfaketime/libfaketime-0.9.1-fix-as-needed.patch @@ -0,0 +1,38 @@ +From f0ee2ee1e0a2fa5f11614a55ab8543380faa9695 Mon Sep 17 00:00:00 2001 +From: Lukas Fleischer <info@cryptocrack.de> +Date: Sun, 22 Jan 2012 21:47:52 +0100 +Subject: [PATCH] Fix linking with "-Wl,--as-needed" + +Reorder linker flags in order to ensure proper linking when using +"--Wl,--as-needed". Read http://www.gentoo.org/proj/en/qa/asneeded.xml, +especially "Importance of linking order" for details: + + Basically, what the linker does is look for the symbols missing in a + given file (either an object file, a static archive or a library) + only in the files coming after it. When using the normal linking, + without --as-needed, this is not a problem, although there might be + some internal drawbacks on the linking stage, the files are linked + together without considering ordering. But with the flag, the + libraries that aren't used for resolving symbols are discarded and + thus not linked. + +Signed-off-by: Lukas Fleischer <info@cryptocrack.de> +--- + src/Makefile | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/Makefile b/src/Makefile +index 9118815..d4a04b5 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -69,7 +69,7 @@ ${OBJ}: faketime.c + ${CC} -o $@ -c ${CFLAGS} ${EXTRA_FLAGS} $< + + lib%.so.${SONAME}: %.o +- ${CC} -o $@ -Wl,-soname,$@ ${LDFLAGS} $< ++ ${CC} -o $@ -Wl,-soname,$@ $< ${LDFLAGS} + + clean: + @rm -f ${OBJ} ${LIBS} +-- +1.7.8.4 |