Accepting request 774142 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/774142
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/datefudge?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2020-02-15 21:21:51 +00:00 committed by Git OBS Bridge
commit b5ec020040
6 changed files with 73 additions and 29 deletions

View File

@ -5,34 +5,36 @@ Format: 3.0 (native)
Source: datefudge
Binary: datefudge
Architecture: any
Version: 1.22
Version: 1.23
Maintainer: Robert Luberda <robert@debian.org>
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/users/robert/datefudge.git/
Vcs-Git: https://anonscm.debian.org/git/users/robert/datefudge.git
Build-Depends: debhelper (>= 9)
Standards-Version: 4.4.0
Vcs-Browser: https://salsa.debian.org/debian/datefudge
Vcs-Git: https://salsa.debian.org/debian/datefudge.git
Testsuite: autopkgtest
Testsuite-Triggers: coreutils, perl
Build-Depends: debhelper (>= 12)
Package-List:
datefudge deb devel optional arch=any
Checksums-Sha1:
1c60c7582bff8dbc5960b48bea76a4d27eaf1b18 12964 datefudge_1.22.tar.xz
66deb945ea979e707091dcc3020e58a3f7ffb806 13952 datefudge_1.23.tar.xz
Checksums-Sha256:
2dc6e4f8808726339f1c7358f9874128031bd940baac396477ab297b5d7ef445 12964 datefudge_1.22.tar.xz
3b7668a107145e9d3d47b10520ce623c1b6dc15f571050d6140c2356c1a2d645 13952 datefudge_1.23.tar.xz
Files:
c434f7286bfe30ade3d78db42b7b220b 12964 datefudge_1.22.tar.xz
a8da2bf4a7fb29f213b9b44a2a740d2e 13952 datefudge_1.23.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEENeh2+rTTcy6TtNI3Yx3nVTvor9QFAliWX6UACgkQYx3nVTvo
r9QGhRAAj6bTj1eIKFUmpgnv5f2MVMrN4vYh5RCaCqYRk9TvR5QoCN2kkHGhmYYQ
OMtznjjjSNwbIz1nwFHxq/f64639qOkq62Cz9YZBgfEjU0KEg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5UTqG+7/fboevSFoJhirbk6BJ6zvaw1W3asmy/OepI
v2iyoyquFqtKXFC7fC0Gj+mcWZ6uVWN5RteC62Ij99klkpBQ74JgT21v3Kl/ji4M
Id1pf5GSUdeOdycKWNabulPhYifq7A/tcT5SgT5ZcX+RnBpCKqN+lQJSWb+ID4Y7
gUKn0efWgizyZMG/dTg1n84d5tNGAjJJbE2THxYcdEjqwE256FDoQPapUhcTZqrR
xlAf5W/TTDa5VjL6mFKLdMiAXQEDFFZ4D1LsVz/GxuJVUdeUM8U=
=uqq1
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Feb 12 09:00:14 UTC 2020 - Martin Liška <mliska@suse.cz>
- Add glibc-2.31-fix.patch in order to fix boo#1162963.
-------------------------------------------------------------------
Fri Feb 7 12:43:17 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 1.23: no changelog found.
-------------------------------------------------------------------
Mon Nov 13 10:24:29 UTC 2017 - astieger@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package datefudge
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,21 +12,22 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: datefudge
Version: 1.22
Version: 1.23
Release: 0
Summary: A preload library to fake system time
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
License: GPL-2.0+
License: GPL-2.0-or-later
Group: Development/Tools
Url: http://packages.qa.debian.org/d/datefudge.html
URL: http://packages.qa.debian.org/d/datefudge.html
Source: http://cdn.debian.net/debian/pool/main/d/datefudge/%{name}_%{version}.tar.xz
Source2: http://cdn.debian.net/debian/pool/main/d/datefudge/%{name}_%{version}.dsc#/%{name}.asc
Source3: https://db.debian.org/fetchkey.cgi?fingerprint=35E876FAB4D3732E93B4D237631DE7553BE8AFD4#/%{name}.keyring
Patch0: glibc-2.31-fix.patch
%description
This program fakes the system date so that programs think the
@ -39,6 +40,7 @@ echo "`grep -A1 "Files:" %{SOURCE2} | grep %{name}_%{version}.tar.xz | cut -d\
echo "`grep -A1 "Checksums-Sha1" %{SOURCE2} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | sha1sum -c
echo "`grep -A1 "Checksums-Sha256" %{SOURCE2} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | sha256sum -c
%setup -q
%patch0 -p1
sed "s/VERSION := \$\(.*\)/VERSION := %{version}/g" -i Makefile
sed 's/-o root -g root/-p/g' -i Makefile

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2dc6e4f8808726339f1c7358f9874128031bd940baac396477ab297b5d7ef445
size 12964

3
datefudge_1.23.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3b7668a107145e9d3d47b10520ce623c1b6dc15f571050d6140c2356c1a2d645
size 13952

30
glibc-2.31-fix.patch Normal file
View File

@ -0,0 +1,30 @@
diff --git a/datefudge.c b/datefudge.c
index fe93ef8..3785563 100644
--- a/datefudge.c
+++ b/datefudge.c
@@ -66,8 +66,13 @@ time_t time(time_t *x) {
#endif
+#if __GLIBC_PREREQ (2, 31)
+int __gettimeofday(struct timeval *x, void *y) {
+ static int (*libc_gettimeofday)(struct timeval *, void *) = NULL;
+#else
int __gettimeofday(struct timeval *x, struct timezone *y) {
static int (*libc_gettimeofday)(struct timeval *, struct timezone *) = NULL;
+#endif
int res;
if(!libc_gettimeofday)
@@ -78,7 +83,11 @@ int __gettimeofday(struct timeval *x, struct timezone *y) {
return 0;
}
+#if __GLIBC_PREREQ (2, 31)
+int gettimeofday(struct timeval *x, void *y) {
+#else
int gettimeofday(struct timeval *x, struct timezone *y) {
+#endif
return __gettimeofday(x,y);
}