Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417311 - x11-wm/fluxbox USE=bidi - configure: checking for fribidi/fribidi.h... no
Summary: x11-wm/fluxbox USE=bidi - configure: checking for fribidi/fribidi.h... no
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jim Ramsay (lack) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-23 20:31 UTC by barul
Modified: 2012-08-30 09:58 UTC (History)
2 users (show)

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


Attachments
fluxbox -i (file_417311.txt,88 bytes, text/plain)
2012-05-23 20:32 UTC, barul
Details
fluxbox entire build log (file_417311.txt,111.07 KB, text/plain)
2012-05-24 05:43 UTC, barul
Details
fluxbox-1.3.1.ebuild.diff (fluxbox-1.3.1.ebuild.diff,1.14 KB, patch)
2012-07-04 11:37 UTC, Stefan Kuhn
Details | Diff
fluxbox-1.3.2.ebuild.diff (fluxbox-1.3.2.ebuild.diff,1.03 KB, patch)
2012-07-04 11:37 UTC, Stefan Kuhn
Details | Diff
fluxbox-9999.ebuild.diff (fluxbox-9999.ebuild.diff,1.19 KB, text/plain)
2012-07-04 11:37 UTC, Stefan Kuhn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description barul 2012-05-23 20:31:30 UTC
I've "x11-wm/fluxbox bidi" in my package.keywords, 'eix fluxbox' shows that the bidi flag is enabled, but it did not activate the fribidi option in fluxbox, as I can see with 'fluxbox -i'.

Reproducible: Always

Steps to Reproduce:
1. echo "x11-wm/fluxbox bidi" >> /etc/portage/package.use
2. emerge fluxbox
3. restart fluxbox
4. fluxbox -i
Actual Results:  
It shows that BIDI is not enabled.

Expected Results:  
BIDI should be activated.
Comment 1 barul 2012-05-23 20:32:37 UTC
Created attachment 312877 [details]
fluxbox -i
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-24 01:47:17 UTC
1) Please post your `emerge --info x11-wm/fluxbox' output in a comment.
2) Please attach the entire build log for x11-wm/fluxbox to this bug report.
Comment 3 barul 2012-05-24 05:39:56 UTC
emerge --info x11-wm/fluxbox:

Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.4.0-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.0-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.1
Timestamp of tree: Wed, 23 May 2012 17:15:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo java-overlay gamerlay-stable mpd pentoo foo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 Oracle-BCLA-JavaSE PUEL Q3AEULA ut2003 skype-eula postal2"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java-overlay /var/lib/layman/gamerlay /var/lib/layman/mpd /var/lib/layman/pentoo /usr/local/portage"
SYNC="rsync://rsync1.fr.gentoo.org/gentoo-portage"
USE="acl alsa amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm gpm iconv ipv6 jpeg mmx modules mudflap multilib ncurses nls nptl openmp pam pcre png pppd qt3support readline session sse sse2 ssl tcpd unicode xorg zlib" 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="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="mouse keyboard 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_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

x11-wm/fluxbox-9999 was built with the following:
USE="bidi debug imlib (multilib) nls slit toolbar truetype vim-syntax -xinerama"
Comment 4 barul 2012-05-24 05:43:59 UTC
Created attachment 312913 [details]
fluxbox entire build log
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-07-03 10:50:11 UTC
fluxbox *must* use pkg-config file of fribidi to query correct Cflags: to get -I include flags for the required deps, like glib-2.0 for glib.h

as in, no package can use fribidi without using it's pkg-config file
Comment 6 Stefan Kuhn 2012-07-04 11:17:36 UTC
The supplied patches should fix this - with them "fluxbox -i" returns "BIDI" when bidi flag is used and "-BIDI" when not.
Version 1.1.1-r3 is not affected - it does not have the "bidi" flag.

Credit for the technical solution goes to Samuli Suominen, I just tried to follow this instructions.

Changes:
--------
1. inherit flag-o-matic toolchain-funcs
2. virtual/pkgconfig to DEPEND
3. append-cppflags "$($(tc-getPKG_CONFIG) --cflags fribidi)

(fribidi supported pkgconfig since before it was added to Gentoo.)

Effect:
-------
1. run "fluxbox -i"
a) bidi flag unused: output is always "-BIDI"
b) without patch: output always "-BIDI"
c) with patch: output "BIDI" only when bidi flag is used

Tested:
-------
a) "fluxbox -i"
amd64:
All versions (old vs. new) tested wether "fluxbox -i" returns correct output with patch and not without (automated tests)
x86:
Same tests, all versions old vs. new test. (automated tests)
b) Starting patched fluxbox with bidi active, checking logs afterwards
amd64: version 1.3.1 and 9999
x86: version 1.3.2

Not Tested:
-----------
I have not actually tested the bidi functionality with RTL languages like: Arabic, Farsi, Hebrew Urdu, ...
Would have to find out how and then be lost with the symbols.
=> someone else please confirm it is actually working.
Comment 7 Stefan Kuhn 2012-07-04 11:37:06 UTC
Created attachment 317109 [details, diff]
fluxbox-1.3.1.ebuild.diff
Comment 8 Stefan Kuhn 2012-07-04 11:37:31 UTC
Created attachment 317111 [details, diff]
fluxbox-1.3.2.ebuild.diff
Comment 9 Stefan Kuhn 2012-07-04 11:37:55 UTC
Created attachment 317117 [details]
fluxbox-9999.ebuild.diff
Comment 10 Stefan Kuhn 2012-07-05 02:57:42 UTC
Update:
Adding virtual/pkgconfig to DEPEND might suffice, RDEPEND is not necessary imho.
Did not test this though.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2012-08-30 09:58:52 UTC
Sorry it took so long, this should be the last bug caused by the fribidi update...

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/fluxbox/fluxbox-1.3.2.ebuild?r1=1.8&r2=1.9

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/fluxbox/fluxbox-9999.ebuild?r1=1.10&r2=1.11

didn't bother with older versions due to stabilization from bug 409339