Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462776 - x11-libs/fltk-1.3.2 wrong FLTK_INCLUDE_DIRS in /usr/share/cmake/Modules/FLTKConfig.cmake
Summary: x11-libs/fltk-1.3.2 wrong FLTK_INCLUDE_DIRS in /usr/share/cmake/Modules/FLTKC...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Desktop Misc. Team
URL: https://www.fltk.org/str.php?L3264
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-23 12:16 UTC by Michael Weber (RETIRED)
Modified: 2019-11-15 22:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2013-03-23 12:16:31 UTC
Include files are installed at /usr/include/fltk-1/ (e.g. /usr/include/fltk-1/FL/Fl.H) but /usr/share/cmake/Modules/FLTKConfig.cmake lists 
SET(FLTK_INCLUDE_DIRS "/usr/include")
which lacks the fltk-1 part.


Portage 2.2.0_alpha166 (default/linux/amd64/13.0/developer, gcc-4.7.2, glibc-2.16.0, 3.7.10-gentoo-b-4.0 x86_64)
=================================================================
System uname: Linux-3.7.10-gentoo-b-4.0-x86_64-Westmere_E56xx-L56xx-X56xx_-Nehalem-C-with-gentoo-2.2
KiB Mem:     1012964 total,    128376 free
KiB Swap:    2097148 total,   2055016 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo local xmw
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/rancid/.cloginrc /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/xmw-overlay"
SYNC="cvs://xmw@cvs.gentoo.org:/var/cvsroot"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jbig jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 readline sdl session snmp spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers gentoo-dev 2013-03-27 15:43:17 UTC
--- files/FLTKConfig.cmake      16 May 2007 09:47:42 -0000      1.1
+++ files/FLTKConfig.cmake      27 Mar 2013 15:41:34 -0000
@@ -13,7 +13,7 @@
 SET(FLTK_EXECUTABLE_DIRS "/usr/bin")
 SET(FLTK_LIBRARY_DIRS "/usr/lib")
 SET(FLTK_LIBRARIES "fltk_images;fltk_gl;fltk_forms;fltk")
-SET(FLTK_INCLUDE_DIRS "/usr/include")
+SET(FLTK_INCLUDE_DIRS "/usr/include/fltk-1")
 
 # The C and C++ flags added by FLTK to the cmake-configured flags.
 SET(FLTK_REQUIRED_C_FLAGS "")

That one's easy, but it also has:

# The location of the UseFLTK.cmake file.          
SET(FLTK11_USE_FILE "/usr/share/cmake/Modules/FLTKUse.cmake")

which doesn't get installed by this version, it seems.
Comment 2 Jeroen Roovers gentoo-dev 2013-03-27 15:44:47 UTC
And the FLTK_VERSION_* values seem wrong, too. Do you have many cmake projects that actually use this file (instead of fltk-config)?
Comment 3 Michael Weber (RETIRED) gentoo-dev 2013-03-27 22:07:34 UTC
(In reply to comment #2)
> And the FLTK_VERSION_* values seem wrong, too. Do you have many cmake
> projects that actually use this file (instead of fltk-config)?

I just stumbled upon this handling oyranos version bump/buildsystem switch (bug 450494).
Comment 4 Jeroen Roovers gentoo-dev 2019-11-15 10:24:39 UTC
It looks like the autotools build system does not use CMake/*cmake.in to generate the files we install. Only the cmake build system does that.
Comment 5 Larry the Git Cow gentoo-dev 2019-11-15 22:21:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2abc8d0bb878cfa6804571de88b8b0c28e79fb99

commit 2abc8d0bb878cfa6804571de88b8b0c28e79fb99
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2019-11-15 22:20:37 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2019-11-15 22:21:11 +0000

    x11-libs/fltk: Maybe fix FLTK_INCLUDE_DIRS in cmake files
    
    Package-Manager: Portage-2.3.79, Repoman-2.3.18
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=462776
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 x11-libs/fltk/files/fltk-1.3.5-cmake.patch         | 33 ++++++++++++++++++++++
 x11-libs/fltk/files/fltk-1.3.5-optim.patch         | 11 ++++++++
 .../{fltk-1.3.5-r3.ebuild => fltk-1.3.5-r4.ebuild} |  6 ++--
 x11-libs/fltk/fltk-1.3.9999.ebuild                 |  6 ++--
 x11-libs/fltk/fltk-1.4.9999.ebuild                 |  6 ++--
 5 files changed, 50 insertions(+), 12 deletions(-)