Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447868 - =sci-electronics/magic-7.5.220 doesn't detect Tcl/Tk libraries
Summary: =sci-electronics/magic-7.5.220 doesn't detect Tcl/Tk libraries
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Soldering-Iron Brotherhood
Keywords: PATCH
Depends on:
Reported: 2012-12-19 19:13 UTC by Marios Andreopoulos
Modified: 2013-04-22 09:18 UTC (History)
0 users

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

magic 7.5.220 ebuild patch (magic-ebuild-7.5.220.patch,366 bytes, patch)
2012-12-19 19:14 UTC, Marios Andreopoulos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marios Andreopoulos 2012-12-19 19:13:34 UTC
I am on a ~amd64 system. When I try to build sci-electronics/magic (tried versions 7.5 and 8.0), the build system doesn't detect the tcl and tk libraries.

Magic without tcl/tk support is not useful to anyone.

To fix the problem, one has to set the --with-tcllibs and --with-tklibs at the configure phase.
During build, magic reports incorrect switches to fix the problem (--with-tcl and --with-tk) so the solution isn't obvious.

This fix probably should be applied to all magic ebuilds. I am sorry but I hadn't time to test them.

One problem remains with magic, though it is only annoying and doesn't limit functionality. At build, a file named is created by gcc, which serves as a generic technology file. gcc-4.6 can not create correctly this file, so during start-up magic complains a lot about errors in this default file.

Reproducible: Always

My system information if there is any relevance to why Tcl/Tk cannot be detected:

Portage (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.6.6-gentoo-Miles x86_64)
System uname: Linux-3.6.6-gentoo-Miles-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6600_@_2.20GHz-with-gentoo-2.2
Timestamp of tree: Wed, 19 Dec 2012 18:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p39-r1
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/pkgconfig:       0.27.1
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.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo sunrise x-personal qt kde
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=core2 -mtune=native"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -mtune=native"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userpriv"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/personal /usr/portage/local/layman/qt /usr/portage/local/layman/kde"
USE="7zip X a52 aac aalib acl acpi addressbook akonadi alsa amd64 amr apache2 archive asf attica audiofile avahi avi bash-completion berkdb bluetooth boost branding browserplugin btrfs bzip2 cairo calendar canberra canvas cdaudio cdda cddb cdparanoia cdr cjk cleartype cli commercial consolekit cracklib crypt cryptsetup css cups cxx dbus declarative designer-plugin desktopglobe dga dio dirac divx4linux djvu dlloader dlna dri drm dts dv dvb dvd dvdr dvdread ebook editor emboss encode exif exiv2 fam fat ffmpeg firefox fits flac flash fontconfig foomatic-db fortran freetype frei0r ftp fuse gallium gcj gd gdbm geolocation gif gimp git gles glib glut gmp gphoto2 gpm gps gpu gsm gstreamer gtk gtk2 htmlhandbook iconv icu id3 id3tag imagemagick imlib ipv6 ithreads jack java java6 javascript jdbc jingle jit jpeg jpeg2k kde kexi kipi kontact kpathsea ladspa lame laptop latex lcd lcms ldap lensfun libass libnotify libsamplerate lm_sensors logrotate mad marble matroska mbox mdadm memlimit messenger mhash mime mmx mmxext mng modules mozilla mp3 mp4 mpeg mpeg2 mplayer msn mtp mudflap multilib musicbrainz mysql mysqli ncurses nepomuk network networkmanager nfs nls nocd nptl nsplugin ntfs nvidia obex offensive ogg ogm opengl openmp optimized-qmake otr pam pango pcmcia pcre pdf pdflib perl phonon php plasma plotutils plugins png policykit posix ppds pppd private-headers ps pulseaudio python qt qt3support qt4 quicktime rdesktop rdp readline recode reiser4 reiserfs remote reports rrdtool rss ruby samba scanner sdl semantic-desktop session shout skins skype slp smp sms smtp sndfile snmp sockets socks5 solver sox speex spell sql sqlite srt sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification stats stream svg swat tcpd theora threads thumbnail tidy tiff timidity tools truetype twitter udev udisks unicode upnp upower usb v4l v4l2 vaapi vcd vdpau vhosts visualization vlm vnc vorbis vpx webdav webinterface webkit wifi wireshark wlm wma wxwidgets wxwindows x264 xattr xcb xcomposite xfs xine xinerama xml xml2 xmp xrandr xscreensaver xulrunner xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="intel8x0 intel8x0m hda-intel usb-audio" 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="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 proxy proxy_http proxy_balancer" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" 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="evdev keyboard mouse joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport wiki-publisher" LINGUAS="el gr en_GB en el en_US el_GR" LIRC_DEVICES="audio audio_alsa kworld all" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau intel i965 radeon v4l vesa" 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"
Comment 1 Marios Andreopoulos 2012-12-19 19:14:26 UTC
Created attachment 332732 [details, diff]
magic 7.5.220 ebuild patch
Comment 2 Michael Weber (RETIRED) gentoo-dev 2013-04-22 09:18:06 UTC
+*magic-8.0.131 (22 Apr 2013)
+*magic-7.5.202-r1 (22 Apr 2013)
+  22 Apr 2013; Michael Weber <> -magic-7.4.46.ebuild,
+  +magic-7.5.202-r1.ebuild, +files/magic-7.5.202-include.patch,
+  +files/magic-7.5.202-install.patch, -magic-7.5.220.ebuild,
+  magic-7.5.230.ebuild, -magic-8.0.109.ebuild, -magic-8.0.125.ebuild,
+  +magic-8.0.131.ebuild, +files/magic-8.0.131-sed.patch:
+  Revbump to fix current stable version (install binaries, bug 422687, detect
+  tcl/tk, bug 447868, include stdlib). Version bump to latest upstream stable.
+  Version bump to latest upstream development. Drop old and broken versions.