[Pkg-pascal-devel] Bug#845504: /usr/bin/ppdep-3.0.0: Claims to understand conditional defines, but doesn't handle {$ELSE}
Ben Longbons
brlongbons at gmail.com
Thu Nov 24 02:14:58 UTC 2016
Package: fp-utils-3.0.0
Version: 3.0.0+dfsg-9
Severity: important
File: /usr/bin/ppdep-3.0.0
Dear Maintainer,
In the `gearhead` package, `ppdep gharena.pas` produces almost no
output, whereas `ppdep -dSDLMODE gharena.pas` produces plenty.
Relevant source snippet:
{$IFDEF SDLMODE}
uses gears,sdlgfx,arenahq,sdlmenus,randchar,navigate,sdlmap;
{$ELSE}
uses gears,congfx,arenahq,conmenus,randchar,navigate,context,mapedit;
{$ENDIF}
Expected output:
gharena: gharena.pas <huge list of .ppu files>
foo.ppu: foo.pp <possible list of other .ppu files>
Actual output:
gharena: gharena.pas
Workaround:
{$IFNDEF SDLMODE}
{$DEFINE TUIMODE}
{$ENDIF}
{$IFDEF SDLMODE}
uses gears,sdlgfx,arenahq,sdlmenus,randchar,navigate,sdlmap;
{$ENDIF}
{$IFDEF TUIMODE}
uses gears,congfx,arenahq,conmenus,randchar,navigate,context,mapedit;
{$ENDIF}
... and so on, 269 more times. Assuming none of those {$ELSE}s is for
something "else" besides {$IFDEF SDLMODE}.
-- System Information:
Debian Release: stretch/sid
APT prefers testing-debug
APT policy: (600, 'testing-debug'), (600, 'testing'), (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32
Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages fp-utils-3.0.0 depends on:
ii fpc-source-3.0.0 3.0.0+dfsg-9
ii libc6 2.24-5
Versions of packages fp-utils-3.0.0 recommends:
ii fp-compiler-3.0.0 3.0.0+dfsg-9
fp-utils-3.0.0 suggests no packages.
-- no debconf information
More information about the Pkg-pascal-devel
mailing list