Your message dated Sun, 26 Jul 2020 18:20:41 +0000
with message-id <e1jzlgl-0000uq...@fasolo.debian.org>
and subject line Bug#964223: fixed in linuxtv-dvb-apps 1.1.1+rev1500-1.3
has caused the Debian Bug report #964223,
regarding linuxtv-dvb-apps: FTBFS with glibc 2.31 (uses removed stime function)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
964223: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964223
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: linuxtv-dvb-apps
Version: 1.1.1+rev1500-1.2
Severity: important
Tags: patch upstream

linuxtv-dvb-apps fails to build from source with glibc 2.31:

| CC dvbdate
| dvbdate.c: In function ‘set_time’:
| dvbdate.c:312:6: warning: implicit declaration of function ‘stime’; did you 
mean ‘ctime’? [-Wimplicit-function-declaration]
|   312 |  if (stime(new_time)) {
|       |      ^~~~~
|       |      ctime
| /usr/bin/ld: /tmp/cchQDddv.o: in function `set_time':
| ./util/dvbdate/dvbdate.c:312: undefined reference to `stime'
| /usr/bin/ld: ./util/dvbdate/dvbdate.c:312: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[3]: *** [../../Make.rules:82: dvbdate] Error 1
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/util/dvbdate'
| make[2]: *** [Makefile:10: all] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>/util'
| make[1]: *** [Makefile:14: all] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_build: error: make -j1 returned exit code 2
| make: *** [debian/rules:4: build] Error 25
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

The full build log is available there:
http://qa-logs.debian.net/2020/06/24/linuxtv-dvb-apps_1.1.1+rev1500-1.2_unstable_glibc-exp.log

The stime function has been marked as obsolete for some time, and since
glibc 2.31 it is no longer available to newly linked binaries. The
clock_settime function should be used instead.

You will find attached a patch fixing that. It would be nice if it can
be fixed relatively soon so that we can start the transition.

Regards,
Aurelien
diff -Nru linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/glibc-stime.patch 
linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/glibc-stime.patch
--- linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/glibc-stime.patch     
1970-01-01 00:00:00.000000000 +0000
+++ linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/glibc-stime.patch     
2020-07-03 20:13:33.000000000 +0000
@@ -0,0 +1,16 @@
+The obsolete function stime is no longer available to newly linked binaries
+since glibc 2.31. Replace it by clock_settime.
+
+--- a/util/dvbdate/dvbdate.c
++++ b/util/dvbdate/dvbdate.c
+@@ -309,7 +309,9 @@ int atsc_scan_date(time_t *rx_time, unsi
+  */
+ int set_time(time_t * new_time)
+ {
+-      if (stime(new_time)) {
++      struct timespec ts = { .tv_sec = new_time };
++
++      if (clock_settime(CLOCK_REALTIME, &ts)) {
+               perror("Unable to set time");
+               return -1;
+       }
diff -Nru linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/series 
linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/series
--- linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/series        2018-01-23 
17:50:35.000000000 +0000
+++ linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/series        2020-07-03 
20:13:33.000000000 +0000
@@ -9,3 +9,4 @@
 use-ldflags.patch
 fix-build-libpng16.patch
 dst_test-no-set-id.patch
+glibc-stime.patch

--- End Message ---
--- Begin Message ---
Source: linuxtv-dvb-apps
Source-Version: 1.1.1+rev1500-1.3
Done: Aurelien Jarno <aure...@debian.org>

We believe that the bug you reported is fixed in the latest version of
linuxtv-dvb-apps, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 964...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aure...@debian.org> (supplier of updated linuxtv-dvb-apps 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 19 Jul 2020 19:11:31 +0200
Source: linuxtv-dvb-apps
Architecture: source
Version: 1.1.1+rev1500-1.3
Distribution: unstable
Urgency: medium
Maintainer: Debian VDR Team <pkg-vdr-dvb-de...@lists.alioth.debian.org>
Changed-By: Aurelien Jarno <aure...@debian.org>
Closes: 964223
Changes:
 linuxtv-dvb-apps (1.1.1+rev1500-1.3) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Add a patch to replace the obsolete stime function (removed in glibc 2.31)
     by clock_settime. (Closes: #964223)
Checksums-Sha1:
 06afb5d3769a253b0b5898b12e4622b5180c1ef8 2190 
linuxtv-dvb-apps_1.1.1+rev1500-1.3.dsc
 7e915c7eeb6edf0af59a31eacad94a59d14c0944 18964 
linuxtv-dvb-apps_1.1.1+rev1500-1.3.debian.tar.xz
 17079092a7846320b8282762ab844c56848a82b0 5805 
linuxtv-dvb-apps_1.1.1+rev1500-1.3_source.buildinfo
Checksums-Sha256:
 0f7b3ec1662a33e4d2e0df4e37e4bc93726a00dfa6bdf7d3280c1e361e4b3ea5 2190 
linuxtv-dvb-apps_1.1.1+rev1500-1.3.dsc
 b49deeff0e7118d20235193baaeddc38c7f1d436a015fc2b4b28f59fb7bdace3 18964 
linuxtv-dvb-apps_1.1.1+rev1500-1.3.debian.tar.xz
 0c7a969689e20895cd9299c25da6cc12888f4258b6da67e3fec3d3aa7f40ce87 5805 
linuxtv-dvb-apps_1.1.1+rev1500-1.3_source.buildinfo
Files:
 df91c04cc8819987004bf2e10904946b 2190 video extra 
linuxtv-dvb-apps_1.1.1+rev1500-1.3.dsc
 623484e08f3746098ccadf4938e783be 18964 video extra 
linuxtv-dvb-apps_1.1.1+rev1500-1.3.debian.tar.xz
 1f22eae1690a225848a0bb72f5519381 5805 video extra 
linuxtv-dvb-apps_1.1.1+rev1500-1.3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAl8Ug94ACgkQE4jA+Jno
M2vFag/+Iny51KV0nXu6oPzlmW9o7PyFlObs8kVW3cydL6+/5yWifM/GDK6WvxMY
lB82tJQkMQpJQCt35lFR51Z+/3zvtS5B9DLsIjGvNjiyWUkF6Lakec4LBE83Ceiy
gjEA+wmPxv38pTyiAl9HwX+20+5B4sA4Skzfuq2d0LdcZ+Gbi31eS6Mi5mpWBn16
wJ6vmOUBMzAjq7raLpp+UnvOVTZAYR+dFAoB28Xi5z/VeL3wDhUpkdryBgme7uKH
kWFduqgIX1Kk7N1A9A+Ka5iu+CvL62O19IGzSKpGrZWFqgudjnAQtDNipVimyAFJ
idUyKLktZto1OM7BOcGqSLQ2Af6Sq2VkSjGuu/7Q5RKPEdIIArw3ejr7SF+RtHAp
ouReToa2GNXlC/ehGbPTBmmKyIACT+JT4CVgzBxF16f0l6BMGmQ8e35S+BIG+Q+d
AwGCbzIfrAu2Wl1+01FA23SRuJAjv1pZh0Gkg00On2u1REKQy+JR3oj++gR2kw3g
dNgb3dWYlLwntRZw0vFlIglAI1xv4QN21smmlGPdTGdVTnrb8ma11bojBIeuv7rx
micoZ/QhR2bD+MZgll6u0o8bQyMyfVn3/FtBkcLNEo9mdFMa4/SeGnyoB2tmPWHZ
8y9eixFj44zlT7IOzP/NVW7bkwUJ1KJ2+Em4RqDKT73zE4YcHZ0=
=uRxD
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
pkg-vdr-dvb-devel mailing list
pkg-vdr-dvb-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-vdr-dvb-devel

Reply via email to