Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460758 - net-irc/hexchat[-gtk] fails to compile without installed x11-libs/gtk+:2
Summary: net-irc/hexchat[-gtk] fails to compile without installed x11-libs/gtk+:2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Denis M. (Phr33d0m)
URL: https://github.com/hexchat/hexchat/is...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2013-03-08 09:16 UTC by Sergey Popov
Modified: 2013-06-24 09:04 UTC (History)
1 user (show)

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


Attachments
2.9.4-build.log (build.log,2.42 KB, text/plain)
2013-03-08 09:16 UTC, Sergey Popov
Details
hexchat-2.9.3-changes.diff (hexchat-2.9.3-changes.diff,448 bytes, patch)
2013-03-08 17:45 UTC, Denis M. (Phr33d0m)
Details | Diff
hexchat-2.9.4-changes.diff (hexchat-2.9.4-changes.diff,476 bytes, patch)
2013-03-08 17:45 UTC, Denis M. (Phr33d0m)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Popov gentoo-dev 2013-03-08 09:16:49 UTC
Created attachment 341290 [details]
2.9.4-build.log

net-irc/hexchat fails to compile without gtk support, build.log attached

probably it's somehow related to bug #443138
Comment 1 Sergey Popov gentoo-dev 2013-03-08 09:18:09 UTC
This is not a regression - 2.9.3 fails in same way
Comment 2 Denis M. (Phr33d0m) 2013-03-08 09:29:32 UTC
Can you please post `USE="-gtk" emerge -pv hexchat` ?
I'm unable to reproduce with:

# USE="-gtk" emerge -pv hexchat
[ebuild   R    ] net-irc/hexchat-2.9.3  USE="dbus ipv6 libnotify nls spell ssl -debug -fastscroll -gtk -ntlm -perl -python -tcl" 0 kB
Comment 3 Sergey Popov gentoo-dev 2013-03-08 09:36:58 UTC
(In reply to comment #2)
> Can you please post `USE="-gtk" emerge -pv hexchat` ?

phantom / # USE="-gtk" emerge hexchat -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-irc/hexchat-2.9.4  USE="dbus ipv6 nls plugins spell ssl threads -debug -fastscroll -gtk -libnotify -libproxy -ntlm -perl -python" 0 kB


(In reply to comment #2)
> I'm unable to reproduce with:

Did you have gtk+ installed? If yes - you could not reproduce this, cause autotools will find gtk macros and all things will be fine.

And yes, forgot to add my emerge --info:
Portage 2.1.11.50 (default/linux/arm/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.9-gentoo-BADO armv6l)
=================================================================
System uname: Linux-3.7.9-gentoo-BADO-armv6l-with-gentoo-2.1
KiB Mem:    12282928 total,   6079532 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Tue, 05 Mar 2013 22:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv6j-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
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"
CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/bound/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --jobs=3"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/bound/arm-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="/var/tmp"
PORTDIR="/bound/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm bzip2 cli cracklib crypt cxx dri fortran gpm iconv ipv6 modules mudflap ncurses nls nptl openmp pam pcre readline session ssl unicode zlib" 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" LINGUAS="ru ru_RU" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Sergey Popov gentoo-dev 2013-03-08 09:38:13 UTC
it fails both in my arm and amd64 chroots, so it's definitely not arch-specific problem
Comment 5 Denis M. (Phr33d0m) 2013-03-08 17:43:41 UTC
Sergey, thank you for reporting this bug. The fix is very easy in our case, I'll attach the ebuild changes here for both the 2.9.3 and 2.9.4 versions - please submit them in portage.

I have also reported this bug upstream at https://github.com/hexchat/hexchat/issues/443
Comment 6 Denis M. (Phr33d0m) 2013-03-08 17:45:14 UTC
Created attachment 341318 [details, diff]
hexchat-2.9.3-changes.diff

--- a/hexchat-2.9.3.ebuild      2013-01-14 08:31:23.000000000 +0100
+++ b/hexchat-2.9.3.ebuild      2013-03-08 18:41:30.412025462 +0100
@@ -54,6 +54,11 @@
        # QA: remove deprecated line from desktop file
        sed -e '/Encoding=UTF-8/d' -i ${PN}.desktop || die 'sed failed'
 
+       # Fix to compile with USE=-gtk when there is no gtk installed
+       if ! use gtk ; then
+                sed -i 's/AM_PATH_GTK_2_0//' configure.ac || die 'sed failed'
+       fi
+
        ./autogen.sh || die
 }
Comment 7 Denis M. (Phr33d0m) 2013-03-08 17:45:41 UTC
Created attachment 341320 [details, diff]
hexchat-2.9.4-changes.diff

--- a/hexchat-2.9.4.ebuild      2013-03-04 13:01:23.000000000 +0100
+++ b/hexchat-2.9.4.ebuild      2013-03-08 18:41:34.304025529 +0100
@@ -50,6 +50,11 @@
                        -i configure.ac || die 'sed failed'
        fi
 
+        # Fix to compile with USE=-gtk when there is no gtk installed          
+        if ! use gtk ; then
+                 sed -i 's/AM_PATH_GTK_2_0//' configure.ac || die 'sed failed'
+        fi
+
        mkdir "m4" || die "mkdir failed"
        ./autogen.sh || die "autogen.sh failed"
 }
Comment 8 Sergey Popov gentoo-dev 2013-03-09 11:23:26 UTC
+  09 Mar 2013; Sergey Popov <pinkbyte@gentoo.org> hexchat-2.9.3.ebuild,
+  hexchat-2.9.4.ebuild:
+  Fix building with USE="-gtk" when x11-libs/gtk+:2 is not installed, wrt bug
+  #460758. Thanks to Denis M. <god AT politeia.in> for proposed fixes