• Bug#1067247: pulseaudio: #error "_TIME_BITS=64 is allowed only with _FI

    From Thorsten Glaser@21:1/5 to All on Wed Mar 20 21:10:01 2024
    Source: pulseaudio
    Version: 16.1+dfsg1-3
    Severity: serious
    Justification: FTBFS
    Tags: ftbfs
    X-Debbugs-Cc: tg@mirbsd.de

    Unfortunately, as with umockdev, I have no idea what is going on
    here… does it #undef _FILE_OFFSET_BITS or something?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon McVittie@21:1/5 to Thorsten Glaser on Thu Mar 21 13:50:01 2024
    On Wed, 20 Mar 2024 at 20:00:32 +0000, Thorsten Glaser wrote:
    Unfortunately, as with umockdev, I have no idea what is going on
    here… does it #undef _FILE_OFFSET_BITS or something?

    Yes it does. padsp(1) is based on a LD_PRELOAD module similar to those
    used in fakeroot, fakechroot, umockdev and so on, which works by
    interposing a bunch of glibc functions including stat(). As currently implemented, it achieves this by #undef'ing the _FILE_OFFSET_BITS feature
    test so that it can interpose all flavours of stat(), including
    stat64() and so on.

    Since glibc 2.34, on 32-bit architectures all such LD_PRELOAD modules
    need updating to also interpose __lstat64_time64(), __stat64_time64(), __fstat64_time64() and __fstatat64_time64() on architectures where they
    exist - otherwise, programs and libraries compiled with 64-bit time_t
    will bypass the wrapped stat(), stat64() etc. and call __stat64_time64() instead, and therefore the wrapping will be ineffective and padsp will
    not work as intended.

    Because padsp is not core functionality for pulseaudio, a brute-force
    approach to unblocking this could be to disable it on 32-bit non-i386 architectures. Untested pseudocode:

    --- meson.build
    +++ meson.build
    if cc.has_header('sys/soundcard.h', required: get_option('oss-output'))
    # OSS output via daemon module-detect
    cdata.set('HAVE_OSS_OUTPUT', 1)
    # OSS wrapper
    - cdata.set('HAVE_OSS_WRAPPER', 1)
    + if cc.sizeof('void *') >= 8 or host_machine.cpu_family() == 'x86'
    + cdata.set('HAVE_OSS_WRAPPER', 1)
    + endif
    cdata.set('PULSEDSP_LOCATION', pulsedsp_location)
    endif

    (and then change the packaging to tolerate it not being installed)

    In practice padsp is mainly useful for legacy i386 binaries and maybe
    a few very early legacy amd64 binaries (late 90s/early 00s era games, especially ported by Loki Games) which might assume OSS audio, and not
    support ALSA or PulseAudio directly. Since we're breaking the platform ABI
    on armel/armhf/etc. *anyway*, we can't rely on the ability to run legacy binaries even if they exist, so it's probably no longer interesting to
    provide padsp on those architectures.

    smcv

    --- SoupGate-Win32 v1.05
    * Origin: fsxN
  • From Debian Bug Tracking System@21:1/5 to All on Thu Mar 21 20:40:02 2024
    Processing control commands:

    tag -1 pending
    Bug #1067247 [src:pulseaudio] pulseaudio: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
    Bug #1066995 [src:pulseaudio] pulseaudio: FTBFS with _TIME_BITS=64 on 32-bit systems
    Added tag(s) pending.
    Added tag(s) pending.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jeremy Bicha@21:1/5 to All on Thu Mar 21 20:40:02 2024
    Control: tag -1 pending

    Hello,

    Bug #1067247 in pulseaudio reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/pulseaudio-team/pulseaudio/-/commit/5209c2fc46630722f1aaa3c0bbf88a9f843cd27c

    ------------------------------------------------------------------------ Selectively disable libpulsedsp & padsp on 32-bit non-i386 architectures

    Thanks: Simon McVittie, Steve Langasek

    Closes: #1067247 ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1067247

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

    Your message dated Thu, 21 Mar 2024 19:51:16 +0000
    with message-id <E1rnORY-00D6C9-QH@fasolo.debian.org>
    and subject line Bug#1067247: fixed in pulseaudio 16.1+dfsg1-4
    has caused the Debian Bug report #1067247,
    regarding pulseaudio: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
    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.)


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

    Received: (at submit) by bugs.debian.org; 20 Mar 2024 20:00:50 +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=-4.0 required=4.0 tests=BAYES_00,SPF_HELO_NONE,
    SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 7; hammy, 127; neutral, 21; spammy, 0.
    spammytokens: hammytokens:0.000-+--XDebbugsCc, 0.000-+--X-Debbugs-Cc,
    0.000-+--dfsg1-3, 0.000-+--H*RU:tg@mirbsd.de, 0.000-+--H*rp:D*mirbsd.de Return-path: <tg@mirbsd.de>
    Received: from herc.mirbsd.org ([2001:470:1f15:10c:202:b3ff:feb7:54e8]:36498)
    by buxtehude.debian.org with esmtps (TLS1.0:RSA__AES_256_CBC__SHA1:256)
    (Exim 4.94.2)
    (envelope-from <tg@mirbsd.de>)
    id 1rn27G-00B65G-CM
    for submit@bugs.deb