Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337451 - firebird USE flag masked on amd64
Summary: firebird USE flag masked on amd64
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
: 365079 (view as bug list)
Depends on:
Reported: 2010-09-15 08:15 UTC by Jason Wigg
Modified: 2011-06-10 18:58 UTC (History)
5 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Jason Wigg 2010-09-15 08:15:41 UTC
The firebird USE flag is masked by /usr/portage/profiles/base/use.mask.  It is unmasked for x86 in /usr/portage/profiles/arch/x86/use.mask, but not in /usr/portage/profiles/arch/amd64/use.mask, however the comments in these files seem to suggest that it should have been unmasked.  Is this the case?

# Diego Pettenò <> (4 Jan 2007) 
# Mask the flags for PHP that are available only on x86 
# Shared with amd64 

# Diego Pettenò <> (4 Jan 2007) 
# Unmask the flags for PHP that are available only on x86 
# Shared with amd64 

# Diego Pettenò <> (4 Jan 2007) 
# Unmask the flags for PHP that are available only on x86/amd64 

Reproducible: Always

Steps to Reproduce:
Comment 1 Zac Medico gentoo-dev 2010-09-15 08:31:54 UTC
Regardless of actual intentions, the existing configuration is one that is supposed to cause the firebird flag to be masked on amd64:

$ grep -r firebird profiles
profiles/arch/powerpc/use.mask:# Keep and eye on firebird and interbase as pair
profiles/hardened/amd64/use.mask:#-firebird - commented since firebird has been pushed back to ~amd64
Comment 2 esc 2010-10-05 05:20:53 UTC
There was a new version

    *  New SuperClassic Architecture  Firebird 2.5 introduces a new architecture, tagged "SuperClassic", to gain better leverage from multi-core and multi-CPU hardware environments and improve resource usage for systems with large numbers of users and huge databases.

    * Audit  System audit tracing and user trace sessions via the Services API enable nearly real-time monitoring and analysis of everything going on in a database

    * Cross-database queries  Firebird 2.5 opens the way for Firebird database instances to query one another and to exchange information

    * Enhanced user management  User management becomes accessible and flexible through SQL requests submitted from user databases

    * Other features include autonomous transactions within PSQL modules (stored procedures, triggers, SQL blocks), support for regular expressions as arguments in SQL using the SIMILAR TO predicate, asynchronous cancellation of connections, enhancements of monitoring capabilities and much more.
Comment 3 Jason Wigg 2010-10-05 07:32:49 UTC
Er, and how is there being a new version relevant to this report? 

Yes, it is performing as configured, my question was just that it doesn't seem to be configured as intended. Packages build just fine with the firebird useflag. I'm not really using them though, so I can't confirm there are no runtime issues.  The actual firebird package also builds though, and isn't masked on amd64 in any way.

I posted the bug report as a result of this forum thread:
Comment 4 Ben Green 2010-11-02 15:57:11 UTC
This use flag does not affect the installation of firebird but it does affect the installation of php on an amd64 system. I have recently had this problem and reported it to Diego Petten who seems to be responsible for these flags. The brackets are the problem.

[ebuild  N    ] dev-lang/php-5.2.14  USE="berkdb bzip2 ...<other stuff>... (-firebird)" 8,852 kB

Basically, try and emerge php on an amd64 system for the 10.0 profile and you will see this (if you enable the interbase flag):

 * USE:  amd64 berkdb bzip2 cgi cli crypt ctype curl elibc_glibc fileinfo filter gd gdbm hash iconv ipv6 json kernel_linux multilib nls phar posix readline session simplexml sockets sqlite ssl threads tokenizer truetype unicode userland_GNU xml xmlreader xmlwriter zlib

You will notice that firebird is not present!

Anyway, after finding this and adding the "-firebird" line to my profile/arch/amd64/use.mask file everything works as expected and, more importantly, as it should.

