Merge ~ahasenack/ubuntu/+source/backuppc-rsync:noble-backuppc-rsync-fix-gettimeofday-detection into ubuntu/+source/backuppc-rsync:ubuntu/devel

Proposed by Andreas Hasenack
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merged at revision: 70d4434d19d04ed2c51b3988679acc6416db4b99
Proposed branch: ~ahasenack/ubuntu/+source/backuppc-rsync:noble-backuppc-rsync-fix-gettimeofday-detection
Merge into: ubuntu/+source/backuppc-rsync:ubuntu/devel
Diff against target: 44 lines (+24/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/fix-gettimeofday-detection.patch (+16/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Bryce Harrington (community) Approve
Canonical Server Reporter Pending
Review via email: mp+464573@code.launchpad.net

Description of the change

This fixes the gettimeofday() configure test, which was failing due to an implicit-function-declaration warning/error, and not because of the arguments.

The TL;DR for the bug is this comment: https://bugs.launchpad.net/ubuntu/+source/backuppc-rsync/+bug/2061966/comments/2

PPA: https://launchpad.net/~ahasenack/+archive/ubuntu/backuppc-rsync-ftbfs

Upstream seems dead, but I'll forward a patch to their github tracker and debian so at least others can find it.

It doesn't look like this package should be in main... :(

To post a comment you must log in.
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The key thing to check is this output from configure:

checking if gettimeofday takes tz argument... yes

It was "no" before.

Revision history for this message
Bryce Harrington (bryce) wrote :

gotta love autopkgtest. sounds like the debugging was convoluted but makes sense

Thanks for forwarding the fix upstream and to debian, hopefully one way or another that lets this get back in sync.

LGTM, +1.

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: ahasenack, bryce
Uploaders: ahasenack, bryce
MP auto-approved

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks!

Uploaded:
Uploading backuppc-rsync_3.1.3.0-3ubuntu1.dsc
Uploading backuppc-rsync_3.1.3.0-3ubuntu1.debian.tar.xz
Uploading backuppc-rsync_3.1.3.0-3ubuntu1_source.buildinfo
Uploading backuppc-rsync_3.1.3.0-3ubuntu1_source.changes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 9dc3780..55c8c6b 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+backuppc-rsync (3.1.3.0-3ubuntu1) noble; urgency=medium
7+
8+ * d/p/fix-gettimeofday-detection.patch: fix configure check for
9+ gettimeofday() (LP: #2061966)
10+
11+ -- Andreas Hasenack <andreas@canonical.com> Wed, 17 Apr 2024 19:25:18 -0300
12+
13 backuppc-rsync (3.1.3.0-3build2) noble; urgency=high
14
15 * No change rebuild for 64-bit time_t and frame pointers.
16diff --git a/debian/patches/fix-gettimeofday-detection.patch b/debian/patches/fix-gettimeofday-detection.patch
17new file mode 100644
18index 0000000..5259167
19--- /dev/null
20+++ b/debian/patches/fix-gettimeofday-detection.patch
21@@ -0,0 +1,16 @@
22+Description: fix detection of gettimeofday() arguments
23+Author: Andreas Hasenack <andreas.hasenack@canonical.com>
24+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066438
25+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/backuppc-rsync/+bug/2061966
26+Forwarded: https://github.com/backuppc/rsync-bpc/pull/41
27+Last-Update: 2024-04-17
28+--- a/configure.ac
29++++ b/configure.ac
30+@@ -852,6 +852,7 @@ fi
31+
32+ AC_CACHE_CHECK([if gettimeofday takes tz argument],rsync_cv_HAVE_GETTIMEOFDAY_TZ,[
33+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>
34++#include <stdlib.h>
35+ #include <unistd.h>]], [[struct timeval tv; exit(gettimeofday(&tv, NULL));]])],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=no])])
36+ if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
37+ AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [Define to 1 if gettimeofday() takes a time-zone arg])
38diff --git a/debian/patches/series b/debian/patches/series
39new file mode 100644
40index 0000000..8c0b49f
41--- /dev/null
42+++ b/debian/patches/series
43@@ -0,0 +1 @@
44+fix-gettimeofday-detection.patch

Subscribers

People subscribed via source and target branches