• Bug#1067830: gri: FTBFS on arm{el,hf}: gr.cc:426:22: error: cannot conv

    From Sebastian Ramacher@21:1/5 to All on Wed Mar 27 11:50:01 2024
    Source: gri
    Version: 2.12.27-1.1
    Severity: serious
    Tags: ftbfs
    Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: sramacher@debian.org

    https://buildd.debian.org/status/fetch.php?pkg=gri&arch=armel&ver=2.12.27-1.1%2Bb2&stamp=1711504387&raw=0

    g++ -DDEFAULT_GRI_DIR=\"/usr/share/gri/2.12.27/\" -DPACKAGE_NAME=\"gri\" -DPACKAGE_TARNAME=\"gri\" -DPACKAGE_VERSION=\"2.12.27\" -DPACKAGE_STRING=\"gri\ 2.12.27\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"gri\" -DVERSION=\"2.12.27\" -DGRI_
    IS_BIG_ENDIAN=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBNETCDF=1 -DHAVE_
    LIBREADLINE=1 -DHAVE_ISNAN=1 -DHAVE_ISINF=1 -DHAVE_ACOSH=1 -DHAVE_GETCWD=1 -DHAVE_POPEN=1 -DHAVE_MKSTEMP=1 -DHAVE_TMPNAM=1 -DHAVE_TEMPNAM=1 -DHAVE_GETHOSTNAME=1 -DHAVE_ACCESS=1 -DHAVE_LSTAT=1 -DHAVE_STAT=1 -DHAVE_STRERROR=1 -DHAVE_GETENV=1 -DHAVE_DRAND48=
    1 -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -DCPLUSPLUSNEW -I/usr/include -O2 -c -o gr.o gr.cc
    gr.cc: In function ‘void insert_ps_header(FILE*, bool)’:
    gr.cc:426:22: error: cannot convert ‘long int*’ to ‘time_t*’ {aka ‘long long int*’}
    426 | time(&sec);
    | ^~~~
    | |
    | long int*
    In file included from /usr/include/features.h:490,
    from /usr/include/ctype.h:25,
    from gr.cc:31:
    /usr/include/time.h:86:15: note: initializing argument 1 of ‘time_t time(time_t*)’
    86 | extern time_t __REDIRECT_NTH (time, (time_t *__timer), __time64);
    | ^~~~~~~~~~~~~~
    gr.cc:427:71: error: cannot convert ‘long int*’ to ‘const time_t*’ {aka ‘const long long int*’}
    427 | fprintf(fp, "%%%%CreationDate: %s", asctime(localtime(&sec)));
    | ^~~~
    | |
    | long int*
    /usr/include/time.h:141:19: note: initializing argument 1 of ‘tm* localtime(const time_t*)’
    141 | extern struct tm *__REDIRECT_NTH (localtime, (const time_t *__timer),
    | ^~~~~~~~~~~~~~
    make[2]: *** [Makefile:610: gr.o] Error 1

    Cheers
    --
    Sebastian Ramacher

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sebastian Ramacher@21:1/5 to All on Thu Apr 11 23:40:01 2024
    Control: tags 1067830 + patch

    Dear maintainer,

    I've prepared an NMU for gri (versioned as 2.12.27-1.2). The diff
    is attached to this message.

    Cheers
    --
    Sebastian Ramacher

    diff -Nru gri-2.12.27/debian/changelog gri-2.12.27/debian/changelog
    --- gri-2.12.27/debian/changelog 2022-08-25 18:33:47.000000000 +0200
    +++ gri-2.12.27/debian/changelog 2024-04-11 23:23:28.000000000 +0200
    @@ -1,3 +1,11 @@
    +gri (2.12.27-1.2) unstable; urgency=medium
    +
    + * Non-maintainer upload.
    + * debian/patches: Apply upstream patch to fix build with 64 bit time_t on
    + armel and armhf. (Closes: #1067830)
    +
    + -- Sebastian Ramacher <sramacher@debian.org> Thu, 11 Apr 2024 23:23:28 +0200 +
    gri (2.12.27-1.1) unstable; urgency=medium

    * Non-maintainer upload.
    diff -Nru gri-2.12.27/debian/patches/fix-build-with-t64.patch gri-2.12.27/debian/patches/fix-build-with-t64.patch
    --- gri-2.12.27/debian/patches/fix-build-with-t64.patch 1970-01-01 01:00:00.000000000 +0100
    +++ gri-2.12.27/debian/patches/fix-build-with-t64.patch 2024-04-11 23:22:33.000000000 +0200
    @@ -0,0 +1,40 @@
    +From 4d93a4e76543b914400d9e425e7c2de5c9dbb58d Mon Sep 17 00:00:00 2001
    +From: dankelley <kelley.dan@gmail.com>
    +Date: Fri, 5 Apr 2024 07:10:17 -0300
    +Subject: [PATCH] possibly fix deb
  • From Debian Bug Tracking System@21:1/5 to All on Thu Apr 11 23:40:01 2024
    Processing control commands:

    tags 1067830 + patch
    Bug #1067830 [src:gri] gri: FTBFS on arm{el,hf}: gr.cc:426:22: error: cannot convert ‘long int*’ to ‘time_t*’ {aka ‘long long int*’}
    Added tag(s) patch.

    --
    1067830: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067830
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Fri Apr 12 00:00:02 2024
    This is a multi-part message in MIME format...

    Your message dated Thu, 11 Apr 2024 21:49:33 +0000
    with message-id <E1rv2IX-00C2Dj-Ks@fasolo.debian.org>
    and subject line Bug#1067830: fixed in gri 2.12.27-1.2
    has caused the Debian Bug report #1067830,
    regarding gri: FTBFS on arm{el,hf}: gr.cc:426:22: error: cannot convert ‘long int*’ to ‘time_t*’ {aka ‘long long int*’}
    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 owner@bugs.debian.org
    immediately.)


    --
    1067830: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067830
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 27 Mar 2024 10:38:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-105.1 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
    FROMDEVELOPER,SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST autolearn=ham
    autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 44; hammy, 150; neutral, 104; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:108, 0.000-+--H*RT:311
    Return-path: <sramacher@debian.org>
    Received: from stravinsky.debian.org ([2001:41b8:202:deb::31