Good luck.
Comment 5 Alex Miller 2010-12-12 18:33:38 UTC
I just ran into this problem when trying to emerge dev-python/sqlalchemy with firebird support on an amd64 system.
Comment 6 William L. Thomson Jr. 2011-02-23 19:07:44 UTC
The mask is likely a left over remnant of some past fubar, but if it still exists for a reason. I would like to know why, so I can modify firebird or take some other action to correct.
Comment 7 Myckel Habets 2011-02-23 20:11:11 UTC
I've been using it now over a month on a system, no problems encountered so far.
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2011-02-23 20:14:23 UTC
looking that the file (base/use.mask) it seems like Diego put that flag in there. Diego do we still need it there? I guess not so we can unmask this flag on amd64 I guess
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2011-04-29 01:22:21 UTC
*** Bug 365079 has been marked as a duplicate of this bug. ***
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2011-05-01 10:18:49 UTC
+  01 May 2011; Markos Chandras <> use.mask:
+  Unmasking firebird use flag. Bug #337451
Comment 11 Marcin Mirosław 2011-05-01 11:14:23 UTC
Comment 12 André Terpstra 2011-05-02 18:27:05 UTC
(In reply to comment #10)
> +  01 May 2011; Markos Chandras <> use.mask:
> +  Unmasking firebird use flag. Bug #337451
> +

I suppose it's been said elsewhere but the change was erroneous: the "=" in front of dev-php is invalid, so it should be corrected.
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2011-05-02 18:41:43 UTC
Yeah sorry about that. I think it is fixed now
Comment 14 Bluey The Dog 2011-06-08 01:52:46 UTC
Well, hate to say this, but it's gone again. I have firebird in my make.conf:

# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bash-completion chm declarative dhcpcd dirac firebird lzma matroska mmx
     mpi-threads nvidia ogg123 private-headers samba schroedinger sse sse2
     static-libs subversion symlink theora xinerama xvmc -bluetooth -emacs
     -gdu -gif -gtk -ipv6"


 and also now in package.use:

x11-libs/qt-sql firebird

When I do "emerge -NuD qt-sql" so that the firebird driver for QT is installed, nothing happens, ie portage thinks it's up to date, even though I've added the new use flag - that's what the "N" is for, correct? Doing "emerge --info" also does not show firebird:

Portage (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r2, 2.6.39-gentoo x86_64)
System uname: Linux-2.6.39-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.0.2
Timestamp of tree: Sun, 05 Jun 2011 05:15:01 +0000
ccache version 3.1.5 [enabled]
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.1-r1, 3.1.3-r1, 3.2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=amdfam10 -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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="-march=amdfam10 -O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdr chm cli consolekit cracklib crypt cups cxx dbus declarative dhcpcd dirac dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gpm iconv jpeg kde lcms ldap libnotify lzma mad matroska mmx mng modules mp3 mp4 mpeg mpi-threads mudflap multilib ncurses nls nptl nptlonly nvidia ogg ogg123 opengl openmp pam pango pcre pdf perl png policykit ppds pppd private-headers python qt3support qt4 readline samba schroedinger sdl session spell sse sse2 ssl startup-notification static-libs subversion svg symlink sysfs tcpd theora tiff truetype udev unicode usb vorbis x264 xcb xinerama xml xorg xulrunner xv xvid xvmc 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="braindump flow karbon kexi kpresenter krita tables words" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" 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" 

So what's the story? Does portage "have it in" for Firebird?
Comment 15 Markos Chandras (RETIRED) gentoo-dev 2011-06-08 11:20:58 UTC
This bug is related to firebird use flag on php. Please open a separate bug about firebird on qt-sql. For a reason that I cannot remember right now, unmasking firebird is not possible at the moment so we need separate bugs for each package. Thanks
Comment 16 Bluey The Dog 2011-06-08 15:00:05 UTC
Hate to disappoint you Markos, but this bug is not about php and firebird, php was just something that happened to display the behaviour. If you read the bug, and refer to the forum post that Jason Wigg refers to, which I happened to create in the first place, you will see that the bug is related to "the system" ignoring the firebird USE variable. Which is what is happening again/still.
Comment 17 Bluey The Dog 2011-06-09 09:49:13 UTC
Anyone got any ideas?
Comment 18 Markos Chandras (RETIRED) gentoo-dev 2011-06-09 10:04:29 UTC
I will unmask it later today. Please give me sometime to test it
Comment 19 Markos Chandras (RETIRED) gentoo-dev 2011-06-10 18:58:48 UTC
Fixed again