Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461864 - www-client/chromium-26.0.1410.33 ignores some flags from /etc/chromium/default
Summary: www-client/chromium-26.0.1410.33 ignores some flags from /etc/chromium/default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-15 22:36 UTC by Thomas Beinicke
Modified: 2013-03-17 17:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Beinicke 2013-03-15 22:36:10 UTC
Chromium doesn't use all flags that I put in the configuration in /etc/chromium/default

For example I have to whitelist some kerberized hosts like this:
CHROMIUM_FLAGS="--auth-server-whitelist="*domain.com,*domain1.org""

Since a few versions Chromium seems to ommit these parameters. If I add it as parameter when I start Chromium on the command line it works as expected.



Reproducible: Always
Comment 1 Thomas Beinicke 2013-03-15 22:36:52 UTC
Portage 2.1.11.55 (default/linux/amd64/13.0, gcc-4.7.2, glibc-2.16.0, 3.8.1-gentoo x86_64)
=================================================================
System uname: Linux-3.8.1-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     8048388 total,   3905184 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Fri, 15 Mar 2013 22:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0::java-overlay
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2::kde
dev-util/pkgconfig:       0.28
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.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo x11 gamerlay sabayon java-overlay kde steam-overlay Merlin-s-Gentoo-Overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0"
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=corei7-avx -O2 -pipe -fomit-frame-pointer"
DISTDIR="/home/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs 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 userpriv"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/mnt/gentoo/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="/home/gentoo/tmp"
Comment 2 Franz Trischberger 2013-03-16 14:05:29 UTC
does that work:
CHROMIUM_FLAGS="--auth-server-whitelist=\"*domain.com,*domain1.org\""
Comment 3 Thomas Beinicke 2013-03-17 11:12:45 UTC
Unfortunately that doesn't work, I am still prompted for the password.

(In reply to comment #2)
> does that work:
> CHROMIUM_FLAGS="--auth-server-whitelist=\"*domain.com,*domain1.org\""
Comment 4 Mike Gilbert gentoo-dev 2013-03-17 15:29:08 UTC
Please launch chromium in a terminal using "bash -x", and attach the output.

bash -x /usr/bin/chromium

I want to ensure we are actually passing your flags through to the chrome binary.
Comment 5 Thomas Beinicke 2013-03-17 17:39:21 UTC
It seems as if they are not passed through.

bash -x /usr/bin/chromium
+ shopt -s nullglob
+ for f in '/etc/chromium/*'
+ [[ -f /etc/chromium/default ]]
+ source /etc/chromium/default
++ CHROMIUM_FLAGS='--auth-server-whitelist="*domain.com,*domain1.org"'
+ CHROMIUM_FLAGS='--auth-server-whitelist="*domain.com,*domain1.org"'
++ readlink -f /usr/bin/chromium
+ export CHROME_WRAPPER=/usr/lib64/chromium-browser/chromium-launcher.sh
+ CHROME_WRAPPER=/usr/lib64/chromium-browser/chromium-launcher.sh
+ PROGDIR=/usr/lib64/chromium-browser
+ case ":$PATH:" in
+ export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2:/usr/games/bin:/usr/lib64/chromium-browser
+ PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2:/usr/games/bin:/usr/lib64/chromium-browser
+ export CHROME_DESKTOP=chromium-browser-chromium.desktop
+ CHROME_DESKTOP=chromium-browser-chromium.desktop
+ exec -a chromium-browser /usr/lib64/chromium-browser/chrome --extra-plugin-dir=/usr/lib/nsbrowser/plugins


As soon as the "*" is removed from the flags it gets passed through.

bash -x /usr/bin/chromium
+ shopt -s nullglob
+ for f in '/etc/chromium/*'
+ [[ -f /etc/chromium/default ]]
+ source /etc/chromium/default
++ CHROMIUM_FLAGS=--auth-server-whitelist=domain.com,domain1.org
+ CHROMIUM_FLAGS=--auth-server-whitelist=domain.com,domain1.org
++ readlink -f /usr/bin/chromium
+ export CHROME_WRAPPER=/usr/lib64/chromium-browser/chromium-launcher.sh
+ CHROME_WRAPPER=/usr/lib64/chromium-browser/chromium-launcher.sh
+ PROGDIR=/usr/lib64/chromium-browser
+ case ":$PATH:" in
+ export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2:/usr/games/bin:/usr/lib64/chromium-browser
+ PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2:/usr/games/bin:/usr/lib64/chromium-browser
+ export CHROME_DESKTOP=chromium-browser-chromium.desktop
+ CHROME_DESKTOP=chromium-browser-chromium.desktop
+ exec -a chromium-browser /usr/lib64/chromium-browser/chrome --extra-plugin-dir=/usr/lib/nsbrowser/plugins --auth-server-whitelist=domain.com,domain1.org


(In reply to comment #4)
> Please launch chromium in a terminal using "bash -x", and attach the output.
> 
> bash -x /usr/bin/chromium
> 
> I want to ensure we are actually passing your flags through to the chrome
> binary.
Comment 6 Mike Gilbert gentoo-dev 2013-03-17 17:56:36 UTC
Ok, should be fixed now.

+  17 Mar 2013; Mike Gilbert <floppym@gentoo.org> files/chromium-launcher-r3.sh:
+  Don't set nullglob since that makes it difficult to pass wildcards in
+  CHROMIUM_FLAGS. Bug 461864.

If you want to fix it without remerging chromium, just remove the following line from /usr/lib/chromium-browser/chromium-launcher.sh.

shopt -s nullglob

Ideally, CHROMIUM_FLAGS should be converted to a bash array, but that will break existing configurations.