Package: libfltk1.3-dev
Version: 1.3.3-8+b1
Severity: normal
Tags: upstream

Dear maintainer,

Please consider fixing or working with upstream to fix how fltk-config
exports compiler flags via --cflags and --cxxflags.

On my system, fltk-config gives the following:

    $(fltk-config --cflags).strip().split()
    ['-I/usr/include/cairo',
     '-I/usr/include/glib-2.0',
     '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include',
     '-I/usr/include/pixman-1',
     '-I/usr/include/freetype2',
     '-I/usr/include/libpng16',
     '-I/usr/include/freetype2',
     '-DCP936',
     '-D_LARGEFILE_SOURCE',
     '-D_LARGEFILE64_SOURCE',
     '-D_THREAD_SAFE',
     '-D_REENTRANT']

    $(fltk-config --cxxflags).strip().split()
    ['-I/usr/include/cairo',
     '-I/usr/include/glib-2.0',
     '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include',
     '-I/usr/include/pixman-1',
     '-I/usr/include/freetype2',
     '-I/usr/include/libpng16',
     '-I/usr/include/freetype2',
     '-I/usr/include/cairo',
     '-I/usr/include/glib-2.0',
     '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include',
     '-I/usr/include/pixman-1',
     '-I/usr/include/freetype2',
     '-I/usr/include/libpng16',
     '-fvisibility-inlines-hidden',
     '-D_LARGEFILE_SOURCE',
     '-D_LARGEFILE64_SOURCE',
     '-D_THREAD_SAFE',
     '-D_REENTRANT']

The -D options should probably not be imposed on users as part of the
fltk API. These should really be up to users and projects to select if
needed/desired.

The -fvisibility-inlines-hidden option should *definitely* not be
imposed on users of fltk just because fltk chose to build itself with
that option.

Basically fltk-config should be much more conservative in what options
it exports to users of the library, and only present the absolute
minimum set of flags needed to build against fltk.

Looks related to earlier bugs #677705, #809825. Ideally can be fixed
upstream as this affects all distributions.


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 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 libfltk1.3-dev depends on:
ii  libfltk-cairo1.3   1.3.3-8+b1
ii  libfltk-forms1.3   1.3.3-8+b1
ii  libfltk-gl1.3      1.3.3-8+b1
ii  libfltk-images1.3  1.3.3-8+b1
ii  libfltk1.3         1.3.3-8+b1
ii  libx11-dev         2:1.6.3-1

Versions of packages libfltk1.3-dev recommends:
ii  fluid                          1.3.3-8+b1
ii  libgl1-mesa-dev [libgl-dev]    11.2.2-1
ii  libglu1-mesa-dev [libglu-dev]  9.0.0-2.1

Versions of packages libfltk1.3-dev suggests:
ii  fltk1.3-doc                        1.3.3-8
ii  libcairo2-dev                      1.14.6-1+b1
ii  libjpeg-dev                        1:1.5.0-1
ii  libjpeg62-turbo-dev [libjpeg-dev]  1:1.5.0-1
ii  libpng-dev                         1.6.23-1
ii  libxext-dev                        2:1.3.3-1
ii  libxft-dev                         2.3.2-1
ii  libxinerama-dev                    2:1.1.3-1+b1
ii  zlib1g-dev [libz-dev]              1:1.2.8.dfsg-2+b1

-- no debconf information

Reply via email to