I have 'net-misc/unison ~amd64' set in /etc/portage/package.keywords, allowing me to compile unison-2.10.2. When doing 'emerge unison', it shortly comes up with a compile error: ocamlopt: uigtk.mli ---> uigtk.cmi ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk -c /var/tmp/portage/unison-2.10.2/work/unison-2.10.2/uigtk.mli ocamlopt: uigtk.ml ---> uigtk.cmx ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk -c /var/tmp/portage/unison-2.10.2/work/unison-2.10.2/uigtk.ml File "/var/tmp/portage/unison-2.10.2/work/unison-2.10.2/uigtk.ml", line 1609, characters 48-105: This expression has type unit but is here used with type bool make: *** [uigtk.cmx] Error 2 Reproducible: Always Steps to Reproduce: 1. Add 'net-misc/unison ~amd64' to /etc/portage/package.keywords 2. Run 'emerge unison' 3. Actual Results: Compile error: ocamlopt: uigtk.mli ---> uigtk.cmi ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk -c /var/tmp/portage/unison-2.10.2/work/unison-2.10.2/uigtk.mli ocamlopt: uigtk.ml ---> uigtk.cmx ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk -c /var/tmp/portage/unison-2.10.2/work/unison-2.10.2/uigtk.ml File "/var/tmp/portage/unison-2.10.2/work/unison-2.10.2/uigtk.ml", line 1609, characters 48-105: This expression has type unit but is here used with type bool make: *** [uigtk.cmx] Error 2 Expected Results: Clean compile Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r14 x86_64) ================================================================= System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 20:40:14)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.7.9-r1, 1.6.3, 1.8.5-r3, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo http://mirror.aarnet.edu.au/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/x/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://tiger.fudgemond.org/gentoo-portage" USE="amd64 X acpi alsa apache2 avi berkdb bitmap-fonts cdr cjk cups curl dga dvd dvdr encode f77 fam flac font-server fortran gd gdbm gif gimpprint gphoto2 gtk imagemagick imap imlib ipv6 java jp2 jpeg junit kde libwww lzw lzw-tiff mad mikmod motif mozilla moznoirc mpeg multilib ncurses network nvidia oggvorbis opengl pam pcre perl png portaudio python qt quicktime readline rtc slang ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l xml xml2 xmms xpm xrandr xv xvid xvmc zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS Thanks to blubb for pointing me in this direction.
I have managed to get a GUI version of this release built through portage. First, emerge an up to date lablgtk, for me lablgtk-2.4.0. Next, in make.conf, have both gtk and gtk2 switched on in the USE config. Finally, in /etc/portage/package.keywords, enable non-stable version to get unison 2.10.2, for me 'net-misc/unison ~amd64' as I'm running a pure 64 bit system. Voila, a GUI version of unison. Maybe the ebuild can be modified to reflect these dependencies??? Enjoy
The latest unison versions now require gtk2 and not gtk due to the deprecation of the gtk2 USE flag, so this bug is a non-issue now (it was resolved in the meantime though :).